/* Variables CSS para jerarquía visual consistente */
:root {
    /* Jerarquía de tipografía */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.8rem;
    --font-size-h4: 1.4rem;
    --font-size-body: 1rem;
    --font-size-small: 0.9rem;
    
    /* Pesos de fuente */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Colores */
    --color-primary: #0047AB;
    --color-secondary: #FFD700;
    --color-accent: #dc2626;
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-light: #64748b;
    --color-background: #ffffff;
    --color-background-light: #f8fafc;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.top-navbar {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 80px;
}

/* Quitar sombra del navbar secundario (ej. /electronics) */
.top-navbar.secondary-navbar,
.top-navbar.secondary-navbar.scrolled {
    box-shadow: none !important;
}

.top-navbar.scrolled {
    background: #0047AB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.55rem 0.65rem;
    z-index: 1001;
    gap: 5px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger-line {
    width: 32px;
    height: 4px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.hamburger-menu:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); }

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Contenedor de navegación */
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Overrides para navbar secundario: enlaces más limpios, sin sombras ni animaciones */
.top-navbar.secondary-navbar .nav-links {
    gap: 1.25rem; /* 20px */
}

.top-navbar.secondary-navbar .nav-links a {
    color: #1f2937; /* slate-800 */
    text-shadow: none;
    font-weight: 600;
    white-space: nowrap;
}

.top-navbar.secondary-navbar .nav-links a:hover {
    color: #0047AB; /* primario */
    transform: none;
}

.top-navbar.secondary-navbar .nav-links a::after {
    display: none; /* sin subrayado animado */
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 300px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.3);
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 0.25rem 0.05rem 0.25rem 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
    font-size: var(--font-size-body);
    background: transparent;
    color: white;
    min-width: 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:invalid {
    border-color: #ef4444;
}

.search-input:valid {
    border-color: #10b981;
}

.search-submit {
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}

.search-submit:hover {
    background: #f8f9fa;
    color: var(--color-primary);
    transform: scale(1.05);
}

.search-submit:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.search-submit svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

/* Aumentar tamaño del icono del buscador en navbar secundario */
.top-navbar.secondary-navbar .search-submit {
    width: 48px !important;
    height: 48px !important;
}

.top-navbar.secondary-navbar .search-submit svg {
    width: 34px !important;
    height: 34px !important;
}

.search-help {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: var(--font-size-small);
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-box:focus-within .search-help {
    opacity: 1;
    visibility: visible;
}

/* Estados de validación visual */
.search-input:invalid + .search-submit {
    background: #f8f9fa;
    color: #ef4444;
}

.search-input:valid + .search-submit {
    background: #f8f9fa;
    color: #10b981;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: color 0.3s ease;
}

.search-box:focus-within svg {
    color: #0047AB;
}

.navbar-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    height: 100%;
}

.navbar-icons svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
}

.navbar-icons svg:hover {
    transform: scale(1.1);
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.8));
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.icon-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transform: translateY(-2px);
}

.icon-link:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.icon-link:active {
    transform: scale(0.95);
}

/* Tamaños de iconos en navbar secundario */
.top-navbar.secondary-navbar .cart-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que el IMG del usuario crezca (no solo el botón) */
.top-navbar.secondary-navbar img.user-icon,
.top-navbar.secondary-navbar .user-dropdown-trigger img.user-icon {
    width: 30px !important;
    height: 30px !important;
    display: block;
}

/* Evitar que el botón limite el tamaño del IMG */
.top-navbar.secondary-navbar .user-dropdown-trigger.user-icon {
    width: auto !important;
    height: auto !important;
}

/* Mejoras de accesibilidad para botones */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Mejoras para lectores de pantalla */
.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;
}

/* Estados de carga para formularios */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-banner {
    background-image: url('/themes/shop/bodegas-usa/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 5%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.banner-content {
    text-align: left;
    color: white;
    z-index: 2;
    max-width: 600px;
    margin-left: 0;
    padding-left: 0;
    padding-top: 120px; /* Espacio para evitar superposición con navbar */
}

.banner-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.banner-content p {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-banner:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--color-primary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-banner:hover::before {
    left: 100%;
}

.btn-banner:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
    background: transparent;
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: #666;
}

.promo-banner {
    background: #0047AB;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.promo-banner .socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-banner .socials img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.social-icon {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.best-sellers {
    padding: 3rem 2rem;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-background-light);
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-header .arrow {
    font-size: var(--font-size-h3);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    background: var(--color-background-light);
}

.section-header .arrow:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
    background: var(--color-primary);
    color: white;
}

