/* =========================================================================
   CEBA García Lorca — hoja de estilos única
   Sin frameworks. La paleta sale del logotipo institucional:
   azul #304E75 y oro #CCA852.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Azules */
  --navy-900: #101c30;
  --navy-850: #16233a;
  --navy-800: #22395b;
  --navy-700: #304e75;   /* azul del logotipo */
  --navy-600: #3e6394;
  --azul-500: #4a82c8;
  --azul-200: #c3d6ec;
  --azul-100: #dde8f5;
  --azul-50:  #f0f5fb;

  /* Oros */
  --oro-700: #8a6a21;
  --oro-600: #a8862f;
  --oro-500: #cca852;    /* oro del logotipo */
  --oro-400: #e0c47f;
  --oro-300: #f0dcae;
  --oro-50:  #faf4e6;

  --verde: #1e8e5a;
  --verde-50: #e8f5ee;
  --whatsapp: #25d366;
  --rojo: #c0322f;

  --tinta:  #14203a;
  --texto:  #4a566d;
  --suave:  #6f7c93;
  --linea:  #e3e8f0;
  --papel:  #ffffff;
  --papel-2: #f5f8fc;

  --radio-sm: 10px;
  --radio:    16px;
  --radio-lg: 22px;
  --radio-pill: 999px;

  --sombra-sm: 0 1px 2px rgba(20, 32, 58, .05), 0 2px 6px rgba(20, 32, 58, .04);
  --sombra:    0 2px 8px rgba(20, 32, 58, .05), 0 16px 34px rgba(20, 32, 58, .08);
  --sombra-lg: 0 4px 14px rgba(20, 32, 58, .06), 0 30px 64px rgba(20, 32, 58, .16);

  --header-h: 76px;
  --container: 1180px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Permite animar la apertura de los <details> donde el navegador lo soporta */
  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0 0 .55em;
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--tinta);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--oro-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--oro-300); color: var(--tinta); }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(60px, 8vw, 112px) 0; }
.section--soft { background: var(--papel-2); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--navy-850);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radio-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 1.5rem; height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--solid { fill: currentColor; stroke: none; }

/* Barra de progreso de lectura */
.progress {
  position: fixed;
  top: calc(var(--header-h) - 2px);
  left: 0;
  z-index: 101;
  width: 100%;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--oro-600), var(--oro-400));
}

/* ---------- Encabezado de sección: título a la izquierda, bajada a la derecha ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  gap: 10px clamp(32px, 5vw, 72px);
  margin-bottom: clamp(38px, 5vw, 64px);
}
.section-head::before {
  content: "";
  grid-column: 1 / -1;
  height: 2px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--oro-500) 0%, var(--oro-300) 18%, var(--linea) 55%, transparent 100%);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.9vw, 2.85rem);
  max-width: 17ch;
}
.section-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--suave);
  font-size: 1.05rem;
}
.section-head--invert h2 { color: #fff; }
.section-head--invert p { color: rgba(255, 255, 255, .72); }
.section-head--invert::before {
  background: linear-gradient(90deg, var(--oro-500) 0%, var(--oro-600) 18%, rgba(255, 255, 255, .16) 55%, transparent 100%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radio-pill);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn .icon { width: 1.2rem; height: 1.2rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(48, 78, 117, .24);
}
.btn--primary:hover { background: var(--navy-800); color: #fff; box-shadow: 0 12px 26px rgba(48, 78, 117, .3); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #05301a;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}
.btn--whatsapp:hover { background: #1ec25c; color: #05301a; }

/* Contorno: legible tanto sobre el panel azul como sobre fondo claro */
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .7); }

.btn--block { width: 100%; }

