/* =========================================================
   Instituto Politécnico Sonsonate — Landing page
   Colores institucionales: azul, blanco y amarillo
   ========================================================= */

:root {
  --navy-900: #06142f;
  --navy-800: #0b1f4b;
  --navy-700: #13306b;
  --blue-600: #1e4fa8;
  --blue-100: #e8effb;
  --yellow-500: #ffc20e;
  --yellow-400: #ffd23f;
  --yellow-100: #fff6d6;
  --white: #ffffff;
  --cream: #fffdf6;
  --ink: #16213a;
  --muted: #56617a;
  --line: #e3e8f1;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 75, .08);
  --shadow: 0 12px 32px rgba(11, 31, 75, .12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 75, .22);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;

  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-800); }
p { margin: 0 0 1em; }

svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow-500); color: var(--navy-800); box-shadow: 0 8px 20px rgba(255, 194, 14, .35); }
.btn--yellow:hover { background: var(--yellow-400); }
.btn--navy { background: var(--navy-800); color: var(--white); box-shadow: 0 8px 20px rgba(11, 31, 75, .3); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn .ico-wa, .float-wa svg { fill: currentColor; stroke: none; }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--blue-600); font-weight: 700; font-size: .92rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--navy-800); }

.badge {
  display: inline-block;
  padding: .25em .8em;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.badge--yellow { background: var(--yellow-100); color: #8a6400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: .75em;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow-500); }
.eyebrow--light { color: var(--yellow-400); }

/* ---------- Barra de anuncio ---------- */
.announce { background: var(--yellow-500); color: var(--navy-800); font-size: .88rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .55rem 0; text-align: center; flex-wrap: wrap; }
.announce p { margin: 0; }
.announce__badge { background: var(--navy-800); color: var(--yellow-400); padding: .1em .6em; border-radius: 999px; font-weight: 800; font-size: .75rem; }
.announce__link { color: var(--navy-800); font-weight: 800; text-decoration: none; }
.announce__link:hover { text-decoration: underline; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--navy-800); text-transform: uppercase; letter-spacing: .02em; }
.brand__sub { font-size: .72rem; font-weight: 700; letter-spacing: .38em; color: var(--blue-600); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: .5rem .7rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  border-radius: 8px;
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem;
  height: 3px; border-radius: 3px; background: var(--yellow-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-800); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--navy-800); transition: transform .3s ease, opacity .3s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(6, 20, 47, .96) 0%, rgba(11, 31, 75, .9) 45%, rgba(19, 48, 107, .72) 100%),
    url("../images/renovado.png") center / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 14px dashed rgba(255, 194, 14, .35);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 800; line-height: 1; text-transform: uppercase;
  color: var(--white); margin-bottom: .4em;
}
.hl { color: var(--yellow-500); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.hero__pills li {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: .88rem; font-weight: 600;
}
.hero__pills svg { color: var(--yellow-500); }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 60px; fill: var(--white); stroke: none; }

/* Promo */
.promo {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 420px; justify-self: end; width: 100%;
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.promo:hover { transform: rotate(0); }
.promo__img { display: block; width: 100%; padding: 0; border: 0; background: var(--navy-800); }
.promo__img img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: center 55%; transition: transform .4s ease; }
.promo__img:hover img { transform: scale(1.04); }
.promo__body { padding: 1.1rem 1.3rem 1.3rem; text-align: center; }
.promo__label { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; color: var(--navy-800); margin: 0; line-height: 1.1; }
.promo__sub { margin: .2rem 0 .7rem; color: var(--muted); font-size: .88rem; }
.promo__ended { margin: 0; font-weight: 600; color: var(--navy-800); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.countdown div { background: var(--navy-800); border-radius: 12px; padding: .5rem .25rem; color: var(--white); }
.countdown span { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--yellow-500); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* ---------- Datos rápidos ---------- */
.facts { margin-top: -2.5rem; position: relative; z-index: 2; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fact { padding: 1.5rem 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--navy-800); line-height: 1; }
.fact__num::after { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--yellow-500); margin: .5rem auto .6rem; }
.fact__label { font-size: .88rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section--soft { background: linear-gradient(180deg, var(--cream), #f4f7fd); }
.section--navy { background: var(--navy-800); color: rgba(255, 255, 255, .88); }
.section--navy .section__title, .section--navy h3 { color: var(--white); }
.section--navy .section__lead { color: rgba(255, 255, 255, .75); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section__head .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow-500); }
.section__title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; padding: 0 2.5rem 3rem 0; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; }
.about__img--main { width: 100%; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.about__img--float {
  position: absolute; right: 0; bottom: 0;
  width: 55%; aspect-ratio: 16 / 10;
  border: 6px solid var(--white); box-shadow: var(--shadow-lg);
}
.about__tag {
  position: absolute; left: 1rem; top: 1rem;
  background: var(--yellow-500); color: var(--navy-800);
  font-weight: 800; font-size: .8rem; padding: .4em .9em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.about__content > p { color: var(--muted); }
.about__content strong { color: var(--navy-800); }

.tabs { margin-top: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.tabs__btn {
  border: 0; background: transparent; padding: .7rem .5rem; border-radius: 12px;
  font-weight: 700; color: var(--muted); transition: background .2s ease, color .2s ease;
}
.tabs__btn:hover { color: var(--navy-800); }
.tabs__btn.is-active { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-sm); }
.tabs__panel { padding: 1.1rem 1rem .6rem; animation: fadeUp .35s ease; }
.tabs__panel p { color: var(--ink); margin-bottom: .8em; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.chips li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow-500); padding: .3em .8em; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--navy-800); }

.founders {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, .85);
  position: relative; overflow: hidden;
}
.founders::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow-500); opacity: .14; }
.founders__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); border: 5px solid var(--yellow-500); }
.founders h3 { color: var(--white); font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.3rem); text-transform: uppercase; }
.founders__text { position: relative; z-index: 1; }

