.infantil{
    text-align: center;
    background-color: #c5a059;
    color: #000;
}

html {
    font-size: clamp(14px, 1vw, 18px);
}


* {
    box-sizing: border-box;
}


body {
    background-color: #000000;
    /* negro */
    color: white;
    /* para que el texto se vea sobre fondo negro */
    margin: 0;
    /* elimina márgenes predeterminados para que ocupe toda la pantalla */
}


/* ===== NAVBAR ===== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.logo {
    font-size: 18px;
    letter-spacing: 3px;
    color: #ffffff;

}

.gold {
    color: #c5a059;
}

.nav-links a {
    color: rgb(255, 232, 232);
    margin-left: 25px;
    text-decoration: none;
    font-size: 14px;

}

.nav-links a:hover {
    color: var(--oro-suave);

}

/* ===== HERO PILATES ===== */
.hero-pilates {
    background: url('../Imagenes/Todos\ juntos\ logo.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    min-height: 70vh;
    padding: 100px 20px 60px;

}

.hero-pilates::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    color: #c5a059;
    font-style: italic;
    margin-bottom: 20px;
}

.hero-content p {
    color: #eee;
    font-size: clamp(0.95rem, 3vw, 1.2rem);
}

/* ===== BENEFICIOS ===== */
.pilates-benefits {
    margin: 60px auto;
    max-width: 1100px;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    color: #c5a059;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: #111;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    padding: 35px 20px;
    color: #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Icono dorado */
.benefit-card i {
    font-size: 30px;
    color: #c5a059;
    margin-bottom: 15px;
    display: block;
    transition: 0.4s ease;
}

/* Título */
.benefit-card h4 {
    color: #c5a059;
    margin-bottom: 12px;
}

/* Efecto brillo suave */
.benefit-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(197, 160, 89, 0.2),
            transparent 70%);
    transform: rotate(25deg);
    transition: 0.6s;
}

/* Hover elegante */
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.3);

}

.benefit-card:hover::before {
    top: 100%;
    left: 100%;
}

/*Galeria de fotos*/

.gallery {
    padding: 80px 10%;
    background-color: #000000;
    color: #fff;
    text-align: center;
}


