:root {
  --blue: #0a66ff;
  --blue-deep: #1f5fd1;
  --blue-ink: #0b2e6b;
  --yellow: #ffd60a;
  --ink: #12151c;
  --muted: #5a6475;
  --paper: #eef1f5;
  --card: #ffffff;
  --line: #dde2ea;

  /* Etiquetas de los carteles */
  --tag-charla-bg: #d9f2ec;  --tag-charla-fg: #0d8a72;
  --tag-nivel-bg: #dff5b6;   --tag-nivel-fg: #2c6b00;
  --tag-ia-bg: #a6d82f;      --tag-ia-fg: #1c4a00;
  --tag-taller-bg: #4be04b;  --tag-taller-fg: #124d00;

  --radius: 14px;
  /* Columna central común a toda la página */
  --wrap: 1200px;
  --gutter: max(clamp(16px, 4vw, 40px), calc((100% - var(--wrap)) / 2));
  --font: "Avenir Next", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ───────── BANNER MÓVIL ───────── */
.ticker { display: none; }
@media (max-width: 640px) {
  .ticker {
    display: block;
    overflow: hidden;
    background: var(--yellow);
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 9px 0;
    border-bottom: 2px solid var(--ink);
    max-height: 60px;
    transition: max-height .5s ease, padding .5s ease, opacity .4s ease, border-width .5s ease;
  }
  /* Se recoge a los 10 segundos (ver script al final) */
  .ticker.is-hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom-width: 0;
    pointer-events: none;
  }
  .ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
  }
  .ticker__item { padding: 0 14px; white-space: nowrap; }
  .ticker__item span { color: var(--blue); margin-left: 14px; }
  .ticker:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ───────── MENÚ MÓVIL ───────── */
