﻿/* ========================================
   RESET Y VARIABLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neutral-foreground-rest: #242424;
    --neutral-foreground-hover: #424242;
    --accent-foreground-rest: #0078d4;
    --neutral-fill-rest: #fafafa;
    --neutral-fill-hover: #f5f5f5;
    --neutral-stroke-rest: #d1d1d1;
    --elevation-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.14), 0 0px 2px rgba(0, 0, 0, 0.12);
    --header-height-desktop: 140px;
    --header-height-mobile: 110px;
    --bottom-nav-height: 60px;
}

/* ========================================
   HEADER - DESKTOP
======================================== */

/* ========================================
   TOP BAR - AHORA CON CONTROLES DE ACCESIBILIDAD
   ======================================== */

.top-bar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 8px 0;
    font-size: 13px;
    min-height: 40px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Controles de Accesibilidad */
.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .accessibility-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fbbf24;
        border-color: #fbbf24;
    }

    .accessibility-btn:focus-visible {
        outline: 2px solid #fbbf24;
        outline-offset: 2px;
    }

    .accessibility-btn svg,
    .accessibility-btn i {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Estado activo del botón de contraste */
    .accessibility-btn[aria-pressed="true"] {
        background: #0052CC;
        border-color: #FFD700;
        color: #ffffff;
    }

/* Enlaces de navegación */
.top-links {
    display: flex;
    gap: 20px;
}

.top-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .top-link:hover {
        color: #fbbf24;
    }

/* ========================================
   RESPONSIVE - TOP BAR
   ======================================== */

/* Tablet y móvil */
@media (max-width: 768px) {
    .top-bar-content {
        justify-content: end; /* Centrar en móvil */
        padding: 0 15px;
    }

    /* Ocultar texto en móvil, solo mostrar iconos */
    .accessibility-btn .btn-text {
        display: none;
    }

    .accessibility-btn {
        padding: 6px 10px;
        min-width: 36px;
        justify-content: center;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .accessibility-btn {
        padding: 5px 8px;
        min-width: 32px;
    }

        .accessibility-btn svg,
        .accessibility-btn i {
            width: 14px;
            height: 14px;
        }
}


/* ========================================
   MAIN HEADER
   ======================================== */
.header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.main-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 50px 28px;
    gap: 15px 20px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

/* Logo Area */
.header-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    width: auto;
    height: 50px;
}

/* Search Area */
.search-container {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 600px;
    justify-self: center;
}

.search-box {
    display: flex;
    border: 2px solid #e2e8f0;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .search-box input {
        flex: 1;
        padding: 12px 20px;
        border: none;
        outline: none;
        font-size: 14px;
    }

    .search-box button {
        background: #fbbf24;
        color: #0f172a;
        border: none;
        padding: 12px 25px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .search-box button:hover {
            background: #f59e0b;
        }

/* Actions Area (Desktop) */
.header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0f172a;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

    .action-item:hover .action-icon {
        color: #fbbf24;
    }

.action-icon {
    font-size: 22px;
    margin-bottom: 0;
}

.action-text {
    font-size: 12px;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fbbf24;
    color: #0f172a;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Navigation Menu (Desktop) */
.nav-menu-container {
    display: flex;
    justify-content: center;
    grid-column: 2;
    grid-row: 2;
    border-top: 1px solid #eaeaea;
}

.nav-menu {
    display: flex;
    max-width: 600px;
    width: 100%;
    list-style: none;
    justify-content: start;
    padding: 0;
    margin-left: 2rem;
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: flex-end;
    margin-right: 15px;
    height: 28px;
}

.nav-link {
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        text-decoration: underline;
    }

/* Hamburger Toggle (Mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #0f172a;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    grid-column: 3;
    grid-row: 1;
}

    .mobile-menu-toggle:hover {
        color: #fbbf24;
    }

/* ========================================
   MOBILE SIDEBAR NAVIGATION
======================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
}

    .mobile-nav-panel.active {
        transform: translateX(0);
    }

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    height: 60px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

    .mobile-nav-close:hover {
        background: #f1f5f9;
        color: #fbbf24;
    }

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

    .mobile-nav-item:hover,
    .mobile-nav-item:active {
        background: #f8fafc;
        color: #fbbf24;
    }

    .mobile-nav-item i {
        font-size: 20px;
        color: #64748b;
    }

    .mobile-nav-item:hover i,
    .mobile-nav-item:active i {
        color: #fbbf24;
    }

.mobile-nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 20px;
}

/* ========================================
   BOTTOM NAVIGATION BAR (MOBILE ONLY)
======================================== */

.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    flex: 1;
    height: 100%;
    padding: 6px 0;
    transition: color 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

    .bottom-nav-item:hover,
    .bottom-nav-item:active,
    .bottom-nav-item.active {
        color: #fbbf24;
    }

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Badge en bottom nav */
.bottom-nav-item .cart-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(16px);
    font-size: 9px;
    width: 16px;
    height: 16px;
}

/* ========================================
   BOTTOM "MÁS" MENU (FULLSCREEN)
======================================== */

.bottom-more-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    overflow-y: auto;
    animation: slideUpMenu 0.3s ease;
}

    .bottom-more-menu.active {
        display: block;
    }

@keyframes slideUpMenu {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    height: 60px;
}

.more-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.more-menu-close {
    background: none;
    border: none;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .more-menu-close:hover {
        background: #f1f5f9;
    }

.more-menu-content {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

    .more-menu-item:hover,
    .more-menu-item:active {
        background: #f8fafc;
    }

    .more-menu-item i {
        font-size: 20px;
        color: #fbbf24;
    }

.more-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 20px;
}

/* ========================================
   MAIN CONTAINER
======================================== */

.main-container {
    min-height: calc(100vh - var(--header-height-desktop) - 400px);
    padding-bottom: 0;
}

/* ========================================
   FOOTER MODERNO - 3 COLUMNAS
======================================== */

.footer {
    padding: 70px 0 30px;
    position: relative;
    background: #f8fafc;
            margin-top: 5rem;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #60a5fa, #2563eb, #1d4ed8);
    }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 50px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.logo-and-payment {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo, .mercadopago-logo {
    padding: 0.5rem;
    border-radius: 5px;
    background-color: #f5f5f5;
}

    .mercadopago-logo img {
        height: auto;
    }

.footer-about p {
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .social-icon:hover {
        background: #fbbf24;
        color: #fff;
        transform: translateY(-2px);
    }

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

    .contact-info-footer i {
        margin-right: 8px;
    }

    .contact-info-footer a {
        text-decoration: none;
    }

.footer-links-section {
    display: flex;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links li {
        font-size: 14px;
    }

    .footer-links li a {
        color: var(--color-blue);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.footer-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}

.legal-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

    .legal-links a {
        text-decoration: none;
        transition: color 0.3s;
    }

/* ========================================
   WHATSAPP BUTTON
======================================== */

.whatsapp-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 997;
    text-decoration: none;
}

    .whatsapp-button:hover {
        background: #20ba5a;
        transform: scale(1.1);
        color: white;
    }

/* ========================================
   ACCESIBILIDAD
======================================== */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
}

    .skip-to-content:focus {
        top: 0;
    }

.visually-hidden:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
}

.visually-hidden-focusable:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
}

*:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

[role="navigation"] {
    outline: none;
}

[role="list"] {
    list-style: none;
    padding-left: 0;
}

/* ========================================
   RESPONSIVE - TABLET Y MÓVIL
======================================== */

@media (max-width: 769px) {
    /* Header móvil - Logo izquierda, búsqueda centro, hamburger derecha */
    .main-header {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 60px;
        gap: 10px;
        padding: 10px 0;
        align-items: center;
        position: relative;
    }

    /* Logo a la izquierda */
    .header-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        z-index: 1;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .logo-image {
        height: 40px;
    }

    /* Búsqueda en el centro */
    .search-container {
        grid-column: 2;
        grid-row: 1;
        max-width: 100%;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 2;
    }

    /* Botón de volver (oculto por defecto) */
    .search-back-btn {
        display: none;
        background: none;
        border: none;
        color: #0f172a;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        flex-shrink: 0;
        transition: color 0.2s;
    }

        .search-back-btn:active {
            color: #fbbf24;
        }

    .search-box {
        height: 38px;
        flex: 1;
        transition: none; /* Sin transición en estado normal */
    }

        .search-box input {
            padding: 8px 12px;
            font-size: 13px;
        }

        .search-box button {
            padding: 8px 12px;
        }

            .search-box button span {
                display: none;
            }

    /* Hamburger a la derecha */
    .mobile-menu-toggle {
        display: block;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        padding: 8px;
        z-index: 1;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Estado expandido de búsqueda */
    .search-container.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 76px;
        background: #fff;
        z-index: 1000;
        padding: 0 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

        .search-container.expanded .search-back-btn {
            display: block;
        }

        .search-container.expanded .search-box {
            flex: 1;
        }

    /* Ocultar logo y hamburger cuando búsqueda está expandida */
    .main-header.search-active .header-logo,
    .main-header.search-active .mobile-menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Overlay oscuro cuando búsqueda está activa */
    .search-overlay {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .search-overlay.active {
            display: block;
            opacity: 1;
        }

    /* Ocultar elementos desktop */
    .header-actions,
    .nav-menu-container {
        display: none !important;
    }

    /* Ajustar altura del header */
    .header-container {
        padding: 8px 15px;
    }

    :root {
        --header-height-mobile: 76px;
    }

    /* Main container con padding bottom para bottom nav */
    .main-container {
        padding-bottom: calc(var(--bottom-nav-height) + 10px);
        min-height: calc(100vh - var(--header-height-mobile) - 200px);
    }

    /* WhatsApp button ajustado */
    .whatsapp-button {
        bottom: calc(var(--bottom-nav-height) + 15px);
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Footer móvil */
    .footer {
        padding: 50px 0 calc(var(--bottom-nav-height) + 20px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo-and-payment {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   RESPONSIVE - MOBILE PEQUEÑO
======================================== */

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }

    .search-box {
        height: 36px;
    }

        .search-box input {
            padding: 6px 10px;
            font-size: 13px;
        }

        .search-box button {
            padding: 6px 10px;
            font-size: 13px;
        }

            .search-box button i {
                font-size: 16px;
            }

    .search-back-btn {
        font-size: 22px;
        padding: 6px;
    }

    .header-container {
        padding: 6px 12px;
    }

    .search-container.expanded {
        height: 64px;
        padding: 0 12px;
    }

    .search-overlay {
        top: 64px;
    }

    .bottom-nav-icon {
        font-size: 22px;
    }

    .bottom-nav-label {
        font-size: 9px;
    }

    .footer {
        padding: 40px 0 calc(var(--bottom-nav-height) + 20px);
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

/* ========================================
   RESPONSIVE - TABLETS HORIZONTALES
======================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .logo-image {
        height: 42px;
    }

    .search-box {
        height: 40px;
    }

    .main-header {
        gap: 12px;
    }
}
/* ========================================
   ACCOUNT & NOTIFICATION DROPDOWNS
======================================== */

/* Contenedores de dropdown */
.account-dropdown-container,
.notification-container {
    position: relative;
}

/* Triggers (botones) */
.account-trigger,
.notification-trigger {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown base styles */
.account-dropdown,
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    /* Mostrar dropdown */
    .account-dropdown-container:hover .account-dropdown,
    .notification-container:hover .notification-dropdown,
    .account-dropdown.show,
    .notification-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Account dropdown items */
.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .account-dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .account-dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .account-dropdown-item:hover {
        background: #f8fafc;
    }

    .account-dropdown-item i {
        color: #64748b;
        font-size: 16px;
        width: 18px;
        text-align: center;
    }

    .account-dropdown-item:hover i {
        color: #fbbf24;
    }

.account-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.logout-btn {
    color: #ef4444;
}

    .logout-btn i {
        color: #ef4444;
    }

    .logout-btn:hover {
        background: #fef2f2;
    }

/* Notification dropdown specific */
.notification-dropdown {
    min-width: 360px;
    max-width: 420px;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

    .notification-dropdown-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
        margin: 0;
    }

.mark-all-read-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

    .mark-all-read-btn:hover {
        background: #eff6ff;
    }

.notification-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.notification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
    gap: 12px;
}

    .notification-loading i {
        font-size: 32px;
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background: #f8fafc;
    }

    .notification-item.unread {
        background: #eff6ff;
    }

        .notification-item.unread:hover {
            background: #dbeafe;
        }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

    .notification-icon.success {
        background: #dcfce7;
        color: #16a34a;
    }

    .notification-icon.warning {
        background: #fef3c7;
        color: #f59e0b;
    }

    .notification-icon.error {
        background: #fee2e2;
        color: #ef4444;
    }

    .notification-icon.info {
        background: #dbeafe;
        color: #3b82f6;
    }

    .notification-icon.sale {
        background: #e0e7ff;
        color: #6366f1;
    }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    display: block;
}

.notification-message {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #94a3b8;
}

.notification-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.view-all-notifications {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

    .view-all-notifications:hover {
        color: #2563eb;
    }

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

    .no-notifications i {
        font-size: 48px;
        margin-bottom: 12px;
        display: block;
        color: #cbd5e1;
    }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .notification-dropdown {
        right: -100px;
        min-width: 320px;
    }
}
/* ========================================
   MOBILE NOTIFICATIONS (FULLSCREEN)
======================================== */

/* Toggle button en header móvil */
.mobile-notifications-toggle,
.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    background: none;
    border: none;
    color: #0f172a;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

    .mobile-notifications-toggle:active,
    .mobile-login-btn:active {
        color: #fbbf24;
    }

.mobile-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Panel fullscreen de notificaciones móviles */
.mobile-notifications-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .mobile-notifications-panel.open {
        right: 0;
    }

.mobile-notifications-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-notifications-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Header del panel */
.mobile-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-notifications-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.mobile-notifications-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .mobile-notifications-close:active {
        background: #f1f5f9;
        color: #0f172a;
    }

/* Actions (marcar todas como leídas) */
.mobile-notifications-actions {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.mobile-mark-all-read-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

    .mobile-mark-all-read-btn:active {
        background: #dbeafe;
    }

    .mobile-mark-all-read-btn i {
        font-size: 18px;
    }

/* Contenido scrolleable */
.mobile-notifications-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    /* Notification items móvil - usar los mismos del desktop */
    .mobile-notifications-content .notification-item {
        border-bottom: 1px solid #f1f5f9;
        padding: 16px 20px;
    }

        .mobile-notifications-content .notification-item:last-child {
            border-bottom: none;
        }

        .mobile-notifications-content .notification-item:active {
            background: #f8fafc;
        }

        .mobile-notifications-content .notification-item.unread:active {
            background: #dbeafe;
        }

    /* No notifications móvil */
    .mobile-notifications-content .no-notifications {
        padding: 60px 20px;
        text-align: center;
    }

        .mobile-notifications-content .no-notifications i {
            font-size: 64px;
            margin-bottom: 16px;
            color: #cbd5e1;
        }

        .mobile-notifications-content .no-notifications p {
            font-size: 16px;
            color: #94a3b8;
        }

    /* Loading móvil */
    .mobile-notifications-content .notification-loading {
        padding: 60px 20px;
    }

/* Logout item en more menu */
.logout-item {
    color: #ef4444 !important;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    .logout-item:hover,
    .logout-item:active {
        background: #fef2f2;
    }

    .logout-item i {
        color: #ef4444;
    }

/* Ajustes responsive */
@media (max-width: 768px) {
    /* Ocultar elementos desktop */
    .mobile-menu-toggle,
    .mobile-overlay,
    .mobile-nav-panel {
        display: none !important;
    }

    /* Header móvil con notificaciones */
    .main-header {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 60px;
        gap: 10px;
        padding: 10px 0;
        align-items: center;
        position: relative;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        z-index: 1;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .logo-image {
        height: 40px;
    }

    .search-container {
        grid-column: 2;
        grid-row: 1;
        max-width: 100%;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 2;
    }

    .search-back-btn {
        display: none;
        background: none;
        border: none;
        color: #0f172a;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        flex-shrink: 0;
        transition: color 0.2s;
    }

        .search-back-btn:active {
            color: #fbbf24;
        }

    .search-box {
        height: 38px;
        flex: 1;
    }

        .search-box input {
            padding: 8px 12px;
            font-size: 13px;
        }

        .search-box button {
            padding: 8px 12px;
        }

            .search-box button span {
                display: none;
            }

    /* Estado expandido de búsqueda */
    .search-container.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 76px;
        background: #fff;
        z-index: 1000;
        padding: 0 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

        .search-container.expanded .search-back-btn {
            display: block;
        }

    .main-header.search-active .header-logo,
    .main-header.search-active .mobile-notifications-toggle,
    .main-header.search-active .mobile-login-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .search-overlay {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .search-overlay.active {
            display: block;
            opacity: 1;
        }

    .header-actions,
    .nav-menu-container {
        display: none !important;
    }

    .header-container {
        padding: 8px 15px;
    }

    :root {
        --header-height-mobile: 76px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }

    .search-box {
        height: 36px;
    }

        .search-box input {
            padding: 6px 10px;
            font-size: 13px;
        }

        .search-box button {
            padding: 6px 10px;
            font-size: 13px;
        }

    .mobile-notifications-toggle,
    .mobile-login-btn {
        font-size: 22px;
        padding: 6px;
    }

    .mobile-notification-badge {
        top: 2px;
        right: 2px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .mobile-notifications-header {
        padding: 14px 16px;
    }

    .mobile-notifications-title {
        font-size: 18px;
    }

    .mobile-notifications-content .notification-item {
        padding: 14px 16px;
    }
}

.footer-about p,
.contact-info-footer,
.contact-info-footer i,
.separator,
.footer-links li,
.footer-links a,
.contact-text,
.footer-bottom-content,
.legal-links a {
    /* Antes: #64748b (Fail) -> Nuevo: #475569 (Pass AA 5.8:1) */
    color: #475569;
}
.footer-links a, .legal-links a, .contact-info-footer a{
    color: var(--color-blue);
}
    .footer-links a:hover,
    .legal-links a:hover,
    .contact-info-footer a:hover {
        color: var(--color-blue); /* Azul accesible */
        text-decoration: underline;
    }

body.high-contrast-mode .top-bar .top-bar-content .top-links .top-link{
    color: #92A5FC !important;
}