/* =========================================================================
   Cabecera
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 32, 58, .08); }
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radio-pill);
  color: var(--tinta);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { background: var(--azul-50); color: var(--navy-700); }
.nav a.is-active { color: var(--navy-700); background: var(--azul-50); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: 10px;
  padding: 10px 18px !important;
  background: var(--navy-700) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--navy-800) !important; color: #fff !important; }
.nav__cta .icon { width: 1rem; height: 1rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 12px;
  color: var(--navy-700);
  cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* =========================================================================
   Hero — panel azul a sangre
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 76px)) 0 0;
  background: var(--navy-850);
  color: rgba(255, 255, 255, .78);
}

/* Resplandor lento, contenido dentro del panel */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__glow::before {
  width: 44rem; height: 34rem;
  top: -14rem; left: -10rem;
  background: radial-gradient(closest-side, rgba(62, 99, 148, .85), transparent);
  animation: derivaA 26s var(--ease) infinite alternate;
}
.hero__glow::after {
  width: 36rem; height: 30rem;
  bottom: -12rem; right: -6rem;
  background: radial-gradient(closest-side, rgba(204, 168, 82, .3), transparent);
  animation: derivaB 32s var(--ease) infinite alternate;
}
@keyframes derivaA {
  to { transform: translate3d(9rem, 5rem, 0) scale(1.18); }
}
@keyframes derivaB {
  to { transform: translate3d(-7rem, -4rem, 0) scale(1.12); }
}

/* Grano fino: le quita el aspecto plano al degradado */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

/* Credencial: el dato que más pesa a la hora de confiar */
.credential {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 24px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(204, 168, 82, .38);
  border-radius: var(--radio-pill);
  background: rgba(204, 168, 82, .1);
  color: var(--oro-300);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.credential .icon { width: 1.05rem; height: 1.05rem; color: var(--oro-400); }

.hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero h1 .line > span { display: block; }

.hero__lead {
  max-width: 47ch;
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, .75);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}
.hero__points .emo { font-size: 1.15rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .38));
}

/* ---------- Sello oficial ---------- */
.seal {
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: clamp(96px, 12vw, 134px);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(20, 32, 58, .3));
}
.seal__disc { fill: #0d1729; }
.seal__rule { fill: none; stroke: rgba(204, 168, 82, .5); stroke-width: 1.2; }
.seal__text {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  fill: var(--oro-500);
}
.seal__ring {
  transform-origin: 100px 100px;
  animation: giroSello 40s linear infinite;
}
@keyframes giroSello { to { transform: rotate(360deg); } }

.seal__code {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}
.seal__org {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  fill: var(--oro-500);
  text-anchor: middle;
}

/* ---------- Cifras: losa blanca que cruza el borde del panel ---------- */
.hero > .container:last-child {
  position: relative;
  z-index: 2;
  margin-top: clamp(44px, 6vw, 72px);
  margin-bottom: -46px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px clamp(10px, 2vw, 22px);
  background: var(--papel);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
}
.stats > li { padding: 4px 18px; text-align: center; }
.stats > li + li { border-left: 1px solid var(--linea); }
.stat__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy-700);
}
.stat__label {
  display: block;
  margin-top: 5px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--suave);
}

/* =========================================================================
   Cinta de datos
   ========================================================================= */
.ticker {
  overflow: hidden;
  margin-top: clamp(78px, 9vw, 116px);
  padding: 14px 0;
  border-block: 1px solid var(--linea);
  background: var(--oro-50);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: desfile 34s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: 2.2rem;
}
.ticker__group b {
  font-size: .95rem;
  font-weight: 600;
  color: var(--oro-700);
  white-space: nowrap;
}
.ticker__group i {
  width: 6px; height: 6px;
  margin: 0 2.2rem;
  flex: none;
  background: var(--oro-500);
  transform: rotate(45deg);
}
@keyframes desfile { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* =========================================================================
   Pilares: columnas separadas por filetes, sin cajas
   ========================================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linea);
}
.pillar { padding: 32px 34px 4px; border-left: 1px solid var(--linea); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.pillar p { color: var(--suave); font-size: 1rem; }

/* =========================================================================
   Filas alternadas con imagen
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}
.feature--reverse .feature__media { order: 2; }
.feature h3 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); }
.feature__media {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--radio-lg);
  background: linear-gradient(155deg, var(--azul-50), var(--oro-50));
}
.feature__media img { width: 100%; }
.feature__cta { margin-top: 26px; }

.checklist { margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--texto);
}
.checklist .icon {
  width: 1.3rem; height: 1.3rem;
  margin-top: .2rem;
  color: var(--verde);
  stroke-width: 2.5;
}

/* =========================================================================
   Cómo empezar (sección oscura). Es una secuencia real, así que va numerada.
   ========================================================================= */
.section--dark {
  position: relative;
  background: var(--navy-850);
  color: rgba(255, 255, 255, .72);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(204, 168, 82, .55), rgba(204, 168, 82, .18));
}
.step { position: relative; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--oro-500);
  color: var(--navy-900);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}
