/* --- RESET BÁSICO Y VARIABLES --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #a9a9a9;
    --background-color: #0c0a15; /* Un negro con tono morado oscuro */
    --surface-color: #1a1825;   /* Superficie más oscura */
    --accent-color-blue: #3a7bd5;
    --accent-color-purple: #8e44ad;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Clase para evitar el scroll cuando el menú móvil está abierto */
body.no-scroll {
    overflow: hidden;
}

main {
    flex-grow: 1; /* Asegura que el contenido principal empuje el footer hacia abajo */
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.main-header {
    background-color: rgba(12, 10, 21, 0.8); /* Coincide con el nuevo fondo */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1001; /* Para que esté por encima del menú móvil */
}
.logo img {
    height: 40px; /* Ajusta la altura de tu logo */
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.btn-nav {
    background-image: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 80, 200, 0.4);
}

/* --- MENÚ MÓVIL (HAMBURGUESA) --- */
.mobile-nav-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-nav-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mobile-nav-toggle::before,
.mobile-nav-toggle::after,
.mobile-nav-toggle span {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"]::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"]::after {
    transform: translateY(-7px) rotate(-45deg);
}


/* --- ESTILOS GENERALES --- */
main {
    padding-top: 40px; /* Espacio para el header pegajoso */
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}


.bg-light {
    background-color: var(--surface-color);
}

.text-center { text-align: center; }

.content-section, .page-header-section {
    padding: 80px 0;
}
.contact-info {
    font-size: 1.2em;
    color: var(--primary-color);
}

/* --- BOTONES (SOLUCIÓN FINAL Y ROBUSTA) --- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 15px 35px;
    letter-spacing: 0.5px;
    background: rgba(26, 24, 37, 0.5); /* Fondo oscuro semi-transparente */
    color: white;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    border-radius: 8px; /* Necesario para que el hover funcione bien */
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.5);
}


.btn-secondary {
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 5px;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}
button:disabled {
    background: #555;
    background-image: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* --- SECCIONES ESPECÍFICAS --- */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-section h1 { font-size: 3.5rem; color: var(--primary-color);}
.hero-section h2 { font-size: 1.5rem; color: var(--secondary-color); font-weight: 300; max-width: 800px; margin: 1rem auto; }
.hero-section p { max-width: 700px; margin: 1rem auto; }

.page-header-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}
.page-header-section p.subtitle { max-width: 700px; margin: 0 auto; font-size: 1.1em; color: var(--secondary-color); }


