/* Trama Operativa — sitio público.
   Paleta y tipografías del Documento Rector (§27): azul petróleo, verde azulado, terracota,
   marfil; Lora para títulos e Inter para texto. Los tonos de texto y botones están oscurecidos
   lo justo para pasar AA. El logo va siempre sobre blanco (fondo propio del archivo). */

:root {
  --petroleo: #143d4a;
  --petroleo-900: #0d2a33;
  --petroleo-700: #1d5263;
  --verde: #2f7b78;
  --verde-texto: #24625f;
  --verde-claro: #e2eeed;
  --terracota: #c66a4a;
  --terracota-boton: #b25a3b;
  --terracota-hover: #9c4c30;
  --terracota-texto: #a4502f;
  --terracota-claro: #f6e3da;
  --marfil: #f6f1e8;
  --marfil-hondo: #efe7da;
  --gris: #eaf0f1;
  --tinta: #14272d;
  --texto: #2a3b40;
  --texto-suave: #4a5a5f;
  --linea: #d9d2c4;
  --linea-fria: #cfdadc;
  --blanco: #fff;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radio: 14px;
  --radio-chico: 9px;
  --sombra: 0 1px 2px rgba(20, 39, 45, .06), 0 8px 28px rgba(20, 39, 45, .08);
  --sombra-alta: 0 2px 4px rgba(20, 39, 45, .06), 0 18px 44px rgba(20, 39, 45, .14);
  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-alto: 76px;

  /* Trama: nodos y líneas, el motivo del logo, como textura de fondo. */
  --trama: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M20 30 L80 14 L140 40 L118 104 L56 120 L20 30 M80 14 L56 120 M140 40 L20 30 M118 104 L150 150 M56 120 L10 150'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.10'%3E%3Ccircle cx='20' cy='30' r='3.2'/%3E%3Ccircle cx='80' cy='14' r='3.2'/%3E%3Ccircle cx='140' cy='40' r='3.2'/%3E%3Ccircle cx='118' cy='104' r='3.2'/%3E%3Ccircle cx='56' cy='120' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
  --trama-oscura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23143d4a' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M20 30 L80 14 L140 40 L118 104 L56 120 L20 30 M80 14 L56 120 M140 40 L20 30 M118 104 L150 150 M56 120 L10 150'/%3E%3C/g%3E%3Cg fill='%23143d4a' fill-opacity='.08'%3E%3Ccircle cx='20' cy='30' r='3.2'/%3E%3Ccircle cx='80' cy='14' r='3.2'/%3E%3Ccircle cx='140' cy='40' r='3.2'/%3E%3Ccircle cx='118' cy='104' r='3.2'/%3E%3Ccircle cx='56' cy='120' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-alto) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--marfil);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-texto); text-underline-offset: 3px; }
