/* ==========================================================================
   Instituto ICT — hoja de estilos principal
   Índice:
   1. Variables (colores, tipografía, espacios)
   2. Base
   3. Utilidades y layout
   4. Botones
   5. Barra superior y cabecera / menú
   6. Hero (inicio) y encabezado de páginas internas
   7. Componentes (tarjetas, beneficios, estadísticas, etc.)
   8. Pie de página y WhatsApp flotante
   9. Responsive
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --azul-950: #031845;
  --azul-900: #062a6e;
  --azul-800: #0a3a9c;
  --azul-600: #1463d6;
  --azul-100: #e6effd;
  --azul-50:  #f3f7fd;
  --rosa-600: #d4127e;
  --rosa-100: #fde8f3;
  --verde-wa: #25d366;

  --texto:        #172033;
  --texto-suave:  #55627a;
  --borde:        #dde5f0;
  --blanco:       #ffffff;

  --fuente-titulos: "Montserrat", system-ui, sans-serif;
  --fuente-texto:   "Inter", system-ui, sans-serif;

  --radio:    14px;
  --radio-sm: 8px;
  --sombra:   0 10px 30px -12px rgba(6, 42, 110, .25);
  --sombra-sm: 0 2px 8px rgba(6, 42, 110, .08);

  --ancho: 1200px;
  --alto-header: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--azul-950);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--azul-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--rosa-600); outline-offset: 2px; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Utilidades y layout --------------------------------------------------- */
.container { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

.section { padding: 88px 0; }
.section--alt { background: var(--azul-50); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--texto-suave); font-size: 1.08rem; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--fuente-titulos);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rosa-600);
  margin-bottom: .6em;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide-left { grid-template-columns: 1.3fr 1fr; }

.text-muted { color: var(--texto-suave); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--azul-900); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

/* 4. Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--azul-800); color: #fff; }
.btn--primary:hover { background: var(--azul-900); box-shadow: var(--sombra); }
.btn--accent { background: var(--rosa-600); color: #fff; }
.btn--accent:hover { background: #b50e6a; box-shadow: 0 10px 24px -10px rgba(212, 18, 126, .6); }
.btn--outline { border-color: var(--azul-800); color: var(--azul-800); background: transparent; }
.btn--outline:hover { background: var(--azul-800); color: #fff; }
.btn--light { background: #fff; color: var(--azul-900); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--azul-900); }
.btn--wa { background: var(--verde-wa); color: #fff; }
.btn--wa:hover { background: #1eb858; }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Barra superior y cabecera -------------------------------------------- */
.topbar { background: var(--azul-950); color: #cfdcf5; font-size: .85rem; }
.topbar .container { max-width: 1400px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar a { color: #cfdcf5; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

#site-header { min-height: calc(var(--alto-header) + 40px); }

.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--borde); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--sombra-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--alto-header); gap: 16px; max-width: 1400px; }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 8px;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  color: var(--azul-950);
  background: none; border: 0; cursor: pointer;
  border-radius: var(--radio-sm);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--azul-600); background: var(--azul-50); text-decoration: none; }
.nav__link.is-active { color: var(--azul-600); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown--right { left: auto; right: 0; }
.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown,
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .icon,
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radio-sm);
  color: var(--texto);
  font-size: .92rem;
}
.dropdown a:hover { background: var(--azul-50); color: var(--azul-800); text-decoration: none; }
.dropdown a .icon { width: 14px; height: 14px; color: var(--texto-suave); }

.nav__cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--azul-950); }
.nav-toggle .icon { width: 28px; height: 28px; }

/* 6. Hero de inicio y encabezado de páginas -------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--azul-950) url("../img/fotos/fachada.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(3, 24, 69, .95) 0%, rgba(6, 42, 110, .85) 45%, rgba(6, 42, 110, .25) 100%);
}
.hero .container { padding-top: 110px; padding-bottom: 150px; }
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: #ff7cc3; }
.hero p { font-size: 1.15rem; color: #dbe6fb; max-width: 540px; }
.hero .btn-group { margin-top: 28px; }
.badge-licencia {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.badge-licencia .icon { width: 22px; height: 22px; padding: 3px; background: var(--rosa-600); border-radius: 50%; }

.stats { position: relative; margin-top: -70px; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra);
  overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--borde); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--fuente-titulos); font-size: 1.9rem; font-weight: 800; color: var(--azul-800); line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--texto-suave); }

.page-hero {
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
  background: linear-gradient(120deg, var(--azul-950), var(--azul-800));
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1;
  right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 18, 126, .35), transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-hero p { color: #cfdcf5; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: #9fb5e0; margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: #cfdcf5; }

.page-hero--carrera { padding: 64px 0; }
.page-hero--carrera .split { gap: 40px; }
.page-hero--carrera img { border-radius: var(--radio); box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.page-hero--rosa { background: linear-gradient(120deg, #4a0a3a, var(--rosa-600)); }
.page-hero--rosa::after { background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.page-hero--rosa .breadcrumb, .page-hero--rosa .breadcrumb a, .page-hero--rosa p { color: #fbd9ec; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.pill-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .88rem; font-weight: 600; }
.pill-list .icon { width: 16px; height: 16px; }

/* 7. Componentes ---------------------------------------------------------- */

