body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Ligeramente diferente para más contraste con blanco */
    color: #212529; /* Negro un poco más suave */
    line-height: 1.7;
    opacity: 0; /* Inicialmente invisible para fade-in */
    animation: fadeIn 0.8s ease-out forwards; /* Animación de fade-in */
    padding-top: 100px; /* Aumentado ligeramente para el header, ajustar si es necesario */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Estilos del Header Profesional */
header {
    background-color: #ffffff; /* Fondo blanco */
    color: #001f3f; /* Texto principal azul oscuro */
    padding: 0.8rem 0; /* Ajustado padding vertical del header */
    border-bottom: 1px solid #dee2e6; /* Borde inferior más suave */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08); /* Sombra un poco más pronunciada y suave */
}

.header-content { /* Nuevo contenedor para centrar y alinear */
    width: 90%;
    max-width: 1200px; /* Ancho máximo del contenido del header */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Padding interno para el contenido del header */
}

.logo-area { /* Para agrupar logo y tagline */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header .logo-container { /* Ajuste para el contenedor del logo */
    padding-bottom: 0; /* Eliminado padding si tagline va debajo */
}

header img.logo-svg {
    height: 55px; /* Ligeramente más grande */
    width: auto;
    display: block; /* Importante para evitar problemas de espacio extra */
}

header .tagline {
    font-size: 0.75rem; /* Tagline aún más sutil */
    color: #6c757d; /* Gris estándar para texto secundario */
    margin-top: 3px; /* Pequeño espacio sobre el tagline */
    /* font-style: italic; Opcional */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Alinear elementos de navegación horizontalmente */
    /* background-color: transparent; No más fondo azul aquí */
}

nav ul li {
    /* display: inline; Ya no es necesario con flex */
    margin-left: 25px; /* Espacio entre elementos de navegación */
}
nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: #001f3f; /* Texto de navegación azul oscuro */
    text-decoration: none;
    font-weight: 600; /* Un poco más de peso para seriedad */
    padding: 10px 5px; /* Ajuste de padding */
    display: inline-block;
    position: relative; /* Para el efecto de borde inferior */
    border-bottom: 2px solid transparent; /* Borde inferior transparente por defecto */
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #32CD32; /* Verde Lima como color de acento principal */
    border-bottom-color: #32CD32; /* Subrayado con Verde Lima */
}

.container {
    width: 85%; /* Un poco más de ancho */
    margin: auto;
    overflow: hidden;
    padding: 25px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Sombra más moderna para el contenedor principal */
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 12px; /* Bordes más redondeados para el contenedor */
}

/* Botones estilizados y modernos */
a.button, a.button-secondary, .button, button {
    display: inline-block;
    background-color: #32CD32;
    color: #fff;
    padding: 13px 32px;
    text-decoration: none;
    border-radius: 999px; /* Súper redondeado tipo pill */
    font-weight: 700;
    font-family: 'Montserrat', 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(50,205,50,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.18s;
    outline: none;
    position: relative;
}

a.button-secondary, .button-secondary {
    background-color: #001f3f;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,31,63,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
}

a.button:focus, .button:focus, a.button-secondary:focus, .button-secondary:focus, button:focus {
    outline: 2.5px solid #32CD32;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(50,205,50,0.18), 0 4px 18px rgba(50,205,50,0.10);
}

a.button:hover, .button:hover, button:hover {
    background: linear-gradient(90deg, #28a428 60%, #32CD32 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(50,205,50,0.16), 0 2px 8px rgba(0,0,0,0.10);
}

a.button-secondary:hover, .button-secondary:hover {
    background: linear-gradient(90deg, #00142b 60%, #001f3f 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,31,63,0.16), 0 2px 8px rgba(0,0,0,0.10);
}

/* Tamaños de botón */
.button-sm, a.button.button-sm, a.button-secondary.button-sm {
    padding: 7px 18px;
    font-size: 0.95rem;
}
.button-lg, a.button.button-lg, a.button-secondary.button-lg {
    padding: 18px 40px;
    font-size: 1.22rem;
}

/* Deshabilitado */
a.button[disabled], .button[disabled], a.button-secondary[disabled], .button-secondary[disabled], button[disabled] {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.2);
}

/* Eliminar subrayado de enlaces tipo botón */
a.button, a.button-secondary {
    text-decoration: none !important;
}

h1, h2, h3 {
    color: #001f3f; /* Azul oscuro para los encabezados dentro del contenido */
    font-family: 'Montserrat', sans-serif; /* O la Serif contemporánea */
    font-weight: 700; /* Más peso para títulos */
}

/* HERO pantalla completa y animado */
.hero {
    min-height: 92vh;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #001f3f 0%, #003366 60%, #32CD32 100%);
    background-size: 200% 200%;
    animation: heroBgMove 10s ease-in-out infinite alternate;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    padding: 0;
}
@keyframes heroBgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-waves {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 260px !important;
    z-index: 1;
    animation: waveMove 7s cubic-bezier(.77,0,.18,1) infinite alternate;
    min-height: 180px;
    max-height: 400px;
}
@keyframes waveMove {
    0% { transform: translateX(0) translateY(0); }
    40% { transform: translateX(-30px) translateY(10px); }
    60% { transform: translateX(30px) translateY(-10px); }
    100% { transform: translateX(-40px) translateY(0); }
}
/* Eliminar estilos del balón decorativo */
.hero-ball-svg { display: none !important; }

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: -1px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.18);
    animation: fadeInUp 1.1s cubic-bezier(.77,0,.18,1) 0.2s both;
}
.hero-content p {
    font-size: 1.45rem;
    color: #e6ffe6;
    margin-bottom: 38px;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,0.10);
    animation: fadeInUp 1.1s cubic-bezier(.77,0,.18,1) 0.5s both;
}
.hero-content .button,
.hero-content .button-secondary {
    font-size: 1.18rem;
    padding: 18px 44px;
    margin: 0 10px 0 0;
    animation: fadeInUp 1.1s cubic-bezier(.77,0,.18,1) 0.8s both;
}
.hero-content .button-secondary {
    margin-right: 0;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive HERO */
@media (max-width: 900px) {
    .hero {
        min-height: 70vh;
        height: 70vh;
        border-radius: 0 0 18px 18px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.08rem;
    }
}
@media (max-width: 600px) {
    .hero {
        min-height: 60vh;
        height: 60vh;
        border-radius: 0 0 10px 10px;
    }
    .hero-content {
        padding: 0 6px;
    }
    .hero-content h1 {
        font-size: 1.4rem;
    }
    .hero-content p {
        font-size: 0.98rem;
    }
}

.section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px; /* Más espacio */
    font-size: 2.2rem;
    color: #001f3f;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    border: 1px solid #e9ecef; /* Borde muy sutil */
    border-radius: 10px; /* Bordes más redondeados */
    padding: 25px;
    width: calc(33.333% - 40px); /* Aproximadamente 3 tarjetas por fila */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Sombra más suave y moderna */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px); /* Movimiento ligeramente mayor */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Sombra más pronunciada */
    border-color: #32CD32; /* Borde Verde Lima al hover */
}

