/* Variables CSS */
:root {
    --primary-bg-dark: #0a1128; /* Azul oscuro casi negro para fondos principales */
    --accent-blue: #00bfff;     /* Azul cielo brillante, moderno */
    --accent-green: #2ecc71;    /* Verde para CTAs */
    --text-color-light: #ecf0f1; /* Blanco roto para texto en fondos oscuros */
    --text-color-dark: #2c3e50;  /* Gris oscuro para texto en fondos claros */
    --bg-light-section: #f7f9fb; /* Fondo muy claro para secciones de contenido */
    --border-color: rgba(255, 255, 255, 0.08); /* Borde sutil */

    /* Fuentes de impacto */
    --font-family-heading: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;

    --padding-section: 100px 0; /* Espacio entre secciones */
    --max-width-container: 1200px; /* Ancho máximo del contenido */
}

/* Globales y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.8;
    color: var(--text-color-dark);
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Las imágenes ahora se manejan con background-image en sus contenedores */
/* y se ocultarán si están como <img> directamente para evitar 404s en el HTML */
img {
    display: none; 
}


a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 800;
}

/* Clases de Animación (controladas por JavaScript) */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
section.animated {
    opacity: 1;
    transform: translateY(0);
}

.wow-fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wow-fade-in.animated {
    opacity: 1;
}

.wow-slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wow-slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.wow-zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wow-zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Secciones Generales */
.section-padding {
    padding: var(--padding-section);
}

.section-title {
    font-size: 3.5em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--accent-blue);
    border-radius: 3px;
}

.bg-light {
    background-color: var(--bg-light-section);
}

.bg-dark {
    background-color: var(--primary-bg-dark);
    color: var(--text-color-light);
}

.bg-dark .section-title {
    color: var(--text-color-light);
}

.bg-dark .section-title::after {
    background-color: var(--accent-green);
}

.text-white {
    color: var(--text-color-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    text-align: center;
    letter-spacing: 1px;
    background-color: var(--accent-green);
    color: var(--text-color-light);
    border: 2px solid var(--accent-green);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green);
    transform: translateY(-5px);
}

.btn-header-cta {
    padding: 10px 20px;
    font-size: 0.85em;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-header-cta:hover {
    transform: translateY(-3px);
}

.btn-hero-cta {
    background-color: var(--accent-blue);
    color: var(--primary-bg-dark);
    border: 2px solid var(--accent-blue);
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.5);
}

.btn-hero-cta:hover {
    background-color: var(--primary-bg-dark);
    color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-blue);
    transform: translateY(-8px);
}

.large-btn {
    font-size: 1.5em;
    padding: 20px 50px;
}

/* Header */
.header {
    background-color: var(--primary-bg-dark);
    color: var(--text-color-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-size: 2.2em;
    font-weight: 900;
    color: var(--text-color-light);
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--accent-blue);
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color-light);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding-bottom: 6px;
    opacity: 0.9;
}

.nav-list a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
    opacity: 1;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Language Toggle */
.lang-toggle {
    background: none;
    color: var(--text-color-light);
    border: 2px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background-color: rgba(0, 191, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Hamburguesa (solo para móvil) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-color-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--primary-bg-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 85% 15%, rgba(0, 191, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(46, 204, 113, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    text-align: left;
    padding-right: 40px;
    padding-left: 20px; /* Ajuste para la palabra "Análisis" */
    color: var(--text-color-light);
    min-width: 350px;
    animation: fadeInSlideRight 1.2s ease-out forwards;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-color-light);
    letter-spacing: -2px; /* Mantenemos este para el efecto deseado, si causa problemas en algunas fuentes, lo ajustamos */
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

.highlight-text {
    color: var(--accent-blue);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 50px;
    max-width: 650px;
    line-height: 1.7;
    color: rgba(236, 240, 241, 0.85);
    text-align: justify; /* Justificado para el subtítulo del hero */
}

/* Contenedor de la galería en la sección Hero */
.hero-gallery-container {
    flex: 1;
    min-width: 400px;
    height: 400px; /* Altura fija para la galería */
    background-color: #2b3a5c; /* Color de fondo si no hay imágenes */
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 3px solid var(--accent-blue);
    position: relative;
    overflow: hidden; /* Muy importante para que las imágenes se recorten al tamaño del contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-inner {
    width: 100%;
    height: 100%;
    position: relative; /* Para posicionar los slides */
}

.gallery-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover; /* Las imágenes cubren el slide */
    background-position: center; /* Centra la imagen */
    opacity: 0; /* Oculta todos los slides por defecto */
    transition: opacity 1s ease-in-out; /* Transición suave entre slides */
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1; /* Muestra el slide activo */
    z-index: 2; /* Asegura que el slide activo esté por encima */
}

/* Botones de navegación de la galería */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color-light);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10; /* Asegura que los botones estén por encima de las imágenes */
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Puntos indicadores de la galería */
.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-blue);
}