/* Tarjetas de programas */
.program-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden; box-shadow: var(--sombra-sm);
  transition: transform .25s, box-shadow .25s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.program-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--azul-100); }
.program-card__img img { width: 100%; height: 100%; object-fit: cover; }
.program-card__tag {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: #fff; color: var(--azul-800);
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
}
.program-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program-card__meta { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: .92rem; color: var(--texto-suave); }
.program-card__meta li { display: flex; align-items: center; gap: 8px; }
.program-card__meta .icon { color: var(--azul-600); }
.program-card .btn { margin-top: auto; align-self: flex-start; }
.program-card--soon { opacity: .85; }
.program-card--soon .program-card__img img { filter: grayscale(.4); }
.program-card--soon .program-card__tag { background: var(--rosa-600); color: #fff; }

/* Beneficios / características */
.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--azul-600); box-shadow: var(--sombra-sm); }
.feature__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 14px;
  background: var(--azul-100); color: var(--azul-800);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--texto-suave); margin: 0; font-size: .95rem; }
.feature--rosa .feature__icon { background: var(--rosa-100); color: var(--rosa-600); }

/* Imagen con adorno */
.media-frame { position: relative; }
.media-frame img { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; }
.media-frame::before {
  content: ""; position: absolute; z-index: -1;
  inset: 24px -18px -18px 24px;
  border-radius: var(--radio);
  background: var(--azul-100);
}
.media-frame--rosa::before { background: var(--rosa-100); }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--azul-600); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

/* Convenios (logos) */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-strip__item {
  display: grid; place-items: center;
  height: 96px; padding: 16px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-sm);
}
.logo-strip__item img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip__item:hover img { filter: none; opacity: 1; }

.convenio-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  overflow: hidden;
}
.convenio-card__logo { display: grid; place-items: center; height: 140px; padding: 24px; border-bottom: 1px solid var(--borde); }
.convenio-card__logo img { max-height: 90px; width: auto; object-fit: contain; }
.convenio-card__body { padding: 22px 24px 26px; }
.convenio-card__body h3 { margin-bottom: .4em; }
.convenio-card__body p { color: var(--texto-suave); font-size: .94rem; margin: 0; }

/* Plataformas digitales */
.platform {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  color: var(--texto);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.platform:hover { border-color: var(--azul-600); transform: translateY(-3px); box-shadow: var(--sombra-sm); text-decoration: none; }
.platform__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--azul-800); color: #fff; flex-shrink: 0; }
.platform strong { display: block; font-family: var(--fuente-titulos); font-size: .98rem; color: var(--azul-950); }
.platform small { color: var(--texto-suave); }

/* Banda de llamada a la acción */
.cta-band {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 56px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--azul-900), var(--azul-600));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 18, 126, .55), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #dbe6fb; margin: 0; max-width: 560px; }

/* Misión / visión */
.mv-card { padding: 36px; border-radius: var(--radio); background: #fff; border-top: 5px solid var(--azul-800); box-shadow: var(--sombra-sm); }
.mv-card--rosa { border-top-color: var(--rosa-600); }
.mv-card h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.mv-card p { color: var(--texto-suave); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--borde); font-weight: 600; color: var(--azul-900); }

/* Autoridades */
.person-card { text-align: center; background: #fff; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); }
.person-card__photo { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--azul-100), #fff); overflow: hidden; }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-card__body { padding: 20px; }
.person-card h3 { margin-bottom: .2em; font-size: 1.08rem; }
.person-card p { margin: 0; color: var(--rosa-600); font-weight: 600; font-size: .9rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radio); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(3, 24, 69, .85));
  color: #fff; font-weight: 600; font-size: .9rem;
}
.gallery .span-2 { grid-column: span 2; }
.gallery .row-2 { grid-row: span 2; }

