/*
 * yulianaalvarez.com — estilos del sitio personal de Yuliana Alvarez Peñate.
 *
 * Un cuaderno pintado a mano: papel crema con grano, tinta ciruela y la paleta del gouache de las
 * ilustraciones (coral, rosa, menta, pervinca y mostaza). Lo oscuro es verde selva, con bordes
 * ondulados como una pincelada. Fraunces para los títulos y las citas, Literata para leer, Figtree
 * para rótulos y datos y Caveat para las notas a mano.
 *
 * Todo se lee sin JavaScript. Con él (clase .js en <html>), los bloques aparecen al llegar a ellos
 * (.revela → .visto), las cifras cuentan y la cabecera se esconde al bajar. Con «reducir
 * movimiento», nada se mueve.
 */
:root {
  --papel: #fbf5ec;
  --tarjeta: #fffaf3;
  --tinta: #2b2230;
  --tinta-suave: #675b68;
  --linea: rgba(43, 34, 48, 0.13);
  --coral: #ef6f5b;
  --coral-hondo: #c2412f;
  --rosa: #f4a3b5;
  --rosa-claro: #fbdde2;
  --menta: #7cc6a8;
  --menta-clara: #d8efe4;
  --jade: #1f6f5c;
  --salvia: #9cbf8a;
  --pervinca: #8b9ae6;
  --pervinca-clara: #e1e5fa;
  --pervinca-honda: #4453b8;
  --mostaza: #f2b94b;
  --mostaza-clara: #fbeac4;
  --selva: #143a32;
  --selva-honda: #0e2c26;
  --blanco-90: rgba(255, 250, 243, 0.92);
  --blanco-75: rgba(255, 250, 243, 0.76);
  --radio: 18px;
  --radio-grande: 32px;
  --ancho: 74rem;
  --lectura: 41rem;
  --display: 'Fraunces', 'Literata', Georgia, serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mano: 'Caveat', 'Segoe Print', cursive;
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --rebote: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* El grano del papel y las pinceladas de lo oscuro, dibujados en SVG. */
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .2 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pinceladas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke-linecap='round' stroke-width='5'%3E%3Cg stroke='%23fffaf3' stroke-opacity='.06'%3E%3Cpath d='M18 22l6 10M70 14l2 12M128 30l8 6M160 70l-2 12M30 96l10 4M96 84l4 10M140 128l10 2M60 150l-4 10M110 160l8 6M14 150l2 10'/%3E%3C/g%3E%3Cg stroke='%23f4a3b5' stroke-opacity='.11'%3E%3Cpath d='M48 58l6 6M120 104l-2 9M84 40l9 2M28 124l6-6M150 160l6-6'/%3E%3C/g%3E%3C/svg%3E");
  --ola: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34c60-14 118-24 190-18 70 6 120 26 200 24s130-30 210-30 130 24 214 26 140-22 214-24c70-2 120 12 172 20v28z'/%3E%3C/svg%3E");
}

@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--papel) var(--grano);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.72;
  font-optical-sizing: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--rosa);
  color: var(--tinta);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--pervinca-honda);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s, text-decoration-color 0.25s;
}
a:hover {
  color: var(--coral-hondo);
}
:focus-visible {
  outline: 3px solid var(--pervinca-honda);
  outline-offset: 3px;
  border-radius: 6px;
}
.oscuro :focus-visible,
.destacado:focus-visible,
.contacto :focus-visible {
  outline-color: var(--mostaza);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
}
h3 {
  font-weight: 500;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.saltar {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 50;
  background: var(--tinta);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--sans);
}
.saltar:focus {
  left: 0.5rem;
}
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Rótulos, metadatos y fuentes */
.rotulo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-hondo);
}
.rotulo::before {
  content: '';
  width: 1.6rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}
.oscuro .rotulo,
.destacado .rotulo {
  color: var(--mostaza);
}
.meta,
.fuente,
figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--tinta-suave);
}
.oscuro .meta,
.oscuro .fuente,
.oscuro figcaption {
  color: var(--blanco-75);
}
.nota-mano {
  font-family: var(--mano);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 600;
  color: var(--coral-hondo);
}

/* Retícula */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.lectura {
  max-width: var(--lectura);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 48rem) {
  .contenedor,
  .lectura {
    padding-inline: 2rem;
  }
}

/* ---------- Ornamentos: flores, hojas y el colibrí ---------- */
.flor,
.hoja {
  display: block;
  overflow: visible;
}
.flor .petalos {
  fill: var(--c, var(--coral));
}
.flor .centro {
  fill: var(--mostaza);
}
.flor .puntos-flor {
  fill: var(--coral-hondo);
}
.hoja path {
  fill: var(--c, var(--salvia));
}
.hoja line {
  stroke: var(--jade);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
}
.adorno {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .flor.gira .petalos {
    transform-origin: center;
    transform-box: fill-box;
    animation: girar 26s linear infinite;
  }
  .hoja.mece {
    transform-origin: 50% 100%;
    animation: mecer 6s ease-in-out infinite alternate;
  }
}

/* ---------- Cabecera ---------- */
.cabecera-sitio {
  position: sticky;
  top: 0;
  z-index: 30;
  transition:
    transform 0.5s var(--suave),
    background-color 0.35s,
    box-shadow 0.35s;
}
.cabecera-sitio.con-fondo {
  background: rgba(251, 245, 236, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--linea);
}
.cabecera-sitio.oculta {
  transform: translateY(-105%);
}
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 550;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marca:hover {
  color: inherit;
}
/*
 * El logo: el girasol y el colibrí en capas (originales/piezas.py). Al cargar, el colibrí llega volando.
 * sitio.js bate las alas desde el hombro y le da la vuelta al girasol cuadro a cuadro (posición, giro,
 * inclinación y profundidad); mientras vuela, el logo lleva la clase .volando. Sin JavaScript, al pasar
 * el mouse solo aletea.
 */
.marca .logo {
  position: relative;
  display: block;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
}
.logo-girasol {
  position: absolute;
  z-index: 2;
  left: 20%;
  top: 4%;
  width: 80%;
  height: auto;
  transition: rotate 2.8s cubic-bezier(0.45, 0, 0.55, 1);
}
/* El lienzo común de las capas (1196 × 1235), puesto para que el ojo quede donde está en el logo A,
 * con la punta del pico en el centro del girasol. El colibrí va dos veces: la copia de atrás solo se
 * ve mientras vuela, cuando la de adelante se desvanece al pasar por detrás de la flor. */