/* Ajustes para el texto placeholder que ya no irá si se usa la galería */
.hero-visual-placeholder .placeholder-text { 
    display: none; /* Asegura que el texto "Próximamente" esté oculto */
}


/* Sección Acerca de EGJ Analyzer */
.about-section .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center; /* El contenedor central se mantiene centrado */
}

.about-section p {
    font-size: 1.1em;
    max-width: 850px;
    margin: 0 auto 25px auto;
    line-height: 1.8;
    text-align: justify; /* Justificado para los párrafos de Acerca de */
}

/* Placeholder para imagen de diagrama de anatomía */
.about-image-placeholder {
    width: 100%;
    max-width: 800px;
    padding-top: 55%; /* Proporción para la imagen */
    background-color: #e0e6ec; /* Color de placeholder, se verá si la imagen no carga */
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 62, 80, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    
    /* Carga la imagen del diagrama aquí */
    background-image: url('../images/anatomia-compleja.png'); /* ¡Asegúrate de que este archivo exista en images/! */
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
}

.about-image-placeholder .placeholder-text {
    color: rgba(44, 62, 80, 0.8); /* Ajusta la opacidad para que se vea bien sobre la imagen */
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo semi-transparente para mejor legibilidad */
    padding: 10px 20px;
    border-radius: 5px;
    /* --- CAMBIO AQUÍ: QUITAMOS o COMENTAMOS 'display: none;' --- */
    /* display: none; */ 
    /* Asegúrate de que el texto no se oculte */
    display: block; /* Asegura que el texto sea visible */
    position: absolute; /* Para posicionarlo sobre la imagen */
    bottom: 20px; /* Distancia del borde inferior */
    left: 50%;
    transform: translateX(-50%);
    width: fit-content; /* Ajusta el ancho al contenido del texto */
    max-width: 90%; /* Evita que el texto sea demasiado ancho */
}
.about-image-placeholder .placeholder-text {
    color: rgba(44, 62, 80, 0.6);
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    display: none; /* <--- Oculta el texto placeholder */
}
/* Sección de Características Destacadas */
.features-section {
    background-color: var(--bg-light-section);
}

.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    text-align: center; /* El grid se mantiene centrado */
}

.features-section .feature-item {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 40px;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease;
    border: 1px solid rgba(44, 62, 80, 0.05);
    text-align: center; /* Asegura que el contenido del item se centre */
}

.features-section .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    background-color: rgba(0, 191, 255, 0.03);
}

