/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --azul: #1a2a40;
    --dorado: #d4af37;
    --blanco-hueso: #fdfdfd;
    --blanco: #ffffff;
    --texto: #333333;
    --fondo-gris: #f8f9fa;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--texto); line-height: 1.6; background: var(--blanco); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
header { 
    background: var(--blanco-hueso); 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
    border-bottom: 3px solid var(--dorado);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 65px; width: auto; transition: 0.3s; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { 
    color: var(--azul); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 600; 
    transition: 0.3s; 
}
.nav-links a:hover { color: var(--dorado); }

.btn-portal { 
    background: var(--azul); 
    color: var(--dorado) !important; 
    padding: 10px 20px; 
    border-radius: 6px; 
    font-weight: 600; 
}

/* DROPDOWN MENU - FUNCIONALIDAD POR CLIC */
.dropdown { position: relative; display: inline-block; }
.dropbtn { cursor: pointer; }
.dropdown-content {
    display: none; 
    position: absolute;
    background-color: var(--blanco-hueso);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 4px;
    border-top: 3px solid var(--dorado);
    margin-top: 10px;
}
.dropdown-content.show { display: block; }
.dropdown-content a {
    color: var(--azul) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--dorado) !important;
    padding-left: 20px;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero { 
    background: linear-gradient(rgba(26,42,64,0.85), rgba(26,42,64,0.7)), url('../img/fondo_montana.jpg') center/cover no-repeat;
    padding: 100px 0; 
    color: var(--blanco);
    text-align: left;
}
.hero-content { max-width: 700px; }
.badge-promo { background: rgba(212, 175, 55, 0.2); color: var(--dorado); padding: 5px 15px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; display: inline-block; margin-bottom: 10px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }
.hero h1 span { color: var(--dorado); }
.hero-actions { display: flex; gap: 15px; margin-top: 30px; }
.btn-gold { background: var(--dorado); color: var(--azul); text-decoration: none; padding: 15px 30px; border-radius: 50px; font-weight: 700; }
.btn-outline { border: 2px solid var(--blanco); color: var(--blanco); text-decoration: none; padding: 13px 30px; border-radius: 50px; font-weight: 600; transition: 0.3s; }
.btn-outline:hover { background: var(--blanco); color: var(--azul); }

/* ==========================================================================
   SECCIÓN QUIÉNES SOMOS / IDENTIDAD
   ========================================================================== */
.about-section { padding: 80px 0; background: var(--blanco); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.img-about { width: 100%; border-radius: 15px; box-shadow: var(--shadow); }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--azul); margin-bottom: 20px; }
.about-text h2 span { color: var(--dorado); }
.mv-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.mv-item h4 { color: var(--azul); margin-bottom: 10px; font-weight: 600; }
.mv-item h4 i { color: var(--dorado); margin-right: 8px; }
.mv-item p { font-size: 0.9rem; color: #666; }
.quote { font-style: italic; border-left: 3px solid var(--dorado); padding-left: 15px; color: var(--azul); font-weight: 500; }

/* ==========================================================================
   SECCIÓN DOCENTES (CON RECORTE CIRCULAR PERFECTO AL BORDE)
   ========================================================================== */
.docentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.docente-card {
    text-align: center;
    background: var(--blanco);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.docente-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    border-color: var(--dorado);
}

.docente-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden; /* IMPORTANTE: Realiza el recorte */
    border: 3px solid var(--dorado);
    background: var(--blanco);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Se eliminó el padding para que la imagen toque el borde dorado */
}
.docente-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Escala la imagen cubriendo el área sin deformarse */
    object-position: center; /* Centra la cara en el recorte */
    display: block;
}

.docente-card h4 { 
    color: var(--azul); 
    margin-bottom: 8px; 
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}
.docente-card p { 
    font-size: 0.85rem; 
    color: var(--dorado); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ==========================================================================
   GALERÍA, OFERTA ACADÉMICA Y MODALES
   ========================================================================== */
.galeria-section { padding: 80px 0; background: var(--blanco); text-align: center; }
.galeria-tabs { margin-bottom: 40px; display: flex; justify-content: center; gap: 15px; }
.tab-btn { padding: 10px 25px; border: 2px solid var(--azul); background: transparent; color: var(--azul); border-radius: 30px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--azul); color: var(--dorado); }
.empty-gallery { padding: 60px; color: #ccc; border: 2px dashed #eee; border-radius: 15px; }
.empty-gallery i { font-size: 3rem; margin-bottom: 15px; }

.oferta-section { padding: 80px 0; background: var(--fondo-gris); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--azul); }

