/* ==========================================================================
   CSS PRINCIPAL - VISAGE BEAUTY DUPES (REDISEÑO ÉSIKA & CATÁLOGO REAL)
   ========================================================================== */

/* 1. CONFIGURACIÓN DEL SISTEMA DE DISEÑO & VARIABLES */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Colores Ésika Style + Fucsia Dupe */
    --magenta-brand: #E6005C;       /* Fucsia/Rosa fuerte de la marca */
    --magenta-hover: #c2004b;       /* Hover de botones fucsia */
    --pink-pastel: #FCEAEB;         /* Fondo suave de Sobre Nosotros */
    --pink-warranty: #FDEFF4;       /* Fondo pre-footer */
    --pink-light: #FCEAEB;          /* Círculos e iconos */
    --charcoal: #1A1A1A;            /* Tipografías oscuras */
    --gray-dark: #333333;           /* Enlaces y textos secundarios */
    --gray-light: #F2F2F2;          /* Fondo buscador e inputs */
    --gray-medium: #8A8580;         /* Textos grises */
    --border-gray: #ECEAE6;         /* Bordes de tarjetas */
    --white: #FFFFFF;               /* Fondo blanco puro */
    --green-savings: #16A34A;       /* Ahorros */
    --green-bg: #F0FDF4;

    /* Efectos y Espaciados */
    --shadow-sm: 0 2px 4px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 8px 16px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 16px 32px rgba(26, 26, 26, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.text-center { text-align: center; }

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
}

/* 3. BARRA DE ANUNCIO (TOP BAR) */
.top-bar-announcement {
    background-color: var(--magenta-brand);
    color: var(--white);
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1010;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 4. ENCABEZADO (HEADER) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px; /* Un poco más grande para compensar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logotipo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* Buscador Rectangular Round */
.search-bar-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.detail-gallery {
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-form {
    display: flex;
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 2px 2px 2px 14px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--magenta-brand);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.1);
}

.search-form input {
    flex: 1;
    background: none;
    font-size: 13px;
    color: var(--charcoal);
}

.search-form input::placeholder {
    color: var(--gray-medium);
}

.search-btn {
    background-color: var(--magenta-brand);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--magenta-hover);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.suggestion-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.suggestion-item:hover {
    background-color: var(--gray-light);
}

.suggestion-item .suggestion-dupe-badge {
    font-size: 10px;
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Acciones lado derecho */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon-btn-labeled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-dark);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.action-icon-btn-labeled i {
    font-size: 18px;
    color: var(--charcoal);
}

.action-icon-btn-labeled:hover {
    color: var(--magenta-brand);
}

.action-icon-btn-labeled:hover i {
    color: var(--magenta-brand);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--magenta-brand);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Menú de Navegación Inferior (Centrado) */
.main-nav-bottom {
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: center;
}

.nav-links-bottom {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link-bottom {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    position: relative;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link-bottom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--magenta-brand);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.nav-link-bottom:hover {
    color: var(--magenta-brand);
}

.nav-link-bottom:hover::after,
.nav-link-bottom.active::after {
    width: 100%;
}

.nav-link-bottom.active {
    color: var(--magenta-brand);
}

/* Mobile buttons toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 20px;
}

.mobile-nav-menu {
    display: none;
}

/* 5. ESTRUCTURA SPA SECCIONES */
.main-content {
    margin-top: 100px; /* Ajustado sin la barra superior */
    min-height: calc(100vh - 100px - 450px);
}

.app-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.app-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-solid-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    background-color: #262124;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-content-left .hero-subtitle-sub {
    text-align: left !important;
}

.hero-image-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-model-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain; background-color: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.video-overlay-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.72); /* Filtro oscuro */
    z-index: 1;
}