a:hover { color: var(--petroleo); }
h1, h2, h3 { font-family: var(--serif); color: var(--tinta); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.45rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--petroleo); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor--angosto { max-width: 820px; }
.contenedor--form { max-width: 900px; }
.texto-centro { text-align: center; }
.texto-centro .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracota-texto); margin: 0 0 .85em; display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.texto-centro .eyebrow::before { display: none; }
.eyebrow--claro { color: #f0b9a2; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.6; color: var(--texto); max-width: 62ch; }

/* --------------------------------------------------------------- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primario { background: var(--terracota-boton); color: #fff; box-shadow: 0 6px 18px rgba(178, 90, 59, .25); }
.btn--primario:hover { background: var(--terracota-hover); color: #fff; }
.btn--secundario { background: var(--petroleo); color: #fff; }
.btn--secundario:hover { background: var(--petroleo-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--petroleo); border-color: rgba(20, 61, 74, .35); }
.btn--ghost:hover { border-color: var(--petroleo); background: rgba(20, 61, 74, .05); color: var(--petroleo); }
.btn--claro { background: #fff; color: var(--petroleo); }
.btn--claro:hover { background: var(--marfil); color: var(--petroleo); }
.btn--borde-claro { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--borde-claro:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--ancho { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-texto { background: none; border: 0; padding: 8px 0; color: var(--verde-texto); font: 500 .95rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- header ---- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid rgba(20, 39, 45, .08); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 39, 45, .08); }
.header__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: var(--header-alto); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo { display: block; background: #fff; flex-shrink: 0; }
.header__logo img { height: 52px; width: auto; }
.header__menu { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--petroleo); }
.header__menu-bars, .header__menu-bars::before, .header__menu-bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
.header__menu-bars::before, .header__menu-bars::after { content: ''; position: absolute; left: 0; }
.header__menu-bars::before { top: -7px; }
.header__menu-bars::after { top: 7px; }
.header__menu[aria-expanded="true"] .header__menu-bars { background: transparent; }
.header__menu[aria-expanded="true"] .header__menu-bars::before { transform: translateY(7px) rotate(45deg); }
.header__menu[aria-expanded="true"] .header__menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { position: fixed; inset: var(--header-alto) 0 0 0; background: #fff; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.nav.is-open { transform: none; visibility: visible; }
.nav__list { display: flex; flex-direction: column; }
.nav__link { display: block; padding: 14px 4px; font-family: var(--serif); font-size: 1.35rem; color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--gris); }
.nav__link[aria-current="page"] { color: var(--terracota-texto); }
.nav__campus { align-self: flex-start; }
body.menu-abierto { overflow: hidden; }

@media (min-width: 1080px) {
  .header__menu { display: none; }
  .nav { position: static; transform: none; visibility: visible; flex-direction: row; align-items: center; padding: 0; gap: 18px; overflow: visible; background: transparent; }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { font-family: var(--sans); font-size: .95rem; font-weight: 500; padding: 8px 12px; border: 0; border-radius: 8px; color: var(--texto); }
  .nav__link:hover { background: var(--marfil); color: var(--petroleo); }
  .nav__link[aria-current="page"] { color: var(--petroleo); background: var(--gris); }
  .nav__campus { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
}
@media (max-width: 420px) { .header__logo img { height: 44px; } }

/* --------------------------------------------------------------- hero ---- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 0; background: linear-gradient(180deg, #fff 0, var(--marfil) 100%); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--trama-oscura); pointer-events: none; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.hero__inner { position: relative; z-index: 1; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__titulo { max-width: 16ch; }
.hero__bajada { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); max-width: 50ch; color: var(--texto); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero__micro { font-size: .95rem; color: var(--texto-suave); font-style: italic; font-family: var(--serif); }
.hero__foto { margin: 0; position: relative; }
.hero__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 28px 120px; box-shadow: var(--sombra-alta); }
.hero__foto::before { content: ''; position: absolute; width: 38%; aspect-ratio: 1; right: -6%; top: -8%; border-radius: 50%; border: 2px solid var(--terracota); opacity: .45; z-index: -1; }
.hero__datos { position: relative; z-index: 1; max-width: var(--ancho); margin: clamp(32px, 5vw, 64px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero__datos li { padding: 22px 12px 26px 0; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: 2px; }
.hero__datos strong { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--petroleo); line-height: 1; }
.hero__datos span { font-size: .9rem; color: var(--texto-suave); line-height: 1.35; max-width: 18ch; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* ------------------------------------------------------------- secciones ---- */
.seccion { padding: clamp(56px, 8vw, 104px) 0; }
.seccion--pegada { padding-top: clamp(28px, 4vw, 48px); }
.seccion--alterna { background: var(--gris); }
.seccion--oscura { background: var(--petroleo) var(--trama); color: #dce8ea; }
.seccion--oscura h2, .seccion--oscura h3 { color: #fff; }
.seccion__cabecera { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.seccion__cabecera--fila { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.seccion__cabecera--fila > div { max-width: 720px; }
.seccion__intro { color: var(--texto-suave); max-width: 62ch; margin: 0; }
.mas { margin-top: 24px; text-align: center; font-weight: 600; }

.preguntas { display: grid; gap: 14px; }
.preguntas li { position: relative; background: #fff; border-radius: var(--radio); padding: 22px 22px 22px 58px; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--tinta); line-height: 1.4; box-shadow: var(--sombra); }
.preguntas__nodo { position: absolute; left: 22px; top: 27px; width: 16px; height: 16px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 5px var(--verde-claro); }
.preguntas li:nth-child(2) .preguntas__nodo { background: var(--terracota); box-shadow: 0 0 0 5px var(--terracota-claro); }
.preguntas li:nth-child(3) .preguntas__nodo { background: var(--petroleo); box-shadow: 0 0 0 5px var(--gris); }
@media (min-width: 760px) { .preguntas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__foto { margin: 0; }
.split__foto img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 120px 28px 28px 28px; box-shadow: var(--sombra); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .split--texto { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
}

.lista-check { display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 34px; }
.lista-check li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--verde-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2324625f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (min-width: 640px) { .lista-check--dos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }

/* --------------------------------------------------------- diplomados ---- */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { flex-shrink: 0; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: var(--texto); font: 500 .92rem var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--petroleo); }
.chip[aria-pressed="true"] { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
@media (min-width: 900px) { .filtros { flex-wrap: wrap; overflow: visible; } }
.filtros__estado { font-size: .9rem; color: var(--texto-suave); margin: -6px 0 16px; min-height: 1.4em; }

.dip-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dip-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); transition: transform .25s, box-shadow .25s; }
.dip-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.dip-card[hidden] { display: none; }
.dip-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gris); }
.dip-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dip-card:hover .dip-card__img img { transform: scale(1.04); }
.dip-card__num { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--petroleo); background: #fff; border-radius: 999px; padding: 4px 12px; }
.dip-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.dip-card__tipo { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--verde-texto); margin-bottom: .5em; }
.dip-card__titulo { font-size: 1.22rem; margin-bottom: .45em; }
.dip-card__titulo a { color: inherit; text-decoration: none; }
.dip-card__titulo a::after { content: ''; position: absolute; inset: 0; }
.dip-card { position: relative; }
.dip-card__bajada { font-size: .97rem; color: var(--texto-suave); line-height: 1.55; }
.dip-card__datos { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 12px; padding-top: 4px; }
.dip-card__datos li { font-size: .8rem; font-weight: 500; background: var(--marfil); color: var(--texto); padding: 4px 10px; border-radius: 999px; }
.dip-card__estado { font-size: .85rem; font-weight: 600; color: var(--texto-suave); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.dip-card__estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--linea); }
.dip-card__estado--abierto { color: var(--verde-texto); }
.dip-card__estado--abierto::before { background: var(--verde); box-shadow: 0 0 0 4px var(--verde-claro); }
.dip-card__link { position: relative; z-index: 1; font-weight: 600; color: var(--terracota-texto); text-decoration: none; margin-top: 2px; }
.dip-card__link:hover { color: var(--terracota-hover); text-decoration: underline; }
@media (min-width: 1000px) { .dip-grid--tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* niveles (sección oscura del inicio) */
.niveles { display: grid; gap: 18px; align-items: stretch; }
.nivel-bloque { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); padding: 28px; }
.nivel-bloque__num { font-family: var(--serif); font-size: 1.05rem; color: #f0b9a2; margin-bottom: .3em; }
.nivel-bloque h3 { font-size: 1.5rem; }
.nivel-bloque__dur { margin: 0; font-weight: 600; color: #fff; font-size: .95rem; }
.niveles__puente { display: none; }
.niveles__nota { margin: 28px 0 0; font-size: .95rem; color: #b9cdd1; max-width: 70ch; }
@media (min-width: 820px) {
  .niveles { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); }
  .niveles__puente { display: flex; align-items: center; }
  .niveles__puente span { display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, #f0b9a2 0 8px, transparent 8px 14px); position: relative; }
  .niveles__puente span::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: #f0b9a2; }
}

/* método */
.metodo { display: grid; gap: 14px; counter-reset: paso; }
@media (min-width: 600px) { .metodo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .metodo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metodo li { background: #fff; border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.metodo li::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--verde-claro); }
.metodo__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--petroleo); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.metodo li:nth-child(3n+2) .metodo__n { background: var(--verde); }
.metodo li:nth-child(3n) .metodo__n { background: var(--terracota-boton); }
.metodo h3 { font-size: 1.2rem; margin-bottom: .35em; }
.metodo p { margin: 0; color: var(--texto-suave); font-size: .98rem; }
.seccion--alterna .metodo li { box-shadow: none; }

/* director */
.director { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.director__simbolo { width: min(240px, 60vw); aspect-ratio: 1; background: #fff; border-radius: 50%; padding: 28px; box-shadow: var(--sombra); justify-self: center; }
.director__simbolo img { width: 100%; height: 100%; object-fit: contain; }
.director__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 820px) { .director { grid-template-columns: 260px minmax(0, 1fr); } }

/* banda institucional */
.banda { display: grid; gap: 24px; align-items: center; background: var(--marfil-hondo) var(--trama-oscura); border-radius: 22px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--linea); }
.banda p:last-child { margin-bottom: 0; }
.banda h2 { max-width: 22ch; }
@media (min-width: 900px) { .banda { grid-template-columns: minmax(0, 1fr) auto; } }

/* preguntas frecuentes */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border-radius: var(--radio-chico); border: 1px solid var(--linea-fria); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--tinta); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icono { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gris); position: relative; transition: transform .25s; }
.faq__icono::before, .faq__icono::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--petroleo); transform: translate(-50%, -50%); }
.faq__icono::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq__item[open] .faq__icono::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--texto-suave); }

