/* Estilos específicos para la página de profesores */

.teachers-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2000') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    margin-top: 0;
}

.teachers-section {
    padding: 2.5rem 2rem; /* reduced and matched to founder-section for centered divider */
    background-color: var(--light-gray);
}

.teachers-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 1.5rem; /* espacio superior para separar del divisor */
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.teacher-photo {
    height: 250px;
    width: 100%; /* Asegura el ancho total */
    overflow: hidden;
    display: flex; /* Nuevo: ayuda al centrado */
    align-items: center; 
    justify-content: center;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esto evita que la imagen se estire */
    object-position: center; /* Centra la cara de la persona */
    transition: transform 0.3s;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 2rem;
}

.teacher-name {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.teacher-title {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.teacher-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.teacher-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teachers-hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .teachers-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .teacher-photo {
        height: 200px;
    }
    
    .teacher-info {
        padding: 1.5rem;
    }
}

/* Founder card: horizontal layout to match design */
.founder-card {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.founder-card .teacher-photo {
    width: 45%;
    height: auto;
    min-height: 320px;
}

.founder-card .teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-card .teacher-info {
    width: 55%;
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.founder-heading .founder-title-highlight {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.8rem;
}

.founder-heading .founder-title-rest {
    color: var(--dark-gray);
    font-size: 1.6rem;
    font-weight: 700;
}

.founder-subheading {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
    }

    .founder-card .teacher-photo {
        width: 100%;
        min-height: 220px;
    }

    .founder-card .teacher-info {
        width: 100%;
        padding: 1.5rem;
    }
}

/* Founder section spacing and centered white container */
.founder-section {
    padding: 2.5rem 0; /* match teachers-section padding to center divider */
    background-color: var(--light-gray);
}

.founder-box {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 1.25rem; /* slightly smaller padding */
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem; /* espacio inferior para separar del divisor */
}

/* Ensure founder-card inside founder-box stretches full width */
.founder-box .founder-card {
    box-shadow: none; /* box-shadow handled by founder-box */
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .founder-box {
        padding: 1rem;
    }
}

/* Thin green divider between founder and teachers sections */
.section-divider {
    max-width: 1100px;
    height: 4px;
    background-color: var(--primary-red);
    margin: -0.75rem auto 0; /* pull the divider upward without moving other elements */
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-divider {
        margin: -0.5rem auto 0;
        height: 3px;
    }
}