.step h3 { color: #fff; font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: rgba(255, 255, 255, .66); font-size: .98rem; }

.steps__cta { margin: clamp(40px, 5vw, 60px) 0 0; }

/* =========================================================================
   Cursos y talleres
   ========================================================================= */
.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.course {
  overflow: hidden;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.course:hover {
  transform: translateY(-4px);
  border-color: var(--oro-300);
  box-shadow: var(--sombra);
}
.course__media { overflow: hidden; background: var(--azul-50); }
.course__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.course:hover .course__media img { transform: scale(1.05); }
.course__body { padding: clamp(24px, 3vw, 34px); }
.course__body h3 { font-size: 1.35rem; }
.course__body p { color: var(--suave); margin-bottom: 0; }

/* =========================================================================
   Actividades (galería + filtros + lightbox)
   ========================================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filters button {
  padding: 9px 20px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio-pill);
  color: var(--texto);
  font-size: .94rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filters button:hover { border-color: var(--oro-300); background: var(--oro-50); color: var(--oro-700); }
.filters button[aria-pressed="true"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--azul-50);
  cursor: zoom-in;
  transition: box-shadow .3s var(--ease);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover { box-shadow: var(--sombra); }
.gallery__item:hover img { transform: scale(1.06); }

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(16, 28, 48, .94), rgba(16, 28, 48, .5) 48%, transparent);
  color: #fff;
  text-align: left;
}
.gallery__caption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
}
.gallery__caption span { font-size: .86rem; color: rgba(255, 255, 255, .8); }
.gallery__caption .icon {
  width: 1.35rem; height: 1.35rem;
  flex: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .gallery__caption .icon,
.gallery__item:focus-visible .gallery__caption .icon { opacity: 1; transform: translateY(0); }

.gallery__item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 16, 30, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radio);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.lightbox__caption {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   Preguntas frecuentes
   ========================================================================= */
.faq { border-top: 1px solid var(--linea); max-width: 940px; }
.qa { border-bottom: 1px solid var(--linea); }
.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--tinta);
  transition: color .18s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--navy-700); }
.qa summary .icon {
  width: 1.4rem; height: 1.4rem;
  margin-top: .15rem;
  color: var(--oro-600);
  transition: transform .3s var(--ease);
}
.qa[open] summary .icon { transform: rotate(135deg); }
.qa__body { padding-bottom: 24px; max-width: 70ch; color: var(--suave); }

/* Apertura animada donde el navegador la soporta; en el resto, abre al instante */
.qa::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .32s var(--ease), content-visibility .32s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

/* =========================================================================
   Dirección
   ========================================================================= */
.director {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  max-width: 940px;
  margin-inline: auto;
}
.director__photo {
  border-radius: var(--radio-lg);
  background: linear-gradient(160deg, var(--azul-100), var(--oro-50));
  overflow: hidden;
}
.director__photo img { width: 100%; }
.director h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .1rem; }
.director__role {
  margin-bottom: 16px;
  color: var(--oro-700);
  font-weight: 600;
  font-size: .95rem;
}
.director__text p { max-width: 52ch; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--azul-50);
  color: var(--navy-700);
  transition: all .18s var(--ease);
}
.social a:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