.logo-ave {
  position: absolute;
  z-index: 3;
  left: -1.71%;
  top: 15.45%;
  width: 68.29%;
  aspect-ratio: 1196 / 1235;
}
.logo-ave.atras {
  z-index: 1;
  visibility: hidden;
}
.volando .atras {
  visibility: visible;
}
.logo-vuelo,
.colibri,
.ala,
.logo-ave img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.logo-vuelo {
  will-change: transform;
}
/* Cada ala gira desde su hombro. */
.ala-cerca {
  transform-origin: 49.25% 51.82%;
}
.ala-lejos {
  transform-origin: 50.25% 45.02%;
}
.borron {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .logo-ave {
    animation: llegar 1.4s var(--suave) 0.2s backwards;
  }
  html:not(.js) .marca:hover .ala-cerca {
    animation: batir-cerca 0.08s ease-in-out infinite alternate;
  }
  html:not(.js) .marca:hover .ala-lejos {
    animation: batir-lejos 0.08s ease-in-out infinite alternate;
  }
  .volando .logo-girasol {
    rotate: 40deg;
  }
}
.cabecera nav {
  display: flex;
  gap: 0.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}
.cabecera nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.cabecera nav a:hover {
  background: var(--rosa-claro);
  color: var(--tinta);
}
.cabecera nav a:last-child {
  background: var(--tinta);
  color: var(--papel);
}
.cabecera nav a:last-child:hover {
  background: var(--coral-hondo);
  color: #fff;
}
@media (max-width: 34rem) {
  .cabecera nav a:not(:last-child) {
    display: none;
  }
  .marca {
    font-size: 1.02rem;
  }
}
@media (max-width: 22rem) {
  .marca span {
    display: none;
  }
}

/* Barra de lectura del artículo */
.progreso {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 40;
  background: linear-gradient(90deg, var(--coral), var(--mostaza) 55%, var(--menta));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progreso {
    animation: progreso linear both;
    animation-timeline: scroll(root);
  }
}

/* Botones */
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.boton {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.4s var(--rebote),
    box-shadow 0.4s,
    color 0.3s;
}
.boton::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--coral-hondo);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--suave);
}
.boton:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(194, 65, 47, 0.6);
}
.boton:hover::before {
  transform: none;
}
.boton .flecha {
  display: inline-block;
  transition: transform 0.4s var(--rebote);
}
.boton:hover .flecha {
  transform: translateX(4px);
}
.boton-claro {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta);
}
.boton-claro::before {
  background: var(--rosa-claro);
}
.boton-claro:hover {
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta);
}