.hero-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.hero-center-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Modales Legales */
.policy-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.policy-modal.active { display: flex; }
.policy-modal-content {
    background-color: #fff;
    width: 100%; max-width: 700px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    max-height: 90vh;
}
.policy-modal-header {
    background-color: #E91E63;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}
.policy-modal-header h2 {
    margin: 0; font-size: 20px; font-weight: bold; text-transform: uppercase;
}
.policy-modal-close {
    position: absolute; right: 20px; top: 20px;
    background: none; border: none; color: #fff; font-size: 24px; cursor: pointer;
}
.policy-modal-body {
    padding: 30px;
    overflow-y: auto;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}
.policy-modal-body h3 {
    color: #E91E63;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.policy-modal-body h3:first-child { margin-top: 0; }
.policy-modal-body p { margin-bottom: 15px; }

.hero-tag-pink {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

/* Mensaje Central Rosado Grueso */
.hero-visage-brand-title {
    font-family: var(--font-display);
    font-size: 82px;
    font-weight: 900;
    color: #FF2E93; /* Rosado grueso de alto contraste */
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.hero-subtitle-sub {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Viñetas con iconos */
.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet-icon-circle {
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.bullet-text {
    font-size: 13.5px;
    color: var(--white);
}

.bullet-text strong {
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

/* Botones fucsias institucionales */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-magenta-solid {
    background-color: var(--magenta-brand);
    color: var(--white);
}

.btn-magenta-solid:hover {
    background-color: var(--magenta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.3);
}

.btn-magenta-outline {
    background-color: transparent;
    color: var(--magenta-brand);
    border: 2px solid var(--magenta-brand);
}

.btn-magenta-outline:hover {
    background-color: var(--pink-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray-light);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background-color: var(--border-gray);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 11px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

/* Visual derecha */
.hero-visual-esika {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-model-container {
    position: relative;
    max-width: 360px;
}

.hero-model-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Tarjeta flotante de experiencia */
.ar-floating-experience-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon-camera-pink {
    width: 36px;
    height: 36px;
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.ar-floating-experience-card h4 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.ar-floating-experience-card p {
    font-size: 10px;
    color: var(--gray-medium);
    margin-bottom: 12px;
    line-height: 1.3;
}

.ar-floating-experience-card .btn {
    width: 100%;
}

/* 7. CATEGORÍAS SECCIÓN (7 COLUMNAS CIRCULARES CON IMÁGENES REALES) */
.categories-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title-line {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title-line::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--magenta-brand);
}

.section-subtitle {
    font-size: 14px;
    color: var(--gray-medium);
    margin-top: 14px;
    margin-bottom: 40px;
}

.categories-7-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.category-col-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-circular-bg {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-col-card:hover .category-circular-bg {
    border-color: var(--magenta-brand);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.15);
}

.category-col-card h3 {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.category-col-card p {
    font-size: 10px;
    color: var(--gray-medium);
    line-height: 1.3;
}

/* 8. PRODUCTOS DESTACADOS & TARJETAS DE DUPES */
.featured-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

.link-btn-magenta {
    font-size: 13px;
    font-weight: 700;
    color: var(--magenta-brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.link-btn-magenta:hover {
    color: var(--magenta-hover);
    padding-left: 4px;
}

/* Carrusel Horizontal */
.carrusel-products-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carrusel-scroll-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    width: 100%;
}

.carrusel-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.carrusel-scroll-wrapper .product-card {
    flex-shrink: 0;
    width: 275px;
}

.carrusel-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    z-index: 10;
    color: var(--charcoal);
    transition: var(--transition);
}

.carrusel-arrow:hover {
    background-color: var(--magenta-brand);
    color: var(--white);
    border-color: var(--magenta-brand);
}

.arrow-left { left: -20px; }
.arrow-right { right: -20px; }

/* 9. TARJETAS DE PRODUCTO (CATÁLOGO REAL CON 6 COLUMNAS DESKTOP) */
@media (min-width: 1200px) {
    .grid-six-columns {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px !important;
    }
    
    .grid-six-columns .product-card {
        width: 100% !important;
    }
}

.quick-cat-tab-btn {
    padding: 8px 16px;
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-gray);
}

.quick-cat-tab-btn:hover,
.quick-cat-tab-btn.active {
    background-color: var(--magenta-brand);
    color: var(--white);
    border-color: var(--magenta-brand);
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--magenta-brand);
}

.product-image-wrapper {
    position: relative;
    background-color: var(--gray-light);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; background-color: #ffffff;
}

.ar-floating-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(26, 26, 26, 0.8);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 13px;
}

.ar-floating-btn:hover {
    background-color: var(--magenta-brand);
    transform: scale(1.08);
}

/* Badge Dupe Fucsia */
.dupe-badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--magenta-brand);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fav-badge-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--gray-medium);
    font-size: 18px;
    z-index: 5;
}

.fav-badge-top-right:hover {
    color: var(--magenta-brand);
}

.product-info-wrapper {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dupe-brand-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--magenta-brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.product-desc-short {
    font-size: 10px;
    color: var(--gray-medium);
    margin-bottom: 6px;
}

.product-rating-stars {
    color: var(--gold);
    font-size: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating-stars span {
    color: var(--gray-medium);
    font-size: 10px;
    margin-left: 4px;
}

.price-container {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: 12px;
}

.price-row-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.visage-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--charcoal);
}

.luxury-original-price {
    font-size: 11px;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.saving-badge {
    color: var(--magenta-brand);
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.product-card-actions .btn {
    padding: 6px 4px;
    font-size: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.btn-light-gray-tech {
    background-color: var(--gray-light);
    color: var(--charcoal);
    font-weight: 700;
    border: 1px solid var(--border-gray);
}

.btn-light-gray-tech:hover {
    background-color: var(--border-gray);
}

/* 10. BENEFICIOS TECNOLÓGICOS */
.benefits-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: 60px 24px;
    margin: 60px 0;
}

.benefits-4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.benefit-row-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon-circle-light {
    width: 44px;
    height: 44px;
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-row-content h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.benefit-row-content p {
    font-size: 12px;
    color: var(--gray-medium);
    line-height: 1.4;
}

/* 11. TESTIMONIOS (3 CARDS HORIZONTALES) */
.reviews-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.review-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--pink-light);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar-placeholder-text {
    font-size: 6px;
    color: var(--magenta-brand);
    text-align: center;
    padding: 2px;
    font-style: italic;
    line-height: 1.1;
}

.review-user-name-stars h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--charcoal);
}

.review-user-name-stars .review-stars {
    color: var(--gold);
    font-size: 10px;
    margin-top: 2px;
}

.review-text-esika {
    font-size: 12.5px;
    color: var(--gray-dark);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 18px;
    flex: 1;
}

.review-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray-medium);
    border-top: 1px solid var(--border-gray);
    padding-top: 10px;
}

.btn-outline-magenta-star {
    border: 2px solid var(--magenta-brand);
    color: var(--magenta-brand);
    font-weight: 700;
    background-color: transparent;
}

.btn-outline-magenta-star:hover {
    background-color: var(--pink-light);
}

/* 12. BARRA DE GARANTÍAS PRE-FOOTER */
.pre-footer-warranties-bar {
    background-color: var(--pink-warranty);
    padding: 30px 24px;
    border-top: 1px solid var(--border-gray);
}

.warranties-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.warranty-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warranty-col i {
    font-size: 24px;
    color: var(--magenta-brand);
}

.warranty-col div {
    display: flex;
    flex-direction: column;
}

.warranty-col strong {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--charcoal);
}

.warranty-col span {
    font-size: 10px;
    color: var(--gray-medium);
}

/* 13. PIE DE PÁGINA (FOOTER BLANCO) */
.main-footer-white {
    background-color: var(--white);
    color: var(--charcoal);
    padding: 60px 24px 20px 24px;
    border-top: 1px solid var(--border-gray);
}

.footer-container-white {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-gray);
}

