/* Tipografías alojadas en el sitio (licencia OFL, subconjunto latino) */
@font-face {
  font-family: "Livvic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/livvic-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Livvic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/livvic-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Livvic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/livvic-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2");
}

/* Tokens de marca de Lingos Escobar.
   Principios: el globo de diálogo es el gesto memorable; todo lo demás es sobrio.
   Paleta del manual + dos tonos derivados (ciruela y lavanda profunda) para que el texto cumpla WCAG AA. */
:root {
  /* Paleta oficial */
  --naranja: #f4a465;
  --lavanda: #bf7fb5;
  --salvia: #c2cfb5;
  --celeste: #d2ecfc;
  --blanco-calido: #fef5f6;
  /* Derivados para texto y enlaces */
  --ciruela: #3d2340;
  --lavanda-profunda: #8a4b82;
  --blanco: #ffffff;

  /* Tipografías: Livvic (texto), Outfit en lugar de Neulis (interfaz), Fredoka en lugar de More Sugar (lúdica) */
  --fuente-texto: "Livvic", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fuente-ui: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fuente-ludica: "Fredoka", "Outfit", "Segoe UI", system-ui, sans-serif;

  /* Escala tipográfica (12-14-16-18-21-24-36-48-60-72) */
  --texto-xs: 0.8125rem;
  --texto-s: 0.9375rem;
  --texto-m: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --texto-l: 1.3125rem;
  --texto-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --texto-2xl: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  --texto-3xl: clamp(2.5rem, 1.6rem + 4.6vw, 4.5rem);

  /* Espaciado (4, 8, 12, 16, 24, 32, 48, 64, 96 px) */
  --esp-1: 0.25rem;
  --esp-2: 0.5rem;
  --esp-3: 0.75rem;
  --esp-4: 1rem;
  --esp-5: 1.5rem;
  --esp-6: 2rem;
  --esp-7: 3rem;
  --esp-8: 4rem;
  --esp-9: 6rem;

  /* Formas: el radio crece con la jerarquía del elemento */
  --radio-chico: 8px;
  --radio: 16px;
  --radio-grande: 32px;
  --radio-pildora: 999px;

  --ancho-max: 1200px;
  --ancho-texto: 65ch;
  --sombra: 0 14px 34px -18px rgba(61, 35, 64, 0.35);
}

/* Base: reset, tipografía, enlaces, foco y movimiento reducido */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scroll-padding-bottom: 6rem;
}

body {
  min-height: 100vh;
  background: var(--blanco-calido);
  color: var(--ciruela);
  font-family: var(--fuente-texto);
  font-size: var(--texto-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-texto);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--texto-3xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--texto-2xl);
}

h3 {
  font-size: var(--texto-xl);
}

p,
li {
  max-width: var(--ancho-texto);
  text-wrap: pretty;
}

a {
  color: var(--lavanda-profunda);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ciruela);
}

:focus-visible {
  outline: 3px solid var(--lavanda-profunda);
  outline-offset: 3px;
  border-radius: var(--radio-chico);
}

::selection {
  background: var(--lavanda);
  color: var(--ciruela);
}

.saltar {
  position: absolute;
  left: var(--esp-4);
  top: -100px;
  z-index: 100;
  padding: var(--esp-3) var(--esp-4);
  background: var(--ciruela);
  color: var(--blanco);
  font-family: var(--fuente-ui);
  border-radius: var(--radio-chico);
}

.saltar:focus {
  top: var(--esp-4);
  color: var(--blanco);
}