/* ---------- Portada personal ---------- */
.heroe {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.5rem 3.5rem;
}
@media (min-width: 58rem) {
  .heroe {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
    min-height: min(calc(100svh - 4.5rem), 52rem);
    padding-block: 2rem 4rem;
  }
}
.heroe-texto {
  position: relative;
  z-index: 1;
}
.titulo-heroe {
  margin-top: 1.1rem;
  font-size: clamp(3.3rem, 1.4rem + 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.titulo-heroe em {
  font-style: italic;
  font-weight: 330;
  color: var(--coral-hondo);
}
.linea {
  display: block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.linea > * {
  display: inline-block;
}
.perfil {
  margin-top: 1.6rem;
  max-width: 36rem;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  line-height: 1.6;
}
.heroe-ilus {
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  aspect-ratio: 1;
}
@media (max-width: 57.99rem) {
  .heroe-ilus {
    order: -1;
    max-width: min(16rem, 64vw);
  }
}
.mancha {
  position: absolute;
  border-radius: 62% 38% 54% 46% / 52% 44% 56% 48%;
}
.heroe-ilus .mancha.m1 {
  inset: 9% 6% 8% 10%;
  background: var(--rosa-claro);
}
.heroe-ilus .mancha.m2 {
  width: 40%;
  aspect-ratio: 1;
  right: -2%;
  bottom: 2%;
  background: var(--menta-clara);
  border-radius: 46% 54% 40% 60% / 58% 40% 60% 42%;
}
.heroe-ilus picture,
.heroe-ilus img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.heroe-ilus .adorno.a1 {
  width: 13%;
  top: 4%;
  left: 2%;
  --c: var(--pervinca);
}
.heroe-ilus .adorno.a2 {
  width: 9%;
  bottom: 10%;
  left: 0;
  --c: var(--mostaza);
}
.heroe-ilus .adorno.a3 {
  width: 16%;
  top: 0;
  right: 4%;
  --c: var(--menta);
  rotate: 30deg;
}
.heroe .nota-mano {
  position: absolute;
  right: 4%;
  bottom: -1%;
  rotate: -6deg;
  z-index: 2;
}
.heroe .nota-mano svg {
  display: inline-block;
  width: 2.6rem;
  vertical-align: -0.2em;
  margin-right: 0.2rem;
  rotate: 200deg;
}

/* Animaciones de entrada (sin JavaScript): la portada aparece por partes */
@media (prefers-reduced-motion: no-preference) {
  .entra {
    animation: subir 1s var(--suave) both;
    animation-delay: calc(0.12s * var(--n, 0) + 0.1s);
  }
  .linea > * {
    animation: asomar 1.1s var(--suave) both;
    animation-delay: calc(0.13s * var(--n, 0) + 0.15s);
  }
  .heroe-ilus .mancha.m1 {
    animation:
      brotar 1.4s var(--suave) 0.1s both,
      latir 14s ease-in-out 1.5s infinite alternate;
  }
  .heroe-ilus .mancha.m2 {
    animation:
      brotar 1.4s var(--suave) 0.35s both,
      latir 11s ease-in-out 1.8s infinite alternate-reverse;
  }
  .heroe-ilus img {
    animation:
      posarse 1.6s var(--suave) 0.3s both,
      flotar 7s ease-in-out 2s infinite;
  }
  .heroe-ilus .adorno {
    animation: florecer 1.1s var(--rebote) both;
    animation-delay: calc(0.6s + 0.15s * var(--n, 0));
  }
  .heroe .nota-mano {
    animation: escribir 1s var(--suave) 1.3s both;
  }
}

/* Cinta de cualidades: corre de lado a lado */
.cinta {
  position: relative;
  z-index: 2;
  margin: 1rem -3rem 0;
  padding-block: 1.05rem;
  background: var(--selva) var(--pinceladas);
  color: var(--papel);
  rotate: -1.6deg;
  overflow: hidden;
  box-shadow: 0 16px 30px -24px rgba(20, 58, 50, 0.7);
}
.cinta-pista {
  display: flex;
  width: max-content;
}
.cinta ul {
  display: flex;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  font-style: italic;
  font-weight: 380;
  white-space: nowrap;
}
.cinta li {
  display: flex;
  align-items: center;
}
.cinta li::after {
  content: '';
  width: 1.4rem;
  height: 1.4rem;
  margin-inline: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='%23f4a3b5'%3E%3Cellipse cy='-24' rx='15' ry='24'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(72)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(144)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(216)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='12' fill='%23f2b94b'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .cinta-pista {
    animation: desplazar 42s linear infinite;
  }
  .cinta:hover .cinta-pista {
    animation-play-state: paused;
  }
}

/* Proyecto destacado */
.bloque {
  padding-block: 4.5rem;
}
@media (min-width: 48rem) {
  .bloque {
    padding-block: 6.5rem;
  }
}
.bloque h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
}
.encabezado {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.encabezado h2 {
  margin-top: 0.8rem;
}
.destacado {
  position: relative;
  display: grid;
  background: var(--selva) var(--pinceladas);
  color: var(--papel);
  border-radius: var(--radio-grande);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.6s var(--suave),
    box-shadow 0.6s var(--suave);
}
.destacado:hover {
  color: var(--papel);
  transform: translateY(-6px);
  box-shadow: 0 40px 60px -40px rgba(20, 58, 50, 0.75);
}
@media (min-width: 56rem) {
  .destacado {
    grid-template-columns: 1fr 1.1fr;
  }
}
.destacado .marco {
  margin: 0.9rem;
  border-radius: calc(var(--radio-grande) - 0.6rem);
  overflow: hidden;
  background: var(--papel);
}
@media (min-width: 56rem) {
  .destacado .marco {
    margin: 1.1rem 0 1.1rem 1.1rem;
  }
}
.destacado picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  view-transition-name: puerta;
  transition: transform 1.4s var(--suave);
}
.destacado:hover picture img {
  transform: scale(1.05);
}
.destacado .texto {
  position: relative;
  padding: 1.4rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 56rem) {
  .destacado .texto {
    padding: 3.5rem;
    justify-content: center;
  }
}
.destacado h2 {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.destacado h2 em {
  color: var(--rosa);
}
.destacado p {
  color: var(--blanco-90);
  font-size: 1.12rem;
  line-height: 1.6;
}
.destacado .leer {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--mostaza);
}
.destacado .leer span {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--mostaza);
  color: var(--selva);
  transition: transform 0.5s var(--rebote);
}
.destacado:hover .leer span {
  transform: translateX(6px) rotate(-12deg);
}
.destacado .adorno {
  width: 7rem;
  right: -1.5rem;
  top: -1.5rem;
  --c: var(--coral);
  opacity: 0.9;
  transition: transform 1s var(--suave);
}
.destacado:hover .adorno {
  transform: rotate(50deg) scale(1.1);
}

/* En qué trabajo */
.competencias {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: competencia;
}
@media (min-width: 40rem) {
  .competencias {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 72rem) {
  .competencias {
    grid-template-columns: repeat(4, 1fr);
  }
}
.competencias li {
  --c: var(--rosa-claro);
  --f: var(--coral);
  position: relative;
  min-height: 15rem;
  padding: 1.8rem 1.6rem 1.7rem;
  border-radius: var(--radio-grande);
  background: var(--c);
  overflow: hidden;
  counter-increment: competencia;
  transition:
    transform 0.55s var(--rebote),
    box-shadow 0.55s;
}
.competencias li:nth-child(2) {
  --c: var(--menta-clara);
  --f: var(--jade);
}
.competencias li:nth-child(3) {
  --c: var(--pervinca-clara);
  --f: var(--pervinca);
}
.competencias li:nth-child(4) {
  --c: var(--mostaza-clara);
  --f: var(--mostaza);
}
.competencias li::before {
  content: counter(competencia, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  color: var(--tinta-suave);
  margin-bottom: 3.2rem;
}
.competencias li:hover {
  transform: translateY(-6px) rotate(-0.8deg);
  box-shadow: 0 28px 40px -30px rgba(43, 34, 48, 0.45);
}
.competencias li:nth-child(even):hover {
  transform: translateY(-6px) rotate(0.8deg);
}
.competencias .flor {
  position: absolute;
  width: 4.6rem;
  top: 1.1rem;
  right: 1.1rem;
  --c: var(--f);
  transition: transform 0.9s var(--suave);
}
.competencias li:hover .flor {
  transform: rotate(72deg) scale(1.12);
}
.competencias h3 {
  font-size: 1.4rem;
}
.competencias p {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--tinta-suave);
}

/* Experiencia y formación: una línea con flores */
.trayectoria {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 64rem) {
  .trayectoria {
    grid-template-columns: 1.35fr 1fr;
    gap: 5rem;
  }
}
.linea-tiempo {
  position: relative;
  list-style: none;
  padding: 0 0 0 2.4rem;
  margin: 1.8rem 0 0;
}
.linea-tiempo::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 0.8rem;
  bottom: 0.4rem;
  border-left: 2px dashed var(--rosa);
}
.linea-tiempo > li {
  position: relative;
  padding-bottom: 2.2rem;
}
.linea-tiempo > li:last-child {
  padding-bottom: 0;
}
.linea-tiempo > li::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.1rem;
  width: 1.45rem;
  height: 1.45rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='%23ef6f5b'%3E%3Cellipse cy='-24' rx='15' ry='24'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(72)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(144)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(216)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='12' fill='%23f2b94b'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.9s var(--rebote);
}
.linea-tiempo .fecha {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-hondo);
}
.linea-tiempo h3 {
  font-size: 1.5rem;
  margin-top: 0.4rem;
}
.linea-tiempo .lugar {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--tinta-suave);
  margin-top: 0.3rem;
}
.linea-tiempo ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
}
.linea-tiempo ul li {
  position: relative;
  padding-left: 1.3rem;
}
.linea-tiempo ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50% 50% 50% 0;
  background: var(--menta);
  rotate: -45deg;
}
.linea-tiempo ul li + li {
  margin-top: 0.5rem;
}

