/* ==========================================================================
   OLIOS STYLESHEET - V3.1 (Header Fix + Dark Mode Fintech)
   ========================================================================== */

:root { 
    /* --- PALETA OLIOS --- */
    --olios-midnight: #0A1931;  /* Fondo Principal Oscuro */
    --olios-deep: #150d24;      /* Fondo Secundario */
    
    /* Textos */
    --olios-snow: #FFFFFF;      /* Blanco Puro (Títulos, Logo) */
    --olios-opal: #B0BEC5;      /* Gris Azulado Claro (Texto Secundario) */
    
    /* Colores de Acento */
    --olios-mint: #64FFDA;      /* Verde Neón (Principal) */
    --olios-blue: #4CC9F0;      /* Azul Cian */
    --olios-purple: #B388EB;    /* Púrpura Claro */
    
    /* Componentes */
    --olios-card-bg: rgba(16, 33, 56, 0.8); /* Fondo tarjeta más sólido */
    --olios-border: rgba(100, 255, 218, 0.2); /* Borde sutil menta */
    
    --header-height: 80px; /* Un poco más alto */
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* === FONDO === */
body { 
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--olios-midnight) 0%, #0d1117 100%);
    background-attachment: fixed; 
    min-height: 100vh;
    color: var(--olios-snow);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
}

main { flex-grow: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
a { text-decoration: none; transition: color 0.3s ease; }

/* --- 2. HEADER ARREGLADO (V3.1) --- */
.main-header {
    /* Fondo mucho más oscuro y sólido para contraste */
    background-color: rgba(5, 10, 20, 0.95); 
    
    /* Efecto de desenfoque (Glassmorphism) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Borde inferior brillante */
    border-bottom: 1px solid rgba(100, 255, 218, 0.15);
    
    /* Sombra para separar */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    
    padding: 0 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: var(--header-height); 
}

.logo-text { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--olios-snow); 
    letter-spacing: 2px;
    text-transform: uppercase;
}
.logo-text span { color: var(--olios-mint); }

.main-nav { display: flex; align-items: center; gap: 2.5rem; }

/* Enlaces del menú - Más brillantes */
.main-nav a { 
    color: rgba(255, 255, 255, 0.8); /* Blanco casi puro */
    font-size: 0.95em; 
    font-weight: 500; 
    position: relative;
}

/* Efecto Hover en enlaces */
.main-nav a:not(.btn-nav):hover { 
    color: var(--olios-mint); 
}
.main-nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--olios-mint);
    transition: width 0.3s;
}
.main-nav a:not(.btn-nav):hover::after {
    width: 100%;
}


/* Botón del Nav (Estilo Tech) */
.btn-nav { 
    border: 1px solid var(--olios-mint); 
    color: var(--olios-mint) !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}
.btn-nav:hover { 
    background: rgba(100,255,218,0.1); 
    box-shadow: 0 0 20px rgba(100,255,218,0.2);
    text-shadow: none;
}

/* --- 3. MENÚ MÓVIL --- */
.mobile-nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
}
.mobile-nav-toggle span { width: 25px; height: 2px; background: var(--olios-mint); transition: 0.3s; }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centrado */
    background-color: #050a14; /* Fondo sólido oscuro */
    border: 1px solid var(--olios-border);
    border-radius: 4px;
    min-width: 220px;
    z-index: 1001;
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    margin-top: 10px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { 
    display: block; 
    padding: 1rem 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    color: var(--olios-opal);
}
.dropdown-menu a:hover { 
    background: rgba(100, 255, 218, 0.05); 
    color: var(--olios-mint); 
}
.dropdown-menu a::after { display: none; } /* Sin subrayado en dropdown */

/* Media Query Móvil */
@media (max-width: 768px) {
    .main-nav { 
        position: fixed; top: var(--header-height); left: 0; width: 100%; 
        background: rgba(5, 10, 20, 0.98); /* Casi negro sólido */
        flex-direction: column; padding: 2rem; 
        display: none; /* Oculto por defecto */
        border-bottom: 1px solid var(--olios-mint); 
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    }
    .main-nav.active { display: flex; max-height: 100vh; } 
    .mobile-nav-toggle { display: flex; }
    
    .dropdown { width: 100%; text-align: center; }
    .dropdown-menu { position: static; border: none; background: transparent; display: none; padding-left: 0; transform: none; margin-top: 0; }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown-toggle::after { content: ' ▾'; }
}