.sin-corte {
  white-space: nowrap;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Layout: primero celular; cortes en 768px y 1100px */
.contenedor {
  width: 100%;
  max-width: calc(var(--ancho-max) + 2 * var(--esp-4));
  margin-inline: auto;
  padding-inline: var(--esp-4);
}

.seccion {
  padding-block: var(--esp-8);
}

.pila {
  display: flex;
  flex-direction: column;
  gap: var(--pila-espacio, var(--esp-4));
}

.grilla {
  display: grid;
  gap: var(--grilla-espacio, var(--esp-5));
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contenedor {
    max-width: calc(var(--ancho-max) + 2 * var(--esp-5));
    padding-inline: var(--esp-5);
  }

  .grilla--2,
  .grilla--3,
  .grilla--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .contenedor {
    max-width: calc(var(--ancho-max) + 2 * var(--esp-6));
    padding-inline: var(--esp-6);
  }

  .seccion {
    padding-block: var(--esp-9);
  }

  .grilla--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grilla--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  min-height: 48px;
  padding: var(--esp-3) var(--esp-5);
  border: 2px solid transparent;
  border-radius: var(--radio-pildora);
  font-family: var(--fuente-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.boton--primario {
  background: var(--naranja);
  color: var(--ciruela);
}

.boton--primario:hover {
  color: var(--ciruela);
  box-shadow: 0 0 0 4px rgba(244, 164, 101, 0.35);
}

.boton--secundario {
  background: transparent;
  border-color: var(--lavanda-profunda);
  color: var(--lavanda-profunda);
}

.boton--secundario:hover {
  background: var(--lavanda-profunda);
  color: var(--blanco);
}

/* ---------- Píldoras y etiquetas ---------- */
.pildora {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--esp-1) var(--esp-4);
  border-radius: var(--radio-pildora);
  background: var(--salvia);
  color: var(--ciruela);
  font-family: var(--fuente-ui);
  font-size: var(--texto-s);
  font-weight: 500;
}

.pildora--celeste {
  background: var(--celeste);
}

/* Las píldoras que son enlaces tienen un objetivo táctil de 44 px */
a.pildora {
  min-height: 44px;
  padding-inline: var(--esp-5);
}

.pildora--naranja {
  background: var(--naranja);
}

.etiqueta-ludica {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-l);
  font-weight: 600;
}

/* ---------- Globos de diálogo con foto: el gesto memorable del sitio ---------- */
.burbuja {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  aspect-ratio: 1;
}

.burbuja::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-burbuja, var(--lavanda));
  -webkit-mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
  mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
  transform: translate(5%, 4%);
}

.burbuja img,
.burbuja video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
  mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
}

.burbuja video {
  position: absolute;
  inset: 0;
}

.burbuja--grande {
  max-width: 520px;
}

.burbuja--mediana {
  max-width: 380px;
}

.burbuja--chica {
  max-width: 220px;
}

.burbuja--lavanda {
  --color-burbuja: var(--lavanda);
}

.burbuja--naranja {
  --color-burbuja: var(--naranja);
}

.burbuja--salvia {
  --color-burbuja: var(--salvia);
}

.burbuja--celeste {
  --color-burbuja: var(--celeste);
}

.foco-arriba {
  object-position: 50% 22%;
}

.foco-centro {
  object-position: 50% 50%;
}

.foco-abajo {
  object-position: 50% 78%;
}

/* ---------- Tarjetas y grilla bento ---------- */
.tarjeta {
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  padding: var(--esp-5);
  border-radius: var(--radio);
  background: var(--celeste);
  color: var(--ciruela);
}

.tarjeta h3 {
  font-size: var(--texto-l);
}

.tarjeta--lavanda {
  background: var(--lavanda);
}

.tarjeta--salvia {
  background: var(--salvia);
}

.tarjeta--naranja {
  background: var(--naranja);
}

.tarjeta--celeste {
  background: var(--celeste);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--esp-4);
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento > :first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(200px, auto);
  }

  .bento > :first-child {
    grid-column: span 2;
  }

  .bento > :nth-child(2) {
    grid-row: span 2;
  }
}

/* ---------- Ondas, trazos, letras y flores (decoración) ---------- */
.onda-arriba,
.onda-abajo {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 88px);
  background: var(--color-onda, var(--lavanda));
}

.onda-arriba {
  -webkit-mask: url("/assets/img/deco/onda-arriba.svg") center / 100% 100% no-repeat;
  mask: url("/assets/img/deco/onda-arriba.svg") center / 100% 100% no-repeat;
  margin-bottom: -1px;
}

.onda-abajo {
  -webkit-mask: url("/assets/img/deco/onda-abajo.svg") center / 100% 100% no-repeat;
  mask: url("/assets/img/deco/onda-abajo.svg") center / 100% 100% no-repeat;
  margin-top: -1px;
}

.onda--lavanda {
  --color-onda: var(--lavanda);
}

.onda--celeste {
  --color-onda: var(--celeste);
}

.onda--salvia {
  --color-onda: var(--salvia);
}

.fondo-lavanda {
  background: var(--lavanda);
}

/* Sobre lavanda, el foco en ciruela mantiene el contraste (4,6:1) */
.fondo-lavanda :focus-visible {
  outline-color: var(--ciruela);
}

.fondo-celeste {
  background: var(--celeste);
}

