/* ============================================
   OLEVS PERÚ - COMPONENTS CSS
   Componentes reutilizables para todo el sitio
   Mobile-First Responsive Design
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    /* Colores OLEVS del logo */
    --brand-dark: #1A1A1A;
    --brand-gold: #C5A572;
    --brand-gold-light: #D4B88A;
    --brand-silver: #B8B8B8;
    --brand-white: #ffffff;
    --brand-muted: #6B6B6B;
    --brand-light-bg: #FAF8F5;

    --card-bg: #ffffff;
    --card-border: #E5E0D8;
    --border-gold: rgba(197, 165, 114, 0.3);
    --shadow-gold: rgba(197, 165, 114, 0.35);

    --transition-base: all 0.3s ease;

    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #f7f7f7 0%, #f2f2f2 40%, #ececec 100%) fixed;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* ===== HEADER ===== */

/* ===== HEADER PREMIUM - SLIM VERSION ===== */

.header {
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(197, 165, 114, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 80px;
    position: relative;
}

/* Logo - Centrado en todas las vistas */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1020;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(197, 165, 114, 0.3));
}

/* ========================================================================
   MENÚ HAMBURGUESA - MÓVIL
   Solo visible en pantallas < 1024px
   Modifica: Botón de 3 líneas que abre el menú modal en móvil
   ======================================================================== */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    /* Ancho del botón */
    height: 40px;
    /* Alto del botón */
    padding: 8px;
    z-index: 100000;
    position: absolute;
    left: 0;
    /* Posición a la izquierda del logo */
    transition: transform 0.2s ease;
}

.burger:hover {
    transform: scale(1.1);
    /* Efecto al pasar el mouse */
}

/* ===== LÍNEAS DEL MENÚ HAMBURGUESA =====
   Modifica: Las 3 líneas horizontales del ícono */
.burger span {
    display: block;
    width: 28px;
    /* Ancho de cada línea */
    height: 3px;
    /* Grosor de cada línea */
    background: var(--brand-gold);
    /* Color dorado */
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Sombra para mejor visibilidad */
}


/* Menú Modal de Pantalla Completa - Según imagen de referencia */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    padding: 0;
    display: none;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.nav.active {
    display: flex !important;
    opacity: 1;
}

/* Logo dentro del menú */
.nav-logo {
    margin-bottom: 50px;
    margin-top: 50px;
}

.nav-logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(197, 165, 114, 0.5));
}



.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.nav-link {
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-gold);
    transform: scale(1.1);
}

/* Botón Cerrar Menú - Círculo arriba a la izquierda */
.nav-close {
    position: absolute;
    top: 25px;
    left: 25px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    width: 60px;
    height: 60px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 100001;
    font-weight: 300;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    transform: rotate(90deg) scale(1.1);
}

/* ========================================================================
   ESTILOS DESKTOP DEL HEADER Y NAVEGACIÓN
   Se aplica en pantallas ≥ 1024px (tablets grandes y escritorio)
   ======================================================================== */
@media (min-width: 1024px) {

    /* ===== HEADER PRINCIPAL (Desktop) =====
       Modifica: Barra superior negra del sitio */
    .header {
        padding: 10px 0;
        background: rgba(5, 5, 5, 0.96);
    }

    /* ===== CONTENEDOR DEL HEADER =====
       Modifica: Layout horizontal del logo y menú */
    .header-content {
        display: flex;
        justify-content: space-between;
        /* Logo a la izquierda, menú a la derecha */
        align-items: center;
        height: 80px;
    }

    /* ===== LOGO (Desktop) =====
       Modifica: Tamaño del logo en escritorio */
    .logo img {
        height: 48px;
    }

    /* ===== MENÚ DE NAVEGACIÓN (Desktop) =====
       Modifica: Convierte el menú modal móvil en menú horizontal */
    .nav {
        display: flex;
        /* Flex para mejor control */
        opacity: 1;
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
        flex-direction: row;
        margin-left: 40px;
        /* Separación del logo */
        margin-right: auto;
        /* Empuja Actions a la derecha */
    }

    /* ===== LOGO DENTRO DEL MENÚ =====
       Modifica: Oculta el logo que aparece en el menú móvil */
    .nav-logo {
        display: none;
        /* Solo visible en móvil */
    }

    /* ===== LISTA DE ENLACES (Desktop) =====
       Modifica: Enlaces del menú en línea horizontal */
    .nav-list {
        display: flex;
        /* Layout horizontal */
        flex-direction: row;
        /* Enlaces uno al lado del otro */
        align-items: center;
        gap: 40px;
        /* Espacio entre enlaces */
        width: auto;
    }

    /* ===== ENLACES INDIVIDUALES (Desktop) =====
       Modifica: Estilo de cada link del menú (Inicio, Relojes Hombre, etc.) */
    .nav-link {
        font-size: 15px;
        /* Tamaño de texto */
        text-transform: none;
        /* Sin mayúsculas (en móvil sí están en mayúsculas) */
        letter-spacing: 0.5px;
        color: #e5e7eb;
        /* Color gris claro */
        font-weight: 600;
        text-shadow: none;
        padding: 8px 16px;
        /* Área clickeable */
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    /* Ocultar iconos emoji en desktop - solo mostrar texto */
    .nav-icon {
        display: none !important;
    }

    .header .nav-link {
        flex-direction: row;
        gap: 0;
    }

    /* ===== EFECTO SUBRAYADO =====
       Modifica: Elimina la línea animada que aparece en móvil */
    .nav-link::after {
        display: none;
    }

    /* ===== HOVER EN ENLACES (Desktop) =====
       Modifica: Efecto al pasar el mouse sobre un enlace */
    .nav-link:hover {
        color: var(--brand-gold);
        /* Cambia a color dorado */
        transform: none;
        /* Sin animación de escala */
    }


    /* ===== BOTONES DE MENÚ MÓVIL =====
       Modifica: Oculta el botón X y hamburguesa en desktop */
    .nav-close,
    .burger {
        display: none;
        /* Solo visibles en móvil */
    }
}




/* ===== BREADCRUMB ===== */

.breadcrumb-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 3px 0;
}