/* --- 4. HERO SECTION --- */
.hero-section {
    padding: 10rem 1.5rem 8rem; /* Más padding arriba */
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Efecto de luz de fondo */
.hero-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 60%);
    z-index: -1;
}
.hero-section h1 { 
    font-size: 4rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
    color: var(--olios-snow);
    letter-spacing: -1px;
}
.hero-section h2 { 
    font-size: 1.4rem; 
    font-weight: 300; 
    color: var(--olios-opal); 
    margin-bottom: 3rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}
.highlight { color: var(--olios-mint); text-shadow: 0 0 20px rgba(100,255,218,0.4); }

/* --- 5. TARJETAS (PILLAR CARDS) --- */
.pillar-section { padding: 5rem 0; }

.pillars-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.pillar-card {
    background: var(--olios-card-bg);
    border: 1px solid var(--olios-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Línea superior base */
    border-top: 4px solid rgba(255,255,255,0.1); 
}

/* Títulos Blancos por Defecto */
.pillar-card h3 { 
    color: var(--olios-snow); 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-weight: 600;
    transition: color 0.3s ease; 
}

.pillar-card p { 
    color: var(--olios-opal); 
    font-size: 1rem; 
    flex-grow: 1; 
    line-height: 1.6; 
}

.pillar-card i { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    display: block; 
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.3); /* Iconos apagados por defecto */
}

/* --- HOVER EFFECTS (La Magia) --- */
.pillar-card:hover {
    transform: translateY(-10px); 
    background: rgba(16, 33, 56, 0.95); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.pillar-card:hover i { transform: scale(1.1); opacity: 1; }

/* === VARIANTES DE COLOR === */
/* MENTA */
.card-mint { border-top-color: var(--olios-mint); }
.card-mint:hover { border-color: var(--olios-mint); box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1); }
.card-mint:hover h3, .card-mint:hover i { color: var(--olios-mint); }

/* AZUL */
.card-blue { border-top-color: var(--olios-blue); }
.card-blue:hover { border-color: var(--olios-blue); box-shadow: 0 10px 30px rgba(76, 201, 240, 0.1); }
.card-blue:hover h3, .card-blue:hover i { color: var(--olios-blue); }

/* PÚRPURA */
.card-purple { border-top-color: var(--olios-purple); }
.card-purple:hover { border-color: var(--olios-purple); box-shadow: 0 10px 30px rgba(179, 136, 235, 0.1); }
.card-purple:hover h3, .card-purple:hover i { color: var(--olios-purple); }


/* --- 6. BOTONES --- */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem 2.5rem; 
    border-radius: 4px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    cursor: pointer;
}
.btn-primary { 
    background: transparent; 
    color: var(--olios-mint); 
    border: 1px solid var(--olios-mint);
}
.btn-primary:hover { 
    background: rgba(100, 255, 218, 0.1); 
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3); 
    transform: translateY(-2px);
}
.btn-secondary { 
    border: 1px solid var(--olios-opal); 
    color: var(--olios-opal); 
}
.btn-secondary:hover { 
    border-color: var(--olios-snow); 
    color: var(--olios-snow); 
    background: rgba(255,255,255,0.05);
}

/* --- 7. FOOTER --- */
.main-footer { 
    background: #020408; 
    padding: 4rem 0 2rem 0; 
    margin-top: 6rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    text-align: center; 
    color: var(--olios-opal); 
    font-size: 0.85rem; 
}

/* --- 8. UTILIDADES --- */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   ARREGLOS VISUALES: COMPARATIVA & HOVER EXPANDIBLE
   ========================================================================== */

/* 1. Efecto de Revelación de Texto (Acordeón) */
.reveal-card {
    /* Altura mínima inicial */
    min-height: 200px; 
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Animación suave */
}

.reveal-card p, 
.reveal-card ul {
    max-height: 0;           /* Oculto por defecto */
    opacity: 0;              /* Invisible por defecto */
    overflow: hidden;        /* Para que no se salga el texto */
    transition: all 0.4s ease-in-out;
    margin: 0;               /* Sin margen cuando está cerrado */
}