.fondo-salvia {
  background: var(--salvia);
}

.decorada {
  position: relative;
  overflow: hidden;
}

.decorada > .contenedor {
  position: relative;
}

.trazo {
  position: absolute;
  right: -40px;
  bottom: var(--esp-5);
  width: min(60vw, 420px);
  aspect-ratio: 520 / 140;
  background: url("/assets/img/deco/trazo-1.svg") center / contain no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.letra-deco {
  position: absolute;
  top: -0.15em;
  right: 4%;
  color: var(--blanco-calido);
  font-family: var(--fuente-ludica);
  font-size: clamp(7rem, 22vw, 15rem);
  font-weight: 600;
  line-height: 1;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.flor {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background: var(--color-flor, var(--lavanda-profunda));
  -webkit-mask: url("/assets/img/deco/flor.svg") center / contain no-repeat;
  mask: url("/assets/img/deco/flor.svg") center / contain no-repeat;
}

.lista-flor {
  display: grid;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
}

.lista-flor li {
  position: relative;
  padding-left: 1.9em;
}

.lista-flor li::before {
  content: "";
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 1.1em;
  height: 1.1em;
  background: var(--color-flor, var(--lavanda-profunda));
  -webkit-mask: url("/assets/img/deco/flor.svg") center / contain no-repeat;
  mask: url("/assets/img/deco/flor.svg") center / contain no-repeat;
}

/* Solo para el muestrario */
.fila-muestra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-4);
}

.fila-muestra--globos {
  align-items: flex-end;
  gap: var(--esp-7);
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 245, 246, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(191, 127, 181, 0.28);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: var(--esp-3);
  min-height: 68px;
}

.cabecera__logo {
  display: block;
  flex: 0 0 auto;
  margin-right: auto;
  padding-block: var(--esp-2);
}

.cabecera__logo img {
  width: auto;
  height: 40px;
}

.cabecera__nav,
.cabecera__cta,
.cabecera__wa {
  display: none;
}

.nav-lista {
  display: flex;
  gap: var(--esp-5);
  padding: 0;
  list-style: none;
}

.nav-lista a {
  display: inline-block;
  padding-block: 0.6rem;
  border-bottom: 2px solid transparent;
  color: var(--ciruela);
  font-family: var(--fuente-ui);
  font-weight: 500;
  text-decoration: none;
}

.nav-lista a:hover {
  border-bottom-color: var(--lavanda);
}

.nav-lista a[aria-current="page"] {
  border-bottom-color: var(--lavanda-profunda);
}

/* Menú en celulares: <details> funciona sin JavaScript */
.menu__boton {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 44px;
  padding: var(--esp-2) var(--esp-4);
  border: 2px solid var(--ciruela);
  border-radius: var(--radio-pildora);
  font-family: var(--fuente-ui);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.menu__boton::-webkit-details-marker {
  display: none;
}

.menu__icono {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu[open] .menu__boton {
  background: var(--ciruela);
  color: var(--blanco-calido);
}

.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: var(--esp-3);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: var(--esp-4) var(--esp-4) var(--esp-6);
  background: var(--blanco-calido);
  border-bottom: 1px solid rgba(191, 127, 181, 0.35);
  box-shadow: var(--sombra);
}

.menu__lista {
  display: grid;
  margin-bottom: var(--esp-3);
  padding: 0;
  list-style: none;
}

.menu__lista a {
  display: block;
  padding: var(--esp-3) 0;
  border-bottom: 1px solid rgba(61, 35, 64, 0.12);
  color: var(--ciruela);
  font-family: var(--fuente-ui);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}

.menu__lista a[aria-current="page"] {
  color: var(--lavanda-profunda);
}

@media (min-width: 768px) {
  .cabecera__cta {
    display: inline-flex;
  }

  .cabecera__logo img {
    height: 46px;
  }
}

@media (min-width: 1100px) {
  .cabecera__fila {
    min-height: 80px;
    gap: var(--esp-4);
  }

  .cabecera__logo {
    margin-right: var(--esp-5);
  }

  .cabecera__nav {
    display: block;
    margin-right: auto;
  }

  .cabecera__wa {
    display: inline-flex;
  }

  .menu {
    display: none;
  }
}

/* ---------- Pie ---------- */
.pie {
  padding-block: var(--esp-8) calc(var(--esp-5) + 76px);
  background: var(--lavanda-profunda);
  color: var(--blanco);
}

.pie a {
  color: var(--blanco);
}

.pie a:hover {
  color: var(--blanco-calido);
  text-decoration-thickness: 2px;
}

.pie :focus-visible {
  outline-color: var(--blanco);
}

.pie__grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--esp-6);
}