/* Contacto: el texto y, al lado, los dos canales (WhatsApp y el correo) */
.contacto {
  position: relative;
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 2.4rem 1.4rem;
  border-radius: var(--radio-grande);
  background: var(--selva) var(--pinceladas);
  color: var(--papel);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 48rem) {
  .contacto {
    padding: 4rem 3.5rem;
  }
}
@media (min-width: 60rem) {
  .contacto {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 3.5rem;
  }
}
.contacto-intro {
  position: relative;
}
.contacto h2 {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.contacto-texto {
  max-width: 30rem;
  margin-top: 0.8rem;
  color: var(--blanco-90);
  font-size: 1.15rem;
}
.contacto-texto:first-child {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.25;
  color: var(--papel);
}
.canales {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.canal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  font-family: var(--sans);
  text-decoration: none;
  transition:
    transform 0.5s var(--rebote),
    background-color 0.3s,
    box-shadow 0.5s;
}
.canal-icono {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  transition: transform 0.6s var(--rebote);
}
.canal-icono svg {
  width: 1.6rem;
  height: 1.6rem;
}
.canal-texto {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}
.canal-nombre {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.canal-valor {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
/* WhatsApp: el canal principal, en menta */
.canal-whatsapp {
  background: var(--menta);
  color: var(--selva);
  box-shadow: 0 18px 34px -24px rgba(124, 198, 168, 0.9);
}
.canal-whatsapp:hover {
  color: var(--selva);
  background: #93d4b9;
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 0 26px 40px -22px rgba(124, 198, 168, 0.95);
}
.canal-whatsapp .canal-icono {
  background: var(--selva);
  color: var(--menta);
}
.canal-whatsapp:hover .canal-icono {
  transform: rotate(-14deg) scale(1.08);
}
.canal-ir {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(20, 58, 50, 0.12);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.5s var(--rebote);
}
.canal-whatsapp:hover .canal-ir {
  transform: translateX(4px);
}
/* El correo: sobre el verde, con su botón de copiar */
.canal-correo {
  background: #1c463d;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 243, 0.14);
  color: var(--papel);
}
.canal-correo:hover {
  background: #22504a;
}
.canal-correo .canal-icono {
  background: rgba(242, 185, 75, 0.16);
  color: var(--mostaza);
}
.contacto-correo {
  color: var(--mostaza);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat;
  transition:
    background-size 0.5s var(--suave),
    color 0.3s;
}
.contacto-correo:hover {
  color: var(--rosa);
  background-size: 100% 1.5px;
}
.canal-correo .canal-valor {
  font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.3rem);
}
.copiar {
  display: none;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 1.5px solid rgba(255, 250, 243, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--papel);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.js .copiar {
  display: inline-flex;
}
.copiar:hover {
  background: var(--papel);
  color: var(--selva);
}
.copiar.hecho {
  background: var(--menta);
  border-color: var(--menta);
  color: var(--selva);
}
@media (max-width: 26rem) {
  .canal {
    gap: 0.75rem;
    padding: 0.9rem;
  }
  .canal-icono {
    width: 2.7rem;
    height: 2.7rem;
  }
  .canal-correo {
    grid-template-columns: auto 1fr;
  }
  .canal-correo .copiar {
    grid-column: 2;
    justify-self: start;
  }
}

/* WhatsApp flotante: aparece al bajar; con JavaScript se esconde arriba del todo y en el contacto */
.wa-flotante {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  background: var(--selva);
  color: var(--menta);
  box-shadow: 0 16px 30px -12px rgba(20, 58, 50, 0.6);
  transition:
    transform 0.55s var(--rebote),
    opacity 0.35s,
    background-color 0.3s;
}
.wa-flotante svg {
  width: 1.75rem;
  height: 1.75rem;
}
.wa-flotante:hover {
  color: var(--selva);
  background: var(--menta);
  transform: scale(1.08) rotate(-8deg);
}
.wa-flotante::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(124, 198, 168, 0.55);
}
.wa-globo {
  position: absolute;
  right: calc(100% + 0.7rem);
  padding: 0.5rem 0.9rem;
  border-radius: 999px 999px 4px 999px;
  background: var(--tarjeta);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(43, 34, 48, 0.5);
  opacity: 0;
  translate: 8px 0;
  pointer-events: none;
  transition:
    opacity 0.35s,
    translate 0.45s var(--rebote);
}
.wa-flotante:hover .wa-globo,
.wa-flotante:focus-visible .wa-globo,
.wa-flotante.saluda .wa-globo {
  opacity: 1;
  translate: 0 0;
}
.js .wa-flotante:not(.visible) {
  opacity: 0;
  transform: scale(0.4) translateY(1rem);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-flotante.visible::before {
    animation: latido 2.6s ease-out 1s 3;
  }
}
@media print {
  .wa-flotante {
    display: none;
  }
}
.contacto .adorno.a1 {
  width: 11rem;
  left: -3.5rem;
  bottom: -3.5rem;
  --c: var(--coral);
  opacity: 0.95;
}
.contacto .adorno.a2 {
  width: 5rem;
  left: 6.5rem;
  bottom: -1.8rem;
  --c: var(--rosa);
}
.contacto .adorno.a3 {
  width: 6rem;
  right: 1.5rem;
  top: -2.6rem;
  --c: var(--salvia);
  rotate: 200deg;
}
@media (max-width: 40rem) {
  .contacto .adorno.a1 {
    width: 7rem;
    left: auto;
    right: -2.5rem;
    top: -2.5rem;
    bottom: auto;
  }
  .contacto .adorno.a2,
  .contacto .adorno.a3 {
    display: none;
  }
}
.bloque.seccion-contacto {
  padding-top: 0;
}
.seccion-contacto .contacto {
  margin-top: 0;
}

/* ---------- Portada del artículo ---------- */
.portada {
  position: relative;
  padding-block: 1rem 4rem;
}
.portada-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}
@media (min-width: 58rem) {
  .portada-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    min-height: min(calc(100svh - 5rem), 54rem);
  }
}
.portada h1 {
  margin-top: 1.1rem;
  font-size: clamp(3rem, 1.3rem + 6.6vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.portada h1 em {
  font-style: italic;
  font-weight: 330;
  color: var(--coral-hondo);
}
.portada h1 .palabra {
  display: inline-block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: top;
}
.portada h1 .palabra > * {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .portada h1 .palabra > * {
    animation: asomar 1.1s var(--suave) both;
    animation-delay: calc(0.09s * var(--n, 0) + 0.15s);
  }
}
.portada .bajada {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.18rem, 1.02rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--tinta);
}
.firma {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--tinta-suave);
}
.firma strong {
  font-weight: 650;
  color: var(--tinta);
}
.firma .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--menta-clara);
  color: var(--jade);
  font-weight: 600;
}
.firma .chip::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}
.portada-ilus {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
}
@media (max-width: 57.99rem) {
  .portada-ilus {
    order: -1;
    max-width: min(15rem, 62vw);
  }
}
.arco {
  position: relative;
  border-radius: 999px 999px var(--radio-grande) var(--radio-grande);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--rosa-claro);
  box-shadow:
    0 0 0 10px var(--tarjeta),
    0 40px 60px -36px rgba(43, 34, 48, 0.55);
}
.arco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  view-transition-name: puerta;
}
.portada-ilus .adorno.a1 {
  width: 6.5rem;
  left: -2.6rem;
  bottom: 18%;
  z-index: 2;
  --c: var(--coral);
}
.portada-ilus .adorno.a2 {
  width: 3.4rem;
  left: -0.6rem;
  bottom: 10%;
  z-index: 2;
  --c: var(--rosa);
}
.portada-ilus .adorno.a3 {
  width: 5.5rem;
  right: -2.2rem;
  top: 30%;
  z-index: 2;
  --c: var(--salvia);
  rotate: 35deg;
}
.portada .credito {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.78rem;
}
@media (prefers-reduced-motion: no-preference) {
  .arco {
    animation: abrir 1.4s var(--suave) 0.1s both;
  }
  .arco img {
    animation: acercar 2.2s var(--suave) 0.1s both;
  }
  .portada-ilus .adorno {
    animation: florecer 1.1s var(--rebote) both;
    animation-delay: calc(0.9s + 0.15s * var(--n, 0));
  }
}
.desliza {
  display: none;
}
@media (min-width: 58rem) {
  .desliza {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tinta-suave);
    text-decoration: none;
  }
  .desliza::after {
    content: '';
    width: 1.5rem;
    height: 2.4rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: radial-gradient(circle, var(--coral) 3px, transparent 3.5px) 50% 0.5rem / 100% 0.9rem no-repeat;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .desliza::after {
    animation: rueda 1.8s ease-in-out infinite;
  }
}