/* ---------- Carreras ---------- */
.careers { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.career {
  flex: 0 1 calc((100% - 3rem) / 3);
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left; padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: inherit;
}
.career:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--yellow-500); }
.career__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.career__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .5s ease; }
.career:hover .career__media img { transform: scale(1.06); }
.career__icon {
  position: absolute; left: 1rem; bottom: -22px;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--yellow-500); color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.career__icon svg { width: 26px; height: 26px; }
.career__body { padding: 2rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.career__type { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .3rem; }
.career__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: .4rem; }
.career__text { color: var(--muted); font-size: .92rem; flex: 1; }
.career__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy-800); font-size: .9rem; }
.career__more svg { transition: transform .2s ease; }
.career:hover .career__more svg { transform: translateX(4px); }

/* ---------- Admisiones ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step__num {
  position: absolute; top: -20px; left: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--yellow-500);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 5px var(--white);
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-left: 1.8rem; font-size: .95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.2rem; height: 1.2rem; border-radius: 6px;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc20e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 3vw, 2rem); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card__head h3 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; margin: 0; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.fees__table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 360px; }
.fees__table th, .fees__table td { padding: .85rem 1rem; text-align: left; }
.fees__table thead th { background: var(--navy-800); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.fees__table tbody tr:nth-child(odd) { background: #f7f9fd; }
.fees__table tbody th { font-weight: 700; color: var(--navy-800); }
.fees__table tbody th small { display: block; font-weight: 500; color: var(--muted); }
.fees__table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.fees__table s { color: var(--muted); font-weight: 500; }
.fees__table tfoot th, .fees__table tfoot td { background: var(--yellow-100); color: var(--navy-800); font-weight: 700; }
.free { display: inline-block; background: var(--yellow-500); color: var(--navy-800); font-size: .72rem; font-weight: 800; padding: .15em .5em; border-radius: 6px; margin-left: .25rem; }
.note { font-size: .82rem; color: var(--muted); margin: .75rem 0 1rem; }

.schedule { display: flex; align-items: center; gap: .9rem; background: var(--blue-100); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: 1rem; }
.schedule svg { width: 30px; height: 30px; color: var(--blue-600); }
.schedule strong { display: block; color: var(--navy-800); }
.schedule span { font-size: .92rem; color: var(--muted); }

.pay p { color: var(--muted); }
.pay__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.pay__list li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--navy-800); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; }
.pay__list svg { color: var(--blue-600); width: 24px; height: 24px; }
.pay__perks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-weight: 700; color: var(--blue-600); font-size: .9rem; margin-bottom: 1rem; }
.pay__img { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: none; }
.pay__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; transition: transform .4s ease; }
.pay__img:hover img { transform: scale(1.04); }

/* ---------- Vida IPS ---------- */
.band {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.band__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.band__text { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.band__logo { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; background: var(--white); padding: 4px; }
.band h3 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; }
.band p { margin: 0; }

.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem 1rem; margin-bottom: .5rem; scrollbar-width: none; justify-content: center; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white);
  padding: .55em 1.1em; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--yellow-500); }
.filter.is-active { background: var(--yellow-500); color: var(--navy-800); border-color: var(--yellow-500); }