.pie__marca img {
  width: 200px;
  height: auto;
}

.pie__lema {
  margin-top: var(--esp-3);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-l);
}

.pie__titulo {
  margin-bottom: var(--esp-3);
  color: var(--blanco-calido);
  font-family: var(--fuente-ui);
  font-size: 1rem;
  font-weight: 700;
}

.pie__lista {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.pie__lista a {
  display: inline-block;
  padding-block: 0.6rem;
}

.pie__direccion {
  font-style: normal;
}

.pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--esp-3);
  margin-top: var(--esp-7);
  padding-top: var(--esp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--texto-s);
}

@media (min-width: 768px) {
  .pie__grilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pie {
    padding-bottom: var(--esp-5);
  }

  .pie__grilla {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ---------- WhatsApp flotante (celulares y tabletas) ---------- */
.wa-flotante {
  position: fixed;
  right: var(--esp-4);
  bottom: var(--esp-4);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: 52px;
  padding: var(--esp-3) var(--esp-5) var(--esp-3) var(--esp-4);
  border-radius: var(--radio-pildora);
  background: var(--naranja);
  box-shadow: var(--sombra);
  color: var(--ciruela);
  font-family: var(--fuente-ui);
  font-weight: 700;
  text-decoration: none;
}

.wa-flotante svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

@media (min-width: 1100px) {
  .wa-flotante {
    display: none;
  }
}

/* ---------- Piezas compartidas por las páginas ---------- */
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3);
  margin-top: var(--esp-2);
}

.intro {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.boton--claro {
  background: var(--blanco-calido);
  border-color: var(--blanco-calido);
  color: var(--ciruela);
}

.boton--claro:hover {
  background: transparent;
  border-color: var(--ciruela);
  color: var(--ciruela);
}

.burbuja--blanco {
  --color-burbuja: var(--blanco-calido);
}

/* Globo sin foto: relleno de color con iniciales o una flor */
.burbuja--ilustrada::before {
  background: var(--ciruela);
  opacity: 0.12;
}

.burbuja__relleno {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--color-burbuja, var(--lavanda));
  -webkit-mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
  mask: url("/assets/img/deco/globo.png") center / contain no-repeat;
}

.burbuja__relleno .flor {
  width: 34%;
  height: 34%;
  --color-flor: var(--ciruela);
  opacity: 0.35;
}

.burbuja__iniciales {
  color: var(--ciruela);
  font-family: var(--fuente-ludica);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 600;
}

/* ---------- Inicio: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--esp-6) var(--esp-8);
}

.hero__grilla {
  display: grid;
  gap: var(--esp-7);
  align-items: center;
}

.hero__antetitulo {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-l);
  font-weight: 600;
}

.hero h1 {
  margin-block: var(--esp-3) var(--esp-4);
}

.hero__bajada {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
}

.hero__globos {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 9% 9% 13% 6%;
}

.hero__globos .burbuja--grande {
  max-width: none;
}

.hero__globos .burbuja--chica {
  position: absolute;
  width: 34%;
}

.hero__globos .burbuja--chica:nth-child(2) {
  top: 0;
  right: 0;
}

.hero__globos .burbuja--chica:nth-child(3) {
  bottom: 0;
  left: 0;
}

.trazo--hero {
  right: auto;
  left: -60px;
  bottom: var(--esp-4);
}

@media (min-width: 1100px) {
  .hero {
    padding-block: var(--esp-7) var(--esp-9);
  }

  .hero__grilla {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Inicio: franja de idiomas y modalidades ---------- */
.idiomas-franja {
  padding-block: var(--esp-4);
  border-block: 1px solid rgba(191, 127, 181, 0.3);
}

.idiomas-franja__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--esp-3) var(--esp-6);
}

.lista-pildoras {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
}

.lista-pildoras a.pildora {
  text-decoration: none;
}

.lista-pildoras a.pildora:hover {
  background: var(--lavanda);
  color: var(--ciruela);
}

/* ---------- Inicio: metodología ---------- */
.metodologia__grilla {
  --grilla-espacio: var(--esp-6);
  margin-top: var(--esp-4);
}