.footer-logo-img {
    max-height: 40px;
    margin-bottom: 10px;
}

.footer-tagline-gray {
    font-size: 12px;
    color: var(--gray-medium);
    margin-bottom: 14px;
}

.footer-social-links-magenta {
    display: flex;
    gap: 12px;
}

.footer-social-links-magenta a {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-social-links-magenta a:hover {
    background-color: var(--magenta-brand);
    color: var(--white);
}

.footer-links-column h3, .footer-newsletter-column-magenta h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-gray {
    font-size: 12px;
    color: var(--gray-dark);
}

.footer-link-gray:hover {
    color: var(--magenta-brand);
    padding-left: 2px;
}

.footer-newsletter-column-magenta p {
    font-size: 12px;
    color: var(--gray-medium);
    margin-bottom: 14px;
}

.newsletter-form-magenta {
    display: flex;
    gap: 8px;
}

.newsletter-form-magenta input {
    flex: 1;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
    background-color: var(--gray-light);
    color: var(--charcoal);
}

.newsletter-form-magenta input:focus {
    border-color: var(--magenta-brand);
    background-color: var(--white);
}

/* Cierre de footer */
.footer-bottom-white {
    padding-top: 20px;
    font-size: 11px;
    color: var(--gray-medium);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods-logos {
    display: flex;
    gap: 8px;
    font-size: 20px;
    color: var(--gray-medium);
}

.payment-logo-item {
    transition: var(--transition);
}

.payment-logo-item:hover {
    color: var(--magenta-brand);
}

/* 14. ESTILOS DE LA BARRA LATERAL DE FILTROS & CATÁLOGO */
.catalog-container {
    max-width: 1200px;
    margin: 20px auto 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

.catalog-filters {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 155px;
    box-shadow: var(--shadow-sm);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.filters-header h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.clear-filters {
    font-size: 11px;
    color: var(--gray-medium);
    font-weight: 600;
}

.clear-filters:hover {
    color: var(--magenta-brand);
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 16px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    font-size: 12.5px;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 15px;
    width: 15px;
    background-color: var(--gray-light);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--magenta-brand);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--magenta-brand);
    border-color: var(--magenta-brand);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 3px;
    height: 7px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
    background-color: var(--gray-light);
    font-size: 12.5px;
}

.catalog-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: var(--gray-medium);
}

.catalog-section-group {
    margin-bottom: 36px;
}

.catalog-section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    border-bottom: 2px solid var(--pink-light);
    padding-bottom: 6px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 14. DETALLE DE PRODUCTO / FICHA / MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active-modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.modal.active-modal .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-medium);
    z-index: 10;
}

