@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── VARIABLES ── */
:root {
  --v1: #0d3b2e;
  --v2: #1a5c45;
  --v3: #2e7d5c;
  --v4: #3d9970;
  --d1: #a0621a;
  --d2: #c07820;
  --d3: #d4922e;
  --d4: #f0b84a;
  --cr: #f9f6f0;
  --bg: #f4f0e8;
  --tx: #1c1c1a;
  --tx2: #4a4a46;
  --borde: #e0dbd0;
  --sombra: 0 2px 16px rgba(13,59,46,.08);
  --r: 10px;
  --fuente-titulo: 'Libre Baskerville', Georgia, serif;
  --fuente: 'DM Sans', 'Segoe UI', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente); background: var(--bg); color: var(--tx); line-height: 1.7; font-size: 15.5px; }
a { color: var(--v3); text-decoration: none; transition: color .25s; }
a:hover { color: var(--v1); }
p { margin-bottom: 1rem; }
h1, h2, h3, h4 { font-family: var(--fuente-titulo); font-weight: 700; color: var(--v1); line-height: 1.25; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
header {
  background: var(--v1);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  border-bottom: 3px solid var(--d3);
  text-align: center;
}

header .logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

header .header-texto {
  text-align: center;
}

header .header-texto h1 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.3;
  font-family: var(--fuente-titulo);
}

header .header-texto span {
  display: block;
  color: var(--d4);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  margin-top: 3px;
  font-family: var(--fuente);
}

/* ── NAV ── */
nav {
  background: var(--v2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(13,59,46,.25);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 5px 12px;
}

nav ul li a {
  display: block;
  padding: 9px 14px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: 13px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  font-family: var(--fuente);
}

nav ul li a:hover,
nav ul li a.activo {
  background: var(--d3);
  color: var(--v1);
}

/* ── HERO ── */
.hero {
  background: var(--v2);
  color: white;
  text-align: center;
  padding: 88px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(240,184,74,.09);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--d3);
  color: var(--v1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: var(--fuente);
}

.hero h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: white;
  margin-bottom: 14px;
  font-weight: 700;
}

.hero p { font-size: 1.05rem; opacity: .88; margin-bottom: 28px; font-weight: 300; }

.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  font-family: var(--fuente);
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); text-decoration: none; }

.btn-dorado { background: var(--d3); color: var(--v1); }
.btn-dorado:hover { background: var(--d2); color: var(--v1); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: white; color: white; }
.btn-verde { background: var(--v2); color: white; }
.btn-verde:hover { background: var(--v1); color: white; }

/* ── CONTENEDOR ── */
.contenedor {
  max-width: 1140px;
  margin: 44px auto;
  padding: 40px 32px;
  background: white;
  border-radius: var(--r);
  box-shadow: var(--sombra);
}

/* ── SECCIÓN TÍTULOS ── */
.sec-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--v1);
  margin-bottom: 6px;
}

.sec-sub { color: var(--tx2); font-size: .9rem; margin-bottom: 36px; font-weight: 300; }

.linea {
  width: 44px; height: 4px;
  background: var(--d3);
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ── TARJETAS INICIO ── */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.tarjeta {
  background: var(--cr);
  border-radius: var(--r);
  padding: 26px 22px;
  border-top: 4px solid var(--d3);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--borde);
  border-top: 4px solid var(--d3);
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13,59,46,.1); }
.tarjeta .t-icono { font-size: 2rem; margin-bottom: 12px; }
.tarjeta h3 { font-size: 1.05rem; margin-bottom: 7px; color: var(--v1); }
.tarjeta p { font-size: .88rem; color: var(--tx2); margin: 0; }

/* ── CIFRAS ── */
.cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.cifra {
  border-radius: var(--r);
  padding: 26px 16px;
  text-align: center;
}
.cifra.v1 { background: var(--v1); }
.cifra.v1 .num { color: var(--d4); }
.cifra.v1 .lab { color: rgba(255,255,255,.75); }
.cifra.d3 { background: var(--d3); }
.cifra.d3 .num { color: var(--v1); }
.cifra.d3 .lab { color: rgba(13,59,46,.7); }
.cifra.v3 { background: var(--v3); }
.cifra.v3 .num { color: white; }
.cifra.v3 .lab { color: rgba(255,255,255,.78); }
.cifra.cr { background: white; border: 1px solid var(--borde); }
.cifra.cr .num { color: var(--v1); }
.cifra.cr .lab { color: var(--tx2); }
.cifra .num { font-family: var(--fuente-titulo); font-size: 2.6rem; font-weight: 700; line-height: 1; display: block; }
.cifra .lab { font-size: .8rem; margin-top: 5px; display: block; }