.breadcrumb {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--brand-muted);
    font-size: 16px;
}

.breadcrumb a {
    color: var(--brand-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}

.breadcrumb .active {
    color: var(--brand-dark);
    font-weight: 700;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold-light) 0%, var(--brand-gold) 100%);
    color: var(--brand-dark);
    box-shadow: 0 4px 16px var(--shadow-gold);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--shadow-gold);
    border-color: var(--brand-gold);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    font-weight: 800;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--card-border);
}

.btn-secondary:hover {
    border-color: var(--brand-gold);
    background: rgba(212, 175, 55, 0.08);
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

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

.footer {
    background: var(--brand-dark);
    color: var(--brand-white);
    margin-top: 80px;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

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

@media (min-width: 1024px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--brand-gold);
    transform: translateX(4px);
}

.footer-section p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 12px;
}

.footer-logo-link {
    display: block;
    margin-bottom: 4px;
}

.footer-logo {
    display: block;
    max-width: 140px;
    height: auto;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transition: var(--transition-base);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.social-links a:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    transform: translateY(-3px) scale(1.1);
}

.social-links svg {
    fill: var(--brand-white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ===== UTILITIES ===== */

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Display */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Flexbox utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Spacing */
.mt-0 {
    margin-top: 0;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* Typography */
.fw-normal {
    font-weight: 400;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-extrabold {
    font-weight: 800;
}

/* Colors */
.text-gold {
    color: var(--brand-gold);
}

.text-dark {
    color: var(--brand-dark);
}

.text-muted {
    color: var(--brand-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--brand-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive display utilities */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
*:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 2px;
}

/* ===== WHATSAPP STICKY BUTTON ===== */

.whatsapp-sticky-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-sticky {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.whatsapp-sticky:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-sticky svg {
    flex-shrink: 0;
}

/* Animación de pulso sutil */
@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    }

    50% {
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-sticky {
    animation: whatsappPulse 2s infinite;
}

/* Solo visible en móvil */
/* Configuración DESKTOP para el botón */
@media (min-width: 1024px) {
    .whatsapp-sticky-container {
        /* display: none !important;  <-- Descomenta esto si quieres ocultarlo de nuevo */
        bottom: 30px;
    }
}

/* ESTILOS PARA CENTRAR EL BOTÓN */
.whatsapp-sticky-container {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: auto;
    z-index: 9999;
}

.whatsapp-sticky {
    width: auto;
    min-width: 250px;
    max-width: 90vw;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}


/* En móvil muy pequeño, reducir padding */
@media (max-width: 380px) {
    .whatsapp-sticky {
        padding: 12px 16px;
        font-size: 14px;
    }

    .whatsapp-sticky-container {
        right: 12px;
        bottom: 12px;
    }
}

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #D4AF37;
    /* Gold */
    border-bottom-color: #D4AF37;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.auth-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-auth {
    background: #0f172a;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #1e293b;
}

.social-login {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.social-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #f8fafc;
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    display: none;
}


/* ===== BOTÓN INGRESAR (HEADER) ===== */
.login-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    /* Reducir padding */
    background: transparent;
    border: 1px solid #D4AF37;
    border-radius: 50px;
    color: #D4AF37 !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.login-nav-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* ===== HEADER ACTIONS (USER + CART) ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    /* Empuja a la derecha en flex */
    margin-right: 20px;
}

/* User Profile Btn en Header */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    padding: 4px;
    border-radius: 20px;
    transition: all 0.3s;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-gold);
}

.user-name-display {
    font-size: 14px;
    font-weight: 600;
    display: none;
    /* Ocultar en móvil muy pequeño */
}

@media (min-width: 480px) {
    .user-name-display {
        display: block;
    }
}

/* Dropdown User */
.user-profile-container {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #334155;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dropdown-item svg {
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.text-danger {
    color: #ef4444;
}

.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* En móvil, re-ordenamos */
@media (max-width: 1024px) {
    .header-actions {
        margin-right: 60px;
        /* Dejar espacio para el burger que está absolute right/left? Burger está a la izquierda. */
        margin-left: auto;
    }

    /* Si el burger está a la izquierda, el header-actions debe estar a la derecha. */
    .burger {
        left: 20px;
    }

    .nav {
        /* Reset nav styles for mobile modal */
    }
}

@media (min-width: 1024px) {
    .header-actions {
        margin-right: 0;
        margin-left: 40px;
    }
}