.metodologia__item .flor {
  width: 2rem;
  height: 2rem;
}

.metodologia__item h3 {
  margin-block: var(--esp-3) var(--esp-2);
  font-size: var(--texto-l);
}

/* ---------- Inicio: tarjetas de programa ---------- */
.tarjeta-programa {
  position: relative;
  display: grid;
  gap: var(--esp-4);
  align-content: start;
  padding: var(--esp-5);
  border-radius: var(--radio-grande);
  color: var(--ciruela);
}

.tarjeta-programa .burbuja {
  width: 128px;
}

.tarjeta-programa__texto {
  display: grid;
  gap: var(--esp-2);
  justify-items: start;
}

.tarjeta-programa h3 {
  font-size: var(--texto-xl);
}

.tarjeta-programa__idiomas {
  font-size: var(--texto-s);
}

.pildora--blanca {
  background: var(--blanco-calido);
}

.enlace-tarjeta {
  color: inherit;
  text-decoration: none;
}

.enlace-tarjeta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.enlace-tarjeta:focus-visible {
  outline: none;
}

.tarjeta-programa:focus-within {
  outline: 3px solid var(--ciruela);
  outline-offset: 3px;
}

.tarjeta-programa:hover .enlace-tarjeta {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

@media (min-width: 768px) {
  .bento > .tarjeta-programa:first-child {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .bento > .tarjeta-programa:first-child .burbuja {
    width: 200px;
  }
}

/* ---------- Inicio: experiencias, salida y proyectos ---------- */
.experiencias__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
  margin-bottom: var(--esp-8);
}

@media (min-width: 1100px) {
  .experiencias__grilla {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.salida {
  padding: var(--esp-5);
  border: 2px solid var(--lavanda);
  border-radius: var(--radio-grande);
  background: var(--blanco-calido);
  box-shadow: var(--sombra);
}

.salida h3 {
  margin-block: var(--esp-1) var(--esp-3);
}

.salida__programa {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-l);
  font-weight: 600;
}

.salida__datos {
  display: grid;
  gap: var(--esp-3);
  margin-block: var(--esp-4) var(--esp-5);
}

.salida__datos div {
  display: grid;
  gap: var(--esp-1);
}

.salida__datos dt {
  font-family: var(--fuente-ui);
  font-weight: 700;
}

.salida__datos dd {
  margin: 0;
}

.salida__datos ul {
  margin: 0;
  padding-left: 1.1em;
}

@media (min-width: 768px) {
  .salida {
    padding: var(--esp-6);
  }

  .salida__datos div {
    grid-template-columns: 7.5rem 1fr;
    gap: var(--esp-3);
  }
}

.proyectos__grilla {
  --grilla-espacio: var(--esp-7);
}

.tarjeta-proyecto {
  display: grid;
  gap: var(--esp-2);
  align-content: start;
}

.tarjeta-proyecto .burbuja {
  width: min(100%, 280px);
  margin-bottom: var(--esp-3);
}

.tarjeta-proyecto h3 {
  font-size: var(--texto-l);
}

.tarjeta-proyecto__segmento {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ui);
  font-size: var(--texto-s);
  font-weight: 500;
}

/* ---------- Inicio: equipo ---------- */
.equipo__grilla {
  --grilla-espacio: var(--esp-6);
  margin-top: var(--esp-4);
}

.perfil {
  display: grid;
  gap: var(--esp-2);
  align-content: start;
}

.perfil .burbuja {
  width: 150px;
  margin-bottom: var(--esp-3);
}

.docente-nombre {
  font-size: var(--texto-l);
}

.docente-rol {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ui);
  font-weight: 500;
}

.docente-bio {
  font-size: var(--texto-s);
}

/* ---------- Inicio: credenciales ---------- */
.credenciales__grilla {
  display: grid;
  gap: var(--esp-5);
}

.lista-flor--grande {
  gap: var(--esp-3);
  font-size: var(--texto-l);
}