.features-section .feature-icon {
    font-size: 4em;
    color: var(--accent-blue);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.features-section h3 {
    font-size: 2em;
    color: var(--text-color-dark);
    margin-bottom: 18px; /* Un poco más de margen inferior para separar del párrafo */
    letter-spacing: normal; /* Aseguramos letter-spacing normal */
    line-height: 1.2; /* Ajusta la altura de línea para títulos de dos líneas */
    text-align: center; /* Títulos de características centrados */
    word-break: normal; /* Asegura que no haya saltos de palabra extraños */
    hyphens: auto; /* Permite guiones para mejor ajuste si es necesario (requiere lang en HTML) */
}

.features-section p {
    font-size: 1em;
    color: var(--text-color-dark);
    line-height: 1.7;
    text-align: center; /* Mantenemos centrado para párrafos cortos */
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    
    /* --- CAMBIOS AQUÍ PARA ELIMINAR CUALQUIER TIPO DE GUIÓN AUTOMÁTICO --- */
    word-break: keep-all; /* Evita que las palabras se rompan, a menos que sean muy largas y se desborden */
    overflow-wrap: normal; /* No rompe palabras a la fuerza a menos que sea necesario */
    hyphens: none; /* <--- ¡ESTO ES CLAVE! Desactiva por completo la guionización automática */
    /* --- FIN DE CAMBIOS --- */
}

/* Sección Fundamentos Biomecánicos */
.biomechanics-section .biomechanics-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.biomechanics-section .text-content {
    padding: 15px;
    text-align: justify; /* Justificado para el contenido de texto en Biomecánica */
}

.biomechanics-section .text-content h3 {
    font-size: 2.5em; /* Tamaño de fuente igual al de Laplace/Poiseuille */
    color: var(--accent-blue); /* Color azul de acento */
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: left; /* Títulos alineados a la izquierda */
}

.biomechanics-section .text-content p {
    font-size: 1.1em; /* Tamaño de fuente igual al de Laplace/Poiseuille */
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

/* NUEVO CONTENEDOR PARA CONTENIDO ADICIONAL DE BIOMECÁNICA */
.biomechanics-additional-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 o 3 columnas, se adapta */
    gap: 40px; /* Espacio entre los bloques de texto */
    margin-top: 80px; /* Margen superior para separarlo de los gráficos anteriores */
    padding-top: 40px; /* Padding interno */
    border-top: 1px solid var(--bg-light-section); /* Separador visual sutil */
}

/* Estilos para los text-content dentro de biomechanics-additional-content */
.biomechanics-additional-content .text-content {
    padding: 25px; /* Aumentamos el padding para que se vea más amplio como las otras tarjetas */
    background-color: #fff; /* Fondo blanco para las tarjetas de texto */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Sombra igual a las cards de características */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición al hover */
    text-align: justify; /* Asegura que el contenido del item se justifique */
}

.biomechanics-additional-content .text-content:hover {
    transform: translateY(-8px); /* Pequeño levantamiento al pasar el ratón */
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); /* Sombra más profunda al hover */
}

.biomechanics-additional-content .text-content h3 {
    font-size: 2.5em; /* <--- AJUSTADO para que coincida con h3 de Laplace/Poiseuille */
    color: var(--accent-blue); /* <--- AJUSTADO para que sea el azul de acento */
    margin-bottom: 20px; /* Margen igual */
    line-height: 1.3; /* Altura de línea igual */
    text-align: left; /* <--- AJUSTADO para que esté alineado a la izquierda */
}

.biomechanics-additional-content .text-content p {
    font-size: 1.1em; /* <--- AJUSTADO para que coincida con p de Laplace/Poiseuille */
    line-height: 1.8; /* Altura de línea igual */
    margin-bottom: 25px; /* Margen igual */
    text-align: justify; /* <--- AJUSTADO para justificar el texto */
}

/* ... (El resto del CSS se mantiene igual) ... */

/* Estilos para los contenedores de gráficos (donde irán canvas) */
.biomechanics-section .text-content .chart-container {
    width: 100%;
    max-width: 550px;
    margin: 30px auto 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 300px; /* Altura mínima para el placeholder */
    /* Si deseas cargar una imagen de diagrama aquí, especifica el URL */
    /* background-image: url('../images/placeholder_diagram.png'); */
    /* background-size: contain; background-repeat: no-repeat; background-position: center; */
}
        
.biomechanics-section .text-content .chart-container canvas {
    width: 100% !important;
    height: 250px !important;
    display: none; /* Inicialmente oculto, JS lo mostrará */
}
.biomechanics-section .text-content .chart-container .placeholder-text {
    color: rgba(44, 62, 80, 0.6);
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}


/* Estilos para los controles del gráfico (sliders) */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 350px;
    font-size: 1em;
    color: var(--text-color-dark);

    label {
        font-weight: 600;
        white-space: nowrap;
    }

    input[type="range"] {
        flex-grow: 1;
        -webkit-appearance: none;
        appearance: none;
        height: 7px;
        background: var(--bg-light-section);
        outline: none;
        border-radius: 5px;
        transition: opacity .2s;

        &::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: var(--accent-blue);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        &::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: var(--accent-blue);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
    }

    span {
        font-weight: bold;
        color: var(--accent-blue);
        min-width: 35px;
        text-align: right;
    }
}


/* Sección Equipo (Dr. Aponte) */
.team-section {
    color: var(--text-color-light);
    background-color: var(--primary-bg-dark);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo oscuro sutil */
    background: rgba(0,0,0,0.1); 
    z-index: 0;
}