/* ---------- Cuerpo del artículo ---------- */
.articulo > section {
  position: relative;
  padding-block: 4.5rem;
}
@media (min-width: 48rem) {
  .articulo > section {
    padding-block: 7rem;
  }
}
.articulo h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  margin-top: 0.8rem;
}
.articulo h3 {
  font-size: 1.6rem;
  letter-spacing: -0.012em;
}
.prosa > * + * {
  margin-top: 1.2rem;
}
.prosa > h2 + * {
  margin-top: 1.5rem;
}
.entrada {
  font-size: clamp(1.28rem, 1.1rem + 0.55vw, 1.5rem);
  line-height: 1.55;
}
.entrada::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--display);
  font-size: 4.4em;
  line-height: 0.78;
  font-weight: 400;
  color: var(--coral-hondo);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.oscuro {
  background: var(--selva) var(--pinceladas);
  color: var(--papel);
}
.oscuro a {
  color: var(--mostaza);
}
.oscuro a:hover {
  color: var(--rosa);
}
.blanco {
  background: var(--tarjeta);
}
/* Bordes ondulados, como una pincelada, arriba y abajo de lo oscuro y lo blanco */
.oscuro::before,
.oscuro::after,
.blanco::before,
.blanco::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(22px, 3.6vw, 52px);
  background: inherit;
  background-color: var(--selva);
  -webkit-mask: var(--ola) center / 100% 100% no-repeat;
  mask: var(--ola) center / 100% 100% no-repeat;
  pointer-events: none;
}
.blanco::before,
.blanco::after {
  background-color: var(--tarjeta);
}
.oscuro::before,
.blanco::before {
  bottom: calc(100% - 1px);
}
.oscuro::after,
.blanco::after {
  top: calc(100% - 1px);
  transform: scale(-1, -1);
}

/* Una cifra con su frase */
.cifra {
  display: block;
  font-family: var(--display);
  font-size: clamp(5.4rem, 3.4rem + 8vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-weight: 350;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--coral-hondo);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.oscuro .cifra {
  color: var(--mostaza);
}
.cifra-frase {
  display: block;
  margin-top: 1.1rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.95rem);
  line-height: 1.22;
  max-width: 24ch;
}

/* La cárcel: el texto y, al lado, la serie del INPEC con su tabla */
.carcel {
  display: grid;
  gap: 3rem;
}
@media (min-width: 64rem) {
  .carcel {
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
  }
}
.carcel-serie {
  padding: 1.6rem 1.3rem;
  border-radius: var(--radio-grande);
  background: var(--papel);
  box-shadow: inset 0 0 0 1px var(--linea);
}
@media (min-width: 48rem) {
  .carcel-serie {
    padding: 2.2rem;
  }
}
.serie-titulo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
}

/* Tabla plegada: los números exactos del gráfico */
.tabla-datos {
  margin-top: 1.2rem;
  border-top: 1px solid var(--linea);
  font-family: var(--sans);
}
.tabla-datos summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.tabla-datos summary::-webkit-details-marker {
  display: none;
}
.tabla-datos summary span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--rosa-claro);
  transition: background-color 0.3s;
}
.tabla-datos summary:hover span {
  background: var(--rosa);
}
.tabla-datos .cerrar,
.tabla-datos[open] .abrir {
  display: none;
}
.tabla-datos[open] .cerrar {
  display: grid;
}
.tabla-caja {
  max-height: 24rem;
  overflow: auto;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--tarjeta);
}
.tabla-datos table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.tabla-datos th,
.tabla-datos td {
  padding: 0.55rem 0.9rem;
  text-align: right;
  border-bottom: 1px solid var(--linea);
}
.tabla-datos th:first-child {
  text-align: left;
  font-weight: 400;
}
.tabla-datos thead th {
  position: sticky;
  top: 0;
  background: var(--tarjeta);
  font-weight: 600;
}
.tabla-datos tr:last-child th,
.tabla-datos tr:last-child td {
  border-bottom: 0;
}
.tabla-datos .ultima td {
  font-weight: 600;
}
.tabla-datos .fuente {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}

/* El gráfico de la cárcel: un dibujo ancho y otro angosto */
.grafico-cupo {
  margin: 1.5rem 0 0;
  font-family: var(--sans);
}
.grafico-cupo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.grafico-cupo .angosto {
  display: none;
}
@media (max-width: 40rem) {
  .grafico-cupo .ancho {
    display: none;
  }
  .grafico-cupo .angosto {
    display: block;
  }
}
.grafico-cupo rect {
  fill: var(--tinta);
  fill-opacity: 0.16;
  transform-box: fill-box;
  transform-origin: bottom;
  rx: 3px;
}
.grafico-cupo .foco rect {
  fill: var(--coral);
  fill-opacity: 1;
}
.grafico-cupo .rejilla {
  stroke: var(--linea);
  stroke-dasharray: 2 5;
}
.grafico-cupo .base {
  stroke: var(--tinta);
  stroke-opacity: 0.25;
}
.grafico-cupo .eje {
  fill: var(--tinta-suave);
  font-size: 13px;
}
.grafico-cupo .cupo line {
  stroke: var(--jade);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}
