/* --- CONFIGURACIÓN BASE --- */
:root {
    --primary-red: #D90429;
    --primary-dark: #0b0b0b;
    --secondary-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --text-gray: #a0a0a0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    line-height: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 11, 0.98);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

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

.logo img {
    height: 60px;
    filter: invert(1) grayscale(1);
    mix-blend-mode: screen;
    display: block;
}

/* Navegación Desktop */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--primary-red); }

/* Hamburguesa (Oculto en Desktop) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.btn-cta {
    background: var(--primary-red);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
}
.btn-cta:hover { background: white; color: var(--primary-red); }

/* --- HERO SECTION --- */
/* IMPORTANTE: La ruta ../img sube un nivel para salir de css/ y entrar a img/ */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 { font-size: 5rem; margin-bottom: 20px; letter-spacing: 2px; }
.hero h1 span { color: var(--primary-red); }
.hero p { font-size: 1.2rem; color: #ddd; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btn { font-size: 1.2rem; padding: 15px 40px; }

/* --- OTRAS SECCIONES --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 3rem; margin-bottom: 20px; color: var(--primary-red); }
.about-img img { width: 100%; border-radius: 10px; filter: grayscale(100%); transition: 0.5s; }
.about-img img:hover { filter: grayscale(0%); }

.programs { background-color: var(--secondary-dark); }
.section-title { text-align: center; font-size: 3.5rem; margin-bottom: 60px; }
.section-title span { border-bottom: 3px solid var(--primary-red); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #222; padding: 40px 30px; border-top: 4px solid var(--primary-red); transition: transform 0.3s; }
.card:hover { transform: translateY(-10px); }
.card i { font-size: 3rem; color: var(--primary-red); margin-bottom: 20px; }
.card h3 { font-size: 2rem; margin-bottom: 15px; }
.card p { color: var(--text-gray); }

.promo { background: radial-gradient(circle, #2a0a0f 0%, #000000 100%); text-align: center; }
.promo-box { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 50px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); max-width: 700px; margin: 0 auto; }
.promo-box h2 { font-size: 4rem; margin-bottom: 10px; }
form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
input { padding: 15px; background: rgba(0,0,0,0.5); border: 1px solid #444; color: white; border-radius: 5px; font-family: 'Montserrat'; }
button[type="submit"] { padding: 15px; background: var(--primary-red); color: white; border: none; font-weight: bold; font-size: 1.2rem; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
button[type="submit"]:hover { background: white; color: var(--primary-red); }

.coaches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.coach-card { text-align: center; }
.coach-img { width: 100%; height: 350px; object-fit: cover; object-position: top; background-color: #333; margin-bottom: 20px; filter: grayscale(1); transition: 0.3s; border-radius: 5px; }
.coach-card:hover .coach-img { filter: grayscale(0); }
.coach-card h3 { color: var(--primary-red); font-size: 1.8rem; }
.coach-desc { font-style: italic; color: #888; font-size: 0.9rem; margin-top: 10px; }
.coach-card a{
    color: white;
    text-decoration: none;
    opacity: 1;

}

footer { background: #050505; padding: 50px 0; border-top: 1px solid #222; color: #777; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.5rem; }
.locations-list, .social-links { list-style: none; }
.locations-list li { margin-bottom: 10px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.social-links li a { color: #777; text-decoration: none; display: block; margin-bottom: 10px; }
.social-links li a:hover { color: var(--primary-red); }
.copyright { text-align: center; margin-top: 50px; opacity: 0.5; font-size: 0.8rem; }

/* --- RESPONSIVE DESIGN (MÓVIL) --- */
@media (max-width: 768px) {
    /* 1. Icono de Hamburguesa a la Derecha */
    .nav-container {
        justify-content: flex-end; /* Empuja el icono al final */
    }

    /* 2. Logo Centrado Absolutamente */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        /* Este truco centra el logo perfectamente en vertical y horizontal sin importar el tamaño */
        transform: translate(-50%, -50%);
        z-index: 2000;
        margin-top: 0; /* Eliminamos el margen manual antiguo */
    }

    .logo img {
        height: 80px;
        width: auto; /* Mantiene la proporción para no deformarlo */
    }

    /* 3. Mostrar Hamburguesa */
    .hamburger {
        display: block;
        z-index: 2000;
        padding: 10px;
    }

    /* 4. Menú Desplegable Pantalla Completa */
    .nav-menu {
        position: fixed;
        top: -100%; /* Oculto arriba */
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.98);
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrar items verticalmente */
        transition: 0.4s ease-in-out;
        z-index: 1500;
    }

    /* Clase active para bajar el menú */
    .nav-menu.active {
        top: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
    }

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

    /* Ajustes generales móvil */
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img { order: -1; }
    
    .section-title {
        font-size: 2.5rem; /* Bajamos de 3.5rem a 2.5rem para que "PROGRAMAS" no se corte */
        margin-bottom: 40px;
    }
    
    h2 {
        font-size: 2.2rem; /* Ajuste general de subtítulos */
    }

    /* 2. Caja del Formulario al 100% de ancho */
    .promo-box {
        width: 100%;        /* Ocupa todo el ancho */
        padding: 30px 15px; /* Reducimos el relleno interno (antes 50px) para ganar espacio */
        max-width: none;    /* Quitamos el límite de 700px */
        border-radius: 10px; /* Bordes un poco menos redondeados para aprovechar espacio */
    }
    
    .promo-box h2 {
        font-size: 3rem; /* Ajustamos también el título "ALPHA SQUAD" dentro de la caja */
    }
}