/* Grids */
.pillars-grid, .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.pillar-card, .company-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover, .company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.pillar-card h3 {
    background: -webkit-linear-gradient(45deg, var(--accent-color-purple), var(--accent-color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.company-card.upcoming {
    opacity: 0.6;
}

/* Ecosistema Detalles */
.company-detail-section {
    padding: 80px 0;
    border-top: 1px solid #333;
}
.company-detail-section .mission {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 2rem;
    color: #ccc;
}
.company-detail-section ul {
    list-style-position: inside;
    margin-bottom: 2rem;
}

/* Liderazgo */
.leadership-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.profile-narrative ul {
    list-style-position: inside;
    padding-left: 10px;
}
.profile-narrative ul li {
    margin-bottom: 0.5rem;
}
.profile-sidebar {
    position: sticky;
    top: 120px; /* Espacio desde el header */
}
.ecosystem-logos, .skills-box {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 25px;
}
.ecosystem-logos h4, .skills-box h4 {
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}
.logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start; /* Alineado a la izquierda */
}
.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #444;
    transition: transform 0.3s ease;
    overflow: hidden; /* Importante para que la imagen no se salga */
}
.logo-circle:hover {
    transform: scale(1.1);
}
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'contain' es mejor para logos */
    padding: 5px; /* Un pequeño espacio interno */
}
.quote {
    border-left: 3px solid var(--accent-color-purple);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: #ccc;
}
.calendly-placeholder {
    margin-top: 4rem;
    text-align: center;
}
/* --- FOOTER --- */
.main-footer {
    background-color: #12101c;
    padding: 60px 0 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p, .footer-col ul, .footer-col a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-col ul {
    list-style-type: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: var(--secondary-color);
}
/* --- TARJETA DE PRESENTACIÓN DIGITAL (hector.html) --- */
.digital-card-body {
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.digital-card-container {
    width: 100%;
    max-width: 400px;
}
.digital-card {
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 30px;
    padding-top: 0; /* Se ajusta por la foto */
    text-align: center;
    border: 1px solid #333;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
/* AJUSTES PARA LA FOTO DE PERFIL */
.card-photo {
    width: 120px;  /* -- MÁS CHICA -- */
    height: 120px; /* -- MÁS CHICA -- */
    border-radius: 50%; /* -- CIRCULAR -- */
    overflow: hidden;
    margin: -60px auto 20px auto; /* Ajustado para el nuevo tamaño */
    border: 5px solid var(--background-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-header h1 {
    font-size: 1.8em;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}
.card-header h2 {
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 2rem;
    background: -webkit-linear-gradient(45deg, var(--accent-color-purple), var(--accent-color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card-focus-areas, .card-specialties, .card-ecosystem, .card-contact-info {
    margin-bottom: 2rem;
}
.card-focus-areas h4, .card-specialties h4, .card-ecosystem h4 {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.card-focus-areas p, .card-specialties p {
    font-size: 0.9em;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 0;
}
.card-specialties {
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}
.card-specialties p {
    color: var(--secondary-color);
    line-height: 1.6;
}
.card-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: var(--primary-color);
}
.contact-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.card-actions {
    margin-top: 2.5rem;
}
.back-to-site {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.8em;
    color: var(--secondary-color);
    text-decoration: none;
}
/* --- ANIMACIONES DE SCROLL --- */
.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);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        inset: 0 0 0 30%; /* Del 30% del ancho hasta el final */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        background-color: rgba(12, 10, 21, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .leadership-profile-grid { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; top: 0; }
    .hero-section h1 { font-size: 2.5rem; }
}

/* --- RESET BÁSICO Y VARIABLES --- */
:root {
    --primary-color: #ffffff;
    --secondary-color: #a9a9a9;
    --background-color: #0c0a15;
    --surface-color: #1a1825;
    --accent-color-blue: #3a7bd5;
    --accent-color-purple: #8e44ad;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.main-header {
    background-color: rgba(12, 10, 21, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.btn-nav {
    background-image: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 80, 200, 0.4);
}

/* --- ESTILOS GENERALES --- */
main {
    padding-top: 40px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.content-section, .page-header-section {
    padding: 80px 0;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 15px 35px;
    letter-spacing: 0.5px;
    background: rgba(26, 24, 37, 0.5);
    color: white;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    border-radius: 8px;
    /* AJUSTE DE ESPACIO EN BOTONES */
    margin-top: 1.5rem; 
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.5);
}

/* --- SECCIONES ESPECÍFICAS --- */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-section h1 { font-size: 3.5rem; color: var(--primary-color);}
.hero-section h2 { font-size: 1.5rem; color: var(--secondary-color); font-weight: 300; max-width: 800px; margin: 1rem auto; }

.page-header-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}
.page-header-section p.subtitle { max-width: 700px; margin: 0 auto; font-size: 1.1em; color: var(--secondary-color); }

/* ... (otros estilos que ya tenías) ... */

/* --- FOOTER --- */
/* ... (estilos del footer que ya tenías) ... */

/* --- ANIMACIONES --- */
/* ... (estilos de animaciones que ya tenías) ... */

/* --- CORRECCIÓN DE HEADER MÓVIL --- */
.mobile-nav-toggle {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .hamburger-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Estilos para la X cuando el menú está abierto */
.mobile-nav-toggle.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-nav-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block; /* Visible en móviles */
    }

    .main-nav {
        position: fixed;
        inset: 0 0 0 30%; /* Ocupa el 70% derecho de la pantalla */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: rgba(12, 10, 21, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-nav.is-active {
        transform: translateX(0);
    }
    
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section h2 { font-size: 1.2rem; }
}

/* Clases de utilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- MEJORAS DE DISEÑO GENERALES --- */

/* Mejora: Gradiente para H2 */
h2 {
    background: -webkit-linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mejora: Bordes de gradiente para tarjetas */
.pillar-card, .company-card {
    border: 1px solid #333; /* Fallback */
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, rgba(142, 68, 173, 0.3), rgba(58, 123, 213, 0.3));
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-image-source 0.3s ease;
}

.pillar-card:hover, .company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-image-source: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
}

/* --- MEJORAS PARA BIENESTAR.HTML (LIVIE FORM) --- */
.subscribe-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Permite que se apile en móviles */
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    min-width: 250px;
    padding: 15px 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--surface-color);
    border: 1px solid #444;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent-color-purple);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.3);
}

.subscribe-form .btn {
    flex-shrink: 0;
    margin-top: 0; /* Anula el margen de .btn-primary */
}

/* --- MEJORAS PARA FOOTER --- */
.footer-grid {
    align-items: flex-start; /* Alinea las columnas por arriba */
}

.footer-column {
    min-width: 180px; /* Asegura espacio mínimo */
}

/* --- MODIFICACIÓN DEL HEADER (SIN LOGO) --- */
.header-container {
    justify-content: flex-end; /* Cambiado de 'space-between' a 'flex-end' */
}

/* Oculta el logo que pusimos en el HTML en la versión de escritorio */
.mobile-nav-header {
    display: none;
}


/* --- MEJORAS PANEL MÓVIL DE HAMBURGUESA --- */
@media (max-width: 768px) {

    /* 1. Muestra el título solo en el panel móvil */
    .mobile-nav-header {
        display: block;
        width: 100%;
        color: var(--primary-color);
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(142, 68, 173, 0.4); /* Línea con gradiente */
    }
    .mobile-nav-header .mobile-nav-subtitle {
        display: block;
        font-size: 0.9rem;
        font-weight: 300;
        color: var(--secondary-color);
        margin-top: 5px;
    }

    /* 2. El panel ahora ocupa pantalla completa */
    .main-nav {
        inset: 0; /* Ocupa TODA la pantalla: top:0, right:0, bottom:0, left:0 */
        justify-content: flex-start; /* Alinea items al inicio */
        align-items: flex-start; /* Alinea links a la izquierda */
        gap: 0; /* Reseteamos gap para controlar con padding */
        background-color: rgba(12, 10, 21, 0.98); /* Más opaco */
        backdrop-filter: blur(15px);
        padding: 40px 30px; /* Padding general */
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Transición suave */
    }

    /* 3. Estilo de los links dentro del panel */
    .main-nav a {
        font-size: 1.8rem; /* Tipografía más grande */
        font-weight: 400;
        padding: 15px 0; /* Padding vertical para hacerlo "tappable" */
        width: 100%; /* Ocupa todo el ancho */
        color: var(--secondary-color);
        border-radius: 0;
        transition: color 0.2s ease;
    }

    .main-nav a:hover,
    .main-nav a:focus {
         color: var(--primary-color);
    }
    
    /* 4. Estilo del botón "Contacto" dentro del panel */
    .main-nav .btn-nav {
        margin-top: 2rem; /* Espacio antes del botón */
        padding: 15px 25px;
        width: 100%; /* El botón ocupa todo el ancho */
        text-align: center;
        font-size: 1.5rem;
    }
}

/* --- MEJORA: HEADER CON LOGO DE TEXTO --- */
.logo-text {
    font-weight: 700;
    font-size: 1.3em;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001; /* Para móvil */
}

/* Re-ajuste del contenedor del header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- MEJORA: FOOTER --- */
.main-footer {
    padding-top: 40px; /* Reducido */
    border-top: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
}
.footer-grid {
    margin-bottom: 20px; /* Reducido */
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* --- MEJORA: UNANIMIDAD DE TARJETAS --- */
.pillars-grid {
    align-items: stretch; /* Hace que todas las tarjetas tengan la misma altura */
}

.pillar-card, .company-card {
    display: flex;
    flex-direction: column; /* Organiza el contenido en columna */
    height: 100%; /* Asegura que la tarjeta ocupe el espacio */
}

/* Este es el truco para alinear el botón al fondo */
.pillar-card .btn, .company-card .btn {
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
}

/* --- ESTILOS PARA LAS NUEVAS PÁGINAS DE VISIÓN (olios, relth, etc.) --- */
.subscribe-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Permite que se apile en móviles */
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    min-width: 250px;
    padding: 15px 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--surface-color);
    border: 1px solid #444;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent-color-purple);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.3);
}

.subscribe-form .btn {
    flex-shrink: 0;
    margin-top: 0; /* Anula el margen de .btn-primary */
}

/* --- MEJORA DE UNIFORMIDAD DE TARJETAS --- */

/* 1. Hace que las tarjetas en una fila tengan la misma altura */
.pillars-grid, .company-grid {
    /* Esto le dice a la grid que estire todas las tarjetas hijas para que ocupen la misma altura en la fila */
    align-items: stretch; 
}

.pillar-card, .company-card {
    /* 1. Convertimos la tarjeta en un contenedor flex.
      2. Apilamos su contenido (título, párrafo, botón) verticalmente.
      3. Le decimos que ocupe el 100% de la altura que le asigne la grid.
    */
    display: flex;        
    flex-direction: column; 
    height: 100%;         
}

/* 2. Empuja el botón al fondo de la tarjeta */
.pillar-card .btn, 
.company-card .btn {
    /* ¡Esta es la magia! 
      Al ser un item dentro de un contenedor flex (la tarjeta), 
      'margin-top: auto' toma todo el espacio vertical disponible 
      y lo coloca *antes* del botón, empujándolo al fondo.
    */
    margin-top: auto; 
}
/* --- NUEVO DISEÑO DE FOOTER --- */
.main-footer {
    padding-top: 60px; /* Aumenta el padding superior */
    background-color: #12101c; /* Un fondo ligeramente más claro que el body */
    border-top: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
}

/* 1. Sección CTA Superior */
.footer-cta {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}
.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.footer-cta p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
/* Asegura que el botón del CTA no tenga margen superior */
.footer-cta .btn {
    margin-top: 0;
}

/* 2. Sección de Enlaces y Contacto */
.footer-grid {
    grid-template-columns: 2fr 1fr 1fr; /* Columna de marca más ancha */
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 1em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column.footer-brand h4 {
    font-size: 1.3em;
    text-transform: none;
    letter-spacing: 0;
}

.footer-column p, .footer-column ul, .footer-column a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95em;
}

.footer-column ul {
    list-style-type: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a:hover {
    color: var(--primary-color);
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 30px;
    height: 30px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--accent-color-blue); /* Color de LinkedIn */
}
.footer-social svg {
    width: 100%;
    height: 100%;
}

/* 3. Sección de Copyright Inferior */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    padding-bottom: 30px; /* Añadido padding inferior */
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* Responsividad para el nuevo footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Apila las columnas */
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
    .footer-social {
        justify-content: center;
    }
}

/* --- ESTILOS PARA EL FORMULARIO DE BRIEF (brief.html) --- */
.brief-form {
    max-width: 700px; /* Limita el ancho del formulario */
    margin: 40px auto; /* Centra el formulario y añade espacio */
}

.brief-form fieldset {
    border: 1px solid #333; /* Borde sutil para agrupar */
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.brief-form legend {
    font-size: 1.2em;
    font-weight: 600;
    padding: 0 15px; /* Espacio alrededor del título de la sección */
    color: var(--primary-color);
    /* Aplica el gradiente al texto de la leyenda */
    background: -webkit-linear-gradient(135deg, var(--accent-color-purple), var(--accent-color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 25px; /* Espacio entre cada par de etiqueta/campo */
}

.form-group label {
    display: block; /* Asegura que la etiqueta esté en su propia línea */
    margin-bottom: 8px; /* Espacio entre la etiqueta y el campo */
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%; /* Ocupa todo el ancho disponible */
    padding: 12px 15px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--primary-color);
    background-color: var(--surface-color); /* Fondo oscuro */
    border: 1px solid #444; /* Borde sutil */
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-color-purple); /* Resalta al enfocar */
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.2);
}

.form-group textarea {
    min-height: 120px; /* Altura mínima para áreas de texto */
    resize: vertical; /* Permite redimensionar solo verticalmente */
}

/* Estilo específico para el botón dentro del brief */
.brief-form .btn-primary {
    display: block; /* Ocupa todo el ancho */
    width: 100%;
    margin-top: 30px; /* Espacio antes del botón */
    padding: 18px; /* Botón más grande */
    font-size: 1.1em;
}