.team-section .section-title {
    color: var(--text-color-light);
    z-index: 1;
}
.team-section .section-title::after {
    background-color: var(--accent-green);
}

.team-section .team-member {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left; /* El contenedor principal del equipo alineado a la izquierda */
    position: relative;
    z-index: 1;
}
/* Estilos para la imagen del logo en el header */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el logo y el texto */
}

.logo-img {
    height: 120px; /* Tamaño del logo */
    width: auto;
    display: block;
}
/* Placeholder para la foto del Dr. Raúl Aponte */
.dr-aponte-image-placeholder {
    min-width: 280px;
    width: 280px;
    height: 280px;
    background-color: #2a354d;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(0, 191, 255, 0.3), 0 0 0 20px rgba(0, 191, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite ease-in-out;
    /* Carga la imagen del Dr. Raúl Aponte aquí (asegúrate de que el nombre del archivo sea correcto) */
    background-image: url('../images/dr-raul-aponte.jpg'); /* ¡Asegúrate de que este archivo exista en images/! */
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
}

.dr-aponte-image-placeholder .placeholder-text {
    color: rgba(236, 240, 241, 0.7);
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    /* Ocultamos el texto placeholder ya que cargamos la imagen */
    display: none; 
}


.team-section .dr-aponte-bio {
    flex: 1;
}

.team-section .dr-aponte-bio h3 {
    font-size: 2.5em;
    color: var(--accent-blue);
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-align: left; /* Título de la biografía alineado a la izquierda */
}

.team-section .dr-aponte-bio .role {
    font-size: 1.2em;
    font-weight: 600;
    color: rgba(236, 240, 241, 0.7);
    margin-bottom: 20px;
    text-align: left; /* Rol alineado a la izquierda */
}

.team-section .dr-aponte-bio p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 18px;
    color: rgba(236, 240, 241, 0.9);
    text-align: justify; /* Justificado para los párrafos de la biografía */
}

.team-section .dr-aponte-bio .small-text {
    font-size: 0.9em;
    color: rgba(236, 240, 241, 0.6);
    margin-top: 20px;
    text-align: left; /* Texto pequeño de la biografía alineado a la izquierda */
}

/* Sección Demo Gratuito y Suscripción */
.demo-section {
    background: linear-gradient(135deg, lighten(var(--accent-blue), 10%) 0%, var(--primary-bg-dark) 100%);
    text-align: center; /* Mantiene la alineación central de la sección */
    padding: var(--padding-section);
}
.demo-section .section-title {
    color: var(--text-color-dark); /* Título ahora oscuro para contraste */
}
.demo-section .section-title::after {
    background-color: var(--accent-green);
}

.demo-section p {
    font-size: 1.2em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: var(--text-color-dark); /* Texto de párrafo oscuro */
    text-align: justify; /* <--- ¡CAMBIO AQUÍ! JUSTIFICADO PARA EL PÁRRAFO DE LA DEMO */
}
.demo-section .small-text {
    font-size: 0.95em;
    color: var(--text-color-dark); /* Texto pequeño oscuro */
    margin-top: 30px;
    text-align: center; /* Se mantiene centrado */
}

/* Footer / Contacto */
.footer {
    background-color: #080c18;
    color: rgba(236, 240, 241, 0.6);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 1em;
    margin-bottom: 25px;
    text-align: center; /* Se mantiene centrado */
}
/* ESTILO PARA LA FRASE DE ALTO IMPACTO EN EL FOOTER */
.footer .impact-phrase {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color-light);
    opacity: 1;
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
    /* Sombra inicial para el efecto de brillo */
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.4),
                 0 0 25px rgba(0, 191, 255, 0.2);
    transition: text-shadow 0.4s ease-in-out, transform 0.3s ease; /* Añadimos transición para el efecto */
}

/* EFECTO AL PASAR EL MOUSE POR ENCIMA (HOVER) */
.footer .impact-phrase:hover {
    text-shadow: 0 0 20px var(--accent-blue), /* Aumentamos el brillo principal */
                 0 0 35px var(--accent-blue), /* Añadimos un brillo más grande y fuerte */
                 0 0 50px rgba(0, 191, 255, 0.5); /* Un brillo aún más difuso y potente */
    transform: translateY(-5px); /* Un ligero levantamiento para un efecto 3D sutil */
    color: white; /* Opcional: hacer el texto blanco puro al hover para más contraste */
}