@media (min-width: 1100px) {
  .credenciales__grilla {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* ---------- Inicio: historia ---------- */
.historia__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.historia__grilla > .burbuja {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .historia__grilla {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- Encabezado de páginas internas ---------- */
.hero-pagina {
  position: relative;
  overflow: hidden;
  padding-block: var(--esp-7) var(--esp-6);
}

.hero-pagina .intro {
  max-width: 60ch;
}

.seccion--sin-arriba {
  padding-top: 0;
}

.hero__antetitulo a {
  color: inherit;
  text-decoration: none;
}

.hero__antetitulo a:hover {
  text-decoration: underline;
}

/* ---------- Página de cada programa ---------- */
.hero-programa {
  padding-block: var(--esp-6) var(--esp-7);
}

.hero-programa__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.hero-programa .pildora {
  align-self: flex-start;
}

.hero-programa .burbuja {
  margin-inline: auto;
}

@media (min-width: 1100px) {
  .hero-programa__grilla {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.programa__cuerpo {
  display: grid;
  gap: var(--esp-6);
  align-items: start;
}

@media (min-width: 1100px) {
  .programa__cuerpo {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.modalidades {
  display: grid;
  gap: var(--esp-4);
  padding: var(--esp-5) var(--esp-6);
  border-radius: var(--radio-grande);
}

.modalidades h2 {
  font-size: var(--texto-xl);
}

.modalidades__lista {
  display: grid;
  gap: var(--esp-3);
}

.modalidades__lista dt {
  font-family: var(--fuente-ui);
  font-weight: 700;
}

.modalidades__lista dd {
  margin: 0;
}

.modalidades__grupo {
  color: var(--ciruela);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-l);
  font-weight: 600;
}

.fotos-programa {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--esp-7);
}

.fotos-programa .burbuja {
  width: min(100%, 340px);
}

/* ---------- Idiomas ---------- */
.idioma + .idioma {
  padding-top: 0;
}

.idioma__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.idioma__saludo {
  width: min(70vw, 260px);
  margin-inline: auto;
}

.saludo {
  color: var(--ciruela);
  font-family: var(--fuente-ludica);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
}

.idioma__datos {
  display: grid;
  gap: var(--esp-3);
}

.idioma__datos dt {
  margin-bottom: var(--esp-2);
  font-family: var(--fuente-ui);
  font-weight: 700;
}

.idioma__datos dd {
  margin: 0;
}

.idioma__nota {
  margin-top: var(--esp-2);
  font-size: var(--texto-s);
}

@media (min-width: 768px) {
  .idioma__grilla {
    grid-template-columns: 280px 1fr;
  }

  .idioma:nth-of-type(even) .idioma__grilla {
    grid-template-columns: 1fr 280px;
  }

  .idioma:nth-of-type(even) .idioma__saludo {
    order: 2;
  }
}

/* ---------- Nosotros ---------- */
.linea-tiempo {
  display: grid;
  gap: var(--esp-6);
  margin-top: var(--esp-4);
  padding: 0;
  list-style: none;
}

.linea-tiempo__hito {
  position: relative;
  display: grid;
  gap: var(--esp-2);
  padding-left: var(--esp-6);
  border-left: 3px solid var(--lavanda);
}

.linea-tiempo__hito::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: -11px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--naranja);
  box-shadow: 0 0 0 4px var(--blanco-calido);
}

.linea-tiempo__anio {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ludica);
  font-size: var(--texto-xl);
  font-weight: 600;
  line-height: 1;
}

.linea-tiempo__hito h3 {
  font-size: var(--texto-l);
}

@media (min-width: 1100px) {
  .linea-tiempo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--esp-5);
  }

  .linea-tiempo__hito {
    padding-left: 0;
    padding-top: var(--esp-6);
    border-left: 0;
    border-top: 3px solid var(--lavanda);
  }

  .linea-tiempo__hito::before {
    top: -11px;
    left: 0;
  }
}

.lema {
  font-family: var(--fuente-ludica);
  font-size: var(--texto-2xl);
  font-weight: 600;
  line-height: 1.15;
}

.mision__grilla {
  --grilla-espacio: var(--esp-6);
}

.mision__grilla h3 {
  font-size: var(--texto-l);
}

.sede__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.sede__fotos {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  padding-bottom: 18%;
}

.sede__fotos .burbuja--mediana {
  width: 78%;
}

.sede__fotos .burbuja--chica {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
}

@media (min-width: 768px) {
  .sede__grilla {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Entrevista ---------- */
.entrevista__grilla {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.entrevista__grilla > .burbuja {
  margin-inline: auto;
}

@media (min-width: 1100px) {
  .entrevista__grilla {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.pasos {
  display: grid;
  gap: var(--esp-2);
  padding-left: 1.4em;
}

.pasos li::marker {
  color: var(--lavanda-profunda);
  font-family: var(--fuente-ludica);
  font-weight: 600;
}

.agenda {
  overflow: hidden;
  border: 2px solid var(--lavanda);
  border-radius: var(--radio-grande);
  background: var(--blanco);
}

.agenda__marco {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

.aviso-agenda {
  display: grid;
  gap: var(--esp-3);
  justify-items: start;
  padding: var(--esp-5);
  border-radius: var(--radio-grande);
}

/* ---------- Contacto ---------- */
.contacto__grilla {
  display: grid;
  gap: var(--esp-7);
}

@media (min-width: 1100px) {
  .contacto__grilla {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.contacto__canales h2,
.formulario-caja h2 {
  font-size: var(--texto-xl);
}

.contacto__lista {
  display: grid;
  gap: var(--esp-2);
  padding: 0;
  list-style: none;
}

.contacto__rotulo {
  display: inline-block;
  min-width: 6.5rem;
  font-family: var(--fuente-ui);
  font-weight: 700;
}

.contacto__direccion {
  font-style: normal;
}

.mapa {
  display: grid;
  gap: var(--esp-3);
  padding: var(--esp-5);
  border-radius: var(--radio-grande);
  background: var(--celeste);
}

.mapa__marco {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radio);
}

.formulario-caja {
  padding: var(--esp-5);
  border: 2px solid var(--lavanda);
  border-radius: var(--radio-grande);
}

@media (min-width: 768px) {
  .formulario-caja {
    padding: var(--esp-6);
  }
}

.formulario {
  position: relative;
  display: grid;
  gap: var(--esp-4);
  margin-top: var(--esp-4);
}

.campo {
  display: grid;
  gap: var(--esp-1);
}

.campo label {
  font-family: var(--fuente-ui);
  font-weight: 700;
}

.campo__opcional {
  color: var(--lavanda-profunda);
  font-weight: 500;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--esp-3) var(--esp-4);
  border: 2px solid rgba(61, 35, 64, 0.4);
  border-radius: var(--radio-chico);
  background: var(--blanco);
  color: var(--ciruela);
}

.campo textarea {
  min-height: 140px;
  resize: vertical;
}

.campo input:focus-visible,
.campo select:focus-visible,
.campo textarea:focus-visible {
  border-color: var(--lavanda-profunda);
  outline-offset: 1px;
}

.campo [aria-invalid="true"] {
  border-color: #b42318;
}

.campo__error {
  color: #b42318;
  font-size: var(--texto-s);
  font-weight: 500;
}

.campo__error:empty {
  display: none;
}

.campo--doble {
  display: grid;
  gap: var(--esp-4);
}

@media (min-width: 768px) {
  .campo--doble {
    grid-template-columns: 1fr 1fr;
  }
}

.campo-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulario__estado {
  font-family: var(--fuente-ui);
  font-weight: 700;
}

/* Vacía, la región de estado no se ve pero sigue presente para los lectores de pantalla (así anuncia el primer aviso). */
.formulario__estado:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.formulario__resumen {
  padding: var(--esp-4);
  border: 2px solid #b42318;
  border-radius: var(--radio);
}

.formulario__resumen ul {
  margin-top: var(--esp-2);
  padding-left: 1.2em;
}

.formulario__resumen a {
  color: #b42318;
}

.formulario__privacidad {
  font-size: var(--texto-s);
}

.boton:disabled {
  cursor: progress;
  opacity: 0.7;
}

.aviso {
  display: none;
  margin-top: var(--esp-4);
  padding: var(--esp-4);
  border-radius: var(--radio);
}

.aviso:target {
  display: block;
}

.aviso--ok {
  background: var(--salvia);
}

.aviso--error {
  background: var(--naranja);
}

/* ---------- Privacidad y 404 ---------- */
.texto-legal h2 {
  margin-top: var(--esp-4);
  font-size: var(--texto-xl);
}

.texto-legal ul {
  display: grid;
  gap: var(--esp-2);
  padding-left: 1.2em;
}

.no-encontrada {
  display: grid;
  gap: var(--esp-6);
  align-items: center;
}

.no-encontrada .burbuja {
  width: min(60vw, 240px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .no-encontrada {
    grid-template-columns: 260px 1fr;
  }
}

/* ---------- Llamado final ---------- */
.cta-final__cuerpo {
  padding-block: var(--esp-6) var(--esp-8);
}

.cta-final h2 {
  max-width: 20ch;
}

.cta-final .letra-deco {
  top: auto;
  bottom: -0.2em;
}
