/* Reset básico para asegurar consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    --scrollbar-width: 0px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Fondo principal */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../Imagenes/main page art3.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Secciones generales */
.section {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    min-height: 100vh;
}
.section.visible {
    opacity: 1;
}

/* Texto animado */
.text-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.text-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Encabezado */
header {
    background: #e65319;
    color: #d7e6df;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 100000;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

/* Contenedor del header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 2200px;
    width: 100%;
    padding: 0 20px;
}

/* Botón de Instagram */
.instagram-btn {
    background-color: #0c0c0c;
    color: #fff;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.instagram-btn i {
    margin-right: 1px;
}

/* Navegación */
nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin: 0 50px;
    display: inline;
}
nav ul li a {
    color: #0d0c0c;
    text-decoration: none;
    font-size: 1.4em;
    font-family: Impact, sans-serif;
}
nav ul li a:hover {
    text-decoration: underline;
}

/* Logo */
.logo-link {
    position: relative;
    display: inline-block;
}
.logo {
    width: 60px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}
.logo-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: #080808;
    position: absolute;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.logo-link:hover::after {
    transform: scaleX(1);
}

/* Sección principal (Home) */
.main {
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.main h2 {
    margin-bottom: 20px;
    font-size: 8em;
    color: #f7f6f6;
}
.main p {
    margin-bottom: 20px;
    font-size: 3em;
    line-height: 1.8;
    color: #e6531e;
}


/* Soccer */
.Soccer {
    background-image: url("../Imagenes/Soccer.jpg");
    background-color: #f7f7f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    text-align: center;
}

.Soccer h2 {
    font-size: 2em;
    color: #e6531e;
    margin-bottom: 20px;
}

.Soccer .service p {
    font-size: 1.1em;
    color: #f9f7f6;
}

.soccer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.course-info {
    flex: 1;
    max-width: 400px;
    padding: 1rem;
    background: #070707;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Carrusel */
.image-slider {
    flex: 1;
    max-width: 550px;
    height: 550px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botones del carrusel */
button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #e6531e;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
}
button.prev { left: 0; }
button.next { right: 0; }
button.prev:hover,
button.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Tutoring */
.Tutoring {
    background-image: url("../Imagenes/.jpg"); /* ✅ restaurado */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #eee;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.Tutoring h2 {
    font-size: 13em;
    color: #e6531e;
    text-align: center;
    margin-bottom: 20px;
}

.course-info-t {
    flex: 1;
    max-width: 700px;
    padding: 1rem;
    background: #070707;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-info-t h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.course-info-t p {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Botón general Apply */
.apply-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #e6531e;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.apply-button:hover {
    background-color: #d14919;
}

/* Basketball */
.Basketball {
    background-image: url("../Imagenes/Basketball.jpg");
    background-color: #f7f7f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    text-align: center;
}
.Basketball h2 {
    font-size: 15em;
    color: #e6531e;
    margin-bottom: 20px;
}
.Basketball p {
    margin-bottom: 20px;
    font-size: 10em;
    color: #e6531e;
}

/* Fitness */
.Fitness {
    background-image: url("../Imagenes/Fitness.jpg");
    background-color: #f7f7f7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    text-align: center;
}
.Fitness h2 {
    font-size: 15em;
    color: #e6531e;
}
.Fitness p {
    margin-bottom: 20px;
    font-size: 10em;
    color: #e6531e;
}

/* ✅ Adaptación SOLO para móvil */
@media (max-width: 768px) {
    .soccer-container {
        flex-direction: column;
    }

    .image-slider {
        max-width: 90%;
        height: auto;
    }

    .course-info {
        max-width: 90%;
    }

    .Tutoring h2 {
        font-size: 3em;
    }

    .Basketball h2,
    .Fitness h2 {
        font-size: 5em;
    }

    .Basketball p,
    .Fitness p {
        font-size: 2em;
    }
}


/* ===========================
   ABOUT US
=========================== */
.about-us {
    background-image: url("../Imagenes/S1.jpg");
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
}

.about-us h2 {
    font-size: 3em;
    color: #e6531e;
    margin-bottom: 20px;
}

.about-us p {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #fafafa;
    line-height: 1.6;
}

.about-us-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
}


/* ===========================
   CONTACT
=========================== */
.Contact {
    background-image: url("../Imagenes/S4.1.jpg");
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.contact-item {
    text-align: center;
    background-color: rgba(6, 6, 6, 0.85);
    padding: 60px;
    border-radius: 10px;
    width: 28%;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(12, 12, 12, 0.9);
}

.contact-item i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #e6531e;
}

.contact-item p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #ffffff;
}


/* ===========================
   FOOTER
=========================== */
footer {
    background: #121212;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 4px solid #e6531e;
}
footer p {
    margin: 0;
    font-size: 1em;
    background: #e6531e;
    padding: 10px 0;
}