.mnav { display: none; }
@media (max-width: 640px) {
  .mnav {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 950;
  }
  .mnav__toggle {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 6px 18px rgba(18, 21, 28, .25);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mnav__toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
  .mnav__bars { position: relative; width: 22px; height: 16px; }
  .mnav__bars span {
    position: absolute; left: 0;
    width: 100%; height: 3px;
    border-radius: 2px;
    background: var(--yellow);
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .mnav__bars span:nth-child(1) { top: 0; }
  .mnav__bars span:nth-child(2) { top: 6.5px; }
  .mnav__bars span:nth-child(3) { top: 13px; }
  .mnav.is-open .mnav__bars span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
  .mnav.is-open .mnav__bars span:nth-child(2) { opacity: 0; }
  .mnav.is-open .mnav__bars span:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }
  .mnav__lista {
    position: absolute;
    right: 0;
    bottom: 64px;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(18, 21, 28, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .mnav.is-open .mnav__lista {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .mnav__lista a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
  }
  .mnav__lista a:hover, .mnav__lista a:focus-visible { background: var(--paper); color: var(--blue); outline: none; }
  .mnav__lista .mnav__cta { margin-top: 6px; background: var(--yellow); color: var(--ink); text-align: center; }
  .mnav__lista .mnav__cta:hover, .mnav__lista .mnav__cta:focus-visible { background: #ffe14d; color: var(--ink); }
}
/* Las secciones no quedan pegadas al borde al saltar desde el menú */
section[id] { scroll-margin-top: 12px; }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: 48px;
  /* Fondo gris desenfocado, como la foto de los carteles */
  background:
    radial-gradient(60% 80% at 80% 20%, #c9cdd3 0%, transparent 60%),
    radial-gradient(50% 60% at 95% 90%, #8f9a8a 0%, transparent 70%),
    radial-gradient(40% 50% at 60% 75%, #a9a49b 0%, transparent 70%),
    linear-gradient(180deg, #b8bcc2 0%, #9da3a9 100%);
}
.hero__diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #3d7ee0 0%, #2a62c6 100%);
  clip-path: polygon(0 0, calc(var(--gutter) + min(30%, 360px)) 0, calc(var(--gutter) + min(46%, 560px)) 100%, 0 100%);
  opacity: .92;
}
.hero__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px var(--gutter) 28px;
}
.badge { position: relative; width: clamp(88px, 12vw, 140px); }
.badge__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
@media (hover: hover) { .badge__button:hover { transform: rotate(-6deg) scale(1.03); } }
.badge__button:active { transform: scale(.95); }
.badge__button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }
.badge__logo {
  width: 100%; height: auto;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.badge__season {
  position: absolute;
  top: 2%; right: 2%;
  width: 30%; aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--blue);
  color: var(--yellow);
  font-weight: 900;
  font-size: clamp(14px, 2vw, 22px);
  border-radius: 50%;
  border: 3px solid #fff;
}
.wordmark {
  width: clamp(110px, 14vw, 180px);
  height: auto;
}

.band {
  position: relative;
  background: var(--blue);
  padding: clamp(24px, 4vw, 40px) var(--gutter);
  /* Borde blanco como el del logo */
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(10, 102, 255, .25);
}
.band__inner { max-width: var(--wrap); }
.band__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.band__dash { font-weight: 800; }
.band__brace { color: var(--yellow); }
.band__greeting { font-size: .6em; white-space: nowrap; }

/* Mano que saluda */
.wave {
  font: inherit;
  font-size: .85em;
  line-height: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: baseline;
  transform-origin: 70% 75%;
}
.wave:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
.wave.is-waving { animation: wave 1.2s ease-in-out; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(16deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(12deg); }
  60% { transform: rotate(0deg); }
}
.band__subtitle {
  margin: 10px 0 18px;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 600;
  max-width: 44ch;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}
.tag--charla { background: var(--tag-charla-bg); color: var(--tag-charla-fg); }
.tag--nivel  { background: var(--tag-nivel-bg);  color: var(--tag-nivel-fg); }
.tag--ia     { background: var(--tag-ia-bg);     color: var(--tag-ia-fg); }
.tag--taller { background: var(--tag-taller-bg); color: var(--tag-taller-fg); }

.facts {
  position: relative;
  list-style: none;
  margin: 28px 0 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 12px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.facts li { display: flex; align-items: center; gap: 14px; }
.facts__icon { width: 1.4em; text-align: center; }

/* ───────── SECCIONES ───────── */
.section {
  max-width: calc(var(--wrap) + 2 * clamp(16px, 4vw, 40px));
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 40px);
}
.section__title {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.01em;
}
.section__title--light { color: #fff; }
.brace { color: var(--blue); }
.section__note { margin: -14px 0 24px; color: var(--muted); font-size: 16px; }
.section__title--light .brace { color: var(--yellow); }

/* Enlaces estilo linktree */
.links {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.links > .link { grid-column: span 6; }
.links > .link--wide { grid-column: 1 / -1; }
.link .link__emoji--telegram { background: #229ed9; color: #fff; }
.link .link__emoji--linkedin { background: #0a66c2; color: #fff; }
.link .link__emoji--bluesky { background: #1185fe; color: #fff; }
.link .link__emoji--x { background: #000; color: #fff; }
.link--wide .link__text small { white-space: normal; }
@media (max-width: 860px) {
  .links { grid-template-columns: 1fr; }
  .links > .link, .links > .link--primary, .links > .link--accent { grid-column: auto; }
}
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(10, 102, 255, .15);
}
.link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.link__emoji {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
}
.link__emoji--brand { background: var(--ink); color: #fff; font-weight: 900; font-size: 18px; }
.link__text { display: grid; flex: 1; min-width: 0; }
.link__text strong { font-size: 17px; }
.link__text small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__arrow { color: var(--blue); font-weight: 900; font-size: 20px; }

.link--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.link--primary .link__text small { color: #d6e5ff; }
.link--primary .link__arrow { color: var(--yellow); }
.link--primary .link__emoji { background: rgba(255,255,255,.18); }
.link--accent { background: var(--yellow); border-color: var(--yellow); }
.link--accent .link__text small { color: #5b4a00; }
.link--accent .link__arrow { color: var(--ink); }
.link--accent .link__emoji { background: rgba(255,255,255,.55); }

/* Banda azul de "qué hacemos" */
.section--band {
  max-width: none;
  background: var(--blue);
  color: #fff;
}
.section__inner { max-width: var(--wrap); margin: 0 auto; }
/* Siempre 2x2 en escritorio: título y etiqueta caben en la misma línea */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pillar:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(255, 214, 10, .25);
}
.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}
.pillar h3 { margin: 0; font-size: 22px; font-weight: 900; }
.pillar .tag { font-size: 14px; white-space: nowrap; }
.pillar p { margin: 0; color: var(--muted); }

/* Enlaces sobre la banda azul */
.section--band .link { border-color: transparent; color: var(--ink); }
.section--band .link--primary { color: #fff; }
.section--band .link:hover, .section--band .link:focus-visible { border-color: var(--yellow); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.section--band .link--primary { background: var(--blue-ink); }

/* Eventos */
.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .events { grid-template-columns: 1fr; }
  .events > .event:nth-child(n+3) { display: none; }
}
.event {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.event:hover, .event:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,21,28,.12); }
.event img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.event__body { padding: 14px 16px 18px; }
.event__meta { margin: 0 0 4px; color: var(--blue); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.event h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.more { margin: 24px 0 0; text-align: right; }
.more a { color: var(--blue); font-weight: 800; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, #2a62c6 0%, #2a62c6 48%, rgba(42, 98, 198, .55) 75%, rgba(42, 98, 198, .2) 100%),
    url("assets/patron.png") 0 0 / 200px repeat;
  color: #fff;
  padding: 64px clamp(16px, 4vw, 40px);
}
.cta__inner { position: relative; max-width: var(--wrap); margin: 0 auto; }
.cta h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.cta p { margin: 0 0 24px; font-size: 19px; max-width: 46ch; color: #e3ecff; }
.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }

/* Equipo actual: banda suave a todo el ancho con el patrón casi invisible */
.section--soft {
  max-width: none;
  background:
    linear-gradient(rgba(240, 244, 251, .97), rgba(240, 244, 251, .97)),
    url("assets/patron.png") 0 0 / 160px repeat;
  border-top: 1px solid #e3e9f3;
  border-bottom: 1px solid #e3e9f3;
}
/* Equipo actual */
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px clamp(20px, 4vw, 48px);
}
.person {
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.person__avatar {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  /* Como el logo: borde blanco y anillo azul */
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--blue), 0 6px 16px rgba(18, 21, 28, .15);
  background: var(--blue);
}
.person__avatar--initials {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
  font-size: 38px;
}
.person__name { font-weight: 800; font-size: 16px; line-height: 1.3; }
.person__icons { display: flex; gap: 8px; justify-content: center; }
.person__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.person__icon--linkedin { background: #0a66c2; }
.person__icon--x { background: #000; }
.person__icon--web { background: var(--ink); }
.person__icon:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(18, 21, 28, .2); }
.person__icon:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.person__status { font-size: 13px; }
.person--paused .person__avatar { filter: grayscale(1); opacity: .75; box-shadow: 0 0 0 3px var(--line), 0 6px 16px rgba(18, 21, 28, .1); }
.person--paused .person__name { color: var(--muted); }
/* Segunda línea: en pausa, más pequeños */
.people--paused { margin-top: 32px; }
.people--paused .person { width: 120px; }
.people--paused .person__avatar { width: 76px; height: 76px; border-width: 3px; }
.people--paused .person__name { font-size: 14px; }
@media (max-width: 480px) {
  .people { gap: 20px 12px; }
  .person { width: calc((100% - 24px) / 3); }
  .person__avatar { width: 92px; height: 92px; }
  .person__avatar--initials { font-size: 28px; }
  .person__name { font-size: 14px; }
  .people--paused .person { width: 110px; }
  .people--paused .person__avatar { width: 64px; height: 64px; }
  .people--paused .person__name { font-size: 13px; }
}

/* Colaboradores */
.past-partners__title {
  margin: 36px 0 14px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.past-partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;          /* todos en la misma línea */
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.past-partners > li { flex: 0 1 auto; min-width: 0; }
.past-partner {
  display: grid;
  place-items: center;
  height: 64px;
  padding: 8px 4px;
  border-radius: 10px;
  transition: transform .15s ease;
}
.past-partner img {
  height: 34px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}
.past-partner:hover img, .past-partner:focus-visible img { filter: none; opacity: 1; }
.past-partner:hover { transform: translateY(-2px); }
.past-partner:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* Ajustes ópticos para que todos pesen parecido */
.past-partner img[src*="github"] { height: 28px; }
.past-partner img[src*="ryanair"] { height: 22px; }
.past-partner img[src*="cleo"] { height: 30px; }
.past-partner img[src*="asturias-power"] { height: 32px; }
.past-partner img[src*="camaleon"], .past-partner img[src*="luce"], .past-partner img[src*="talent"] { height: 42px; }
/* En pantallas estrechas: todos visibles, repartidos en varias filas centradas */
@media (max-width: 900px) {
  .past-partners {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 26px;
  }
  .past-partner { height: 56px; }
}
@media (max-width: 480px) {
  .past-partners { gap: 4px 18px; }
  .past-partner img { height: 28px; }
  .past-partner img[src*="github"] { height: 22px; }
  .past-partner img[src*="ryanair"] { height: 17px; }
  .past-partner img[src*="cleo"] { height: 24px; }
  .past-partner img[src*="asturias-power"] { height: 26px; }
  .past-partner img[src*="camaleon"], .past-partner img[src*="luce"], .past-partner img[src*="talent"] { height: 34px; }
}
.section--tight { padding-top: 0; }
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.partner {
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-height: 140px;
}
.partner img { max-height: 100px; width: auto; }
.partner--cta {
  gap: 2px;
  text-align: center;
  text-decoration: none;
  border: 2px dashed var(--blue);
  background: transparent;
  color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.partner--cta:hover, .partner--cta:focus-visible { background: #fff; transform: translateY(-2px); }
.partner--cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.partner__plus {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  font-size: 26px; font-weight: 900; line-height: 1;
  margin-bottom: 6px;
}
.partner--cta strong { font-size: 18px; }
.partner--cta small { color: var(--blue); font-weight: 800; }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer__logo { height: 56px; width: auto; }
.footer__logo-button {
  padding: 4px 8px;
  border: 0;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.footer__logo-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Bicho que saluda */
.bicho {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 900;
  width: 220px;
  /* Escondido de verdad: fuera de pantalla con margen y además invisible.
     En Android la barra del navegador cambia la altura de la pantalla y podía asomar. */
  transform: translate(-50%, calc(100% + 80px));
  visibility: hidden;
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), visibility 0s linear .45s;
  pointer-events: none;
}
.bicho[hidden] { display: none; }
.bicho svg { display: block; width: 100%; height: auto; }
.bicho.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), visibility 0s; }
.bicho__brazo { transform-origin: 168px 120px; transform-box: view-box; }
.bicho.is-visible .bicho__brazo { animation: bicho-saludo .5s ease-in-out .35s 5 alternate; }
.bicho.is-visible .bicho__ojos { animation: bicho-parpadeo 3s steps(1) .9s; transform-origin: 110px 100px; transform-box: view-box; }
@keyframes bicho-saludo { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
@keyframes bicho-parpadeo { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(.1); } 44% { transform: scaleY(1); } }
.bicho__bocadillo {
  position: absolute;
  top: -6px;
  right: -58px;
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(18, 21, 28, .18);
  opacity: 0;
  transform: scale(.6);
  transform-origin: left bottom;
  transition: opacity .2s ease .35s, transform .25s ease .35s;
}
.bicho.is-visible .bicho__bocadillo { opacity: 1; transform: scale(1); }
@media (max-width: 480px) { .bicho { width: 170px; } .bicho__bocadillo { right: -40px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .bicho { transition: none; }
  .bicho.is-visible .bicho__brazo, .bicho.is-visible .bicho__ojos { animation: none; }
}
.footer p { margin: 0; }
/* Enlace oculto a las estadísticas: parece texto normal */
.footer__stats, .footer__stats:hover, .footer__stats:visited { color: inherit; text-decoration: none; cursor: text; }
.counter { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer__mail:hover, .footer__mail:focus-visible { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.footer__mail:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero__diagonal { clip-path: polygon(0 0, 55% 0, 85% 100%, 0 100%); }
  .tag { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
