/* --- Variables: PALETA DORADA PREMIUM --- */
:root {
    --bg-color: #FFFFFF;
    
    /* Nuevos Colores extraídos del Logo */
    --brand-light: #F9F1D0;   /* Champagne muy claro */
    --brand-gold-pop: #FAD961; /* Dorado brillante (iluminación) */
    --brand-main: #C69C3A;    /* Dorado medio (cuerpo) */
    --brand-dark-gold: #8B6B20; /* Bronce oscuro (sombras) */
    --brand-text: #5C4B25;    /* Marrón oscuro para texto (sustituye al Teal) */
    --brand-black: #0F0C05;   /* Negro casi puro con tinte dorado muy leve */
    
    /* Degradado Principal */
    --brand-gradient: linear-gradient(135deg, var(--brand-gold-pop) 0%, var(--brand-main) 50%, var(--brand-dark-gold) 100%);
    
    --text-body: #64748B;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-body);
    overflow-x: hidden;
}

/* --- SPLIT HERO --- */
.split-hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-left {
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 12%; padding-right: 5%; background: #fff;
}
.brand-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.hero-logo-img { height: 90px; width: auto; display: block; }

/* Título Metálico Dorado */
.metallic-title {
    font-family: var(--font-display); font-weight: 200; font-size: 5.5rem;
    line-height: 1; letter-spacing: 0.15em; text-transform: uppercase; margin: 0;
    /* Degradado dorado complejo para efecto metálico */
    background: linear-gradient(110deg, var(--brand-text) 10%, var(--brand-main) 35%, #FFF 50%, var(--brand-main) 65%, var(--brand-text) 90%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0px 2px 0px rgba(0,0,0,0.05)); animation: shine 6s linear infinite;
}
.hero-slogan { font-family: var(--font-body); font-size: 1.2rem; font-weight: 300; color: #94A3B8; letter-spacing: 0.05em; font-style: italic; }

/* Botón Explorar (Estilo Dorado) */
.btn-explore {
    margin-top: 30px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 30px;
    border: 1px solid var(--brand-text);
    border-radius: 100px;
    color: var(--brand-text);
    font-family: var(--font-display); font-size: 0.9rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease; text-decoration: none;
}
.btn-explore:hover { 
    background-color: var(--brand-text); 
    color: #F7E7CE; /* Texto claro al hover */
    transform: translateY(2px); 
}
.btn-explore:hover i { transform: translateY(3px); }

/* --- DERECHA INTERACTIVA (MONEDA + TRANSICIÓN PERFECTA) --- */
.hero-right {
    /* Fondo por defecto (Más oscuro/Bronce para contraste inicial) */
    background: var(--brand-gradient); 
    background-size: 200% 200%;
    display: flex; align-items: center; justify-content: center; 
    position: relative;
    cursor: pointer; 
    overflow: hidden;
    z-index: 1; /* Necesario para que el pseudo-elemento ::before funcione bien */
}

/* AQUÍ ESTÁ EL TRUCO: Creamos una capa con el degradado EXACTO del Splash */
.hero-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Degradado Champagne idéntico al de splash.html */
    background: linear-gradient(135deg, #F9F1D0 0%, #E6C874 50%, #F9F1D0 100%);
    
    opacity: 0; /* Empieza invisible */
    z-index: -1; /* Se coloca detrás del texto y la moneda */
    transition: opacity 0.6s ease-in-out; /* Transición muy suave */
}

/* AL HACER HOVER: Aparece el fondo claro del Splash */
.hero-right:not(.active):hover::before {
    opacity: 1;
}

/* --- ELEMENTOS INTERNOS (Texto e Iconos) --- */

.login-trigger { 
    text-align: center; 
    color: var(--brand-text); /* Color inicial */
    transition: all 0.5s ease; 
    pointer-events: none; 
    z-index: 2;
}

.trigger-text { 
    font-family: var(--font-display); font-size: 2rem; font-weight: 200; letter-spacing: 2px; 
    display: block; margin-bottom: 20px; 
    color: #3e2b08; /* Texto oscuro inicial */
    transition: color 0.5s ease;
}

.trigger-icon { 
    font-size: 3rem; width: 80px; height: 80px; 
    border: 1px solid rgba(62, 43, 8, 0.3); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto; transition: all 0.4s ease;
    color: #3e2b08;
}

/* --- CAMBIO DE COLORES AL HOVER (Para contraste con fondo claro) --- */

/* Texto: Se vuelve Marrón Elegante (Mismo que título Splash) */
.hero-right:not(.active):hover .trigger-text {
    color: #5C4B25; 
    text-shadow: none;
}

/* Icono: Se vuelve Marrón Elegante */
.hero-right:not(.active):hover .trigger-icon {
    border-color: #5C4B25;
    color: #5C4B25;
    background: rgba(92, 75, 37, 0.05);
    transform: scale(1.1);
}

/* Flecha de la moneda (Cara Frontal): Se vuelve oscura */
.hero-right:not(.active):hover .coin-face.front i {
    color: #5C4B25 !important;
}


/* --- PANEL DE ACCESO Y ACTIVACIÓN --- */
.access-panel { width: 100%; max-width: 380px; padding: 40px; position: absolute; opacity: 0; transform: translateY(40px) scale(0.95); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; z-index: 5;}

.hero-right.active { cursor: default; }
/* Si el panel está activo, mantenemos el fondo claro visible */
.hero-right.active::before { opacity: 1; } 

.hero-right.active .login-trigger { opacity: 0; transform: translateY(-40px) scale(0.9); }
.hero-right.active .access-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.access-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; margin-bottom: 40px; color: #5C4B25; }
.minimal-form { display: flex; flex-direction: column; gap: 25px; }
.input-group input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(92, 75, 37, 0.3); padding: 12px 0; color: #5C4B25; font-family: var(--font-body); font-size: 1rem; outline: none; transition: 0.3s; }
.input-group input::placeholder { color: rgba(92, 75, 37, 0.5); font-weight: 300; }
.input-group input:focus { border-bottom-color: #5C4B25; }
.btn-access { background: #5C4B25; color: #F9F1D0; border: none; padding: 14px 0; border-radius: 4px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; cursor: pointer; margin-top: 20px; transition: all 0.3s ease; }
.btn-access:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); background: #3e2b08; }
.close-login { position: absolute; top: 0; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: rgba(92, 75, 37, 0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; margin-top: -60px; }
.close-login:hover { color: #5C4B25; transform: rotate(90deg); }

/* --- SECCIÓN DE ALTO IMPACTO (NUEVO DISEÑO LIGERO Y ELEGANTE) --- */
.impact-section {
    background-color: #FFFCF2; /* Crema muy suave, casi blanco */
    color: var(--brand-text);
    padding: 140px 0;
    position: relative;
    /* Sin patrones de rejilla ni fondos oscuros */
}

.relative-z { position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cabecera */
.impact-header { text-align: center; max-width: 800px; margin: 0 auto 80px; }

.alert-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #FFF; 
    color: var(--brand-dark-gold);
    border: 1px solid var(--brand-main);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(198, 156, 58, 0.1);
}

.impact-title {
    font-family: var(--font-display); 
    font-size: 4rem; 
    font-weight: 700; 
    line-height: 1.1;
    margin-bottom: 25px; 
    color: var(--brand-text); /* Marrón oscuro */
}

.glow-text {
    color: var(--brand-main); /* Dorado elegante */
    text-shadow: none; /* Quitamos el brillo neón */
    font-style: italic;
}

.impact-subtitle {
    font-size: 1.3rem; 
    font-weight: 400; 
    color: #6B5D41; /* Marrón grisáceo suave para lectura fácil */
    line-height: 1.7;
}
.impact-subtitle strong { color: var(--brand-dark-gold); font-weight: 600; }


/* BENTO GRID (Estilo Tarjeta Blanca Limpia) */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 100px;
}

.bento-card {
    background: #FFFFFF;
    border: 1px solid rgba(198, 156, 58, 0.15); /* Borde dorado muy sutil */
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    /* Sombra suave y elegante en lugar de neón */
    box-shadow: 0 10px 40px rgba(92, 75, 37, 0.05);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-main);
    box-shadow: 0 20px 50px rgba(92, 75, 37, 0.12);
}

/* Tipografía dentro de las tarjetas */
.main-stat h3, .bento-card p { color: #6B5D41; }
.main-stat h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px;}

.stat-number {
    font-family: var(--font-display); 
    font-size: 7rem; 
    font-weight: 800; 
    line-height: 1;
    margin: 10px 0 20px;
    color: var(--brand-main); /* Número dorado sólido */
}
/* Quitamos el degradado de texto complejo para mejor lectura */
.text-gradient { background: none; -webkit-background-clip: unset; color: var(--brand-main); }

.stat-number.small { font-size: 3.5rem; color: var(--brand-text); margin-bottom: 10px; }

.sub-stat-1, .sub-stat-2 { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; 
}
.icon-float { font-size: 2.5rem; color: var(--brand-gold-pop); margin-bottom: 15px; }


/* SOLUCIONES (Tarjetas Blancas también) */
.solutions-wrapper { text-align: center; }
.solutions-title { 
    font-family: var(--font-display); font-size: 1.1rem; 
    color: var(--brand-dark-gold); 
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    margin-bottom: 40px; 
}

.cards-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.solution-card {
    background: #FFFFFF;
    border: 1px solid rgba(198, 156, 58, 0.15);
    border-radius: 24px;
    padding: 10px; /* Padding pequeño para crear efecto marco */
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(92, 75, 37, 0.05);
}

.solution-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(92, 75, 37, 0.1); }

.card-content {
    background: #FFFCF2; /* Fondo interior crema muy suave */
    border-radius: 18px;
    padding: 40px;
    height: 100%;
    text-align: left;
}

.card-icon {
    width: 60px; height: 60px; 
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 25px;
}

/* Colores de Iconos más suaves */
.family .card-icon { background: #FEF9E1; color: var(--brand-main); }
.school .card-icon { background: #F0E6CA; color: var(--brand-text); }

.solution-card h4 { 
    font-family: var(--font-display); font-size: 1.8rem; 
    color: var(--brand-text); margin-bottom: 15px; font-weight: 600;
}
.solution-card p { color: #6B5D41; margin-bottom: 25px; line-height: 1.6; }

.micro-list { list-style: none; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; }
.micro-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--brand-text); font-weight: 500; }
.micro-list i { color: var(--brand-main); }

/* --- Features & Footer (Light Mode) --- */
.features-section { padding: 100px 0; background: #fff; }
.section-header-light { text-align: center; margin-bottom: 60px; }
.section-header-light h2 { font-family: var(--font-display); font-weight: 300; color: var(--brand-text); font-size: 2.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { padding: 40px; border-radius: 16px; border: 1px solid #E2E8F0; text-align: center; transition: 0.3s; background: #fff; }
.card:hover { border-color: var(--brand-main); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(198, 156, 58, 0.15); }
.icon-box { font-size: 2rem; color: var(--brand-main); margin-bottom: 20px; }
footer { padding: 40px 0; border-top: 1px solid #eee; text-align: center; color: #aaa; font-size: 0.9rem; }

/* Animaciones */
@keyframes shine { to { background-position: 200% center; } }
.fade-in { animation: fadeIn 1.2s ease-out forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }

@media (max-width: 900px) {
    .split-hero { grid-template-columns: 1fr; height: auto; }
    .hero-left { padding: 80px 24px; text-align: center; min-height: 60vh; }
    .hero-right { min-height: 50vh; padding: 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .cards-split { grid-template-columns: 1fr; }
    .impact-title { font-size: 3rem; }
    .metallic-title { font-size: 4rem; }
}


/* --- SECCIÓN INTERACTIVA DERECHA (MONEDA + TRANSICIÓN) --- */

/* 1. CONFIGURACIÓN DEL FONDO DORADO (Overlay) */
.hero-right {
    position: relative;
    z-index: 1; 
}

/* Capa superpuesta dorada (inicialmente invisible) */
.gold-overlay {
    /* No la usamos aquí, la crea el script para la transición, 
       pero si hubiera una decorativa, usaríamos estos colores: */
    display: none; 
}


/* 2. ESCENARIO 3D DE LA MONEDA */
.trigger-icon.scene {
    width: 80px; height: 80px;
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    display: flex; justify-content: center; align-items: center;
    position: relative;
}

.coin {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.coin-face {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    
    /* Cristal dorado */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(250, 217, 97, 0.4); /* Borde dorado brillante */
    box-shadow: 0 5px 15px rgba(62, 43, 8, 0.1);
}

.coin-face.front { transform: rotateY(0deg); z-index: 2; }
.coin-face.front i { font-size: 2.2rem; color: #3e2b08; transition: color 0.5s; }

.coin-face.back {
    transform: rotateY(180deg);
    background: transparent;
    border: 1px solid rgba(139, 107, 32, 0.5); /* Borde bronce */
}

.coin-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    display: block;
}

.shine {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 60%);
    opacity: 0.5;
    border-radius: 50%;
}

/* 3. ANIMACIONES (FLIP, SOMBRA, TEXTO) */
.hero-right:not(.active):hover .coin {
    animation: smoothFlip 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.coin-shadow {
    position: absolute; bottom: -25px;
    width: 40px; height: 10px;
    background: rgba(62, 43, 8, 0.3); /* Sombra oscura marrón */
    border-radius: 50%; filter: blur(8px);
    opacity: 0; z-index: -1; transform: scale(1);
    transition: opacity 0.3s;
}
.hero-right:not(.active):hover .coin-shadow {
    animation: shadowSmooth 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes smoothFlip {
    0% { transform: translateY(0) rotateY(0deg) scale(1); }
    40% { transform: translateY(-100px) rotateY(180deg) scale(1.3); animation-timing-function: ease-out; }
    50% { transform: translateY(-105px) rotateY(360deg) scale(1.5); animation-timing-function: ease-in-out; }
    60% { transform: translateY(-100px) rotateY(540deg) scale(1.3); animation-timing-function: ease-in; }
    100% { transform: translateY(0) rotateY(720deg) scale(1); }
}

@keyframes shadowSmooth {
    0% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.05; transform: scale(0.4); }
    100% { opacity: 0.2; transform: scale(1); }
}

/* Texto desaparecer/aparecer */
.hero-right:not(.active):hover .trigger-text {
    animation: textVanish 2.2s ease-in-out forwards;
}

@keyframes textVanish {
    0% { opacity: 1; transform: translateY(0); filter: blur(0px); }
    15% { opacity: 0; transform: translateY(-10px); filter: blur(5px); }
    85% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}


/* --- TRANSICIÓN FLUIDA (TELÓN DORADO) --- */

/* El telón que creamos con JS */
.transition-curtain {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 99999;
    
    /* Fondo idéntico al del Splash (Champagne suave) */
    background: linear-gradient(135deg, #F9F1D0 0%, #E6C874 50%, #F9F1D0 100%);
    
    animation: eatTheWorld 0.8s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes eatTheWorld {
    0% { width: 50vw; }
    100% { width: 100vw; }
}

/* Clase para desvanecer lo que hay debajo */
.split-hero.fade-out-content {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@media (max-width: 900px) {
    .transition-curtain {
        width: 100vw; top: auto; bottom: 0;
        animation: eatTheWorldMobile 0.8s cubic-bezier(0.85, 0, 0.15, 1) forwards;
    }
    @keyframes eatTheWorldMobile {
        0% { height: 50vh; }
        100% { height: 100vh; }
    }
}