.grafico-cupo .cupo text {
  fill: var(--jade);
  font-size: 15px;
  font-weight: 650;
}
.grafico-cupo .valor {
  fill: var(--coral-hondo);
  font-family: var(--display);
  font-size: 26px;
}
.grafico-cupo .valor.ultimo {
  fill: var(--tinta);
  font-size: 19px;
}
.grafico-cupo .rotulo-foco line {
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.grafico-cupo .tramo {
  fill: var(--coral-hondo);
  font-size: 13px;
  font-weight: 700;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .grafico-cupo {
      view-timeline-name: --cupo;
    }
    .grafico-cupo rect {
      animation: crecer linear both;
      animation-timeline: --cupo;
      animation-range: entry calc(20% + var(--i) * 0.5%) cover calc(30% + var(--i) * 0.4%);
    }
    .grafico-cupo .cupo line {
      animation: trazar linear both;
      animation-timeline: --cupo;
      animation-range: entry 40% cover 45%;
    }
  }
}

/* Puntos: uno por persona */
.puntos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.9rem;
}
.punto {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1.5px solid var(--tinta-suave);
  opacity: 0.6;
}
.punto.lleno {
  background: var(--coral);
  border-color: var(--coral);
  opacity: 1;
}
.oscuro .punto {
  border-color: var(--blanco-75);
}
.oscuro .punto.lleno {
  background: var(--mostaza);
  border-color: var(--mostaza);
}
.puntos.grandes {
  gap: 10px;
  max-width: calc(9 * 30px + 8 * 10px);
  margin-top: 2rem;
}
.puntos.grandes .punto {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--coral);
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
}
.puntos.grandes .punto:nth-child(3n + 2) {
  background: var(--rosa);
}
.puntos.grandes .punto:nth-child(3n) {
  background: var(--menta);
}
@media (prefers-reduced-motion: no-preference) {
  .js .puntos .punto {
    scale: 0;
    transition: scale 0.6s var(--rebote);
    transition-delay: calc(var(--i, 0) * 45ms + 0.15s);
  }
  .js .puntos.visto .punto,
  .js .visto .puntos .punto {
    scale: 1;
  }
}
.facetas {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}
.facetas li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--linea);
}
.facetas .frase {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.28;
}
.facetas .resto {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--tinta-suave);
}

/* Oficios */
.oficios {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}
.oficios li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--rosa-claro);
}
.oficios li:nth-child(4n + 2) {
  background: var(--menta-clara);
}
.oficios li:nth-child(4n + 3) {
  background: var(--mostaza-clara);
}
.oficios li:nth-child(4n) {
  background: var(--pervinca-clara);
}

/* Muros */
.muros {
  list-style: none;
  padding: 0;
  margin: 2.8rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: muro;
}
@media (min-width: 48rem) {
  .muros {
    grid-template-columns: 1fr 1fr;
  }
}
.muros li {
  position: relative;
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: var(--radio);
  background: rgba(255, 250, 243, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 243, 0.12);
  counter-increment: muro;
  transition:
    background-color 0.4s,
    transform 0.5s var(--suave);
}
.muros li:hover {
  background: rgba(255, 250, 243, 0.09);
  transform: translateY(-3px);
}
.muros li::before {
  content: counter(muro, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--rosa);
}
.muros h3 {
  font-size: 1.4rem;
}
.muros p {
  margin-top: 0.6rem;
  color: var(--blanco-75);
  font-size: 1.05rem;
  line-height: 1.6;
}
.muros .pesa {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--mostaza);
  color: var(--selva);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Citas */