/* Documentos (transparencia) */
.doc-list { display: grid; gap: 14px; }
.doc-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  transition: border-color .2s, box-shadow .2s;
}
.doc-item:hover { border-color: var(--azul-600); box-shadow: var(--sombra-sm); }
.doc-item__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fdecec; color: #c62828; flex-shrink: 0; }
.doc-item__text { flex: 1; min-width: 0; }
.doc-item__text strong { display: block; font-family: var(--fuente-titulos); color: var(--azul-950); }
.doc-item__text small { color: var(--texto-suave); }
.doc-item__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.step { position: relative; text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); }
.step::before {
  counter-increment: paso; content: counter(paso);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--azul-800); color: #fff;
  font-family: var(--fuente-titulos); font-weight: 800;
}
.step img { height: 56px; width: auto; margin: 0 auto 12px; }
.step h3 { font-size: 1.02rem; margin-bottom: .3em; }
.step p { font-size: .92rem; color: var(--texto-suave); margin: 0; }

/* Acordeón (details/summary) */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--fuente-titulos); font-weight: 700; color: var(--azul-950);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s; color: var(--azul-600); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion details[open] summary { border-bottom: 1px solid var(--borde); }
.accordion__body { padding: 18px 22px 22px; color: var(--texto-suave); }
.accordion__body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Malla curricular */
.modulo { margin-bottom: 36px; }
.modulo:last-child { margin-bottom: 0; }
.modulo__title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; color: var(--azul-800); }
.modulo__title span { padding: 4px 12px; border-radius: 999px; background: var(--azul-800); color: #fff; font-size: .8rem; }
.ciclo { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.ciclo h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--azul-100); }
.ciclo h3 small { font-family: var(--fuente-texto); font-weight: 500; font-size: .8rem; color: var(--texto-suave); }
.ciclo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.ciclo li { display: flex; gap: 10px; }
.ciclo li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--azul-600); margin-top: .6em; flex-shrink: 0; }
.tema-rosa .modulo__title { color: var(--rosa-600); }
.tema-rosa .modulo__title span { background: var(--rosa-600); }
.tema-rosa .ciclo h3 { border-bottom-color: var(--rosa-100); }
.tema-rosa .ciclo li::before { background: var(--rosa-600); }
.tema-rosa .check-list .icon { background: var(--rosa-600); }

/* Requisitos */
.req-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); }
.req-card .feature__icon { margin: 0; width: 46px; height: 46px; }
.req-card strong { display: block; font-family: var(--fuente-titulos); color: var(--azul-950); }
.req-card small { color: var(--texto-suave); }

/* Tarjetas de contacto */
.contact-card { display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); }
.contact-card .feature__icon { margin: 0; width: 46px; height: 46px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2em; }
.contact-card p { margin: 0; color: var(--texto-suave); font-size: .95rem; }

.map { width: 100%; height: 380px; border: 0; border-radius: var(--radio); box-shadow: var(--sombra-sm); }

/* Formularios */
.form { display: grid; gap: 16px; padding: 32px; background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); box-shadow: var(--sombra-sm); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--azul-950); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--borde); border-radius: var(--radio-sm);
  background: var(--azul-50);
  color: var(--texto);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--azul-600); outline-offset: 0; background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form small { color: var(--texto-suave); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Aviso */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radio); background: var(--azul-100); color: var(--azul-950); }