/* =========================================================================
   Contacto
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.info-list { display: grid; gap: 12px; margin-bottom: 22px; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
}
.info-list .icon { color: var(--oro-600); margin-top: .15rem; }
.info-list strong {
  display: block;
  color: var(--tinta);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.info-list a, .info-list span { color: var(--texto); font-size: 1rem; }
.info-list a:hover { color: var(--oro-700); }

.map {
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--linea);
  background: var(--azul-50);
}
.map iframe { width: 100%; height: 300px; border: 0; }
.map__link { margin-top: 12px; font-size: .93rem; }
.map__link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.map__link .icon { width: 1rem; height: 1rem; }

/* ---------- Formulario ---------- */
.form-card {
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
}
.form-card h3 { font-size: 1.45rem; }
.form-card > p { color: var(--suave); margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--tinta);
  font-size: .9rem;
  font-weight: 600;
}
.field__opt { font-weight: 400; color: var(--suave); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--papel-2);
  border: 1px solid var(--linea);
  border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #99a5ba; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--papel);
  border-color: var(--oro-500);
  box-shadow: 0 0 0 4px rgba(204, 168, 82, .2);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--rojo);
  box-shadow: 0 0 0 4px rgba(192, 50, 47, .12);
}
.field__error {
  display: block;
  min-height: 1.2em;
  margin-top: 5px;
  color: var(--rojo);
  font-size: .85rem;
  font-weight: 600;
}