.card img {
    max-width: 80px; /* Iconos o imágenes pequeñas en las tarjetas */
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #001f3f; /* Azul oscuro para títulos de tarjetas */
}

.card p {
    font-size: 0.9rem;
    color: #495057; /* Gris oscuro para texto de tarjeta */
    line-height: 1.7;
}

.course-highlight {
    background-color: #e6f7ff; /* Azul cielo muy pálido */
    padding: 35px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #cce0ff; /* Borde azulado más sutil */
    box-shadow: 0 4px 12px rgba(100,150,255,0.1); /* Sombra azulada sutil */
}

.course-highlight h2 {
    color: #001f3f;
    font-size: 1.8rem;
}

.course-highlight p {
    font-size: 1.05rem;
    color: #212529;
}

.blog-post-condensed {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.blog-post-condensed h3 a {
    color: #001f3f;
    text-decoration: none;
}

.blog-post-condensed h3 a:hover {
    color: #32CD32; /* Verde Lima al pasar el mouse */
}


/* Footer */
footer {
    background-color: #001f3f; /* Azul oscuro para el footer */
    color: #adb5bd; /* Color de texto gris claro */
    padding: 40px 0 15px 0; /* Más padding arriba, menos abajo */
    margin-top: 40px;
    border-top: 5px solid #32CD32; /* Borde superior Verde Lima */
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
}

footer .footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

footer .footer-column h4 {
    color: #ffffff; /* Títulos en blanco */
    font-size: 1.15rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

footer .footer-column ul li a {
    color: #dee2e6; /* Enlaces en gris muy claro */
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer .footer-column ul li a:hover {
    color: #32CD32; /* Verde Lima al pasar el mouse */
    padding-left: 5px; /* Ligero movimiento a la derecha */
}

footer .footer-isologo {
    max-width: 120px; /* Isologo un poco más grande en footer */
    margin-bottom: 15px;
}

footer .footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333; /* Línea divisora */
    margin: 0 5%; /* Margen para el texto del copyright */
}

footer .footer-bottom p {
    margin: 8px 0;
    font-size: 0.9rem;
}

footer .footer-bottom a {
    color: #32CD32; /* Verde Lima para enlaces en el footer bottom */
}

.disclaimer {
    font-size: 0.75rem;
    color: #6c757d; /* Color más suave para el disclaimer */
    padding: 20px 5%;
    background-color: #e9ecef; /* Fondo gris muy claro para disclaimer */
    text-align: justify;
    margin-top: 0; /* Sin margen superior si es parte del footer */
    border-top: 1px solid #dee2e6;
}

/* Clases para animaciones al hacer scroll (ScrollReveal-like) */
.saf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s; /* Un pequeño retraso para escalonar si hay muchos */
}

.saf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    nav ul li {
        display: block;
        margin-right: 0;
        border-bottom: 1px solid #003366; /* Línea divisora para menú móvil */
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block; /* Ocupar todo el ancho */
    }

    .card {
        width: calc(50% - 40px); /* 2 tarjetas por fila */
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%; /* 1 tarjeta por fila */
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* --- MENÚ HAMBURGUESA --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    z-index: 1200;
    align-items: center;
}
.hamburger span {
    height: 4px;
    width: 28px;
    background: #001f3f;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
    display: block;
}

@media (max-width: 900px) {
    nav ul {
        position: fixed;
        top: 70px;
        right: -100vw;
        width: 80vw;
        min-width: 180px;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: center !important;
        justify-content: flex-start;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        padding: 30px 0 0 0;
        transition: right 0.35s cubic-bezier(.77,0,.18,1);
        z-index: 1100;
        text-align: center;
    }
    nav ul li {
        display: block;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #003366;
        text-align: center;
    }
    nav ul li a {
        display: block;
        width: 100%;
        padding: 16px 0;
        font-size: 1.15rem;
        text-align: center;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul.open {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .header-content {
        flex-wrap: wrap;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- NUEVAS SECCIONES --- */
.mision-vision .mv-valores {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.mision-vision .mv-item {
    background: #f3f6fa;
    border-radius: 10px;
    padding: 25px 18px;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 340px;
    box-shadow: 0 2px 8px rgba(0,31,63,0.04);
    text-align: center;
}
.mision-vision ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.mision-vision ul li {
    margin-bottom: 7px;
    color: #32CD32;
    font-weight: 600;
}

.servicios .icon-servicio {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 8px rgba(50,205,50,0.08));
}

.diferenciadores .bullets {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto 0 auto;
}
.diferenciadores .bullets li {
    background: url('../images/icon-academy.svg') no-repeat left center/28px 28px, #f3f6fa;
    border-radius: 8px;
    padding: 12px 18px 12px 44px;
    margin-bottom: 14px;
    font-size: 1.08rem;
    color: #001f3f;
    font-weight: 500;
}
.diferenciadores .bullets li:nth-child(2) { background-image: url('../images/icon-agency.svg'); }
.diferenciadores .bullets li:nth-child(3) { background-image: url('../images/icon-community.svg'); }
.diferenciadores .bullets li:nth-child(4) { background-image: none; background-color: #e6f7ff; }
.diferenciadores .bullets li:nth-child(5) { background-image: none; background-color: #e6f7ff; }

.pasos-container {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.paso {
    background: #f3f6fa;
    border-radius: 10px;
    padding: 18px 14px;
    min-width: 120px;
    max-width: 180px;
    flex: 1 1 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,31,63,0.04);
    margin-bottom: 10px;
}
.paso-num {
    display: inline-block;
    background: #32CD32;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.actores-futbol {
    background: #e6f7ff;
    border-radius: 10px;
    padding: 25px 18px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(100,150,255,0.06);
}

.testimonios-placeholder {
    background: #f3f6fa;
    border-radius: 10px;
    padding: 30px 18px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
    background: #f3f6fa;
    padding: 28px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,31,63,0.04);
}
.form-contacto input,
.form-contacto textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 12px 0;
    display: block;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}
.form-contacto textarea {
    min-height: 80px;
}
.form-contacto button {
    margin-top: 8px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .card-container {
        flex-wrap: wrap;
    }
    .card {
        width: calc(50% - 40px);
    }
}
@media (max-width: 900px) {
    .card {
        width: 100%;
        min-width: 0;
    }
    .mision-vision .mv-valores {
        flex-direction: column;
        gap: 18px;
    }
    .pasos-container {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 8px;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 22px;
    }
    .card {
        padding: 14px;
    }
    .mision-vision .mv-item,
    .actores-futbol,
    .testimonios-placeholder,
    .form-contacto {
        padding: 14px 6px;
    }
    .form-contacto, .contact-form, .section-title, .hero-content, .card-container, .pasos-container, .mv-valores {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .form-contacto input, .form-contacto textarea, .form-contacto select {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* --- AJUSTES PARA EL HEADER Y MENÚ EN MOBILE --- */
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    nav ul {
        width: 80vw;
        min-width: 180px;
        max-width: 320px;
        top: 60px;
        right: -100vw;
        height: calc(100vh - 60px);
    }
}

/* Separación entre los botones del hero */
.hero-buttons {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
}

/* Mejorar ancho y alineación del select con ícono para que coincida con los inputs */
.form-contacto .select-icon-wrapper {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.form-contacto .select-icon-wrapper select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 10px 10px 38px;
    margin: 0;
    display: block;
}
.form-contacto input,
.form-contacto textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 12px 0;
    display: block;
}
.form-contacto .select-icon {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 1em;
    line-height: 1;
    display: flex;
    align-items: center;
}
@media (max-width: 600px) {
    .form-contacto .select-icon-wrapper,
    .form-contacto .select-icon-wrapper select,
    .form-contacto input,
    .form-contacto textarea {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 0 12px 0;
        display: block;
    }
    .form-contacto .select-icon {
        left: 9px;
        font-size: 1.1em;
    }
    .form-contacto .select-icon-wrapper select {
        padding-left: 34px;
    }
} 