/* ============================================
   ESTILOS RESPONSIVE Y BARRA LATERAL
   ============================================ */

/* ============================================
   LAYOUT RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .site-content {
        gap: 1.5rem;
    }

    .sidebar {
        width: 280px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .post {
        padding: 1.5rem;
    }

    nav.site-navigation ul {
        gap: 1.5rem;
    }

    nav.site-navigation a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-branding {
        width: 100%;
        justify-content: center;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 0.75rem;
    }

    nav.site-navigation {
        width: 100%;
        justify-content: center;
    }

    nav.site-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav.site-navigation a {
        font-size: 0.8rem;
        padding-bottom: 0.25rem;
    }

    .site-content {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        margin-top: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .post {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .woocommerce ul.products li.product .product-image {
        height: 200px;
    }

    .woocommerce ul.products li.product h2 {
        font-size: 1rem;
    }

    .woocommerce ul.products li.product .button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin: 0.75rem;
        width: calc(100% - 1.5rem);
    }

    .woocommerce div.product {
        padding: 1rem;
    }

    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }

    .woocommerce div.product .price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .site-header {
        padding: 1rem 0;
    }

    .site-branding {
        gap: 0.5rem;
    }

    .site-logo {
        max-width: 45px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-description {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    nav.site-navigation ul {
        gap: 0.5rem;
    }

    nav.site-navigation a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .post {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-meta {
        font-size: 0.7rem;
    }

    .read-more {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    button, .button, input[type="submit"] {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .widget ul li {
        margin-bottom: 0.3rem;
        padding-left: 0.75rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .site-footer .copyright {
        font-size: 0.75rem;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .woocommerce ul.products li.product {
        border: 1px solid #00ffff;
    }

    .woocommerce ul.products li.product .product-image {
        height: 150px;
    }

    .woocommerce ul.products li.product h2 {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 0.75rem;
        font-size: 0.95rem;
    }

    .woocommerce ul.products li.product .button {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .woocommerce div.product {
        padding: 0.75rem;
    }

    .woocommerce div.product .product_title {
        font-size: 1.3rem;
    }

    .woocommerce div.product .price {
        font-size: 1.1rem;
    }

    .woocommerce-cart table.cart {
        font-size: 0.85rem;
    }

    .woocommerce-cart table.cart td {
        padding: 0.5rem;
    }

    .woocommerce-cart table.cart thead th {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        padding: 1rem;
    }

    .woocommerce-checkout form.checkout {
        padding: 1rem;
    }
}

/* ============================================
   BARRA LATERAL RESPONSIVE
   ============================================ */

.sidebar {
    background-color: #0a0a0a;
    border: 1px solid #9d00ff;
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.2);
    padding: 1.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Widget en barra lateral */
.sidebar .widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #9d00ff;
}

.sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .widget-title {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-left: 3px solid #ff00ff;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sidebar .widget ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 0.8rem;
}

.sidebar .widget ul li a {
    color: #e0e0e0;
    transition: all 0.3s ease;
    display: block;
}

.sidebar .widget ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    padding-left: 0.5rem;
}

/* Widget de búsqueda */
.sidebar .search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar .search-form input[type="search"] {
    flex: 1;
    background-color: #050505;
    border: 1px solid #9d00ff;
    color: #e0e0e0;
    padding: 0.5rem;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
}

.sidebar .search-form input[type="search"]:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    outline: none;
}

.sidebar .search-form button {
    padding: 0.5rem 1rem;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
}

.sidebar .search-form button:hover {
    background-color: #ff00ff;
    color: #050505;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Widget de categorías */
.sidebar .widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .widget_categories ul li a::after {
    content: attr(data-count);
    background-color: rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

/* Widget de etiquetas */
.sidebar .widget_tag_cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar .widget_tag_cloud a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #9d00ff;
    color: #e0e0e0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar .widget_tag_cloud a:hover {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Widget de carrito de WooCommerce */
.sidebar .widget_shopping_cart {
    background-color: #050505;
    border: 1px solid #00ffff;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.sidebar .widget_shopping_cart .widget-title {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    border-left-color: #00ffff;
}

.sidebar .widget_shopping_cart ul.cart_list li {
    border-bottom: 1px solid #9d00ff;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar .widget_shopping_cart ul.cart_list li a {
    color: #e0e0e0;
}

.sidebar .widget_shopping_cart ul.cart_list li a:hover {
    color: #00ffff;
}

.sidebar .widget_shopping_cart .total {
    color: #00ffff;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #9d00ff;
}

.sidebar .widget_shopping_cart .buttons {
    margin-top: 1rem;
}

.sidebar .widget_shopping_cart .buttons a {
    display: block;
    padding: 0.5rem;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .widget_shopping_cart .buttons a:hover {
    background-color: #ff00ff;
    color: #050505;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* Widget de posts recientes */
.sidebar .widget_recent_entries ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #9d00ff;
}

.sidebar .widget_recent_entries ul li:last-child {
    border-bottom: none;
}

.sidebar .widget_recent_entries ul li a {
    color: #e0e0e0;
}

.sidebar .widget_recent_entries ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Widget de comentarios recientes */
.sidebar .widget_recent_comments ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #9d00ff;
    font-size: 0.9rem;
}

.sidebar .widget_recent_comments ul li:last-child {
    border-bottom: none;
}

.sidebar .widget_recent_comments ul li a {
    color: #e0e0e0;
}

.sidebar .widget_recent_comments ul li a:hover {
    color: #00ffff;
}

/* Widget de archivo */
.sidebar .widget_archive ul li {
    margin-bottom: 0.5rem;
}

.sidebar .widget_archive ul li a {
    color: #e0e0e0;
}

.sidebar .widget_archive ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Widget de meta */
.sidebar .widget_meta ul li {
    margin-bottom: 0.5rem;
}

.sidebar .widget_meta ul li a {
    color: #e0e0e0;
}

.sidebar .widget_meta ul li a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Widget de texto personalizado */
.sidebar .widget_text {
    color: #e0e0e0;
    line-height: 1.6;
}

.sidebar .widget_text p {
    margin-bottom: 0.5rem;
}

.sidebar .widget_text a {
    color: #00ffff;
}

.sidebar .widget_text a:hover {
    color: #ff00ff;
}

/* ============================================
   MENÚ RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    nav.site-navigation {
        width: 100%;
    }

    nav.site-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav.site-navigation li {
        width: 100%;
    }

    nav.site-navigation a {
        display: block;
        padding: 0.75rem;
        border: 1px solid #9d00ff;
        text-align: center;
        transition: all 0.3s ease;
    }

    nav.site-navigation a:hover {
        border-color: #00ffff;
        background-color: rgba(0, 255, 255, 0.05);
    }
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-widget-area {
        padding: 0.5rem;
    }

    .site-footer .copyright {
        font-size: 0.8rem;
    }
}

/* ============================================
   EFECTOS RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    /* Reducir tamaño de fuentes para efectos */
    .title-glow {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .title-glow-magenta {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .neon-text {
        letter-spacing: 1px;
    }

    .neon-text-magenta {
        letter-spacing: 1px;
    }

    .neon-text-violet {
        letter-spacing: 1px;
    }

    /* Reducir efectos de sombra en dispositivos pequeños */
    h1, h2, h3, h4, h5, h6 {
        letter-spacing: 1px;
    }

    .btn-cyberpunk {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .card-cyberpunk {
        padding: 1rem;
    }
}
