/* INCABA — estilos
   Colores originales: azul marino #03011D, footer #082032, azul botones #00125D, azul eléctrico #2700FF,
   amarillo #EEFB07 (Amazon), rojo #980808 (RENAC), gris #B8B4B4.
   Títulos en "athelas" (fuente del sitio original); si no está, usa Crimson Pro. */

@font-face { font-family: "athelas"; font-display: swap; src: url("../fonts/athelas.woff2") format("woff2"), url("../fonts/athelas.woff") format("woff"); }
@font-face { font-family: "Crimson Pro"; font-weight: 400; font-display: swap; src: url("../fonts/crimson-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 600; font-display: swap; src: url("../fonts/crimson-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 700; font-display: swap; src: url("../fonts/crimson-pro-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-weight: 900; font-display: swap; src: url("../fonts/crimson-pro-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --marino: #03011d;
  --footer: #082032;
  --azul: #00125d;
  --azul-vivo: #2700ff;
  --celeste: #3fa3dc;
  --amarillo: #eefb07;
  --rojo: #980808;
  --gris: #b8b4b4;
  --texto: #1d1d26;
  --suave: #6b6b78;
  --serif: "athelas", "Crimson Pro", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .4s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh, 70px); }
body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.container { width: min(100% - 32px, 1140px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.15;
  text-align: center; text-decoration: none; color: #fff;
  border: 2px solid transparent; border-radius: 50px;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn--navy { background: var(--marino); border-radius: 30px; }
.btn--blue { background: var(--azul-vivo); border-radius: 30px; }
.btn--white { background: #fff; color: var(--marino); font-family: "Roboto", sans-serif; font-weight: 500; font-size: 1rem; padding: 13px 36px; }
.btn--dark-blue { background: var(--azul); text-shadow: 0 0 10px rgba(0, 0, 0, .3); }
.btn--amazon {
  background: var(--amarillo); color: var(--marino);
  border: 2px dashed var(--marino); border-radius: 5px;
  font-size: 1.2rem; font-weight: 600; padding: 10px 22px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.btn--red { background: var(--rojo); font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 600; padding: 14px 34px; text-shadow: 0 0 10px rgba(0, 0, 0, .3); box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(3, 1, 29, .22); }
  .btn--navy:hover { background: var(--azul); }
  .btn--blue:hover { background: #1c00b8; }
  .btn--white:hover { background: var(--amarillo); }
  .btn--dark-blue:hover { background: var(--azul-vivo); }
  .btn--amazon:hover { background: #fff; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }
  .btn--red:hover { background: #c20d0d; box-shadow: 0 12px 26px rgba(152, 8, 8, .35); }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: box-shadow var(--t) var(--ease); }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo img { width: clamp(130px, 14vw, 170px); transition: opacity var(--t) var(--ease); }
.logo:hover img { opacity: .8; }
.nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.nav a {
  position: relative; padding: 6px 0;
  font-family: var(--serif); font-weight: 700; font-size: .95rem; letter-spacing: .5px; text-transform: uppercase;
  text-decoration: none; color: var(--marino);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--azul-vivo); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Secciones ---------- */
.section { padding: clamp(44px, 6vw, 70px) 0; }
.title {
  text-align: center;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.15;
  color: #082032;
}
.generacion {
  margin: 6px 0 40px; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--celeste);
}

/* Convocatoria */
.conv-grid { display: grid; grid-template-columns: 39fr 61fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.conv-img img { width: 90%; margin-inline: auto; border-radius: 6px; box-shadow: 0 16px 40px rgba(3, 1, 29, .18); }
.conv-info { font-family: var(--serif); font-size: 1.08rem; color: #000; }
.conv-info p { margin: 0 0 10px; }
.conv-info .small { font-size: .95rem; margin-top: 18px; }
.temario { margin: 0 0 6px; padding-left: 22px; font-family: "Roboto", sans-serif; font-size: .95rem; line-height: 1.75; }
.temario li::marker { color: var(--azul-vivo); }
.temario a { color: var(--azul-vivo); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease); }
.temario a:hover { border-color: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; margin-top: clamp(36px, 5vw, 54px); }
.cta-row .btn { min-height: 76px; }

/* Egresados */
.egresados { background: var(--marino); color: #fff; padding: clamp(40px, 5vw, 60px) 0; }
.egr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.egr-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.egr-text h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.1; }
.egr-line { display: block; width: 100%; max-width: 420px; height: 5px; margin: 26px 0 32px; background: #fff; border-radius: 3px; }
.egr-img img { width: 80%; margin-inline: auto; transition: transform .8s var(--ease); }
.egr-img:hover img { transform: scale(1.03) rotate(-1deg); }

/* Galería */
.galeria { padding-bottom: 0; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gal-grid figure { overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-grid figure:hover img { transform: scale(1.06); }

/* Libro */
.libro-grid { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(26px, 4vw, 50px); align-items: center; }
.libro-img img { border-radius: 6px; box-shadow: 0 18px 40px rgba(3, 1, 29, .2); }
.libro-text { font-size: .95rem; color: #222; }
.libro-text .btn--amazon { margin-bottom: 22px; }
.libro-title { margin-bottom: 14px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--marino); }
.libro-text blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--azul-vivo); font-style: italic; }
.libro-text p { margin: 0 0 14px; }
.libro-text .muted { color: var(--suave); font-size: .88rem; }
.libro-text .autor { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #000; }
.gray-line { height: 8px; margin: clamp(44px, 6vw, 60px) 0 0; border: 0; background: var(--gris); border-radius: 4px; }

/* Barras de título (Capacitación / Contacto) */
.bar-title {
  margin-bottom: 36px; padding: 6px 12px;
  background: var(--marino); color: #fff; text-align: center;
  font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.2;
}

/* Capacitación */
.capacitacion { padding-top: 0; }
.cap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 40px; }
.cap-row:last-child { margin-bottom: 0; }
.cap-row--solo { grid-template-columns: 1fr; }
.cap-row--rev .cap-cta { order: 2; }
.cap-cta { display: flex; justify-content: center; }
.cap-video { border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(3, 1, 29, .2); }
.cap-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.cap-image { display: flex; justify-content: center; }
.cap-image a { display: block; width: min(100%, 340px); }
.cap-image img { width: 100%; border-radius: 8px; box-shadow: 0 14px 34px rgba(3, 1, 29, .18); }

/* Contacto */
.contacto { padding-top: 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.85rem); color: var(--marino); }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 36px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.contact-list a { transition: color var(--t) var(--ease); }
.contact-list a:hover { color: var(--azul-vivo); }
.contact-list svg { width: 20px; height: 20px; flex: none; }
.address { margin: 18px 0 40px; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: #7a7a7a; }
.social { display: flex; justify-content: center; gap: 19px; margin-top: 36px; }
.social a {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--marino); color: #fff;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.social a:hover { background: var(--azul-vivo); transform: translateY(-4px); }
.social svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #fff; padding: 40px 0; font-family: var(--serif); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: center; min-height: 156px; }
.footer-logo { width: min(100%, 260px); }
.footer-mid { text-align: center; line-height: 1.9; }
.footer-mid p { margin: 0; }
.footer-mid a, .footer-powered a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.footer-mid a:hover, .footer-powered p a:hover { border-color: #fff; }
.footer-powered { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.footer-powered p { margin: 0; }
.footer-powered img { width: 48px; }

/* ---------- Archivo faltante: se oculta la imagen/video y el texto queda centrado ---------- */
.is-missing { grid-template-columns: 1fr !important; justify-items: center; }
.is-missing > figure { display: none; }
.is-missing .conv-info, .is-missing .libro-text { max-width: 720px; }

/* ---------- WhatsApp y volver arriba ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 26px rgba(37, 211, 102, .45); }
.to-top {
  position: fixed; right: 26px; bottom: 88px; z-index: 60;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--marino); color: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity var(--t) var(--ease), translate var(--t) var(--ease), visibility 0s linear var(--t), background-color var(--t) var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; transition: opacity var(--t) var(--ease), translate var(--t) var(--ease), visibility 0s, background-color var(--t) var(--ease); }
.to-top:hover { background: var(--azul-vivo); }

/* ---------- Aparición suave ---------- */
.reveal { opacity: 0; }
.reveal.is-visible { animation: up .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.no-js .reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-powered { align-items: center; text-align: center; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 58px; }
  .nav a { font-size: .82rem; }
  .conv-grid, .egr-grid, .libro-grid, .cap-row { grid-template-columns: 1fr; }
  .conv-img img { width: min(100%, 420px); }
  .cta-row .btn { width: 100%; min-height: 0; }
  .egr-img img { width: min(100%, 420px); }
  .gal-grid { grid-template-columns: 1fr; }
  .libro-img img { width: min(100%, 360px); margin-inline: auto; }
  .libro-text { text-align: left; }
  .libro-text .btn--amazon { display: flex; }
  .cap-row--rev .cap-cta { order: 0; }
  .cap-cta .btn { width: 100%; }
  .btn--red { width: 100%; }
  .social a { width: 54px; height: 54px; }
  .social svg { width: 24px; height: 24px; }
}
@media (max-width: 380px) {
  .nav { gap: 12px; }
  .logo img { width: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Convocatoria noviembre: mismo estilo tipográfico original, imagen a la derecha */
.conv-grid--noviembre { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.conv-grid--noviembre .conv-img img { width: 100%; }
@media (max-width: 800px) {
  .conv-grid--noviembre { grid-template-columns: 1fr; }
  .conv-grid--noviembre .conv-info { order: 1; }
  .conv-grid--noviembre .conv-img { order: 2; }
}