.cita-grande,
.cita-grande blockquote {
  margin: 0;
}
.cita-grande {
  position: relative;
  padding-top: 3.2rem;
}
.cita-grande::before {
  content: '“';
  position: absolute;
  top: -0.6rem;
  left: -0.3rem;
  font-family: var(--display);
  font-size: 7rem;
  line-height: 1;
  color: var(--rosa);
  opacity: 0.9;
}
.cita-grande p {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 380;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
}
.cita-grande figcaption {
  margin-top: 1.2rem;
}
.resaltado {
  color: var(--mostaza);
  background: linear-gradient(transparent 84%, var(--coral) 84%, var(--coral) 96%, transparent 96%) 0 0 / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .js .resaltado {
    background-size: 0% 100%;
    transition: background-size 1.2s var(--suave) 0.5s;
  }
  .js .visto .resaltado {
    background-size: 100% 100%;
  }
}
.voces {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 48rem) {
  .voces {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64rem) {
  .voces {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.voces li {
  --c: var(--rosa-claro);
  --r: -1deg;
  padding: 1.7rem 1.6rem;
  border-radius: var(--radio);
  background: var(--c);
  color: var(--tinta);
  rotate: var(--r);
  transition: rotate 0.6s var(--rebote), transform 0.6s var(--rebote);
}
.voces li:nth-child(4n + 2) {
  --c: var(--menta-clara);
  --r: 0.8deg;
}
.voces li:nth-child(4n + 3) {
  --c: var(--mostaza-clara);
  --r: -0.5deg;
}
.voces li:nth-child(4n) {
  --c: var(--pervinca-clara);
  --r: 1.2deg;
}
.voces li:hover {
  rotate: 0deg;
  transform: translateY(-4px) scale(1.02);
}
.voces blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.35;
}
.oscuro .voces figcaption {
  margin-top: 0.8rem;
  color: var(--tinta-suave);
}

/* Fotos */
.foto {
  margin: 2.5rem 0 0;
}
.foto img {
  width: 100%;
  border-radius: var(--radio);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.foto figcaption {
  margin-top: 0.8rem;
}
/* Las fotos de los talleres, como copias pegadas con cinta en el cuaderno */
.camino .foto {
  position: relative;
  margin-top: 2rem;
}
.camino .foto picture {
  display: block;
  padding: 0.6rem 0.6rem 1.8rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 22px 40px -28px rgba(43, 34, 48, 0.55);
  rotate: -1.2deg;
  transition: rotate 0.7s var(--rebote);
}
.camino li:nth-child(even) .foto picture {
  rotate: 1.2deg;
}
.camino .foto:hover picture {
  rotate: 0deg;
}
.camino .foto img {
  border-radius: 3px;
}
.camino .foto::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -0.7rem;
  left: 50%;
  width: 6.5rem;
  height: 1.6rem;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(244, 163, 181, 0.7);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
  mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.camino li:nth-child(even) .foto::before {
  background: rgba(124, 198, 168, 0.7);
  rotate: 2deg;
}
.foto-ancha {
  position: relative;
  max-width: var(--ancho);
  margin: 3.5rem auto 0;
  padding-inline: 0.75rem;
}
.foto-ancha img {
  width: 100%;
  border-radius: var(--radio-grande);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.foto-ancha figcaption {
  margin-top: 0.8rem;
  padding-inline: 0.5rem;
}
@media (min-width: 48rem) {
  .foto-ancha {
    padding-inline: 2rem;
  }
  .foto-ancha figcaption {
    padding-inline: 0;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .foto-ancha picture {
      display: block;
      overflow: hidden;
      border-radius: var(--radio-grande);
    }
    .foto-ancha img {
      animation: paralaje linear both;
      animation-timeline: view();
    }
  }
}

/* El camino de los talleres */
.camino {
  list-style: none;
  padding: 0 0 0 2.6rem;
  margin: 3.2rem 0 0;
  position: relative;
  view-timeline-name: --camino;
}
.camino::before,
.camino::after {
  content: '';
  position: absolute;
  left: 0.72rem;
  top: 0.8rem;
  bottom: 0.6rem;
  width: 3px;
  border-radius: 999px;
}
.camino::before {
  background: repeating-linear-gradient(var(--rosa) 0 8px, transparent 8px 16px);
}
.camino::after {
  background: linear-gradient(var(--coral), var(--mostaza), var(--menta));
  transform-origin: top;
  transform: scaleY(0);
}
@supports not (animation-timeline: view()) {
  .camino::after {
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  .camino::after {
    animation: llenar linear both;
    animation-timeline: --camino;
    animation-range: entry 40% exit 55%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .camino::after {
    animation: none;
    transform: none;
  }
}
.camino > li {
  position: relative;
  padding-bottom: 4rem;
}
.camino > li:last-child {
  padding-bottom: 0;
}
.camino > li::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: -2.6rem;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='%23ef6f5b'%3E%3Cellipse cy='-24' rx='15' ry='24'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(72)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(144)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(216)'/%3E%3Cellipse cy='-24' rx='15' ry='24' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='12' fill='%23f2b94b'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 0 0 var(--papel)) drop-shadow(0 0 3px var(--papel));
}
@media (prefers-reduced-motion: no-preference) {
  .js .camino > li::before,
  .js .linea-tiempo > li::before {
    transform: scale(0) rotate(-120deg);
    transition: transform 1s var(--rebote) 0.2s;
  }
  .js .camino > li.visto::before,
  .js .linea-tiempo > li.visto::before {
    transform: none;
  }
}
.camino .cuando {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-hondo);
}
.camino h3 {
  margin-top: 0.35rem;
}
.camino p {
  margin-top: 0.7rem;
}

/* Medidor: antes y después */
.medidor {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  font-family: var(--sans);
}
.medidor li {
  padding-block: 0.95rem;
  border-top: 1px solid var(--linea);
}
.medidor .fila {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem;
}
.medidor .valor {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.medidor .valor b {
  font-weight: 700;
  color: var(--coral-hondo);
}
.medidor .antes-valor {
  color: var(--tinta-suave);
}
.pista {
  position: relative;
  height: 1.5rem;
  margin-top: 0.45rem;
}
.pista > span {
  position: absolute;
  top: 50%;
}
.pista .riel {
  left: 0;
  right: 0;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--rosa-claro);
}
.pista .umbral {
  top: -2px;
  bottom: -2px;
  border-left: 2px dashed var(--jade);
}
.pista .tramo {
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rosa), var(--coral));
  transform-origin: left;
}
.pista .marca {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.pista .marca.antes {
  border: 2.5px solid var(--tinta-suave);
  background: var(--tarjeta);
}
.pista .marca.despues {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 111, 91, 0.22);
}
@media (prefers-reduced-motion: no-preference) {
  .js .medidor li .tramo {
    scale: 0 1;
    transition: scale 1.1s var(--suave) 0.25s;
  }
  .js .medidor li .marca.despues {
    transition: left 1.1s var(--suave) 0.25s;
  }
  .js .medidor li:not(.visto) .marca.despues {
    left: var(--desde, 0%) !important;
  }
  .js .medidor li.visto .tramo {
    scale: 1 1;
  }
}
.escala {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--tinta-suave);
}

/* Tarjetas de resultados */
.resultados {
  display: grid;
  gap: 4.5rem;
  margin-top: 3rem;
}
@media (min-width: 64rem) {
  .resultados .doble {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
}
.habitos {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-family: var(--sans);
}
.habitos li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding-block: 0.9rem;
  border-top: 1px solid var(--linea);
}
.habitos .puntos {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}
.cuenta {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--coral-hondo);
}
.cuenta small {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--tinta-suave);
}
.hoy {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) {
  .hoy {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hoy li {
  --c: var(--rosa-claro);
  background: var(--c);
  border-radius: var(--radio-grande);
  padding: 1.7rem 1.6rem;
  transition: transform 0.5s var(--rebote);
}
.hoy li:nth-child(2) {
  --c: var(--menta-clara);
}
.hoy li:nth-child(3) {
  --c: var(--mostaza-clara);
}
.hoy li:hover {
  transform: translateY(-5px);
}
.hoy .estado {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tinta);
}
.hoy .numero {
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  margin-top: 0.6rem;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.hoy .detalle {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--tinta-suave);
}

/* El muro del cierre: los que salieron cruzan */
.muro {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem 1.6rem;
  margin-top: 2.8rem;
  font-family: var(--sans);
}
.muro .lado {
  font-size: 0.95rem;
  color: var(--blanco-75);
}
.muro .lado b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--papel);
}
.muro .lado.afuera b {
  color: var(--mostaza);
}
.muro .izq {
  text-align: right;
}
.muro .personas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  max-width: 15rem;
}
.muro .personas.izq {
  justify-self: end;
  justify-content: flex-end;
}
.muro .persona {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
}
.muro .persona.adentro {
  border: 2px solid rgba(255, 250, 243, 0.4);
}
.muro .persona.libre {
  background: var(--mostaza);
}
.muro .persona.libre:nth-child(3n + 2) {
  background: var(--rosa);
}
.muro .persona.libre:nth-child(3n) {
  background: var(--menta);
}
.muro .pared {
  width: 8px;
  min-height: 7rem;
  border-radius: 999px;
  background: repeating-linear-gradient(rgba(255, 250, 243, 0.32) 0 14px, rgba(255, 250, 243, 0.14) 14px 18px);
}
@media (min-width: 48rem) {
  .muro .persona {
    width: 38px;
    height: 38px;
  }
  .muro .personas {
    max-width: 16rem;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .muro .persona.libre {
    opacity: 0;
    translate: -9rem 0;
    transition:
      translate 1.3s var(--suave),
      opacity 0.6s;
    transition-delay: calc(var(--i, 0) * 0.12s + 0.3s);
  }
  .js .muro.visto .persona.libre {
    opacity: 1;
    translate: 0 0;
  }
}

/* Mi papel */
.papel-lista {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: papel;
}
@media (min-width: 48rem) {
  .papel-lista {
    grid-template-columns: 1fr 1fr;
  }
}
.papel-lista li {
  position: relative;
  background: var(--tarjeta);
  border-radius: var(--radio-grande);
  padding: 1.8rem 1.7rem;
  box-shadow: inset 0 0 0 1px var(--linea);
  counter-increment: papel;
  transition:
    transform 0.5s var(--rebote),
    box-shadow 0.5s;
}
.papel-lista li:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px var(--linea),
    0 26px 40px -30px rgba(43, 34, 48, 0.45);
}
.papel-lista li::before {
  content: counter(papel);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--rosa-claro);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--coral-hondo);
}
.papel-lista li:nth-child(2)::before {
  background: var(--menta-clara);
  color: var(--jade);
}
.papel-lista li:nth-child(3)::before {
  background: var(--pervinca-clara);
  color: var(--pervinca-honda);
}
.papel-lista li:nth-child(4)::before {
  background: var(--mostaza-clara);
  color: #8a5a00;
}
.papel-lista h3 {
  font-size: 1.4rem;
}
.papel-lista p {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--tinta-suave);
}