.gallery h2 {
    font-size: clamp(1.8rem, 5vw, 36px);
    color: #c5a059;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Grid responsive con fotos grandes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

/* Cada foto */
/* GALERÍA */
.gallery h2 {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.4s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-item img {
        height: 250px;
    }
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* VIDEO */
.video-section {
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    display: block;
}

/* ========================= */
/*        TEAM PREMIUM       */
/* ========================= */

.team-section {
    padding: 100px 8%;
    background: #000000;
}

.team-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    letter-spacing: 1px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background: #161616;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Imagen */
.team-img {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Overlay elegante */
.team-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

/* Zoom suave */
.team-card:hover .team-img img {
    transform: scale(1.08);
}

/* Info */
.team-info {
    padding: 30px;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.team-info span {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #c5a059;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.team-info p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
}

/* Responsive ajuste */
@media (max-width: 768px) {
    .team-img {
        height: 280px;
    }
}

/* ===== SECCIÓN HISTORIA PREMIUM ===== */

.historia-esmac {
    background: #0e0e0e;
    padding: 120px 20px;
    color: #f5f5f5;
}

.historia-container {
    max-width: 1200px;
    margin: auto;
}

/* TÍTULO CENTRAL */

.titulo-central {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.titulo-central h2 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #c5a059;
}

.linea {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}

/* INTRO */

.texto-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
    font-size: 18px;
    color: #ccc;
    line-height: 1.8;
}

/* ===== SECCIÓN EDITORIAL QUIÉNES SOMOS ===== */

.quienes-texto {
    background-color: #0f0f0f;
    padding: 120px 20px;
    color: #eaeaea;
}

.quienes-contenedor {
    max-width: 900px;
    margin: auto;
}

.titulo-editorial {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #c5a059;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.linea-decorativa {
    width: 80px;
    height: 2px;
    background-color: #c5a059;
    margin: 0 auto 60px auto;
}

.quienes-texto p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 30px;
    color: #cfcfcf;
    text-align: justify;
}

.quienes-texto p.cierre {
    margin-top: 50px;
    font-weight: 500;
    color: #ffffff;
}

/* VALORES */

.valores-elegantes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 90px 0 70px 0;
}

.valor-item {
    background: transparent;
    border: 1px solid #c5a059;
    padding: 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.valor-item:hover {
    background: #c5a059;
    color: #111;
}

/* FRASE FINAL */

.frase-cierre {
    text-align: center;
    font-size: 20px;
    color: #ccc;
    line-height: 1.8;
}

.frase-cierre span {
    display: block;
    margin-top: 10px;
    color: #c5a059;
    font-weight: 500;
}



/* Contenido */
.timeline-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    width: 40%;
    text-align: left;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #c5a059;
}

.timeline-content p {
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 40px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-year {
        margin-bottom: 15px;
    }

    .timeline-content {
        width: 100%;
    }
}

/* ===== SECCIÓN FORMACIÓN SEPARADA ===== */

.formacion-esmac {
    background-color: #0b0b0b;
    padding: 120px 20px;
    color: #eee;
}

.formacion-container {
    max-width: 1200px;
    margin: auto;
}

.titulo-formacion {
    text-align: center;
    font-size: 44px;
    color: #c5a059;
    margin-bottom: 20px;
}

.descripcion-formacion {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 100px auto;
    color: #cfcfcf;
    line-height: 1.8;
}

/* BLOQUE PERSONA */

.bloque-persona {
    margin-bottom: 120px;
}

.nombre-persona {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 50px;
    padding-left: 10px;
    border-left: 4px solid #c5a059;
}

/* GRID CARDS */

.cards-formacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* TARJETAS */

.card-formacion {
    background-color: #111;
    padding: 35px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: 0.4s ease;
}

.card-formacion:hover {
    transform: translateY(-8px);
    border-color: #c5a059;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-formacion h4 {
    color: #c5a059;
    margin-bottom: 20px;
    font-size: 18px;
}

.card-formacion ul {
    list-style: none;
    padding: 0;
}

.card-formacion ul li {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
    color: #ddd;
    font-size: 14px;
}

.card-formacion ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c5a059;
}

/* ===== SEPARADOR DORADO ELEGANTE ===== */

.separador-dorado {
    width: 120px;
    height: 1px;
    margin: 80px auto;
    background: linear-gradient(to right,
            transparent,
            #d4af37,
            transparent);
    opacity: 0.8;
}

/* ===== AUTORIDAD ===== */
.authority {
    background: #111;
    padding: 50px 20px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: #eee;
    font-family: 'Arial', sans-serif;
}

.authority-container h2 {
    font-size: 1.8rem;
    color: #c5a059;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    justify-items: center;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.stat p {
    font-size: 1rem;
    color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 10px;
    }
}

/*Contacto abajo del todo*/
footer {
    background: #000;
    padding: 40px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* ===== Dropdown Disciplinas ===== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    padding: 10px 0;
    display: inline-block;
}

/* Menú desplegable */
.dropdown-content {
    position: absolute;
    top: 100%;
    /* pegado justo debajo */
    right: 0;
    background-color: #111;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

/* Mostrar al hacer hover */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enlaces */
.dropdown-content a {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #c5a46d;
    color: black;
}

/*Moviles*/

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .navbar nav {
        display: flex;
        flex-direction: row;
        /* cambia columna a fila */
        justify-content: space-around;
        /* para distribuirlos con espacio */
        width: 100%;
        gap: 10px;
    }

    .navbar nav a,
    .dropbtn {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
        white-space: nowrap;
    }

    /* Dropdown oculto por defecto */
    .dropdown-content {
        display: none;
        position: static;
        background-color: #111;
        border-radius: 8px;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Cuando tenga clase show, se muestra */
    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 15px;
        font-size: 15px;
        border-bottom: 1px solid #333;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }
}

/*Logo centrado movil*/
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}