.close-modal:hover {
    color: var(--charcoal);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.detail-gallery {
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain; background-color: #ffffff;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-brand-badge {
    align-self: flex-start;
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.detail-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-comparison-badge {
    background-color: var(--green-bg);
    color: var(--green-savings);
    border: 1px solid rgba(22, 163, 74, 0.2);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-desc {
    font-size: 12.5px;
    color: var(--gray-medium);
    margin-bottom: 18px;
    line-height: 1.5;
}

.detail-attribute-list {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
}

.detail-attribute-list li {
    display: flex;
    gap: 6px;
    align-items: center;
}

.detail-attribute-list i {
    color: var(--magenta-brand);
}

.detail-tone-selector h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.swatch-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-gray);
    cursor: pointer;
    transition: var(--transition);
}

.swatch-btn.active-swatch {
    box-shadow: 0 0 0 2px var(--magenta-brand);
    transform: scale(1.08);
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.detail-actions .btn {
    flex: 1;
}

/* 15. SIMULADOR PROBADOR RA MODAL */
.ar-content-wrapper {
    max-width: 900px;
}

.ar-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    max-height: 80vh;
}

.ar-mirror-container {
    background-color: #0b0b0b;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-gray);
}

.ar-video-wrapper {
    position: relative;
    width: 300px;
    height: 380px;
    background-color: #151515;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.ar-model-img, #ar-webcam {
    width: 100%;
    height: 100%;
    object-fit: contain; background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
}

.ar-makeup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
    opacity: 0.7;
}

.ar-before-after-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--white);
    z-index: 4;
    cursor: ew-resize;
}

.ar-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    background-color: var(--white);
    color: var(--charcoal);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: var(--shadow-md);
}

.ar-before-label, .ar-after-label {
    position: absolute;
    top: 10px;
    background-color: rgba(26, 26, 26, 0.6);
    color: var(--white);
    font-size: 8px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 4;
}

.ar-before-label { left: 10px; }
.ar-after-label { right: 10px; }

.ar-camera-controls {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.ar-controls-panel {
    padding: 20px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.panel-header {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.badge-gold {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 4px;
}

.control-section {
    margin-bottom: 16px;
}

.control-section h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-medium);
    margin-bottom: 8px;
}

.ar-zone-selector {
    display: flex;
    gap: 6px;
    background-color: var(--gray-light);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.zone-tab {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.zone-tab.active {
    background-color: var(--white);
    color: var(--charcoal);
    box-shadow: var(--shadow-sm);
}

.ar-product-summary {
    margin-top: auto;
    border: 1px solid var(--magenta-brand);
    background-color: var(--pink-light);
    padding: 12px;
}

/* 16. CUENTA / MI PANEL */
.profile-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 24px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 12.5px;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.forgot-password-link {
    text-align: right;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 500;
}

.forgot-password-link a {
    color: var(--gray-medium);
}

.user-dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.user-info-header {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    font-size: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.user-info-header h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-dark);
}

.dash-menu-link:hover,
.dash-menu-link.active {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    font-weight: 600;
}

#btn-logout {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--red);
    font-weight: 500;
}

.dashboard-content h2 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 10px;
}