/* Fuentes */
.fuentes {
  padding-left: 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--tinta-suave);
}
.fuentes li + li {
  margin-top: 0.6rem;
}
.aviso {
  background: var(--mostaza-clara);
  border-radius: var(--radio);
  padding: 1.4rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
}
.aviso b {
  font-weight: 700;
}

/* Pie */
.pie {
  position: relative;
  margin-top: 2rem;
  padding-block: 3.5rem 3rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--tinta-suave);
}
.pie::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--ancho) - 4rem, 100% - 2.5rem);
  translate: -50% 0;
  border-top: 2px dashed var(--rosa);
}
.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pie a {
  color: inherit;
}
.pie a:hover {
  color: var(--coral-hondo);
}
.marca-pie {
  gap: 0.9rem;
  font-size: 1.25rem;
}
.marca-pie .logo {
  width: 5rem;
  height: 5rem;
}
.marca-pie small {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tinta-suave);
}

/* ---------- Aparecer al llegar (solo con JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revela {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 0.9s var(--suave),
      translate 1s var(--suave);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .revela.visto {
    opacity: 1;
    translate: 0 0;
  }
  .js .revela.de-lado {
    translate: -28px 0;
  }
  .js .revela.escala {
    translate: 0 0;
    scale: 0.94;
    transition-property: opacity, scale;
  }
  .js .revela.escala.visto {
    scale: 1;
  }
  .js .revela.de-lado.visto {
    translate: 0 0;
  }
}

/* Transición entre páginas */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 0.35s var(--suave) both salir;
  }
  ::view-transition-new(root) {
    animation: 0.55s var(--suave) both entrar;
  }
  ::view-transition-group(puerta) {
    animation-duration: 0.7s;
    animation-timing-function: var(--suave);
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes asomar {
  from {
    transform: translateY(105%) rotate(4deg);
  }
}
@keyframes brotar {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
  }
}
@keyframes latir {
  to {
    border-radius: 44% 56% 40% 60% / 60% 46% 54% 40%;
    transform: rotate(6deg) scale(1.03);
  }
}
@keyframes posarse {
  from {
    opacity: 0;
    transform: translate(40px, 30px) rotate(6deg) scale(0.92);
  }
}
@keyframes flotar {
  50% {
    transform: translateY(-14px) rotate(-1.5deg);
  }
}
@keyframes florecer {
  from {
    opacity: 0;
    transform: scale(0) rotate(-140deg);
  }
}
@keyframes escribir {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mecer {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(6deg);
  }
}
/* El colibrí del logo llega volando (sitio.js lo hace aletear) y, sin JavaScript, bate las alas al
 * pasar el mouse. */
@keyframes llegar {
  from {
    opacity: 0;
    transform: translate(-171%, 40%) scale(0.6) rotate(-10deg);
  }
  30% {
    opacity: 1;
  }
}
@keyframes batir-cerca {
  to {
    rotate: -70deg;
  }
}
@keyframes batir-lejos {
  to {
    rotate: -72deg;
  }
}
@keyframes desplazar {
  to {
    transform: translateX(-50%);
  }
}
@keyframes abrir {
  from {
    clip-path: inset(100% 0 0 0 round 999px 999px 32px 32px);
  }
  to {
    clip-path: inset(0 0 0 0 round 999px 999px 32px 32px);
  }
}
@keyframes acercar {
  from {
    transform: scale(1.25);
  }
}
@keyframes rueda {
  0% {
    background-position: 50% 0.4rem;
    opacity: 1;
  }
  70% {
    background-position: 50% 1.3rem;
    opacity: 0;
  }
  100% {
    background-position: 50% 0.4rem;
    opacity: 0;
  }
}
@keyframes progreso {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes crecer {
  from {
    transform: scaleY(0);
  }
}
@keyframes trazar {
  from {
    stroke-dashoffset: 400;
    opacity: 0;
  }
}
@keyframes llenar {
  to {
    transform: scaleY(1);
  }
}
@keyframes paralaje {
  from {
    transform: scale(1.15) translateY(-4%);
  }
  to {
    transform: scale(1.15) translateY(4%);
  }
}
@keyframes latido {
  to {
    box-shadow: 0 0 0 16px rgba(124, 198, 168, 0);
  }
}
@keyframes salir {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@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;
  }
  .progreso {
    animation: none !important;
  }
}

/* ---------- Qué busca, hoja de vida y LinkedIn (portada y contacto) ---------- */
.busco {
  margin-top: 1.5rem;
  max-width: 36rem;
  padding: 1.1rem 1.3rem 1.2rem;
  border-radius: var(--radio);
  background: var(--tarjeta);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  font-family: var(--sans);
}
.busco .rotulo {
  margin: 0;
}
.busco p {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
}
.busco .donde {
  color: var(--tinta-suave);
}
.busco .disponible {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--menta-clara);
  color: var(--jade);
  font-size: 0.88rem;
  font-weight: 700;
}
.busco .disponible::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .busco .disponible::before {
    animation: pulso 2.4s ease-in-out infinite;
  }
}
@keyframes pulso {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(31, 111, 92, 0.05);
  }
}
.boton svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.contacto-enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.contacto-enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  color: var(--papel);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 250, 243, 0.4);
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.4s var(--rebote);
}
.contacto-enlaces a:hover {
  background: var(--papel);
  color: var(--selva);
  transform: translateY(-2px);
}
.contacto-enlaces svg {
  width: 1.05rem;
  height: 1.05rem;
}
.referencia-portada {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radio);
  background: var(--tarjeta);
  box-shadow: inset 0 0 0 1.5px var(--linea);
}
.referencia-portada em {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--tinta);
}