.grid-cursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.curso-card { background: var(--blanco); border-radius: 12px; padding: 40px 30px; position: relative; border: 1px solid #eee; transition: 0.3s; text-align: center; }
.curso-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: var(--dorado); }
.card-tag { position: absolute; top: 20px; right: 20px; background: #f0f0f0; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.card-tag.gold { background: var(--dorado); color: var(--azul); }
.curso-card h3 { color: var(--azul); margin-bottom: 15px; font-size: 1.4rem; }

.card-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 15px; }
.btn-info { background: transparent; border: 2px solid var(--azul); color: var(--azul); padding: 8px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-info:hover { background: var(--azul); color: var(--dorado); }
.btn-whatsapp { background-color: #25D366; color: white !important; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.btn-whatsapp:hover { transform: scale(1.1); background-color: #128C7E; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.modal-content { 
    background: var(--blanco); 
    margin: 2% auto; 
    padding: 40px; 
    border-radius: 15px; 
    width: 90%; 
    max-width: 900px; 
    position: relative; 
    max-height: 90vh; 
    overflow-y: auto; 
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; cursor: pointer; color: var(--azul); z-index: 10; }
.modal-img-full { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ==========================================================================
   TABLAS ESTILO DOCUMENTO (INFO CURSOS)
   ========================================================================== */
.table-container-doc { margin: 25px 0; overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; border: none; }
.doc-table th, .doc-table td { border: none; padding: 10px 12px; text-align: left; }

.vertical-header { 
    writing-mode: vertical-rl; 
    transform: rotate(180deg); 
    text-align: center; 
    background-color: #e0e0e0; 
    font-weight: bold; 
    width: 45px; 
    padding: 15px 5px !important;
    border-radius: 8px 0 0 8px;
}

.header-row { background-color: #f0f0f0; font-weight: bold; }
.doc-table th { color: var(--azul); font-weight: 700; text-align: center; }
.col-n { width: 40px; text-align: center !important; }
.col-val { width: 90px; text-align: center !important; background: #f4f4f4; border-radius: 4px; font-weight: 800; }

.total-label { text-align: right !important; background-color: #f0f0f0; }
.total-val { text-align: center !important; background-color: #f0f0f0; color: var(--azul); font-weight: 800; }

.nota-doc { font-size: 0.85rem; margin-top: 15px; font-style: italic; color: #666; }

.modal-footer-info { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; border-top: 1px solid #eee; padding-top: 25px; }
.modal-horarios { flex: 1; }
.modal-horarios p { font-size: 0.95rem; color: #444; margin-bottom: 6px; }
.modal-price-tag { background: var(--azul); color: var(--dorado); padding: 12px 25px; border-radius: 10px; font-size: 1.7rem; font-weight: 800; margin-left: 25px; white-space: nowrap; border: 2px solid var(--dorado); box-shadow: var(--shadow); }
.modal-price-tag span { font-size: 0.95rem; font-weight: 400; opacity: 0.8; }
.modal-price-container { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.modal-price-tag.small { font-size: 1.2rem; padding: 8px 18px; }
.modal-list { padding-left: 20px; color: #444; margin-bottom: 25px; }

/* ==========================================================================
   REQUISITOS Y FOOTER
   ========================================================================== */
.requisitos-section { padding: 80px 0; background: var(--blanco); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 40px; }
.step-card { text-align: center; padding: 30px; border-radius: 10px; background: var(--fondo-gris); transition: 0.3s; }
.step-card:hover { background: var(--blanco); box-shadow: var(--shadow); }
.step-number { width: 50px; height: 50px; background: var(--dorado); color: var(--azul); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: 800; font-size: 1.2rem; }
.step-card h4 { color: var(--azul); margin-bottom: 15px; }
.step-card p { font-size: 0.85rem; color: #666; }
.info-matricula { text-align: center; background: var(--azul); color: var(--blanco); padding: 20px; border-radius: 8px; font-size: 1rem; }
.info-matricula i { color: var(--dorado); margin-right: 10px; }

footer { 
    background-color: #FAF8F0; 
    color: var(--azul); 
    padding: 60px 0 20px; 
    border-top: 3px solid var(--dorado);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    border-bottom: 1px solid #e0e0e0; 
    padding-bottom: 40px; 
}
.logo-f { height: 70px; margin-bottom: 20px; }
.footer-contact h4 { color: var(--azul); font-weight: 700; margin-bottom: 20px; }
.footer-contact p { color: #555; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.8rem; color: #888; }

.social-links-footer { display: flex; gap: 12px; justify-content: flex-start; margin-top: 15px; }
.social-icon { 
    width: 35px; height: 35px; border-radius: 50%; display: flex; 
    justify-content: center; align-items: center; color: white !important; 
    text-decoration: none; font-size: 1rem; transition: 0.3s;
}
.social-icon.wa { background-color: #25D366; }
.social-icon.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.fb { background-color: #1877F2; }
.social-icon.tk { background-color: #000000; }
.social-icon.yt { background-color: #FF0000; }
.social-icon:hover { transform: translateY(-3px); opacity: 0.9; }