/* ===========================================
   1. ESTILOS GLOBALES Y RESET
   =========================================== */
body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc; 
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 10px 0; }

/* ===========================================
   2. CABECERA (HEADER)
   =========================================== */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px; 
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-img { height: 60px; width: auto; display: block; }

/* ===========================================
   3. SECCIÓN BIENVENIDA Y ROLES
   =========================================== */
.welcome-banner {
    background-color: #f3c7fd; /* LILA ORIGINAL */
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-banner h1 {
    font-size: 30px;
    color: #000000; 
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: lighter;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.role-button {
    padding: 10px 15px;
    border: 2px solid #ffffff; 
    background-color: #f3c7fd;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.role-button:hover { background-color: #ffffff; color: black; }

.motto { margin-top: 10px; padding: 10px 0; text-align: center; }
.motto h2 { font-size: 1.2rem; color: #555; font-weight: normal; }

/* ===========================================
   4. SECCIONES DE CONTENIDO
   =========================================== */
.content-sections-container {
    padding: 0 10px; 
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    color: white; 
    padding: 30px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); 
    text-align: center;
}

.programs-section { background-color: #321428e6; } 
.facilities-section { background-color: #503246e6; } 

.action-button {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px; 
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-transform: uppercase;
    border: 3px solid #fdbcdd;
    background-color: #fdbcdd; /* ROSA ORIGINAL */
    color: black;
}

.action-button:hover { background-color: #ffffff; color: black; }

/* ===========================================
   5. SECCIÓN CLASES
   =========================================== */
.classes-section { padding: 40px 30px; background-color: #ffffff; text-align: center; }
.classes-title { color: #e91e63; font-size: 2.2rem; margin-bottom: 40px; text-transform: uppercase; font-weight: bold; }

.classes-container-final {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.class-card-final {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    border-top: 6px solid #e91e63;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    flex: 1 1 270px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.class-icon-circle {
    background: #fff0f5;
    color: #e91e63;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================================
   6. REGLAMENTO Y FAQ
   =========================================== */
.rules-section { padding: 40px 20px; text-align: center; margin: 20px 0; }
.rules-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 30px auto; }

.rule-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #e91e63;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.rule-card i { font-size: 2rem; color: #e91e63; margin-bottom: 20px; }

/* FAQ ESTILOS */
.faq-section { max-width: 800px; margin: 0 auto; padding: 20px; }
.faq-item { background: #fff; margin-bottom: 10px; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.faq-question { width: 100%; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background: #fff; border: none; font-weight: bold; cursor: pointer; font-size: 16px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fafafa; }
.faq-content { padding: 20px; line-height: 1.6; color: #444; }

.faq-item.active .faq-answer { max-height: 1000px; }
.faq-item.active i { transform: rotate(180deg); transition: transform 0.3s; }

/* ===========================================
   7. EQUIPO
   =========================================== */
.team-section {
    padding-top: 0px;
    background-color: #fcfcfc; /* Igual al fondo de tu body */
    text-align: center;
    margin-bottom: 10%;
    margin-top: 0%;
}

/* Título principal al estilo de tus clases */
.team-title-final {
    color: #e91e63; /* Tu rosa característico */
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 0px;
}

/* Subtítulo suave */
.team-subtitle-final {
    font-size: 1.2rem;
    color: #777;
    font-weight: normal;
    margin-bottom: 15px;
    margin-top: 0px;
}

/* Contenedor de nombres con fondo lila suave opcional o texto rosa */
.team-names-container {
    margin-bottom: 10px;
}

.team-names-container p {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Cuadrícula de fotos compacta */
.team-photos-grid {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio más fino */
    flex-wrap: wrap;
    max-width: 2000px;
    margin: 0 auto;
}

/* Contenedor de foto con borde rosa sutil */
.photo-wrapper {
    width: 200px;  /* Tamaño más equilibrado */
    height: 210px;
    overflow: hidden;
    border-radius: 12px;
    border-bottom: 4px solid #f3c7fd; /* Detalle lila de tu banner */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Efectos Hover */
.photo-wrapper:hover {
    transform: scale(1.05);
    border-bottom: 4px solid #e91e63; /* Cambia a rosa al pasar mouse */
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.2);
}

.photo-wrapper:hover img {
    transform: scale(1.1); /* Efecto zoom suave */
}

/* ===========================================
   8. RESPONSIVIDAD
   =========================================== */
@media (max-width: 600px) {
    .role-buttons { flex-direction: column; align-items: center; }
    .role-button { width: 100%; }
    .class-card-final { max-width: 100%; }
}