﻿/* ==========================
   DOCENTES / NUESTRO EQUIPO
========================== */

.p-docentes {
    background: linear-gradient(to bottom, #d6cfbb, #eae7dd);
    color: #322203;
    font-family: 'Cinzel', serif;
}

/* =========================================================
   BLOQUE PRINCIPAL (versión elegante reutilizada)
========================================================= */

.bloque-consulta.bloque-elegante {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    max-width: 950px;
    margin: 3rem auto 2rem;
    text-align: center;
    overflow: visible !important; /* evita recorte en hover */
}

/* ===== TEXTO INTRODUCTORIO ===== */
.intro-equipo {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #3a2b15;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ===== DOCENTES EN FILA ===== */
.docentes-lista-horizontal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-bottom: 30px;
}

    .docentes-lista-horizontal::-webkit-scrollbar {
        height: 8px;
    }

    .docentes-lista-horizontal::-webkit-scrollbar-thumb {
        background-color: rgba(120, 90, 50, 0.4);
        border-radius: 10px;
    }

/* ===== TARJETAS DOCENTES ===== */
.docente-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .docente-card:hover {
        transform: scale(1.05);
    }

/* ===== CÍRCULOS CON INICIALES ===== */
.docente-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8f5ed 0%, #efe8d7 100%); /* 🎨 nuevo color */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c5a86f; /* borde dorado sutil */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    will-change: transform;
    overflow: visible;
}

    .docente-foto:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        z-index: 2;
    }

.docente-inicial span {
    font-family: 'Lora', serif; /* ✅ tipografía más elegante */
    font-weight: 400;
    font-size: 2.1rem;
    color: #322203;
    letter-spacing: 1px;
}

/* ===== NOMBRE Y PUESTO ===== */
.docente-nombre {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #322203;
    margin-bottom: 5px;
}

.docente-puesto {
    font-family: 'Lora', serif;
    color: #6b5433;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== MODALES DOCENTES ===== */
.modal-docente {
    background: linear-gradient(180deg, #f8f5ed 0%, #efe8d7 100%);
    border: 1px solid #c5a86f;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(197, 168, 111, 0.3);
    padding: 10px 15px;
}

    .modal-docente .modal-header {
        border-bottom: 1px solid rgba(197, 168, 111, 0.5);
        text-align: center;
        justify-content: center;
        position: relative;
    }

    .modal-docente .modal-title {
        font-family: 'Cinzel', serif;
        font-size: 1.6rem;
        color: #322203;
        font-weight: 600;
    }

    .modal-docente .btn-close {
        position: absolute;
        right: 15px;
        top: 15px;
        background: transparent;
        opacity: 0.6;
        filter: invert(20%) sepia(40%) saturate(300%) hue-rotate(20deg);
        transition: all 0.2s ease-in-out;
    }

        .modal-docente .btn-close:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

    .modal-docente .modal-body {
        font-family: 'Lora', serif;
        font-size: 1.05rem;
        color: #333;
        line-height: 1.7;
        text-align: justify;
        padding: 25px 30px;
    }

/* ==========================
   RESPONSIVE (mejorado)
========================== */

/* Tablets */
@media (max-width: 992px) {
    .bloque-consulta.bloque-elegante {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .docentes-lista-horizontal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .bloque-consulta.bloque-elegante {
        padding: 1.5rem 1rem;
        max-width: 90%;
        margin: 2rem auto;
    }

    .docentes-lista-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .docente-foto {
        width: 130px;
        height: 130px;
    }

    .docente-nombre {
        font-size: 1.2rem;
    }

    .modal-docente .modal-body {
        padding: 20px;
        font-size: 0.95rem;
    }

    .modal-docente .modal-title {
        font-size: 1.3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .titulo-seccion {
        font-size: clamp(1.6rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .bloque-consulta.bloque-elegante {
        padding: 1.2rem 0.8rem;
        margin: 2rem auto;
    }

    .docente-foto {
        width: 120px;
        height: 120px;
    }

    .docente-inicial span {
        font-size: 1.6rem;
    }

    .docente-nombre {
        font-size: 1rem;
    }

    .docente-puesto {
        font-size: 0.9rem;
    }

    .modal-docente .modal-body {
        padding: 15px;
        font-size: 0.9rem;
    }
}


/* ===== BOTÓN DE CIERRE FLOTANTE MEJORADO ===== */
.close-floating {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #322203;
    font-size: 2.4rem; /* tamaño grande visible */
    font-weight: 400;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0.9;
}

    .close-floating span {
        display: block;
        font-family: 'Cinzel', serif;
        line-height: 1;
    }

/* Versión móvil (ligeramente más grande) */
@media (max-width: 768px) {
    .close-floating {
        top: 8px;
        right: 12px;
        font-size: 3rem; /* aún más grande en móvil */
        opacity: 1;
    }
}