/* AL HACER HOVER */
.reveal-card:hover {
    transform: translateY(-10px) scale(1.02); /* Se eleva un poco más */
    background: rgba(13, 27, 46, 0.95);
}

.reveal-card:hover p, 
.reveal-card:hover ul {
    max-height: 300px;       /* Se abre espacio para el texto */
    opacity: 1;              /* Se hace visible */
    margin-top: 1.5rem;      /* Añade espacio arriba */
}

/* 2. Estilo Específico: Banca Fiat (Gris Claro) */
.card-fiat {
    border-top-color: #CFD8DC; /* Gris Claro */
}
.card-fiat i {
    color: #CFD8DC;
    font-size: 4rem; /* Icono grande */
}
.card-fiat h3 {
    color: #CFD8DC;
    font-size: 1.8rem;
}
.card-fiat:hover {
    box-shadow: 0 10px 30px rgba(207, 216, 220, 0.15);
    border-color: #CFD8DC;
}

/* 3. Estilo Específico: OLID (Menta Vibrante) */
.card-olid-compare {
    border-top-color: var(--olios-mint);
}
.card-olid-compare i {
    color: var(--olios-mint);
    font-size: 4rem; /* Icono grande */
}
.card-olid-compare h3 {
    color: var(--olios-mint);
    font-size: 1.8rem;
}
.card-olid-compare:hover {
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.25);
    border-color: var(--olios-mint);
}

/* --- AJUSTE PARA LA TARJETA DE OLID --- */

/* Contenedor de lo que se va a ocultar/mostrar */
.reveal-card .reveal-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Al hacer Hover en la tarjeta, mostramos el contenido */
.reveal-card:hover .reveal-content {
    max-height: 500px; /* Suficiente espacio para texto y botón */
    opacity: 1;
    margin-top: 1.5rem;
}

/* ==========================================================================
   LISTA INTERACTIVA $OLID (REVELACIÓN)
   ========================================================================== */

.reveal-list-item {
    margin-bottom: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Al pasar el mouse, iluminamos un poco el fondo */
.reveal-list-item:hover {
    background-color: rgba(100, 255, 218, 0.05); /* Un toque de menta muy sutil */
}

/* La cabecera (Icono + Título) siempre visible */
.reveal-list-item .item-header {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* El contenido oculto */
.reveal-list-item .item-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-left: 28px; /* Indentado para alinearse con el texto de arriba */
    color: var(--olios-opal);
    font-size: 0.95rem;
}

/* ¡ACCIÓN! Al hacer hover, mostramos el contenido */
.reveal-list-item:hover .item-content {
    max-height: 100px; /* Espacio suficiente para el texto */
    opacity: 1;
    margin-top: 0.5rem;
}

/* ==========================================================================
   ESTILOS DEL WHITEPAPER
   ========================================================================== */

.whitepaper-container {
    max-width: 900px; /* Más estrecho para lectura cómoda */
    margin: 0 auto;
    background: rgba(13, 27, 46, 0.6);
    border: 1px solid var(--olios-border);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.whitepaper-content h3 {
    color: var(--olios-mint);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 10px;
}

.whitepaper-content h4 {
    color: var(--olios-snow);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.whitepaper-content p {
    color: var(--olios-opal);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.whitepaper-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--olios-opal);
}

.whitepaper-content li {
    margin-bottom: 0.8rem;
    list-style-type: disc;
}

.whitepaper-content strong {
    color: var(--olios-snow);
}

@media (max-width: 768px) {
    .whitepaper-container { padding: 2rem; }
}
/* --- BOTÓN SÓLIDO MENTA (High Contrast) --- */
.btn-solid {
    background-color: var(--olios-mint);
    color: var(--olios-midnight); /* Texto oscuro para contraste */
    border: 1px solid var(--olios-mint);
    font-weight: 700; /* Letra más gruesa */
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3); /* Glow inicial */
}

.btn-solid:hover {
    background-color: transparent; /* Se vuelve transparente al hover */
    color: var(--olios-mint); /* Texto se vuelve menta */
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.6); /* Glow intenso */
    transform: translateY(-3px);
}