/* cierre */
.cierre { background: var(--petroleo) var(--trama); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.cierre__inner { text-align: center; }
.cierre h2 { color: #fff; max-width: 24ch; margin: 0 auto 28px; font-style: italic; font-weight: 500; }
.cierre__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cierre__acciones--centro { margin-top: 28px; }

/* ----------------------------------------------------- páginas internas ---- */
.pagina-hero { background: linear-gradient(180deg, #fff, var(--marfil)); padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); position: relative; }
.pagina-hero--centro { padding: clamp(64px, 10vw, 120px) 0; }
.pagina-hero h1 { max-width: 20ch; }
.pagina-hero .lead { margin-bottom: 0; }
.pagina-hero--foto .btn { margin-top: 24px; }
.pagina-hero__grid { display: grid; gap: 32px; align-items: center; }
.pagina-hero__foto { margin: 0; }
.pagina-hero__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 120px 28px 28px; box-shadow: var(--sombra-alta); }
@media (min-width: 900px) { .pagina-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--texto-suave); margin-bottom: 22px; }
.migas a { color: var(--texto-suave); }
.migas [aria-current] { color: var(--tinta); font-weight: 500; }

/* ficha de diplomado */
.dip-hero { background: linear-gradient(180deg, #fff, var(--marfil)); padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.dip-hero__inner { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.dip-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.dip-hero__datos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 26px; color: var(--texto-suave); font-size: .95rem; }
.dip-hero__datos strong { font-family: var(--serif); font-size: 1.5rem; color: var(--petroleo); margin-right: 4px; }
.dip-hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.dip-hero__foto { margin: 0; }
.dip-hero__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: var(--sombra-alta); }
@media (min-width: 900px) { .dip-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

.nivel__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.nivel__etiqueta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; color: var(--verde-texto); font-size: .95rem; margin-bottom: 14px; }
.nivel__etiqueta span { background: var(--petroleo); color: #fff; font-family: var(--serif); padding: 4px 14px; border-radius: 999px; font-size: 1rem; }
.nivel__texto h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); margin-bottom: .7em; }
.nivel__texto h3 { margin-top: 1.6em; }
.nivel__ficha { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 24px; position: sticky; top: calc(var(--header-alto) + 20px); }
.seccion--alterna .nivel__ficha { box-shadow: none; border: 1px solid var(--linea-fria); }
@media (min-width: 900px) { .nivel__grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 899px) { .nivel__ficha { position: static; } }
.ficha { margin: 0 0 20px; display: grid; gap: 0; }
.ficha div { padding: 11px 0; border-bottom: 1px solid var(--gris); display: grid; gap: 2px; }
.ficha dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); font-weight: 600; }
.ficha dd { margin: 0; color: var(--tinta); font-weight: 500; }
.nivel-accion { display: grid; gap: 12px; }
.nivel-accion .btn { width: 100%; }
.nivel-accion__precio { margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.nivel-accion__precio span { color: var(--texto-suave); font-size: .9rem; }
.nivel-accion__precio strong { font-family: var(--serif); font-size: 1.7rem; color: var(--petroleo); }
.nivel-accion__estado { margin: 0; font-size: .92rem; color: var(--texto-suave); }
.programa { counter-reset: modulo; display: grid; gap: 8px; }
.programa li { counter-increment: modulo; display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--linea-fria); border-radius: var(--radio-chico); padding: 12px 16px; }
.programa li strong::before { content: counter(modulo) '. '; color: var(--terracota-texto); }
.programa li span { color: var(--texto-suave); font-size: .9rem; white-space: nowrap; }
.aviso { background: var(--terracota-claro); border-left: 4px solid var(--terracota); border-radius: 0 var(--radio-chico) var(--radio-chico) 0; padding: 16px 18px; margin-top: 18px; font-size: .95rem; }
.aviso p { margin: 0; }

