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/Html/Fondo\ Danza\ Clasica.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 */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
}

.gallery-item.large {
    grid-column: span 2; /* ocupa dos columnas */
    width: 100%;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

/* Hover elegante y sutil */
.gallery-item:hover img {
    transform: scale(1.05); /* zoom ligero */
    filter: brightness(1.08); /* brillo suave */
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2); /* halo dorado muy sutil */
}

/* 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));
    }
}


/* SECCIÓN INSTRUCTORA */

.instructor-section {
  background-color: #0c0c0c; /* Fondo negro de tu web */
  padding: 60px 20px;
  font-family: 'Playfair Display', serif;
  color: #e0e0e0;
}

.instructor-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  border-radius: 12px;
  padding: 40px;
  background: rgba(20, 20, 20, 0.85); /* Ligeramente translúcido sobre negro */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7); /* sombra elegante y profunda */
}

.instructor-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c5a059; /* dorado elegante */
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
  transition: transform 0.3s ease;
}

.instructor-photo img:hover {
  transform: scale(1.05);
}

.instructor-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #c5a059; /* dorado elegante */
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.instructor-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc; /* texto suave sobre negro */
}

.instructor-info p strong {
  color: #e0c16a; /* acento dorado más claro */
}

@media (max-width: 768px) {
  .instructor-container {
    flex-direction: column;
    text-align: center;
  }
  
  .instructor-photo img {
    width: 220px;
    height: 220px;
    margin-bottom: 25px;
  }
}


/*Video*/

.video-section {
    position: relative;
    padding: 100px 10%;
    text-align: center;
    color: white;
    background: #000;
    overflow: hidden;
}

/* Mantener contenido encima */
.video-wrapper {
    position: relative;
    z-index: 2;
}

.video-section h2 {
    color: #c5a059;
    font-size: clamp(1.8rem, 5vw, 36px);
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.video-container video {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}



/* RESPONSIVE */

@media (max-width: 900px) {
    .instructora-container {
        flex-direction: column;
        text-align: center;
    }

    .instructora-img img {
        max-width: 300px;
    }
}


/* ===== 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: center;
        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;
    }
}

/* MÓVIL */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
         padding: 8px 15px;   /* menos alto */
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.infantil{
    text-align: center;
    background-color: #c5a059;
    color: #000;
}

.benefits-description {
    padding: 120px 20px;
    background: linear-gradient(to bottom, #0a0a0a, #111);
}

.container-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #ccc;
    line-height: 1.9;
    font-size: 18px;
}

.benefits-title {
    color: #c5a059;
    font-size: 32px;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.intro {
    font-size: 22px;
    color: #fff;
    margin-bottom: 40px;
}

.intro span {
    color: #c5a059;
    font-weight: 500;
}

.container-text p {
    margin-bottom: 30px;
}

/*Galería de fotos*/

.galeria{
    background: black;
    padding: 60px 8%;
}

.galeria h2{
    text-align: center;
    color: #c7a75b;
    font-size: 40px;
    margin-bottom: 40px;
}

.grid-galeria{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.grid-galeria img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.4s ease;
}

.grid-galeria img:hover{
    transform: scale(1.05);
}

/* imagen grande como la primera */
.grande{
    grid-column: span 2;
    grid-row: span 2;
}


/*Tablet*/
@media (max-width: 900px){

    .grid-galeria{
        grid-template-columns: repeat(2, 1fr);
    }

    .grande{
        grid-column: span 2;
        grid-row: span 1;
    }

}

/*Movil*/
@media (max-width: 500px){

    .grid-galeria{
        grid-template-columns: 1fr;
    }

    .grande{
        grid-column: span 1;
        grid-row: span 1;
    }

}