/* ===========================
   ALINEACIONES
=========================== */
.align-right { text-align: right; }
.center { text-align: center; }
.align-left { text-align: left; }


/* ===========================
   ANIMACIONES
=========================== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.slide-in {
    transform: translateY(50px);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}
.section.slide-in.visible {
    transform: translateY(0);
    opacity: 1;
}

.text-animate {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.text-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================
   FORMULARIO
=========================== */
.application-form {
    background: #040404;
    padding: 20px 40px;
    margin: 40px auto;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f6f6f6;
}

.application-form h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    color: #e6531e;
    font-weight: bold;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.form-group {
    flex: 1;
    min-width: 300px;
    margin: 10px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #e6531e;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

/* ===========================
   RESPONSIVE (solo móvil)
=========================== */
@media (max-width: 768px) {
    .about-us-container {
        flex-direction: column;
        align-items: center;
    }

    .about-us h2 {
        font-size: 2em;
    }

    .about-us p {
        font-size: 1em;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 90%;
        padding: 40px;
    }

    .application-form {
        padding: 15px 20px;
    }

    .form-group {
        min-width: 100%;
    }
}


/* ===========================
   BOTÓN DE ENVÍO
=========================== */
button[type="submit"] {
    padding: 10px 25px;
    background: #e6531e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #d1431a;
    transform: scale(1.05);
}


/* ===========================
   SECCIÓN APPLY (GENERAL)
=========================== */
.apply {
    padding: 60px 20px;
    text-align: center;
    background-color: #0a0a0a;
}

.apply h2 {
    font-size: 2.5em;
    color: #e6531e;
    text-align: center;
    margin-bottom: 25px;
}


/* ===========================
   BOTÓN APPLY
=========================== */
.apply-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #e6531e;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply-button:hover {
    background-color: #d14919;
    transform: scale(1.05);
}


/* ===========================
   APPLY - SOCCER
=========================== */
.apply.section {
    background-image: url("../Imagenes/Soccer.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
}


/* ===========================
   APPLY - TUTORING
=========================== */
.apply.section-t {
    background-image: url("../Imagenes/Tutoring.jpg"); /* ✅ Corregido */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
}


/* ===========================
   FORMULARIO DENTRO DE APPLY
=========================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e6531e;
    outline: none;
}

/* Ajuste general de botón */
button[type="submit"] {
    margin-top: 20px;
    padding: 12px 28px;
    background-color: #e6531e;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #d14919;
    transform: scale(1.05);
}


/* ===========================
   FOOTER
=========================== */
footer {
    background: #121212;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    font-size: 1em;
    letter-spacing: 0.5px;
    border-top: 4px solid #e6531e;
}

footer p {
    margin: 0;
    background: #e6531e;
    padding: 5px;
    border-radius: 4px;
}


/* ===========================
   RESPONSIVE (solo móvil)
=========================== */
@media (max-width: 768px) {
    .apply h2 {
        font-size: 2em;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    button[type="submit"] {
        width: 90%;
    }

    .apply-button {
        width: auto;
        font-size: 1em;
    }
}


/* Contact section */
.contact-container {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    background-color: #060606;
    opacity: 0.9;
    padding: 60px 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #d4736f;
}

.contact-item i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #e6531e;
}

.contact-item p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #ffffff;
}

/* About Us */
.about-us {
    background-color: #0a0a0a;
    padding: 60px 20px;
    text-align: center;
    background-image: url("../Imagenes/S1.jpg"); /* ✅ Corregido: faltaban los dos puntos de ../ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-us h2 {
    font-size: 2.5em;
    color: #e6531e;
    margin-bottom: 20px;
}

.about-us p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #f4f4f4;
}

.about-us-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

/* Bloques de texto */
.course-info-about {
    flex: 1 1 320px;
    max-width: 380px;
    padding: 25px;
    background: rgba(10, 10, 10, 0.85);
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    text-align: left;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sutil efecto al pasar el mouse */
.course-info-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Imagen estática (About Us) centrada */
.image-slider-about {
    flex: 1 1 600px;
    max-width: 600px;
    height: 450px; /* ✅ mantiene proporción en desktop */
    display: flex;
    justify-content: center;  /* ✅ centra horizontalmente */
    align-items: center;      /* ✅ centra verticalmente */
    border-radius: 10px;
    overflow: hidden;
    background: none; /* ✅ elimina fondo negro */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-slider-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ✅ rellena sin distorsionar */
    display: block;
    border-radius: 10px;
}


/* Animación suave al pasar el cursor sobre la imagen */
.image-slider-about img:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Adaptación responsive */
@media (max-width: 768px) {
    .course-info-about {
        max-width: 100%;
        text-align: center;
    }

    .image-slider-about {
        max-width: 100%;
        height: auto;
    }

    .image-slider-about img {
        height: auto;
        border-radius: 10px;
    }
    
}