/* sobre */
.pilares { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pilar { background: #fff; border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); border-top: 4px solid var(--verde); }
.pilar:nth-child(2) { border-top-color: var(--terracota); }
.pilar:nth-child(3) { border-top-color: var(--petroleo); }
.pilar h2 { font-size: 1.5rem; }
.pilar p { margin: 0; color: var(--texto-suave); }
.conceptos { display: grid; gap: 12px; }
.conceptos li { background: #fff; border-radius: var(--radio-chico); padding: 16px 18px; display: grid; gap: 4px; border-left: 3px solid var(--verde); }
.conceptos strong { font-family: var(--serif); color: var(--tinta); font-size: 1.1rem; }
.conceptos span { color: var(--texto-suave); }
.valores { margin: 0; display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.valores div { background: var(--marfil); padding: 20px 22px; }
.valores dt { font-family: var(--serif); font-weight: 600; color: var(--petroleo); font-size: 1.08rem; margin-bottom: 4px; }
.valores dd { margin: 0; color: var(--texto-suave); font-size: .97rem; }
.es-no-es { display: grid; gap: 18px; }
.es-no-es > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); padding: 26px; }
.es-no-es li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.es-no-es li:last-child { border-bottom: 0; }
.es-no-es li::before { content: ''; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #7fc2bd; }
.es-no-es > div:last-child li::before { background: transparent; border: 2px solid #f0b9a2; }
@media (min-width: 820px) { .es-no-es { grid-template-columns: 1fr 1fr; } }

/* legales */
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal p { color: var(--texto); }
.legal__fiscales { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linea); }
.legal__fiscales h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-suave); margin-top: 0; }
.legal__fiscales dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.legal__fiscales dt { font-weight: 600; color: var(--tinta); }
.legal__fiscales dd { margin: 0; }

/* resultado del pago */
.resultado { min-height: 60vh; display: grid; place-items: center; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.resultado__caja { width: min(620px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--sombra); padding: clamp(28px, 5vw, 48px); text-align: center; }
.resultado__caja h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.resultado__caja .primary-button, .resultado__caja .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--petroleo); }
.resultado__caja .primary-button { background: var(--terracota-boton); border-color: var(--terracota-boton); color: #fff; }
.resultado__caja .secondary-button { color: var(--petroleo); background: #fff; }

/* instituciones */
.sectores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sectores li { background: #fff; border-radius: var(--radio-chico); padding: 18px 20px; font-family: var(--serif); font-size: 1.12rem; color: var(--tinta); box-shadow: var(--sombra); display: flex; align-items: center; gap: 12px; }
.sectores li::before { content: ''; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px var(--verde-claro); }
.sectores li:nth-child(even)::before { background: var(--terracota); box-shadow: 0 0 0 4px var(--terracota-claro); }

/* ---------------------------------------------------------- formularios ---- */
.form { display: grid; gap: 18px; }
.tarjeta-form { background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--sombra); }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__grupo { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form__grupo legend { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--tinta); padding: 0; margin-bottom: 12px; }
.campo { display: grid; gap: 6px; font-size: .93rem; font-weight: 500; color: var(--tinta); }
.campo small { font-weight: 400; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--linea-fria); border-radius: 10px;
  font: 400 1rem var(--sans); color: var(--tinta); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 4px var(--verde-claro); }
.campo [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px #fbe1df; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--verde); }
.opciones { display: grid; gap: 10px; }
.opcion { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--linea-fria); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opcion[hidden] { display: none; }
.opcion input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--verde); }
.opcion strong { display: block; color: var(--tinta); }
.opcion small { color: var(--texto-suave); font-size: .88rem; }
.opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); }
.form__nota { margin: 0; font-size: .88rem; color: var(--texto-suave); }
.form__alcance { margin: 0; font-size: .82rem; color: var(--texto-suave); background: var(--marfil); border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.form__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--gris); }
.form__total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--petroleo); }
.form__error { margin: 0; color: #a1231b; font-weight: 500; font-size: .95rem; min-height: 0; }
.form__error:empty { display: none; }
.form__ok { background: var(--verde-claro); color: var(--verde-texto); border-radius: 12px; padding: 16px 18px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contacto { display: grid; gap: 28px; align-items: start; }
.canales { background: var(--petroleo); color: #dce8ea; border-radius: 20px; padding: 28px; }
.canales h2 { color: #fff; font-size: 1.4rem; }
.canales ul { display: grid; gap: 16px; margin-bottom: 18px; }
.canales li { display: grid; gap: 2px; }
.canales li span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9fbcc2; font-weight: 600; }
.canales a { color: #fff; word-break: break-word; }
.canales__nota { font-size: .88rem; color: #b9cdd1; margin: 0; }
@media (min-width: 900px) { .contacto { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* --------------------------------------------------------------- diálogos ---- */
.dialogo { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 20px; padding: 0; color: var(--texto); background: #fff; box-shadow: var(--sombra-alta); }
.dialogo--chico { width: min(440px, calc(100vw - 24px)); }
.dialogo::backdrop { background: rgba(13, 42, 51, .55); backdrop-filter: blur(2px); }
.dialogo__top { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--gris); }
.dialogo__top h2 { font-size: 1.4rem; margin: 0; }
.dialogo__cerrar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gris); color: var(--petroleo); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialogo__cerrar:hover { background: var(--linea-fria); }
.dialogo .form, .dialogo__resultado, .dialogo__aviso, .dialogo__resumen { padding: 0 22px; }
.dialogo .form { padding-bottom: 24px; }
.dialogo__resumen { margin: 18px 0 8px; }
.dialogo__resumen:empty { display: none; }
.resumen-nivel { background: var(--marfil); border-radius: 12px; padding: 14px 16px; }
.resumen-nivel small { display: block; color: var(--terracota-texto); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.resumen-nivel strong { font-family: var(--serif); color: var(--tinta); font-size: 1.08rem; line-height: 1.35; display: block; margin-top: 2px; }
.resumen-nivel p { margin: 8px 0 0; font-size: .88rem; color: var(--texto-suave); }
.dialogo__aviso { margin: 16px 0 0; background: var(--terracota-claro); border-radius: 12px; padding: 12px 14px; font-size: .93rem; margin-left: 22px; margin-right: 22px; }
.dialogo--chico .form { padding-top: 18px; }
.dialogo__resultado { padding-top: 22px; padding-bottom: 26px; }
.dialogo__resultado h3 { font-size: 1.35rem; }
.dialogo__resultado .btn { margin-top: 8px; }
.datos-banco { background: var(--marfil); border-radius: 12px; padding: 14px 16px; margin: 12px 0; display: grid; gap: 4px; }
.comprobante { display: grid; gap: 12px; margin: 14px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--sombra-alta); max-width: calc(100vw - 32px); font-size: .95rem; }

/* ------------------------------------------------------------------- pie ---- */
.footer { background: var(--petroleo-900); color: #c7d7da; padding: clamp(48px, 7vw, 80px) 0 0; font-size: .95rem; }
.footer__inner { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.footer__logo img { height: 56px; width: auto; }
.footer__marca p { max-width: 42ch; }
.footer__lema { font-family: var(--serif); font-style: italic; color: #f0b9a2; }
.footer h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer a { color: #e6eff0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__alcance { max-width: var(--ancho); margin: 40px auto 0; padding: 22px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9fbcc2; }
.footer__alcance p { margin: 0; max-width: 110ch; }
.footer__alcance strong { color: #e6eff0; }
.footer__base { max-width: var(--ancho); margin: 0 auto; padding: 18px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; color: #8fadb3; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__base a { color: #b9cdd1; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1f7a4f; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.06); color: #fff; }

/* ---------------------------------------------------------- animaciones ---- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dip-card, .dip-card__img img, .btn { transition: none; }
}

@media print {
  .header, .footer, .wa-flotante, .filtros, .hero__acciones, .nivel-accion { display: none !important; }
  body { background: #fff; }
}