hr {
    border: none;
    border-top: 1px solid var(--border-gray);
    margin-bottom: 20px;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active-tab {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 10px;
    color: var(--gray-medium);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-value {
    font-size: 13.5px;
    font-weight: 500;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.orders-table th, .orders-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-gray);
}

.orders-table th {
    background-color: var(--gray-light);
    font-weight: 600;
}

.status-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-delivered {
    background-color: var(--green-bg);
    color: var(--green-savings);
}

.status-shipping {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
}

/* 17. CHECKOUT / CARRITO COMPRA */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.cart-item-row {
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; background-color: #ffffff;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cart-item-tone {
    font-size: 11px;
    color: var(--gray-medium);
    margin-bottom: 4px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    padding: 1px;
    background-color: var(--white);
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.qty-num {
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

.cart-item-remove {
    color: var(--gray-medium);
    font-size: 14px;
}

.cart-item-remove:hover {
    color: var(--red);
}

.checkout-form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.saving-highlight {
    color: var(--magenta-brand);
    font-weight: 700;
    background-color: var(--pink-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.total-row {
    font-size: 16px;
    font-weight: 800;
    color: var(--charcoal);
    margin-top: 10px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-container {
    display: flex;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark-radio {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: var(--gray-light);
    border: 1px solid var(--border-gray);
    border-radius: 50%;
}

.radio-container:hover input ~ .checkmark-radio {
    border-color: var(--magenta-brand);
}

.radio-container input:checked ~ .checkmark-radio {
    background-color: var(--white);
    border-color: var(--magenta-brand);
    border-width: 5px;
}

.payment-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option-label strong {
    font-weight: 700;
}

.payment-option-label span {
    font-size: 10px;
    color: var(--gray-medium);
}

/* Formulario Campos */
.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
    background-color: var(--gray-light);
    font-size: 12.5px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--magenta-brand);
    background-color: var(--white);
}

/* 18. EXITO DE COMPRA / TRACKING TIMELINE */
.success-card {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
}

.success-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--green-bg);
    color: var(--green-savings);
    font-size: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.success-card h1 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 6px;
}

.success-order-id {
    font-size: 13px;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.tracking-timeline-esika {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
}

.tracking-timeline-esika::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--border-gray);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.timeline-step .step-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--border-gray);
    color: var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--white);
    transition: var(--transition);
}

.timeline-step span {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-medium);
    margin-top: 6px;
    text-align: center;
}

.step-desc-text {
    font-size: 8px;
    color: var(--gray-medium);
    display: block;
    margin-top: 2px;
}

.timeline-step.active .step-icon {
    background-color: var(--magenta-brand);
    color: var(--white);
}

.timeline-step.active span {
    color: var(--magenta-brand);
}

/* 19. WIDGET CHATBOT IA */
.chatbot-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chatbot-trigger-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--magenta-brand) 0%, var(--magenta-hover) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.chat-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background-color: rgba(230, 0, 92, 0.3);
    z-index: -1;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.trigger-label {
    position: absolute;
    right: 64px;
    background-color: var(--white);
    color: var(--charcoal);
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    border: 1px solid var(--magenta-brand);
}

.chatbot-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    height: 440px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active-chat {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-avatar {
    width: 28px;
    height: 28px;
    background-color: var(--magenta-brand);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.chat-agent-info h4 {
    font-size: 12px;
    font-weight: 700;
}

.agent-status {
    font-size: 8px;
    color: var(--border-gray);
    display: flex;
    align-items: center;
    gap: 3px;
}

.dot-online {
    width: 5px;
    height: 5px;
    background-color: var(--green-savings);
    border-radius: var(--radius-full);
}

.close-chat-btn {
    font-size: 20px;
    color: var(--border-gray);
}

.chat-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--gray-light);
}

.chat-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    line-height: 1.4;
}

.bot-msg {
    background-color: var(--white);
    color: var(--charcoal);
    align-self: flex-start;
    border: 1px solid var(--border-gray);
}

.user-msg {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
    align-self: flex-end;
    font-weight: 600;
}

.msg-time {
    font-size: 7px;
    color: var(--gray-medium);
    margin-top: 2px;
    display: block;
    text-align: right;
}

.chat-quick-suggestions {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
}

.quick-btn {
    font-size: 9.5px;
    font-weight: 600;
    background-color: var(--gray-light);
    color: var(--charcoal);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.quick-btn:hover {
    background-color: var(--pink-light);
    color: var(--magenta-brand);
}

.chat-footer {
    padding: 10px 12px;
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
}

.chat-footer form {
    display: flex;
    gap: 6px;
}

.chat-footer input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    background-color: var(--gray-light);
}