/* ── MENSAJE AUTORIDAD ── */
.autoridad {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px;
  border-radius: var(--r);
  margin-top: 48px;
}
.autoridad img {
  width: 160px; height: 160px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--v3); flex-shrink: 0;
}
.autoridad .aut-texto { flex: 1; }
.autoridad h3 { text-align: left; margin-bottom: 12px; }
.autoridad .firma { text-align: right; font-weight: 600; font-size: .9rem; margin-top: 14px; color: var(--v2); font-family: var(--fuente); }
.aut-rector { background: var(--cr); border: 1px solid var(--borde); }
.aut-vice { background: white; border: 1px solid var(--borde); flex-direction: row-reverse; }
.aut-vice h3 { text-align: right; }
.aut-vice .firma { text-align: left; }

/* ── INSTITUCIÓN ── */
.inst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: flex-start; }
.inst-h3 { border-bottom: 3px solid var(--d3); padding-bottom: 7px; display: inline-block; margin-bottom: 12px; }
.inst-simbolos { background: var(--cr); border: 1px solid var(--borde); padding: 28px; border-radius: var(--r); text-align: center; }
.inst-simbolos img { max-width: 180px; margin: 0 auto 8px; }
.himno audio { width: 100%; margin-top: 8px; }
.hito-linea { padding-left: 18px; border-left: 3px solid var(--d3); }
.hito { margin-bottom: 16px; }
.hito .anio { font-weight: 700; color: var(--v2); font-size: .9rem; font-family: var(--fuente); }
.hito .desc { font-size: .86rem; color: var(--tx2); }
.lema-bloque { background: var(--v1); border-radius: var(--r); padding: 32px; text-align: center; margin: 32px 0; }
.lema-bloque blockquote { font-family: var(--fuente-titulo); font-size: clamp(1rem, 2vw, 1.35rem); color: var(--d4); font-style: italic; line-height: 1.45; max-width: 640px; margin: 0 auto; }
.datos-t { width: 100%; border-collapse: collapse; }
.datos-t td { padding: 8px 10px; border-bottom: 1px solid var(--borde); font-size: .88rem; }
.datos-t td:first-child { font-weight: 600; color: var(--v2); width: 44%; }
.datos-t tr:last-child td { border-bottom: none; }

/* ── DOCENTES ── */
.docentes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 20px; }
.doc-card {
  background: white; border-radius: var(--r);
  border: 1px solid var(--borde);
  text-align: center; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(13,59,46,.1); }
.doc-card .doc-img { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--bg); }
.doc-card .doc-ph { width: 100%; height: 190px; background: var(--cr); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.doc-card .doc-info { padding: 14px 12px; }
.doc-card .doc-info h4 { font-size: .9rem; color: var(--v1); margin: 0 0 3px; font-family: var(--fuente); font-weight: 600; }
.doc-card .doc-info p { font-size: .8rem; color: var(--tx2); margin: 0; }
.doc-area { display: inline-block; margin-top: 7px; background: var(--cr); color: var(--v2); font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--borde); font-family: var(--fuente); }

/* ── FILTROS ── */
.filtros { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 24px; }
.fil-btn {
  background: white; color: var(--v2); border: 1px solid var(--borde);
  padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: var(--fuente); transition: background .2s, color .2s, border-color .2s;
}
.fil-btn:hover, .fil-btn.activo { background: var(--v2); color: white; border-color: var(--v2); }

/* ── SECCIÓN DOCENTE ── */
.doc-sec { margin-bottom: 52px; }
.doc-sec-titulo {
  font-family: var(--fuente-titulo);
  font-size: 1.45rem; color: var(--v1);
  text-align: center; margin-bottom: 28px;
  display: inline-block; position: relative;
  left: 50%; transform: translateX(-50%);
}
.doc-sec-titulo::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%); width: 48px; height: 3px;
  background: var(--d3); border-radius: 2px;
}

/* ── OFERTA ── */
.oferta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 24px; }
.oferta-card {
  background: white; border-radius: var(--r);
  border: 1px solid var(--borde); border-top: 5px solid var(--v2);
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.oferta-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(13,59,46,.1); }
.oferta-card .oc-head { padding: 24px 24px 0; text-align: center; }
.oferta-card .oc-icono { font-size: 3rem; margin-bottom: 10px; }
.oferta-card h3 { font-size: 1.3rem; margin-bottom: 12px; text-align: center; }
.oferta-card .oc-body { padding: 0 24px 24px; flex: 1; display: flex; flex-direction: column; }
.oferta-card .oc-desc { font-size: .9rem; color: var(--tx2); flex: 1; margin-bottom: 14px; }
.oferta-card ul { list-style: none; padding: 0; font-size: .87rem; color: var(--tx); }
.oferta-card ul li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px solid var(--borde); }
.oferta-card ul li:last-child { border-bottom: none; }
.oferta-card ul li::before { content: '✔'; color: var(--v3); font-weight: 700; position: absolute; left: 0; top: 7px; font-size: .8rem; }
.oferta-conclusion { margin-top: 40px; padding: 20px 24px; background: var(--cr); border-left: 4px solid var(--d3); border-radius: 0 8px 8px 0; font-size: .97rem; color: var(--tx2); }

