/* =======================================================
   1. CONFIGURACIÓN GENERAL
   ======================================================= */
:root {
    --primary: #252850;       
    --primary-light: #3a3e6b;
    --bg-light: #f8f9fc;      
    --bg-catalog: #edf2f7;    
    --text-dark: #1a1b25;     
    --text-gray: #666;
    --white: #ffffff;
    --radius: 12px;
    --radius-btn: 50px;
    --shadow-soft: 0 30px 60px rgba(37, 40, 80, 0.15);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
body.catalog-page { background-color: var(--bg-catalog); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.text-center { text-align: center; }

/* =======================================================
   2. HEADER & NAVEGACIÓN
   ======================================================= */
.header-index { padding: 10px 0; display: flex; justify-content: space-between; align-items: center; min-height: 140px; position: relative; }
.index-logo-img { height: 160px; width: auto; display: block; transition: transform 0.3s; }
.index-logo-img:hover { transform: scale(1.05); }

.menu-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-left: 40px; }
nav.desktop-nav ul { display: flex; gap: 30px; }
nav.desktop-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-gray); transition: color 0.3s; }
nav.desktop-nav a:hover { color: var(--primary); }
.auth-buttons { display: flex; gap: 15px; align-items: center; }

.hamburger-btn { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger-btn span { width: 100%; height: 3px; background-color: var(--primary); border-radius: 3px; transition: all 0.3s ease; }

/* =======================================================
   3. SECCIÓN HERO (INDEX)
   ======================================================= */
.hero { padding: 60px 0 100px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-text { flex: 1; max-width: 550px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; color: var(--text-dark); margin-bottom: 20px; font-weight: 800; }
.hero-subtext { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; max-width: 450px; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; min-width: 320px; }
.hero-product-img { width: 100%; height: auto; object-fit: contain; border-radius: 15px; margin-bottom: 20px; display: block; background-color: #ffffff; }

.product-card-ui { background: var(--white); width: 340px; padding: 20px; border-radius: 20px; box-shadow: var(--shadow-soft); position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.ui-image-placeholder { background-color: #f0f2f5; height: 250px; border-radius: 15px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.ui-details h3 { font-size: 1.2rem; margin-bottom: 5px; text-align: center;}
.ui-details p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 15px; text-align: center;}
.ui-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.floating-tag { position: absolute; top: 50px; right: -20px; background: var(--white); padding: 15px; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); z-index: 3; display: flex; align-items: center; gap: 10px; animation: float 6s ease-in-out infinite reverse; }
.tag-icon { width: 40px; height: 40px; background: #eefbf0; color: #2e7d32; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* =======================================================
   4. OTRAS SECCIONES
   ======================================================= */
.features { padding: 80px 0; background-color: transparent; }
.features-header { margin-bottom: 60px; }
.tagline { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.section-title { font-size: 2.5rem; color: var(--text-dark); max-width: 600px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background-color: #ffffff; padding: 40px 30px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(37, 40, 80, 0.15); }
.feature-card h3 { margin: 20px 0 10px; font-size: 1.3rem; font-weight: 700; }
.feature-card p { color: var(--text-gray); font-size: 0.95rem; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background-color: #f0f2f5; border-radius: 50%; margin-bottom: 20px; color: var(--primary); transition: all 0.3s ease; }
.feature-card:hover .feature-icon { background-color: var(--primary); color: var(--white); }
.feature-icon svg { width: 28px; height: 28px; }

.stats-section { padding: 80px 0; text-align: center; background-color: var(--bg-light); }
.section-heading-lg { font-size: 2rem; margin-top: 10px; }
.stats-grid { display: flex; justify-content: center; gap: 80px; margin-top: 40px; flex-wrap: wrap; }
.stat-item h2 { font-size: 3rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { color: var(--text-gray); font-weight: 500; }

/* ESTILOS BASE DE LA SECCIÓN OSCURA (Para Desktop) */
.dark-section { background-color: var(--primary); color: var(--white); padding: 100px 0; border-radius: 40px; margin: 40px 20px; box-shadow: 0 20px 40px rgba(37, 40, 80, 0.2); }
.tagline-light { color: rgba(255,255,255,0.7); }
.dark-content h2 { font-size: 2.5rem; margin-bottom: 60px; max-width: 600px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.step-card { background: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s; position: relative; overflow: hidden; }
.step-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.step-number { font-size: 3rem; font-weight: 800; opacity: 0.3; margin-bottom: 10px; display: block; }
.step-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; display: block; position: relative; z-index: 2; }
.step-desc { opacity: 0.7; font-size: 0.9rem; position: relative; z-index: 2; }

.collections { padding: 100px 0; background: var(--white); }
.primary-heading { font-size: 2.5rem; color: var(--primary); }
.collection-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 50px; }
.collection-card { height: 350px; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s; position: relative; overflow: hidden; }
.collection-card:hover { transform: translateY(-5px); }
.c-light { background-color: #edf2f7; color: var(--primary); }
.c-dark { background: linear-gradient(135deg, var(--primary) 0%, #3a3e6b 100%); color: var(--white); }
.collection-card h3 { font-size: 2rem; position: relative; z-index: 2; }
.card-desc { margin-top: 10px; opacity: 0.8; position: relative; z-index: 2; }
.abstract-shape { position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.c-light .abstract-shape { background: rgba(37, 40, 80, 0.05); }

/* =======================================================
   5. TARJETA NEGRA "LISTO PARA MEJORAR..."
   ======================================================= */
.pre-footer-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1b25 100%);
    border-radius: 40px;
    padding: 60px 40px;
    margin: 40px 0 60px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 50px rgba(37, 40, 80, 0.25);
    position: relative;
    overflow: hidden;
}
.pre-footer-cta h2 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; }
.pre-footer-cta p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; }
.cta-watermark { position: absolute; right: -50px; bottom: -50px; width: 300px; height: auto; filter: brightness(0) invert(1); opacity: 0.05; transform: rotate(-15deg); pointer-events: none; }

/* =======================================================
   6. FOOTER Y REDES SOCIALES
   ======================================================= */
.site-footer {
    padding: 20px 0 100px;
    background: transparent;
    text-align: center;
}
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 25px; }

.social-links { display: flex; gap: 20px; justify-content: center; }
.social-icon { width: 50px; height: 50px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; color: var(--primary); }
.social-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 25px rgba(0,0,0,0.1); color: #25d366; }

.legal-links { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; opacity: 0.7; font-size: 0.85rem; }
.legal-links a { color: var(--text-dark); font-weight: 500; }
.legal-links a:hover { color: var(--primary); text-decoration: underline; }
.copyright { opacity: 0.5; font-size: 0.8rem; margin-top: 10px; }

/* Botones */
.collection-link-styled { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding: 12px 30px; background-color: transparent; border: 2px solid var(--primary); border-radius: 50px; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; transition: all 0.3s ease; width: 100%; max-width: 320px; }
.collection-link-styled:hover { background-color: var(--primary); color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 40, 80, 0.15); }
.collection-link-styled svg { transition: transform 0.3s ease; }
.collection-link-styled:hover svg { transform: translateX(5px); }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 100; transition: all 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.btn { padding: 10px 24px; border-radius: var(--radius-btn); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; border: none; text-decoration: none; display: inline-block; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(37, 40, 80, 0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 40, 80, 0.3); }
.btn-white { background: var(--white); color: var(--primary); }

/* --- BOTÓN VERDE WHATSAPP --- */
.btn-buy-wa {
    background-color: #25d366; /* Verde WhatsApp */
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-buy-wa:hover { background-color: #1da851; transform: translateY(-2px); }


/* =======================================================
   7. ESTILOS DEL CATÁLOGO
   ======================================================= */
.promo-banner { background-color: var(--primary); color: #ffffff; text-align: center; padding: 12px 20px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; position: relative; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; gap: 8px; }
.promo-highlight { color: #ffd700; font-weight: 800; text-transform: uppercase; margin: 0 5px; }

.catalog-hero-card { background-color: var(--primary); border-radius: 25px; padding: 60px 50px; margin-top: 30px; margin-bottom: 50px; position: relative; overflow: hidden; color: var(--white); box-shadow: 0 20px 40px rgba(37, 40, 80, 0.2); display: flex; align-items: center; justify-content: space-between; }
.back-link { position: absolute; top: 30px; left: 40px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 600; transition: 0.3s; z-index: 10; font-size: 0.9rem; }
.back-link:hover { color: var(--white); transform: translateX(-5px); }
.hero-card-content { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.text-content { position: relative; z-index: 5; max-width: 60%; } 
.collection-tag { display: inline-block; background: rgba(255,255,255,0.15); color: #ffd700; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 15px; }
.catalog-hero-card h1 { font-size: 4rem; line-height: 1; margin-bottom: 15px; color: var(--white); text-transform: uppercase; font-weight: 900; }
.text-content p { font-size: 1.2rem; opacity: 0.8; font-weight: 400; }
.visual-content { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); z-index: 1; opacity: 0.15; pointer-events: none; }
.giant-watermark { height: 400px; width: auto; filter: brightness(0) invert(1); transform: rotate(-15deg); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding-bottom: 80px; }
.product-item { background: var(--white); border-radius: 20px; padding: 25px; box-shadow: var(--shadow-card); transition: all 0.3s ease; display: flex; flex-direction: column; text-align: left; }
.product-item:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(37, 40, 80, 0.1); }

.product-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-radius: 15px; scrollbar-width: none; }
.product-gallery::-webkit-scrollbar { display: none; }

/* --- CORRECCIÓN: FONDO BLANCO PARA LAS FOTOS --- */
.slide-img { 
    flex: 0 0 100%; 
    scroll-snap-align: center; 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 15px; 
    background-color: #ffffff; /* BLANCO */ 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
}
.slide-img img { width: 100%; height: 100%; object-fit: contain; }
.slide-hint { font-size: 0.7rem; color: #999; text-align: center; margin-top: 0px; margin-bottom: 15px; font-style: italic; }

.product-item h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary); font-weight: 700; }
.product-item p { color: var(--text-gray); font-size: 0.9rem; flex-grow: 1; margin-bottom: 20px;}
.product-item > div:last-child { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price-tag { font-weight: 800; color: var(--primary); font-size: 1.2rem; }

/* =======================================================
   8. ESTILOS PÁGINAS LEGALES
   ======================================================= */
.header-legal { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; margin-bottom: 40px; }
.btn-volver-creativo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; padding: 10px 18px; border: 2px solid rgba(37, 40, 80, 0.1); border-radius: 30px; background-color: transparent; transition: all 0.3s ease; text-decoration: none; }
.btn-volver-creativo svg { width: 20px; height: 20px; stroke-width: 2.5; display: block; transition: transform 0.3s ease; }
.btn-volver-creativo:hover { background-color: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-volver-creativo:hover svg { stroke: white; transform: translateX(-3px); }
.legal-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }

/* =======================================================
   9. RESPONSIVE ESTÁNDAR
   ======================================================= */
.mobile-text { display: none; } .desktop-text { display: block; } .cta-hero-mobile { display: none; }

@media (max-width: 768px) {
    .promo-banner { font-size: 0.8rem; padding: 8px 10px; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 20px; }
    .hero h1 { font-size: 2.2rem; } 
    .hero-text { margin-bottom: 30px; max-width: 100%; }
    .desktop-text { display: none; } .mobile-text { display: block; font-size: 1rem; margin-bottom: 20px; }
    .cta-hero-mobile { display: inline-block; margin-bottom: 30px; width: 100%; text-align: center; padding: 12px 0; }
    .header-index { height: auto; padding: 10px 15px; flex-wrap: wrap; position: relative; }
    .index-logo-img { height: 130px; } 
    .hamburger-btn { display: flex; }
    .menu-wrapper { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); padding: 30px 0; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.1); align-items: center; margin-left: 0; gap: 25px; }
    .menu-wrapper.active { display: flex !important; animation: slideDown 0.3s ease forwards; }
    nav.desktop-nav ul { flex-direction: column; align-items: center; gap: 20px; }
    nav.desktop-nav a { font-size: 1.2rem; }
    .auth-buttons { flex-direction: column; gap: 15px; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    /* Mantiene tarjeta azul horizontal pero adaptada */
    .catalog-hero-card { 
        padding: 55px 20px 30px 20px; 
        margin-top: 10px; 
        flex-direction: row; 
        text-align: left;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
    }
    .catalog-hero-card h1 { font-size: 1.8rem; margin-bottom: 10px; } 
    .text-content p { font-size: 0.85rem; } 
    .collection-tag { font-size: 0.65rem; padding: 4px 10px; margin-bottom: 10px;}
    .back-link { top: 15px; left: 20px; font-size: 0.8rem; }
    .visual-content { right: -20px; top: 50%; transform: translateY(-50%); opacity: 0.2; bottom: auto; }
    .giant-watermark { height: 180px; }

    .products-grid { grid-template-columns: 1fr; }
    .collection-cards { grid-template-columns: 1fr; }
    .stats-grid { gap: 40px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    
    /* --- AQUÍ ESTÁ EL CAMBIO: FONDO AZUL + DISEÑO DE TARJETAS --- */
    .dark-section { 
        margin: 40px 0; 
        padding: 40px 20px; 
        /* Volvemos al color azul original */
        background-color: var(--primary);
        color: var(--white);
        border-radius: 30px;
    }
    .dark-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        color: var(--white); /* Título blanco */
        padding: 0 10px;
    }
    .dark-content .tagline-light {
        color: rgba(255,255,255,0.7); /* Tagline blanco translúcido */
        padding: 0 10px;
        opacity: 1;
    }

    .steps-grid { gap: 20px; padding: 0 10px; }

    /* Tarjetas flotantes con fondo semitransparente sobre el azul */
    .step-card {
        background: rgba(255, 255, 255, 0.1); /* Fondo blanco semitransparente */
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding: 30px 25px;
        text-align: center;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }
    
    .step-number {
        color: rgba(255, 255, 255, 0.15); /* Número gigante blanco sutil */
        opacity: 1;
        font-size: 5rem;
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
        margin-bottom: 0;
    }
    .step-title {
        color: var(--white); /* Título blanco */
        font-size: 1.3rem;
        margin-top: 40px;
        position: relative;
        z-index: 2;
    }
    .step-desc {
        color: rgba(255, 255, 255, 0.8); /* Descripción blanca translúcida */
        opacity: 1;
        position: relative;
        z-index: 2;
    }
    /* --------------------------------------------------------- */
    
    .pre-footer-cta { padding: 40px 20px; margin: 20px 0 40px; }
    .pre-footer-cta h2 { font-size: 1.8rem; }
    .site-footer { padding-bottom: 90px; }
    
    /* --- FOOTER VERTICAL Y LIMPIO EN CELULAR --- */
    .legal-links { flex-direction: column; gap: 10px; }
    .legal-links span { display: none; }
}

/* =======================================================
   10. ESTILOS LIBRO DE RECLAMACIONES
   ======================================================= */
.reclamaciones-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.libro-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.libro-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    background-color: #fcfcfc;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 40, 80, 0.15);
}

@media (max-width: 768px) {
    .reclamaciones-container {
        padding: 25px 20px;
        margin: 20px auto;
        width: 100%;
    }
}