.footer .impact-phrase em {
    font-style: normal;
    color: var(--accent-blue); /* Color de acento para la cursiva */
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8); /* Brillo más fuerte para la cursiva */
    transition: text-shadow 0.4s ease-in-out, color 0.3s ease; /* Transición para la cursiva también */
}

.footer .impact-phrase em:hover {
    text-shadow: 0 0 15px var(--text-color-light), /* La cursiva brilla más fuerte */
                 0 0 25px rgba(255, 255, 255, 0.7);
    color: white; /* Se vuelve blanca pura al hover para un efecto de "encendido" */
}

.footer .whatsapp-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;

    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    text-align: center;
    letter-spacing: 1px;
    background-color: #25d366;
    color: var(--text-color-light);
    border: 2px solid #25d366;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    font-size: 1.1em;
    margin-bottom: 25px;
}

.footer .whatsapp-btn i {
    font-size: 1.6em;
    margin-right: 12px;
}

.footer .whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.footer .copyright {
    font-size: 0.95em;
    opacity: 0.7;
    text-align: center; /* Se mantiene centrado */
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 191, 255, 0.3), 0 0 0 20px rgba(0, 191, 255, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(0, 191, 255, 0.4), 0 0 0 24px rgba(0, 191, 255, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 191, 255, 0.3), 0 0 0 20px rgba(0, 191, 255, 0.1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3em;
    }
    .hero-content h1 {
        font-size: 4em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-visual-placeholder {
        height: 350px;
        min-width: 350px;
    }
    .biomechanics-section .biomechanics-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .team-section .team-member {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .dr-aponte-bio {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .nav {
        display: none; /* Ocultar el menú de navegación en tablet y móvil */
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    .nav.active {
        display: block; /* Mostrar cuando está activo (por JS) */
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        background-color: rgba(10, 17, 40, 0.95);
        padding: 15px 0;
        border-radius: 8px;
    }
    .header-actions {
        order: 2;
        gap: 10px;
    }
    .hamburger {
        display: flex; /* Mostrar menú hamburguesa */
        order: 4;
    }

    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2.5em;
        margin-bottom: 50px;
    }
    .hero-section .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        animation: none; /* Deshabilitar animaciones complejas en móviles para rendimiento */
    }
    .hero-content h1 {
        font-size: 3em;
        letter-spacing: -1px;
    }
    .hero-content p {
        font-size: 1em;
    }
    /* La galería responsive en móvil */
    .hero-gallery-container {
        height: 280px; /* Ajusta la altura de la galería en móvil */
        min-width: unset; /* Elimina el min-width para móvil */
        width: 100%;
    }
    .about-section p {
        font-size: 1em;
    }
    .about-image-placeholder {
        padding-top: 65%;
    }
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
    .biomechanics-section .text-content h3 {
        font-size: 2em;
    }
    .biomechanics-section .text-content p {
        font-size: 1em;
    }
    .team-section .dr-aponte-image-placeholder {
        width: 220px;
        height: 220px;
    }
    .team-section .dr-aponte-bio h3 {
        font-size: 2em;
    }
    .team-section .dr-aponte-bio .role {
        font-size: 1.1em;
    }
    .team-section .dr-aponte-bio p {
        font-size: 1em;
    }
    .demo-section p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 2em;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .btn-hero-cta {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
    }
    .header-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-header-cta {
        width: 100%;
    }
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        font-size: 1em;
    }
}

/* Menú hamburguesa activo */
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* NUEVA SECCIÓN: Fundamento de EGJ Analyzer */
.egj-foundation-section {
    background-color: var(--bg-light-section); /* Fondo claro similar a otras secciones */
}

.egj-foundation-section .foundation-content {
    max-width: 900px; /* Limitar el ancho para mejor legibilidad */
    margin: 0 auto;
    text-align: justify; /* Justificar el texto */
}

.egj-foundation-section .foundation-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px; /* Espacio entre párrafos */
}

/* Opcional: Estilo para un placeholder de imagen si añades uno */
/* .foundation-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #d0dbe6;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
} */
