/* ==========================================================================
   VEXIA STYLESHEET - V1.3 (¡Arreglo de Contraste y Colores!)
   ========================================================================== */

/* --- 1. Variables y Reset Básico (COLORES VEXIA) --- */
:root { 
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --background-color: #0c0a15; 
    --surface-color: #1a1825;   
    
    /* ¡COLORES VEXIA! */
    --vexia-green: #4CAF50;
    --vexia-blue-deep: #1A237E; /* ¡Solo para fondos y botones, NO para texto! */
    --vexia-blue-light: #64B5F6; /* ¡Color legible para texto! */
    --vexia-mint: #35a58b; /* Verde Menta (para BioVeriChain y Cripto) */

    --whatsapp-green: #25D366;
    --linkedin-blue: #0A66C2;
    --email-red: #D44638;
    --font-family: 'Poppins', sans-serif;
    --header-height: 60px; 
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* === FONDO DEGRADADO VERDE/AZUL === */
body { 
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--vexia-blue-deep), var(--vexia-green));
    min-height: 100vh;
    color: var(--primary-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    position: relative; 
    overflow-x: hidden; 
}
body.no-scroll { overflow: hidden !important; }

main { 
    flex-grow: 1;
    overflow-x: hidden; 
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* --- 2. Header y Navegación --- */
.main-header {
    background-color: rgba(12, 10, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.logo-text { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); text-decoration: none; }
.logo-text:hover { color: var(--vexia-green); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { color: var(--primary-color); text-decoration: none; font-size: 0.9em; font-weight: 500; padding: 1.5rem 0.5rem; transition: color 0.3s ease; }
.main-nav a:hover, .main-nav a:focus { color: var(--vexia-green); }

.btn-nav { background-color: var(--vexia-green); color: var(--primary-color) !important; border: 2px solid var(--vexia-green); border-radius: 50px; padding: 0.5rem 1.5rem !important; margin-left: 1rem; transition: all 0.3s ease; }
.btn-nav:hover { background-color: transparent; color: var(--vexia-green) !important; }

/* --- 3. Botón Hamburguesa (Móvil) --- */
.mobile-nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    padding: 0;
    z-index: 1001;
}
.mobile-nav-toggle span { display: block; width: 2rem; height: 3px; background: var(--primary-color); border-radius: 3px; transition: all 0.3s ease-in-out; position: relative; transform-origin: 1px; }

/* --- 4. Dropdown --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { cursor: default; padding: 1.5rem 1rem; color: var(--primary-color); text-decoration: none; font-size: 0.9em; font-weight: 500; }
.dropdown-toggle:hover { color: var(--vexia-green); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(30, 30, 45, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 280px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.75rem 1.5rem; color: var(--primary-color); text-decoration: none; transition: background-color 0.3s ease; }
.dropdown-menu a:hover { background-color: rgba(255, 255, 255, 0.1); }
.dropdown-menu a strong { display: block; font-size: 0.9em; font-weight: 700; }

/* ¡COLORES DE DROPDOWN CORREGIDOS! */
.dropdown-menu a:nth-child(1) strong { color: var(--vexia-green); } 
.dropdown-menu a:nth-child(2) strong { color: var(--vexia-blue-light); } /* ¡Azul brillante! */
.dropdown-menu a:nth-child(3) strong { color: var(--vexia-mint); } 
.dropdown-menu a:nth-child(4) strong { color: var(--vexia-mint); } /* ¡Menta para Cripto! */
.dropdown-menu a:nth-child(5) strong { color: var(--vexia-green); } /* Verde para Training */
.dropdown-menu a span { display: block; font-size: 0.8em; color: var(--secondary-color); }

/* --- 5. Media Query (Móvil) --- */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: var(--header-height); 
        left: 0;
        width: 100%;
        background-color: rgba(12, 10, 21, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0; 
        overflow: hidden; 
        max-height: 0;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out; 
        z-index: 999; 
    }
    
    .main-nav.active { 
        max-height: 100vh; 
        padding: 1.5rem 0; 
    }
    
    .main-nav a { padding: 0.5rem 1rem; }
    .btn-nav { margin-left: 0; margin-bottom: 1rem; }
    .mobile-nav-toggle { display: flex; }
    .logo-text { font-size: 1.25rem; }
    .dropdown { display: block; width: 100%; text-align: center; }
    
    .dropdown-toggle { 
        display: block; 
        padding: 0.5rem 1rem; 
        font-weight: 700; 
        color: var(--vexia-green); 
    }
    
    .dropdown-menu {
        display: block;
        position: static;
        background-color: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        min-width: 0;
        padding: 0;
        margin-top: -1rem;
    }
    .dropdown-menu a { padding: 0.5rem 1rem; }
    .dropdown-menu a strong { font-size: 1em; }
}

/* --- 6. Animación del "Tache" (X) --- */
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(2px, -1px); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(0px, 1px); }