.notice .icon { color: var(--azul-800); margin-top: 3px; }
.notice p { margin: 0; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* 8. Pie de página -------------------------------------------------------- */
.footer { background: var(--azul-950); color: #b7c7e6; font-size: .94rem; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding: 72px 0 48px; }
.footer__logo { width: 120px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #b7c7e6; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { color: #ff7cc3; margin-top: 3px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.footer__social a:hover { background: var(--rosa-600); text-decoration: none; }
.footer__reclamos { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: var(--radio-sm); background: #fff; color: var(--azul-950) !important; font-weight: 700; font-size: .88rem; }
.footer__reclamos:hover { text-decoration: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.footer__reclamos img { height: 34px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--verde-wa); color: #fff !important;
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.05); text-decoration: none; }
.wa-float .icon { width: 26px; height: 26px; }

.to-top {
  position: fixed; right: 26px; bottom: 86px; z-index: 90;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--azul-800); color: #fff; border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* 9. Responsive ----------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--alto-header) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 20px 32px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--borde); border-radius: 0; }
  .dropdown {
    position: static; min-width: 0;
    border: 0; box-shadow: none; border-radius: 0;
    padding: 0 0 8px 12px;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { display: none; }
  .nav__item.is-open > .dropdown { display: block; }
  .nav__item:hover > .nav__link .icon { transform: none; }
  .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
  .nav__cta { margin: 20px 0 0; }
  body.nav-open { overflow: hidden; }

  .footer__main { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--borde); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .topbar__info span:nth-child(2) { display: none; }
  .page-hero--carrera .media-frame { max-width: 420px; }
}

@media (max-width: 600px) {
  :root { --alto-header: 66px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero .container { padding-top: 72px; padding-bottom: 120px; }
  .header__logo img { height: 38px; }
  .topbar__info span:first-child { display: none; }
  .topbar__links a span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .doc-item { flex-wrap: wrap; }
  .doc-item__actions { width: 100%; }
  .doc-item__actions .btn { flex: 1; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .to-top { right: 24px; bottom: 84px; }
  .gallery .span-2 { grid-column: span 2; }
}

/* Tarjetas de contacto que son enlaces */
a.contact-card { color: inherit; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { text-decoration: none; border-color: var(--azul-600); box-shadow: var(--sombra-sm); }

/* Banner de campaña (se activa desde el panel) */
.campana-wrap { padding-top: 40px; padding-bottom: 0; }
.campana {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 28px;
  padding: 28px 36px;
  border-radius: var(--radio);
  background: linear-gradient(110deg, var(--rosa-600), #8e0c63);
  color: #fff;
  box-shadow: 0 16px 36px -18px rgba(212, 18, 126, .7);
}
.campana__img { width: 150px; height: 110px; object-fit: cover; border-radius: var(--radio-sm); flex-shrink: 0; }
.campana__texto { flex: 1; min-width: 0; }
.campana__etiqueta { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.campana h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0 0 .25em; }
.campana p { margin: 0; color: #fde3f1; }
.campana .btn { flex-shrink: 0; color: var(--rosa-600); }
@media (max-width: 700px) {
  .campana { flex-direction: column; align-items: flex-start; padding: 24px; }
  .campana__img { width: 100%; height: 160px; }
}

/* Formulario de interesados */
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form label small { font-weight: 400; }
.form__check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: .88rem !important; color: var(--texto-suave) !important; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--azul-800); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .7; transform: none; }

.bloque-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.bloque-form__texto .check-list { margin-top: 20px; }

/* Página de agradecimiento */
.gracias { max-width: 640px; text-align: center; }
.gracias__icono { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.gracias__icono .icon { width: 44px; height: 44px; stroke-width: 3; }
.gracias__texto { color: var(--texto-suave); font-size: 1.08rem; }
.gracias__descarga { display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 20px 22px; text-align: left; background: var(--azul-50); border: 1px solid var(--borde); border-radius: var(--radio); }
.gracias__descarga > .icon { width: 36px; height: 36px; color: #c62828; }
.gracias__descarga div { flex: 1; display: grid; }
.gracias__descarga small { color: var(--texto-suave); }

/* Barra fija en celulares */
.barra-movil { display: none; }
@media (max-width: 768px) {
  .barra-movil {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: 0 -6px 20px rgba(3, 24, 69, .15);
  }
  .barra-movil a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-family: var(--fuente-titulos); font-weight: 700; color: #fff; text-decoration: none; }
  .barra-movil .icon { width: 20px; height: 20px; }
  .barra-movil__wa { background: var(--verde-wa); }
  .barra-movil__cta { background: var(--rosa-600); }
  .wa-float { display: none; }
  .to-top { bottom: 72px; }
  body { padding-bottom: 56px; }
  .bloque-form { grid-template-columns: 1fr; gap: 28px; }
}

/* Páginas de texto legal */
.texto-legal { max-width: 820px; }
.texto-legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.texto-legal h2:first-child { margin-top: 0; }
.texto-legal p, .texto-legal li { color: var(--texto-suave); }

/* Resolución de licenciamiento */
.footer__resolucion { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: #dbe6fb; }
.footer__resolucion .icon { color: #ff7cc3; margin-top: 2px; }
.resolucion { margin-top: 14px !important; padding: 10px 14px; border-radius: var(--radio-sm); background: #fff; color: var(--azul-950) !important; font-size: .92rem; }

/* Página 404 (no encontrada) */
.no-encontrada { text-align: center; }
.no-encontrada__codigo {
  font-family: var(--fuente-titulos); font-weight: 800; line-height: 1;
  font-size: clamp(5rem, 16vw, 9rem);
  background: linear-gradient(120deg, var(--azul-800), var(--rosa-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.no-encontrada__texto { max-width: 620px; margin: 0 auto 36px; color: var(--texto-suave); font-size: 1.08rem; }
.no-encontrada__opciones { max-width: 960px; margin: 0 auto; text-align: left; }
.no-encontrada__botones { justify-content: center; margin-top: 36px; }