/* Product Grid Styles */
.product-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem;
    margin-top: 2rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.product-grid-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 71, 171, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 71, 171, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-left {
    left: 10px;
}

.carousel-btn-right {
    right: 10px;
}

.product-card {
    flex: 0 0 532px;
    height: 392px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ESTILOS SOLO PARA CATEGORY CARDS (no para product cards de electronics) */
.product-card.category-link h3,
.category-link.product-card h3 {
    position: absolute;
    bottom: 35px;
    left: 35px;
    color: white;
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    margin: 0;
    z-index: 2;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.product-card.category-link:hover h3,
.category-link.product-card:hover h3 {
    transform: scale(1.05);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1);
}

.mobility-section {
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    min-height: 600px;
}

.mobility-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.mobility-img {
    flex: 1;
    width: 50%;
    height: 600px;
}

.mobility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mobility-text {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 4rem;
}

.mobility-text h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
    position: relative;
}

.mobility-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.mobility-text h3 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: var(--spacing-sm) 0;
    line-height: 1.3;
}

.mobility-text p {
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 90%;
    font-weight: var(--font-weight-normal);
}

.btn-explore {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 25px;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: fit-content;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-explore:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--color-primary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-explore:hover::before {
    left: 100%;
}

.btn-explore:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.liquidation-link {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
}

.liquidation-link a {
    color: #007aff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.clearance-section {
    padding: 3rem 2rem;
    background: #fff;
}

.clearance-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.clearance-section .section-title {
    font-size: 2.5rem;
    color: #0047AB;
    font-weight: 700;
    margin: 0;
}

.clearance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 450px; /* Altura fija para todas las filas */
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start; /* Alinear contenido desde arriba */
}

.clearance-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupar toda la altura del grid */
    justify-content: space-between; /* Distribuir contenido uniformemente */
}

.clearance-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clearance-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.clearance-product-link:hover {
    text-decoration: none;
    color: inherit;
}

.clearance-action-btn {
    background: #0047AB;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.clearance-product-link:hover .clearance-action-btn {
    background: #003399;
    transform: scale(1.05);
}

.clearance-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.add-to-cart-btn {
    background: #0047AB;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: #003399;
    transform: translateY(-1px);
}

.view-product-btn {
    background: #f8fafc;
    color: #0047AB;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
}

.view-product-btn:hover {
    background: #e2e8f0;
    color: #003399;
    transform: translateY(-1px);
}

/* Estilos para enlaces de categorías en el carrusel */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.category-link:hover .product-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn {
    margin-top: auto; /* Empujar el botón hacia abajo en desktop también */
}

.clearance-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.clearance-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.clearance-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.clearance-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.clearance-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.clearance-price-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clearance-old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.clearance-new-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0047AB;
}

.clearance-cart-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: auto;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.clearance-cart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.clearance-cart-button:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--color-primary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.clearance-cart-button:hover::before {
    left: 100%;
}

.clearance-cart-button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.clearance-cart-button svg {
    width: 16px;
    height: 16px;
}

.clearance-button {
    background: #FFD700;
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.clearance-button:hover {
    background: #FFC700;
    transform: translateY(-2px);
}

.clearance-button a {
    color: #333;
    text-decoration: none;
}

.clearance-button a:hover {
    color: #333;
}

.benefits {
    padding: 4rem 2rem;
    background: #f9f8f7;
}

.benefits h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-2xl);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.benefits h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.benefits h2 span {
    color: var(--color-primary);
    position: relative;
}

.benefits h2 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 1px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: #cad6df;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-card .icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.benefit-card .icon svg {
    width: 48px;
    height: 48px;
}

.benefit-card h3 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    position: relative;
}

.benefit-card h3::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.benefit-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-normal);
}

.benefit-cta {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-small);
    margin-top: auto;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 71, 171, 0.1);
    border-radius: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.benefit-cta:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   RESPONSIVE DESIGN - Navbar Secundario
   Replicando diseño de localhost (home)
   ============================================ */

/* Tablet y pantallas medianas (1024px) */
@media (max-width: 1024px) {
    .top-navbar.secondary-navbar {
        padding: 1rem;
    }
    
    .top-navbar.secondary-navbar .nav-links {
        gap: 1rem;
    }
    
    .top-navbar.secondary-navbar .search-box {
        width: 250px;
    }
    
    .top-navbar.secondary-navbar .navbar-icons {
        gap: 0.5rem;
    }
}