.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery__item {
  break-inside: avoid;
  position: relative;
  display: block; width: 100%;
  margin: 0 0 1rem; padding: 0; border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-700);
  animation: fadeUp .45s ease both;
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(6, 20, 47, .92));
  color: var(--white); font-size: .85rem; font-weight: 600; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Convenios ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.partner { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner__img { padding: 0; border: 0; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.partner__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.partner__img:hover img { transform: scale(1.05); }
.partner__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; flex: 1; }
.partner__body h3 { font-size: 1.15rem; margin: .3rem 0 0; }
.partner__body p { color: var(--muted); font-size: .93rem; margin: 0 0 .4rem; flex: 1; }

/* ---------- CTA ---------- */
.cta { background: var(--yellow-500); position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 10px dashed rgba(11, 31, 75, .15); }
.cta::before { width: 260px; height: 260px; left: -80px; top: -120px; }
.cta::after { width: 200px; height: 200px; right: 8%; bottom: -120px; }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(2.5rem, 6vw, 3.5rem) 0; flex-wrap: wrap; }
.cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin: 0 0 .2em; }
.cta p { margin: 0; color: var(--navy-800); font-weight: 500; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list strong { display: block; color: var(--navy-800); }
.contact__list a, .contact__list span { color: var(--muted); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--blue-600); text-decoration: underline; }
.contact__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-100); color: var(--navy-800); flex-shrink: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--blue-100); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { position: sticky; top: calc(var(--header-h) + 1rem); border-top: 6px solid var(--yellow-500); }
.form h3 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; margin-bottom: .2rem; }
.form__hint { color: var(--muted); font-size: .88rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-weight: 700; font-size: .88rem; color: var(--navy-800); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fbfcfe; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(30, 79, 168, .15); background: var(--white); }
.field__error { display: none; color: #c0392b; font-size: .8rem; margin-top: .3rem; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; }
.field.is-invalid .field__error { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { border-radius: 12px; background: var(--white); object-fit: contain; }
.footer__brand strong { color: var(--white); font-size: 1.05rem; }
.footer__brand p { margin: .3rem 0 0; }
.footer__nav, .footer__contact { display: grid; gap: .45rem; align-content: start; }
.footer a { color: rgba(255, 255, 255, .75); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--yellow-400); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ---------- Flotantes ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 26px; bottom: 88px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--yellow-500);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 47, .7); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal__dialog {
  position: relative;
  width: min(960px, 100%); max-height: calc(100vh - 32px);
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  animation: pop .3s ease;
}
.modal__media { background: var(--blue-100); overflow: auto; }
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.modal__body { padding: clamp(1.25rem, 3vw, 2rem); overflow-y: auto; }
.modal__body h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); text-transform: uppercase; margin: .6rem 0 .5rem; }
.modal__body p { color: var(--muted); font-size: .95rem; }
.modal__body h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); margin: 1.2rem 0 .7rem; }
.modal__body .btn { margin-top: 1.5rem; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--navy-800); color: var(--white); font-size: 1.6rem; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(6, 20, 47, .95); display: flex; align-items: center; justify-content: center; padding: 60px 16px; animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox__figure img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .3s ease; }
.lightbox__figure figcaption { color: var(--white); margin-top: .9rem; font-weight: 600; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; color: var(--white);
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow-500); color: var(--navy-800); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }

body.no-scroll { overflow: hidden; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.promo.reveal.is-visible { transform: rotate(1.5deg); }
.promo.reveal.is-visible:hover { transform: rotate(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__list { gap: 0; }
  .nav__link { padding: .5rem .5rem; font-size: .87rem; }
  .nav__link::after { left: .5rem; right: .5rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem 16px 2rem;
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link { padding: .95rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--blue-100); }
  .nav__cta { padding: 1em; }

  .hero__inner { grid-template-columns: 1fr; }
  .promo { justify-self: center; max-width: 440px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .career { flex-basis: calc((100% - 1.5rem) / 2); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .admin-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .form { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .modal__dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media { max-height: 42vh; }
  .modal__media img { height: auto; }
  .modal__body { overflow: visible; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 1.05rem; }
  .brand__logo { width: 40px; height: 40px; }
  .announce__inner { font-size: .8rem; gap: .4rem; }
  .announce__link { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__bg::after { width: 260px; height: 260px; right: -100px; top: -80px; }
  .promo, .promo.reveal.is-visible { transform: none; }
  .countdown span { font-size: 1.5rem; }
  .fact { padding: 1.2rem .8rem; }
  .fact__num { font-size: 2.1rem; }
  .fact__label { font-size: .8rem; }
  .about__media { padding: 0 1.25rem 2rem 0; }
  .founders { grid-template-columns: 1fr; text-align: center; }
  .founders__img { max-width: 220px; margin-inline: auto; }
  .founders .eyebrow { justify-content: center; }
  .founders .btn { white-space: normal; }
  .career { flex-basis: 100%; }
  .partners { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .gallery { columns: 2 140px; column-gap: .6rem; }
  .gallery__item { margin-bottom: .6rem; border-radius: 12px; }
  .gallery__cap { display: none; }
  .cta__inner { text-align: center; justify-content: center; }
  .cta .btn { width: 100%; white-space: normal; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}