.chat-send-btn {
    width: 28px;
    height: 28px;
    background-color: var(--magenta-brand);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.chat-whatsapp-routing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 9px;
    color: var(--gray-medium);
}

.chat-wa-link {
    color: var(--whatsapp);
    font-weight: 700;
}

/* ==========================================================================
   NUEVOS BLOQUES INFORMATIVOS (Reemplazo estadísticas)
   ========================================================================== */
.info-blocks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background-color: #FDF1F6;
    border: 1px solid #FFFFFF;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
}

.info-card-icon {
    font-size: 32px;
    color: var(--magenta-brand);
    margin-bottom: 20px;
}

.info-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 15px;
}

.info-card-text {
    font-size: 14.5px;
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   20. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .header-container {
        padding: 10px 16px;
    }
    .main-nav-bottom {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-solid-banner {
        display: flex;
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 0;
        text-align: center;
        gap: 30px;
    }
    .hero-content-left {
        align-items: center;
        text-align: center;
    }
    .hero-content-left .hero-subtitle-sub {
        text-align: center !important;
    }
    .hero-bullets li {
        justify-content: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-visage-brand-title {
        font-size: 58px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-model-container {
        max-width: 320px;
    }
    .ar-floating-experience-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
    }
    .categories-7-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .catalog-container, .auth-grid, .checkout-container, .user-dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    .catalog-filters {
        position: static;
        margin-bottom: 20px;
    }
    .detail-grid, .ar-grid {
        grid-template-columns: 1fr;
    }
    .ar-mirror-container {
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }
    .ar-controls-panel {
        max-height: 380px;
    }
    .warranties-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-container-white {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-solid-banner {
        padding: 20px 16px;
    }
    .hero-visage-brand-title {
        font-size: 42px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .categories-7-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid-three {
        grid-template-columns: 1fr;
    }
    .warranties-container {
        grid-template-columns: 1fr;
    }
    .footer-container-white {
        grid-template-columns: 1fr;
    }
    .form-row, .info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile Dropdown Menu */
.mobile-nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: var(--shadow-md);
    z-index: 999999 !important;
}

.mobile-nav-menu.active-menu {
    display: block !important;
}

.mobile-nav-links {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
}

/* Nuestras Marcas Section Custom Styling */
.brands-institutional-container {
    animation: fadeIn 0.4s ease;
}

.brand-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.brand-card-logo-placeholder {
    transition: var(--transition);
}

.brand-card:hover .brand-card-logo-placeholder img {
    transform: scale(1.04);
}

.brand-card-logo-placeholder img {
    transition: var(--transition);
}

.info-box-certified {
    border-left: 4px solid var(--magenta-brand);
    background-color: var(--pink-warranty);
}

.breadcrumb {
    font-family: var(--font-display);
    font-weight: 600;
}

/* Modificaciones solicitadas por el cliente */
.reviews-grid-three {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

@media (max-width: 900px) {
    .reviews-grid-three {
        grid-template-columns: 1fr !important;
    }
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain; background-color: #ffffff;
}

/* ==========================================================================
   ADMIN DASHBOARD STYLES
   ========================================================================== */
#admin-dashboard-wrapper { display: flex; width: 100%; min-height: 80vh; background: #fff; font-family: 'Inter', sans-serif; }
.admin-sidebar { width: 250px; border-right: 1px solid #eaeaea; display: flex; flex-direction: column; background: #fff; }
.admin-sidebar-logo { padding: 20px; text-align: left; }
.admin-sidebar-logo img { width: 120px; }
.admin-nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.admin-nav li a { display: flex; align-items: center; padding: 15px 25px; color: #333; text-decoration: none; font-weight: 500; font-size: 15px; }
.admin-nav li a i { margin-right: 15px; width: 20px; text-align: center; color: #888; }
.admin-nav li a:hover { background: #f9f9f9; }
.admin-nav li a.active { background: #fff1f2; color: #e11d48; font-weight: 600; border-radius: 0 20px 20px 0; margin-right: 15px; }
.admin-nav li a.active i { color: #e11d48; }
.admin-nav li a.active-pink { color: #e11d48; font-weight: 600; }
.admin-nav li a.active-pink i { color: #e11d48; }
.admin-logout { padding: 20px; border-top: 1px solid #eaeaea; }
.admin-logout a { color: #e11d48; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.admin-main-content { flex: 1; display: flex; flex-direction: column; background: #fafafa; overflow: hidden; }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: #fff; border-bottom: 1px solid #eaeaea; }
.menu-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #333; }
.admin-profile-info { display: flex; align-items: center; gap: 12px; }
.admin-avatar { width: 40px; height: 40px; background: #e11d48; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 18px; }
.admin-details { display: flex; flex-direction: column; text-align: right; }
.admin-name { font-weight: 700; color: #111; font-size: 14px; }
/* Estilos auxiliares únicos para Samy sin afectar el global */
.perfil-samy .admin-profile-info { min-width: max-content; }
.perfil-samy .admin-name { white-space: nowrap; }
.admin-role { font-size: 12px; color: #666; }
.admin-dashboard-body { padding: 40px; flex: 1; overflow-y: auto; }
.welcome-title { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 5px; }
.welcome-subtitle { color: #666; font-size: 15px; margin-bottom: 40px; }
.providers-section { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.providers-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.providers-subtitle { color: #666; font-size: 14px; margin-bottom: 25px; }
.provider-card { display: flex; align-items: center; justify-content: space-between; padding: 20px; border: 1px solid #eaeaea; border-radius: 12px; margin-bottom: 15px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.provider-logo-circle { width: 80px; height: 80px; border-radius: 50%; background: #f9f9f9; display: flex; justify-content: center; align-items: center; margin-right: 20px; }
.provider-info { flex: 1; }
.provider-info h3 { margin: 0 0 5px 0; font-size: 18px; color: #111; }
.provider-info p { margin: 0; color: #666; font-size: 14px; }
.btn-manage-provider { background: #ff2a6d; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-manage-provider:hover { background: #e01b5c; }
.admin-table th { background: #fafafa; border-radius: 8px; }
.admin-table td { padding: 15px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
@media (max-width: 768px) { .admin-sidebar { display: none; } .provider-card { flex-direction: column; text-align: center; gap: 15px; } .provider-logo-circle { margin-right: 0; } }

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES)
   No afecta la versión Desktop (>=1025px)
   ========================================================================== */

/* TABLETS (Max 1024px) */
@media (max-width: 1024px) {
    .dupes-grid, .categories-grid, .brands-grid, .benefits-grid, .reviews-grid-three {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Equivalentes de Tailwind para Tarjetas (Dupes Más Vendidos) */
    .dupes-grid .product-card {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 1rem !important; /* rounded-2xl */
        padding: 16px !important;
        box-sizing: border-box !important;
    }
    
    .dupes-grid .product-image-wrapper img {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important; /* aspect-square */
        object-fit: contain !important; /* object-contain */
        height: auto !important;
    }
    
    .dupes-grid .product-name {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; /* line-clamp-2 */
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .dupes-grid .price-container {
        margin-top: auto !important; /* mt-auto */
        width: 100% !important; /* w-full */
    }

    .footer-container-white {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-content h1 {
        font-size: 36px !important;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .search-bar-container {
        flex: 1 1 100%;
        order: 3;
        margin-top: 10px;
    }
}

/* TABLETS PEQUEÑAS (Max 768px) */
@media (max-width: 768px) {
    /* CORRECCIÓN BLOQUES INFORMATIVOS EN CELULARES */
    .info-blocks-container {
        grid-template-columns: 1fr !important; /* Apilar en celulares */
        gap: 20px !important;
    }
    
    .info-card {
        padding: 30px 20px !important; /* Reducir padding interno en celulares */
    }
    
    /* CORRECCIÓN ESTRICTA SECCIÓN MÁS VENDIDOS EN CELULARES */
    .featured-section .carrusel-products-container {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    #featured-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
        padding-bottom: 20px !important;
    }
    
    #featured-products-grid .product-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        padding: 12px !important;
    }
    
    #featured-products-grid .product-card img {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
        height: auto !important;
    }
    
    #featured-products-grid .product-card h3 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
    }
    
    #featured-products-grid .product-card > div:last-child {
        margin-top: auto !important;
    }
    
    #featured-products-grid .product-card > div > div:last-child {
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    #featured-products-grid .product-card .btn-detalles,
    #featured-products-grid .product-card .btn-add-cart,
    #featured-products-grid .product-card .btn-add-cart-fast {
        width: 100% !important;
        font-size: 11px !important;
        padding: 8px !important;
        margin-bottom: 4px !important;
    }
    
    /* CORRECCIÓN MODAL VER DETALLES EN CELULARES */
    .policy-modal {
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 40px 15px !important;
        pointer-events: auto !important;
    }
    
    .policy-modal-close {
        z-index: 99999 !important;
        pointer-events: auto !important;
    }
    
    #modal-tarjeta-1 .policy-modal-content,
    #modal-tarjeta-2 .policy-modal-content,
    #modal-tarjeta-3 .policy-modal-content,
    #modal-tarjeta-4 .policy-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: auto !important;
    }
    
    /* CORRECCIÓN SECCIÓN QUIÉNES SOMOS EN CELULARES EXTREMA */
    #about-section {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    #about-section .about-esika-institutional-container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    #about-section .inst-hero-banner {
        padding: 30px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto 30px auto !important;
        display: block !important;
    }
    
    /* Contenedor de imágenes de la base y labial */
    #about-section .inst-hero-banner > div:last-child {
        gap: 15px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Contenedor blanco de cada imagen */
    #about-section .inst-hero-banner > div:last-child > div {
        flex: 1 !important;
        max-width: 140px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Hacer las imágenes proporcionales al contenedor */
    #about-section .inst-hero-banner img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        object-fit: cover !important;
    }
    
    /* Forzar a que Misión y Visión se apilen verticalmente y NO rompan el ancho */
    #about-section .about-esika-institutional-container > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #about-section .card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #modal-tarjeta-1 .policy-modal-content > div,
    #modal-tarjeta-2 .policy-modal-content > div,
    #modal-tarjeta-3 .policy-modal-content > div,
    #modal-tarjeta-4 .policy-modal-content > div {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* CORRECCIÓN MODAL PRODUCT DETAIL (CATÁLOGO) EN CELULARES */
    #product-detail-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
        background-color: rgba(26, 26, 26, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: none !important; /* Bloquea completamente el arrastre sobre el fondo oscuro */
    }

    #product-detail-modal .modal-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 95% !important;
        max-height: 90vh !important;
        overflow: hidden !important; /* NO TIENE SCROLL */
        display: flex !important; 
        flex-direction: column !important;
        padding: 0 !important; 
        margin: 0 !important;
    }

    #product-detail-content {
        display: block !important;
        height: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important; /* EL SCROLL ESTÁ AQUÍ, COMO EN POLICY MODAL */
        -webkit-overflow-scrolling: touch !important; 
        overscroll-behavior-y: contain !important; /* Evita que el scroll pase a la página */
        padding: 20px !important; 
        touch-action: auto !important; /* Reactiva el scroll nativo dentro de la tarjeta */
    }

    #product-detail-content > div {
        display: block !important;
        height: auto !important;
    }

    #close-detail-modal {
        position: absolute !important; /* Se posiciona en relación a modal-content */
        top: 10px !important;
        right: 10px !important;
        z-index: 9999 !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 50% !important;
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .hero-content h1 {
        font-size: 30px !important;
    }
    /* REQUISITO: Ocultar barra/banner flotante emergente con boton X en móviles */
    .policy-modal:not(.active),
    #modal-ra-3-flotante:not(.active),
    .modal-overlay:not([style*="display: flex"]):not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    /* Asegurar que cuando tienen .active sí se muestren */
    .policy-modal.active,
    #modal-ra-3-flotante.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 9999 !important;
    }
}

/* CELULARES (Max 480px) */
@media (max-width: 480px) {
    .dupes-grid, .categories-grid, .brands-grid, .benefits-grid, .reviews-grid-three, .auth-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-container-white {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-brand-column, .footer-links-column {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 24px !important;
    }
    
    .hero-content p {
        font-size: 15px !important;
    }
    
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .search-bar-container {
        width: 100%;
        max-width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
        order: 2;
    }
    
    /* Panel Administrativo */
    .admin-main-content {
        overflow-x: hidden;
    }
    .admin-table-container, .admin-dashboard-body {
        overflow-x: auto !important;
        width: 100%;
        display: block;
    }
    .admin-table {
        min-width: 600px;
    }
    .provider-card {
        flex-direction: column;
        text-align: center;
    }
    .provider-logo-circle {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Imágenes */
    img, .product-image-wrapper img {
        max-width: 100%;
        height: auto;
    }
    
    /* Evitar desbordes generales */
    html, body {
        overflow-x: hidden;
    }
    
    .section-padding {
        padding: 30px 15px !important;
    }
}