/* trampa anti-spam: fuera de la vista pero sin display:none */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-note {
  margin-top: 14px;
  color: var(--suave);
  font-size: .85rem;
  text-align: center;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: var(--verde-50); border: 1px solid #b6e5cb; color: #12603a; }
.form-status--error { background: #fdeceb; border: 1px solid #f3c4c2; color: #96201e; }
.form-status .icon { width: 1.25rem; height: 1.25rem; margin-top: .12rem; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn__spinner { display: block; }
.btn__spinner {
  display: none;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: giro .7s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }

/* =========================================================================
   Pie
   ========================================================================= */
.site-footer {
  padding: clamp(52px, 7vw, 80px) 0 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  font-size: .97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 44px;
}
.site-footer h2 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.site-footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: var(--oro-400); }
.footer-links { display: grid; gap: 10px; }
.footer-contact address { line-height: 1.9; }

.site-footer .social a { background: rgba(255, 255, 255, .09); color: #fff; }
.site-footer .social a:hover { background: var(--oro-500); color: var(--navy-900); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
  color: rgba(255, 255, 255, .5);
}

/* =========================================================================
   Acciones flotantes
   ========================================================================= */
.fab {
  position: fixed;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .22s var(--ease), opacity .22s var(--ease),
              visibility .22s var(--ease), background-color .22s var(--ease);
}
.fab:hover { transform: translateY(-3px); }

.fab--whatsapp {
  bottom: 20px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}
.fab--whatsapp .icon { width: 1.75rem; height: 1.75rem; }
.fab--whatsapp:hover { background: #1ec25c; color: #fff; }

.fab--top {
  bottom: 86px;
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--sombra);
  opacity: 0;
  visibility: hidden;
}
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--top:hover { background: var(--navy-800); color: #fff; }

/* Barra de acción: sólo en móvil, donde el pulgar llega abajo */
.action-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { flex: 1; padding: 12px 14px; font-size: .95rem; }
.action-bar .btn:hover { transform: none; }
.action-bar .btn--outline { color: var(--navy-700); border-color: var(--linea); }
.action-bar .btn--outline:hover { background: var(--azul-50); color: var(--navy-700); }

/* =========================================================================
   Emojis, chapitas y stickers
   ========================================================================= */
.emo {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
h1 .emo, h2 .emo, h3 .emo { font-size: .78em; }

/* Chapita: el emoji dentro de un cuadro, como los stickers de redes */
.emo-badge {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: var(--oro-50);
  border: 1px solid var(--oro-300);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  rotate: -5deg;
  transition: rotate .35s var(--ease), scale .35s var(--ease);
}
.pillar:hover .emo-badge,
.course:hover .emo-badge { rotate: 5deg; scale: 1.09; }

/* Stickers sobre las fotos */
.sticker {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: flota 5.5s var(--ease) infinite alternate;
}
.sticker--emoji {
  display: grid;
  place-items: center;
  width: clamp(54px, 7vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  box-shadow: 0 12px 28px rgba(16, 28, 48, .28);
  rotate: -8deg;
}
.tag {
  padding: 9px 18px;
  border-radius: var(--radio-pill);
  font-family: var(--sans);
  font-size: clamp(.78rem, 1.3vw, .92rem);
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(16, 28, 48, .28);
  rotate: -6deg;
}
.tag--oro  { background: var(--oro-500); color: var(--navy-900); }
.tag--azul { background: var(--navy-700); color: #fff; }

.sticker--a { top: -16px; left: -14px; }
.sticker--b { bottom: 8%; left: -18px; animation-delay: .7s; }

/* La portada del hero es un recorte transparente: los stickers van sobre el dibujo */
.hero__media .sticker--a { top: auto; left: auto; right: -10px; bottom: 14%; }
.hero__media .sticker--b { bottom: 6%; left: -6px; }
.sticker--c { top: -14px; left: 10px; animation-delay: .35s; }
.sticker--d { bottom: -16px; left: 16px; animation-delay: 1s; }

@keyframes flota { to { translate: 0 -9px; } }

/* =========================================================================
   Brillo al pasar por los botones principales
   ========================================================================= */
.btn--primary, .btn--whatsapp { position: relative; overflow: hidden; }
.btn--primary::after, .btn--whatsapp::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
}
.btn--primary:hover::after, .btn--whatsapp:hover::after { left: 118%; }

/* La foto del hero acompaña levemente al puntero */
.hero__media picture {
  display: block;
  translate: var(--px, 0) var(--py, 0);
  transition: translate .5s var(--ease);
}

/* =========================================================================
   Entradas al hacer scroll y secuencia de carga del hero
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Un solo momento orquestado: el hero entra al cargar la página */
.hero h1 .line > span,
.credential,
.hero__lead,
.hero__actions,
.hero__points,
.hero__media {
  animation: entrada .85s var(--ease-out) both;
}
.credential      { animation-delay: .05s; }
.hero h1 .line:nth-of-type(1) > span { animation: subeLinea .9s var(--ease-out) .12s both; }
.hero h1 .line:nth-of-type(2) > span { animation: subeLinea .9s var(--ease-out) .22s both; }
.hero__lead      { animation-delay: .38s; }
.hero__actions   { animation-delay: .46s; }
.hero__points    { animation-delay: .54s; }
.hero__media     { animation-delay: .2s; }

@keyframes entrada {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes subeLinea {
  from { transform: translateY(105%); }
  to   { transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .nav a { padding: 9px 10px; font-size: .92rem; }
}

@media (max-width: 992px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 480px; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats > li:nth-child(3) { border-left: 0; }

  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--linea);
  }
  .pillar:first-child { border-top: 1px solid var(--linea); }

  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { max-width: 560px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .steps::before { display: none; }

  .courses { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-head h2 { max-width: 22ch; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - var(--header-h));
    padding: 18px 22px 28px;
    overflow-y: auto;
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 20px 40px rgba(20, 32, 58, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s var(--ease), transform .22s var(--ease),
                visibility .22s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__cta { margin: 10px 0 0; justify-content: center; }

  /* En móvil manda la barra inferior; los flotantes estorban */
  .action-bar { display: flex; }
  .fab--whatsapp { display: none; }
  .fab--top { right: 16px; bottom: 82px; width: 46px; height: 46px; }
  body { padding-bottom: 0; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }

  .director { grid-template-columns: 1fr; }
  .director__photo { max-width: 230px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }

  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__caption { bottom: 14px; font-size: .85rem; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }

  .stats { grid-template-columns: 1fr; padding: 20px; }
  .stats > li { padding: 14px 8px; }
  .stats > li + li { border-left: 0; border-top: 1px solid var(--linea); }

  .hero__actions .btn { width: 100%; }
  .seal { width: 92px; right: -4px; bottom: -12px; }

  .sticker--emoji { width: 48px; font-size: 1.4rem; }
  .tag { padding: 7px 14px; font-size: .74rem; }
  .sticker--a { top: -12px; left: -8px; }
  .sticker--b { bottom: 4%; left: -8px; }
  .sticker--c { top: -10px; left: 6px; }
  .sticker--d { bottom: -12px; left: 8px; }
}

/* =========================================================================
   Accesibilidad e impresión
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .seal__ring { animation: none; }
  .hero__glow::before, .hero__glow::after { animation: none; }
}

@media print {
  .site-header, .progress, .fab, .action-bar, .filters, .lightbox,
  .map, .ticker, .hero__glow, .hero__grain, .sticker { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .section-head--invert h2, .step h3 { color: #000 !important; }
}