/* Móviles y tablets pequeñas (768px) */
@media (max-width: 768px) {
    .top-navbar.secondary-navbar {
        flex-direction: row;
        gap: 0;
        padding: 1rem;
        justify-content: space-between;
    }
    
    .top-navbar.secondary-navbar .logo img {
        height: 80px;
    }
    
    /* Mostrar menú hamburguesa */
    .top-navbar.secondary-navbar .hamburger-menu {
        display: flex;
        background: rgba(0, 71, 171, 0.15);
        border-color: rgba(0, 71, 171, 0.35);
        z-index: 1001;
    }
    
    .top-navbar.secondary-navbar .hamburger-line {
        background-color: #0047AB;
    }
    
    /* Ocultar nav-right-section por defecto */
    .top-navbar.secondary-navbar .nav-right-section {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .top-navbar.secondary-navbar .nav-right-section.active {
        right: 0;
    }
    
    /* Nav-links dentro del panel lateral */
    .top-navbar.secondary-navbar .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 2rem;
        display: flex !important;
        order: 1;
    }
    
    .top-navbar.secondary-navbar .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 71, 171, 0.1);
        width: 100%;
        display: block;
        color: #1f2937 !important;
        text-shadow: none !important;
    }
    
    .top-navbar.secondary-navbar .nav-links a::after {
        display: none;
    }
    
    /* Iconos SEGUNDO - justo después de nav-links, VERTICALES */
    .top-navbar.secondary-navbar .navbar-icons {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 2rem !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: flex-start !important;
        display: flex !important;
        order: 2 !important;
        margin: 0 !important;
        padding: 2rem 0 !important;
        border-top: 1px solid rgba(0, 71, 171, 0.1);
        border-bottom: 1px solid rgba(0, 71, 171, 0.1);
    }
    
    /* Cada hijo del navbar-icons debe ser visible */
    .top-navbar.secondary-navbar .navbar-icons > * {
        display: flex !important;
        width: auto !important;
    }
    
    /* Búsqueda TERCERO - al final */
    .top-navbar.secondary-navbar .search-box {
        width: 100%;
        margin-bottom: 0;
        background: rgba(0, 71, 171, 0.05) !important;
        border: 1px solid rgba(0, 71, 171, 0.2) !important;
        order: 3;
    }
    
    .top-navbar.secondary-navbar .search-input {
        color: #1f2937 !important;
    }
    
    .top-navbar.secondary-navbar .search-input::placeholder {
        color: rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Asegurar visibilidad de los iconos en el panel */
    .top-navbar.secondary-navbar .cart-icon,
    .top-navbar.secondary-navbar .user-icon,
    .top-navbar.secondary-navbar img.user-icon {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-width: none !important;
    }
    
    /* Cart counter en móvil */
    .top-navbar.secondary-navbar .cart-counter {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .top-navbar.secondary-navbar .cart-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    /* User icon en móvil */
    .top-navbar.secondary-navbar .icon-link,
    .top-navbar.secondary-navbar .user-dropdown-container,
    .top-navbar.secondary-navbar .user-dropdown-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .top-navbar.secondary-navbar .user-dropdown-container button {
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    /* Overlay para cerrar menú */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ajustar tamaños de iconos en móvil - MÁS GRANDES */
    .top-navbar.secondary-navbar .cart-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }
    
    .top-navbar.secondary-navbar img.user-icon,
    .top-navbar.secondary-navbar .user-dropdown-trigger img.user-icon {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    .top-navbar.secondary-navbar .search-submit {
        width: 38px !important;
        height: 38px !important;
    }
    
    .top-navbar.secondary-navbar .search-submit svg {
        width: 18px !important;
        height: 18px !important;
        fill: #0047AB !important;
    }
    
    /* Badge del carrito visible */
    .top-navbar.secondary-navbar .cart-badge {
        display: flex !important;
        background: #dc2626 !important;
        color: white !important;
    }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
    .top-navbar.secondary-navbar {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .top-navbar.secondary-navbar .logo img {
        height: 40px;
    }
    
    .top-navbar.secondary-navbar .search-box {
        max-width: 200px;
        min-width: 120px;
    }
    
    .top-navbar.secondary-navbar .hamburger-menu {
        padding: 0.4rem 0.5rem;
    }
    
    .top-navbar.secondary-navbar .hamburger-line {
        width: 24px;
        height: 3px;
    }
    
    .top-navbar.secondary-navbar .cart-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .top-navbar.secondary-navbar img.user-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Mantener el estilo original para pantallas > 768px */
@media (min-width: 769px) {
    .top-navbar.secondary-navbar {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }
    
    .top-navbar.secondary-navbar .hamburger-menu {
        display: none !important;
    }
    
    .top-navbar.secondary-navbar .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 1.25rem;
        margin-left: 0;
        margin-right: auto;
    }
    
    .top-navbar.secondary-navbar .search-box {
        width: auto;
        max-width: 400px;
        order: 3;
    }
    
    .top-navbar.secondary-navbar .nav-right-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        margin-left: auto;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
    }
    
    .top-navbar.secondary-navbar .navbar-icons {
        display: flex;
        flex-direction: row !important;
        gap: 1rem;
        order: 4;
    }
}
    
    .promo-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .product-card {
        height: 250px;
    }
    
        .banner-content {
        padding-top: 100px; /* Menos espacio en móviles */
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
    
    .btn-banner {
        padding: 0.5rem 1rem;
    }
    
    .mobility-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .mobility-img,
    .mobility-text {
        width: 100%;
        max-width: 100%;
    }
    
    .mobility-img {
        height: 300px;
    }
    
    .mobility-img img {
        height: 100%;
        border-radius: 0;
    }
    
    .mobility-text {
        padding: 2rem;
        text-align: center;
    }
    
    .mobility-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .mobility-text h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .mobility-text p {
        text-align: center;
        max-width: 100%;
    }
    
    .btn-explore {
        align-self: center;
    }
    
    .benefits {
        padding: 2rem 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    
    .benefit-cta {
        font-size: 0.8rem;
    }
    
    .clearance-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 400px; /* Altura fija para todas las filas en móvil */
        gap: 1.5rem;
        padding: 0 1rem;
        align-items: start; /* Alinear contenido desde arriba */
    }
    
    .clearance-product-card {
        padding: 1rem;
        height: 100%; /* Ocupar toda la altura del grid */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Distribuir contenido uniformemente */
    }
    
    .clearance-image-container {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .clearance-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .clearance-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .clearance-price-container {
        margin-bottom: 1rem;
    }
    
    .add-to-cart-btn {
        margin-top: auto;
    }
    
    .clearance-product-link {
        text-decoration: none;
        color: inherit;
    }
    
    .clearance-action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .clearance-new-price {
        font-size: 1.1rem;
    }
    
    .clearance-cart-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding-top: 80px; /* Aún menos espacio en pantallas muy pequeñas */
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }
    
    .btn-banner {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-card.category-link h3,
    .category-link.product-card h3 {
        font-size: 1rem;
    }
}

.footer {
    background-color: #0047AB;
    color: white;
    padding: 20px 40px;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.footer-nav a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    font-size: 14px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.social-link span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-right {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Para asegurar que el navbar tenga scroll cuando colapsa */
body {
    overflow-x: hidden;
}

.watermark {
    display: none; /* Completamente oculto */
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: #f8fafc;
}

.search-suggestion-item.active {
    background-color: #2563eb;
    color: white;
}

.search-suggestion-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.search-suggestion-item.active .search-suggestion-icon {
    color: white;
}

.search-suggestion-text {
    font-size: 0.875rem;
    font-weight: 400;
}

.search-suggestion-highlight {
    font-weight: 600;
    color: #2563eb;
}

.search-suggestion-item.active .search-suggestion-highlight {
    color: white;
}

/* Arrow indicator for dropdown */
.search-suggestions::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e5e7eb;
}

.search-suggestions::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

/* User Icon Link Styles */
.user-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.user-icon-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Estilos del carrito de compras */
.cart-counter {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 20px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.cart-badge.hidden {
    display: none;
}

/* Asegurar que el icono del carrito tenga el tamaño correcto */
.cart-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ========================================
   USER DROPDOWN STYLES
   ======================================== */

.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.user-dropdown-trigger:hover {
    opacity: 0.8;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.user-dropdown-header svg {
    flex-shrink: 0;
}

.user-dropdown-header span {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
    color: #0047AB;
}

.user-dropdown-item svg {
    flex-shrink: 0;
    color: currentColor;
}

.user-dropdown-logout {
    color: #dc2626;
}

.user-dropdown-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.user-dropdown-logout-form {
    margin: 0;
    padding: 0;
}

/* Animación del dropdown */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flecha indicadora (opcional) */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .user-dropdown-menu {
        min-width: 220px;
        right: -10px;
    }
    
    .user-dropdown-header span {
        font-size: 14px;
    }
    
    .user-dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Accesibilidad - mejora el contraste en hover */
.user-dropdown-item:focus {
    outline: 2px solid #0047AB;
    outline-offset: -2px;
    background: #f1f5f9;
}

.user-dropdown-logout:focus {
    outline-color: #dc2626;
    background: #fef2f2;
}