/* --- 7. Estilos de Contenido (Headers de Página) --- */
.hero-section, .page-header-section {
    padding: 6rem 1.5rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; 
}
.hero-section::before, .page-header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(12, 10, 21, 0.7); 
    z-index: 1;
}
.hero-section .container, .page-header-section .container { position: relative; z-index: 2; }
.hero-section { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.hero-section h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-section h2 { font-size: 1.5rem; font-weight: 300; max-width: 700px; margin: 0 auto 1.5rem auto; }
.page-header-section { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-header-section h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.page-header-section p { font-size: 1.1rem; font-weight: 300; max-width: 600px; margin: 0 auto; }

/* --- BOTONES CON MÁS ESPACIO --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--vexia-green); color: var(--primary-color); border-color: var(--vexia-green); }
.btn-primary:hover { background-color: transparent; color: var(--vexia-green); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--background-color); }
.btn-prelaunch { background-color: var(--vexia-blue-light); color: var(--primary-color); border-color: var(--vexia-blue-light); }
.btn-prelaunch:hover { background-color: transparent; color: var(--vexia-blue-light); }
.btn-mint { background-color: var(--vexia-mint); color: var(--primary-color); border-color: var(--vexia-mint); font-weight: 700; }
.btn-mint:hover { background-color: transparent; color: var(--vexia-mint); }

.btn[disabled], .btn-disabled { background-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }
.btn[disabled]:hover, .btn-disabled:hover { background-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); }

/* --- TARJETAS DIFUMINADAS GENERALES (Pillars y Fronteras) --- */
.pillar-section {
    padding: 4rem 1.5rem;
}
.pillar-section.bg-light {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.pillar-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.pillar-section > .container > p {
    text-align: center;
    max-width: 700px;
    margin: -1rem auto 3rem auto;
    color: var(--secondary-color);
    font-size: 1.1rem;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pillar-card {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
}

/* ¡NUEVO! Efecto de hover en todas las tarjetas */
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pillar-card h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: var(--primary-color); /* ¡TODOS LOS H3 SON BLANCOS POR DEFECTO! */
    transition: color 0.3s ease; /* Transición suave para el color del texto */
}
.pillar-card p { font-size: 0.9em; color: var(--secondary-color); flex-grow: 1; }
.pillar-card p strong { color: var(--primary-color); font-weight: 600; }
.pillar-card .btn { margin-top: 1.5rem; align-self: flex-start; }


/* --- ¡NUEVAS REGLAS DE HOVER PARA PRODUCTOS! --- */
.pillar-card.card--green:hover h3 {
    color: var(--vexia-green);
}
.pillar-card.card--blue:hover h3 {
    color: var(--vexia-blue-light); /* ¡Usa el azul brillante! */
}
.pillar-card.card--mint:hover h3 {
    color: var(--vexia-mint);
}


/* --- 8. Footer (Difuminado) --- */
.main-footer {
    background-color: rgba(12, 10, 21, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-column h4 { color: var(--vexia-green); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-column p { font-size: 0.9em; color: var(--secondary-color); margin-bottom: 0.5rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a { color: var(--secondary-color); text-decoration: none; font-size: 0.9em; }
.footer-column a:hover { color: var(--primary-color); }
.footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 2rem 0; }
.footer-copyright { text-align: center; font-size: 0.8em; color: var(--secondary-color); }

/* --- 9. Animaciones --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- 10. Formularios --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-color); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--vexia-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- 11. Estilo Diferencial para FRONTERAS (No aplica directamente a Vexia, pero se mantiene la estructura) --- */
.fronteras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
}
.fronteras-grid .pillar-card { border-top: 4px solid var(--vexia-blue-deep); }

/* --- 12. Tarjeta de Contacto (V8.0 - Foto Adentro) --- */
.profile-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 1.5rem 4rem 1.5rem; 
    gap: 2rem;
    overflow: hidden; 
}
.profile-card {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2rem; 
    text-align: center;
    max-width: 500px; 
    width: 100%;
    position: relative; 
    margin-top: 0; 
    padding-top: 2rem;
    overflow: hidden;
}
.profile-photo {
    width: 160px; 
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--vexia-green);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1);
    position: relative; 
    margin: 0 auto 1.5rem auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.profile-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center; 
}

.profile-header h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.profile-header h2 { font-size: 1.1rem; font-weight: 400; color: var(--secondary-color); margin-bottom: 2rem; }
.profile-section {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

/* ¡ARREGLO DE COLOR V1.3! Azul a Verde para 'contacto.html' */
.profile-section h4 {
    color: var(--vexia-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}
.profile-section p { font-size: 0.9em; color: var(--secondary-color); line-height: 1.6; }

.profile-contact-details { text-align: left; margin-bottom: 2rem; }
.profile-contact-details .contact-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 1rem; 
    font-size: 0.95rem; 
    /* ¡ARREGLO DE COLOR V1.3! Azul a Verde para 'contacto.html' */
    color: var(--vexia-green); 
    font-weight: 500;
}
.profile-contact-details .contact-item i { 
    font-size: 1.2em; 
    min-width: 35px; 
    text-align: center; 
    /* ¡ARREGLO DE COLOR V1.3! Azul a Verde para 'contacto.html' */
    color: var(--vexia-green); 
}
.profile-contact-details .contact-item a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
.profile-contact-details .contact-item a:hover { color: var(--primary-color); }
.profile-buttons { display: flex; flex-direction: column; gap: 1rem; }
.btn-whatsapp { background-color: var(--whatsapp-green); color: white; }
.btn-whatsapp:hover { background-color: #1E8E4C; }
.btn-linkedin { background-color: var(--linkedin-blue); color: white; }
.btn-linkedin:hover { background-color: #084E8B; }
.btn-email { background-color: var(--email-red); color: white; }
.btn-email:hover { background-color: #B23121; }
.btn-contact i { margin-right: 10px; font-size: 1.2em; }
.profile-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-footer a { color: var(--vexia-green); text-decoration: none; font-weight: 500; }
.profile-footer a:hover { text-decoration: underline; }
.calendly-container {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 550px;
    width: 100%;
    overflow: hidden;
}
.calendly-inline-widget { min-height: 700px; }
@media (max-width: 900px) {
    .profile-card-container { flex-direction: column; align-items: center; padding-top: 4rem; } 
    .profile-card { max-width: 500px; width: 90%; }
    .calendly-container { max-width: 90%; width: 90%; }
}