/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Handlee&family=Nunito:wght@400;700&display=swap');

/* --- Variables de Color --- */
:root {
    --primary-color: #17a2b8;
    --secondary-color: #00394f;
    --text-color: #666666;
    --background-color: #f8f9fa; /* Lighter background */
    --white-color: #ffffff;
    --facebook-blue: #1877F2;
    --header-font: 'Handlee', cursive;
    --body-font: 'Nunito', sans-serif;
}

/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
}

p {
    text-align: justify;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: var(--header-font);
    color: var(--secondary-color);
    text-align: center;
}

/* --- Header y Navegación --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.logo {
    font-family: var(--header-font);
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s;
}

.nav-menu-link:hover,
.nav-menu-link.active {
    color: var(--primary-color);
}

.nav-toggle {
    font-size: 24px;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}


/* --- Hero Section (Frontis) --- */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/FRONTIS\ BTH\ 2.png');
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    text-align: center;
}

/* --- Secciones Generales --- */
.welcome-section, .page-section, .page-section-gallery {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 3rem;
}

.welcome-section h2, .page-section h2, .page-section-gallery h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

/* --- Especialidades (Página Inicio) --- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.specialty-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.specialty-card img {
    margin-bottom: 1rem;
    border-radius: 0;
}

.specialty-card h3 {
    font-size: 1.5rem;
}

.full-width-card {
    grid-column: 1 / -1; 
    justify-self: center;
    width: 320px;
    max-width: 100%;
}


/* --- Página "Acerca de" --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-section:nth-child(even) {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.about-image {
    flex: 1;
    max-width: 450px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Página "Clases" --- */
.specialty-section {
    margin-bottom: 4rem;
}
.specialty-section h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card-grid-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.card-content p {
    text-align: left;
}

/* --- Página "Docentes" --- */
.team-section {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-img-egg {
    width: 100%;
    max-width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 100% / 100% 100% 100% 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.team-card-content h3 {
    font-size: 1.4rem;
}

.team-card-content .title {
    color: var(--primary-color);
    font-style: italic;
    text-align: center;
}

/* --- Página "Galería" --- */
.page-section-gallery {
    padding: 2rem 1rem;
}

.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h3 {
     font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Página "Contactos" --- */
.contact-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}
.contact-intro p {
    text-align: center;
    font-size: 1.1rem;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-card {
    background-color: var(--white-color);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}


/* --- Footer (NUEVO DISEÑO ELEGANTE) --- */
.footer {
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden; /* Oculta el desbordamiento de la animación */
    border-top: 1px solid var(--primary-color); /* Línea superior más delgada */
    background: var(--secondary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 400%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 162, 184, 0.15), transparent);
    transform: skewX(-25deg);
    animation: shimmer 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la animación */
}

.footer-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* Espacio más compacto */
    margin-bottom: 2rem;
}

.footer-contact-info span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-contact-info span:hover {
    color: var(--primary-color);
}

.footer-contact-info i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}


/* --- Botones Flotantes --- */
.floating-buttons-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-float, .facebook-float {
    width: 60px;
    height: 60px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float {
    background-color: #25d366;
}

.facebook-float {
    background-color: var(--facebook-blue);
}

.whatsapp-float:hover, .facebook-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
}


/* --- Responsividad --- */
@media (max-width: 992px) {
    .card-grid-classes, .team-grid, .contact-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        background-color: var(--white-color);
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
        left: -100%;
        transition: left 0.3s;
    }

    .nav-menu.visible {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }

    .about-section, .about-section:nth-child(even) {
        flex-direction: column;
    }

    .card-grid-classes, .team-grid, .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .team-img-egg {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}






.card-content p {
    text-align: justify;
    /* Opcional: añade un pequeño margen inferior */
    margin-bottom: 10px;
    /* Opcional: controla el interlineado */
    line-height: 1.5;
}