/* ── GALERÍA ── */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.gal-item { position: relative; overflow: hidden; border-radius: var(--r); height: 235px; background: var(--bg); cursor: pointer; border: 1px solid var(--borde); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,59,46,.88), rgba(29,100,70,.15)); color: white; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0; transition: opacity .35s; }
.gal-overlay h4 { color: white; font-size: .95rem; transform: translateY(12px); transition: transform .35s; font-family: var(--fuente); font-weight: 600; }
.gal-item:hover img { transform: scale(1.07); }
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-item:hover .gal-overlay h4 { transform: translateY(0); }
.gal-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: #aaa; font-size: .8rem; text-align: center; padding: 12px; }
.gal-ph .gi { font-size: 2.4rem; }

/* ── MATRÍCULA ── */
.pasos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 44px; }
.paso { text-align: center; padding: 24px 16px; background: white; border-radius: var(--r); border: 1px solid var(--borde); }
.paso-num { width: 44px; height: 44px; background: var(--v2); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 12px; font-family: var(--fuente-titulo); }
.paso h3 { font-size: .93rem; margin-bottom: 5px; font-family: var(--fuente); font-weight: 600; }
.paso p { font-size: .8rem; color: var(--tx2); margin: 0; }
.req-lista { list-style: none; padding: 0; margin: 0; }
.req-lista li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--borde); font-size: .88rem; }
.req-lista li:last-child { border-bottom: none; }
.req-lista li::before { content: '✓'; color: var(--v3); font-weight: 700; position: absolute; left: 0; top: 9px; }
.nota { background: #e8f3ee; border-left: 4px solid var(--v3); padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: .88rem; margin: 22px 0; color: var(--tx); font-style: italic; }

/* ── FORMULARIOS ── */
.form-gr { margin-bottom: 16px; }
.form-gr label { display: block; font-weight: 600; font-size: .84rem; color: var(--v2); margin-bottom: 5px; font-family: var(--fuente); }
.form-gr input, .form-gr textarea, .form-gr select {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--borde); border-radius: 7px;
  font-size: .93rem; font-family: var(--fuente); color: var(--tx);
  transition: border-color .2s; background: white;
}
.form-gr input:focus, .form-gr textarea:focus, .form-gr select:focus { outline: none; border-color: var(--v3); }
.form-gr textarea { resize: vertical; min-height: 108px; }
.form-gr input[type="file"] { padding: 5px 10px; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-enviar { background: var(--v2); color: white; padding: 12px 24px; border: none; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; font-family: var(--fuente); transition: background .2s; width: 100%; margin-top: 6px; }
.btn-enviar:hover { background: var(--v1); }
.msg-ok { background: #e8f3ee; border: 1px solid var(--v3); border-radius: 8px; padding: 18px; text-align: center; margin-top: 14px; color: var(--v1); font-weight: 600; display: none; }

/* ── CONTACTO ── */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: flex-start; }
.contacto-info, .contacto-form { background: var(--cr); padding: 28px; border-radius: var(--r); border: 1px solid var(--borde); }
.contacto-info h3 { border-bottom: 3px solid var(--d3); padding-bottom: 7px; display: inline-block; margin-bottom: 18px; }
.contacto-info ul { list-style: none; padding: 0; }
.contacto-info ul li { display: flex; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.ci-ico { font-size: 1.3rem; margin-right: 11px; width: 24px; text-align: center; flex-shrink: 0; color: var(--v3); }
.contacto-mapa { border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); min-height: 390px; border: 1px solid var(--borde); }
.contacto-mapa iframe { width: 100%; height: 100%; min-height: 390px; border: 0; display: block; }

/* ── FOOTER ── */
footer { background: var(--v1); color: white; padding: 44px 24px 24px; margin-top: 56px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h4 { font-family: var(--fuente-titulo); color: var(--d4); font-size: .95rem; margin-bottom: 12px; }
.footer-col p, .footer-col a { font-size: .83rem; color: rgba(255,255,255,.65); display: block; line-height: 1.9; }
.footer-col a:hover { color: var(--d4); }
.footer-redes { display: flex; gap: 8px; margin-top: 10px; }
.footer-redes a { background: rgba(255,255,255,.1); border-radius: 6px; padding: 5px 12px; font-size: .73rem; font-weight: 600; color: rgba(255,255,255,.75) !important; text-transform: uppercase; letter-spacing: .05em; transition: background .2s; }
.footer-redes a:hover { background: var(--d3); color: var(--v1) !important; }
.footer-copy { max-width: 1100px; margin: 18px auto 0; font-size: .76rem; color: rgba(255,255,255,.34); text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  header { flex-direction: column; text-align: center; }
  header .header-texto { text-align: center; }
  .inst-grid, .contacto-grid { grid-template-columns: 1fr; }
  .autoridad, .aut-vice { flex-direction: column; }
  .autoridad h3, .autoridad .firma, .aut-vice h3, .aut-vice .firma { text-align: center !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
  nav ul li a { padding: 7px 10px; font-size: .75rem; }
  .form-fila { grid-template-columns: 1fr; }
  .contenedor { padding: 24px 18px; }
}
