/* ==========================================================================
   Ómetros — estilo "Wrapped" (BEM)
   Todo el color sale de 4 variables que cambian por pantalla:
     --slide-bg  --slide-fg  --slide-accent  --slide-accent-fg
   Las define el template en <body> y quiz.js las va cambiando por pregunta.
   ========================================================================== */

:root {
  --slide-bg: #2b2b2b;
  --slide-fg: #ffffff;
  --slide-accent: #f2d36b;
  --slide-accent-fg: #1c1c1c;

  --color-surface: #fffdf7;
  --color-text: #1c1c1c;
  --color-muted: #5f5e5a;
  --color-line: rgba(28, 28, 28, .12);

  --font-title: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;

  --radius: 22px;
  --radius-small: 14px;
  --content-width: 520px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Bloque: ometro (página)
   -------------------------------------------------------------------------- */
.ometro {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--slide-bg);
  color: var(--slide-fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out);
}

.ometro__main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--content-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px 0;
}

.ometro__brand {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
}

.ometro__footer {
  margin-top: auto;
  padding: 32px 0 max(20px, env(safe-area-inset-bottom));
  font-size: .8rem;
  text-align: center;
  color: color-mix(in srgb, var(--slide-fg) 70%, transparent);
}

.ometro__footer-text { margin: 0 0 4px; }

/* El quiz ocupa la pantalla entera, como una app: sin pie */
.ometro--quiz .ometro__footer { display: none; }

.ometro__footer-link { color: inherit; }

/* --------------------------------------------------------------------------
   Bloque: button (píldoras)
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 58px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  font: 800 1.08rem/1.2 var(--font-body);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease-pop), filter .15s ease;
}

.button:active { transform: scale(.96); }

.button:focus-visible {
  outline: 3px solid var(--slide-accent);
  outline-offset: 3px;
}

.button--primary {
  background: var(--slide-fg);
  color: var(--slide-bg);
}

.button--accent {
  background: var(--slide-accent);
  color: var(--slide-accent-fg);
}

.button--dark {
  background: var(--color-text);
  color: #fff;
}

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

.button:disabled {
  opacity: .6;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   Bloque: sticker (carpincho en círculo blanco, girado)
   -------------------------------------------------------------------------- */
.sticker {
  --tilt: -6deg;
  --size: 120px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--size);
  height: var(--size);
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff;
  transform: rotate(var(--tilt));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.sticker__image {
  display: block;
  width: 88%;
  height: auto;
}

.sticker--small { --size: 68px; border-width: 3px; }

.sticker--large { --size: min(64vw, 260px); border-width: 7px; }

.sticker--right { --tilt: 7deg; }

.sticker--pop { animation: ometro-pop .45s var(--ease-pop); }

/* --------------------------------------------------------------------------
   Bloque: quiz
   -------------------------------------------------------------------------- */
.quiz {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.quiz__screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  animation: ometro-fade-in .4s var(--ease-out) both;
}

/* Intro ---------------------------------------------------------------- */
.quiz__hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0 24px;
}

.quiz__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.9rem, 13.5vw, 4.4rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}

.quiz__subtitle {
  max-width: 30ch;
  margin: 0;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--slide-fg) 85%, transparent);
}

.quiz__start-form {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.quiz__field {
  display: grid;
  gap: 6px;
}

.quiz__label {
  padding: 0;
  font-size: .9rem;
  font-weight: 700;
}

.quiz__input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 2px solid color-mix(in srgb, var(--slide-fg) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--slide-fg) 12%, transparent);
  color: var(--slide-fg);
  font: 600 1.05rem var(--font-body);
}

.quiz__input::placeholder { color: color-mix(in srgb, var(--slide-fg) 62%, transparent); }

.quiz__input:focus {
  outline: none;
  border-color: var(--slide-fg);
}

.quiz__variant {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz__variant .quiz__label { width: 100%; margin-bottom: 2px; }

.quiz__chip { cursor: pointer; }

.quiz__chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quiz__chip-text {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid color-mix(in srgb, var(--slide-fg) 28%, transparent);
  border-radius: 999px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.quiz__chip-input:checked + .quiz__chip-text {
  border-color: var(--slide-fg);
  background: var(--slide-fg);
  color: var(--slide-bg);
}

.quiz__chip-input:focus-visible + .quiz__chip-text {
  outline: 3px solid var(--slide-accent);
  outline-offset: 2px;
}

.quiz__stats {
  margin: 0;
  font-size: .85rem;
  text-align: center;
  color: color-mix(in srgb, var(--slide-fg) 75%, transparent);
}

/* Preguntas ------------------------------------------------------------ */
.quiz__segments {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
}

.quiz__segment {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--slide-fg) 25%, transparent);
  transition: background-color .3s ease;
}

.quiz__segment--done { background: var(--slide-fg); }

.quiz__segment--current {
  background: linear-gradient(90deg, var(--slide-fg) 50%, color-mix(in srgb, var(--slide-fg) 25%, transparent) 50%);
}

.quiz__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.quiz__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slide-fg) 14%, transparent);
  color: var(--slide-fg);
  font: 800 1.2rem var(--font-body);
  cursor: pointer;
}

.quiz__back:disabled { visibility: hidden; }

.quiz__counter {
  margin: 0;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--slide-fg) 80%, transparent);
}

.quiz__bar .sticker { margin-left: 4px; }

.quiz__bar .sound { margin-left: auto; }

.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Bloque: sound (botón de audio)
   -------------------------------------------------------------------------- */
.sound {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slide-fg) 14%, transparent);
  color: var(--slide-fg);
  cursor: pointer;
  transition: transform .15s var(--ease-pop);
}

.sound:active { transform: scale(.92); }

.sound:focus-visible {
  outline: 3px solid var(--slide-accent);
  outline-offset: 2px;
}

.sound__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sound__icon--off,
.sound--muted .sound__icon--on { display: none; }

.sound--muted .sound__icon--off { display: block; }

/* Mientras suena, el ícono "late" al ritmo */
.sound--playing .sound__icon--on { animation: ometro-beat .53s ease-in-out infinite; }

@keyframes ometro-beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.quiz__question {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz__question--active { animation: ometro-slide-in .45s var(--ease-out) both; }

.quiz__question-text {
  display: block;
  width: 100%;
  margin: 18px 0 26px;
  padding: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 8.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 72;
}

.quiz__question-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

.quiz__options {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 2px solid color-mix(in srgb, var(--slide-fg) 30%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--slide-fg) 10%, transparent);
  color: var(--slide-fg);
  font: 700 1.05rem/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--ease-pop);
}

.quiz__option:hover { border-color: var(--slide-fg); }

.quiz__option:active { transform: scale(.97); }

.quiz__option:focus-visible {
  outline: 3px solid var(--slide-accent);
  outline-offset: 2px;
}

.quiz__option-key {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slide-fg) 18%, transparent);
  font-size: .85rem;
  font-weight: 800;
}

.quiz__option--selected {
  border-color: var(--slide-fg);
  background: var(--slide-fg);
  color: var(--slide-bg);
  animation: ometro-bounce .4s var(--ease-pop);
}

.quiz__option--selected .quiz__option-key {
  background: var(--slide-accent);
  color: var(--slide-accent-fg);
}

.quiz__error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: var(--slide-accent);
  color: var(--slide-accent-fg);
  font-weight: 800;
  text-align: center;
}

/* Cargando ------------------------------------------------------------- */
.quiz__screen--loading {
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.quiz__screen--loading .sticker { animation: ometro-wobble 1.1s ease-in-out infinite; }

.quiz__loading-text {
  min-height: 2.3em;
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   Bloque: challenge (desafío)
   -------------------------------------------------------------------------- */
.challenge {
  align-self: flex-start;
  margin: 0;
  padding: 12px 18px;
  border-radius: var(--radius-small);
  background: var(--slide-accent);
  color: var(--slide-accent-fg);
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(-2deg);
}

.challenge__text { margin: 0; }

.challenge--cta {
  display: grid;
  gap: 14px;
  align-self: stretch;
  padding: 22px;
  border-radius: var(--radius);
  transform: none;
}

.challenge--cta .challenge__text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.challenge--cta .button {
  background: var(--slide-accent-fg);
  color: var(--slide-accent);
}

/* --------------------------------------------------------------------------
   Bloque: result
   -------------------------------------------------------------------------- */
.result {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Ocupa casi toda la pantalla (lista para captura) y deja asomar "Compartí" abajo */
.result__card {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 150px);
  padding: 8px 0 28px;
}

.result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result__domain {
  font-size: .85rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--slide-fg) 75%, transparent);
}

.result__kicker {
  margin: 26px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.result__score {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.07em;
  font-variation-settings: "opsz" 96;
  font-variant-numeric: tabular-nums;
}

.result__number {
  font-size: clamp(8rem, 44vw, 12.5rem);
  color: var(--slide-accent);
}

.result__unit {
  margin-top: .12em;
  font-size: clamp(3rem, 16vw, 4.6rem);
  color: var(--slide-accent);
}

/* 100%: tres dígitos, un poco más chico para que entre el "%" */
.result__score--wide .result__number { font-size: clamp(6.6rem, 35vw, 10rem); }
.result__score--wide .result__unit { font-size: clamp(2.6rem, 13vw, 3.8rem); }

.result__label {
  margin: 10px 0 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 10vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.result__bar {
  height: 12px;
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--slide-fg) 22%, transparent);
}

.result__bar-fill {
  width: var(--score, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--slide-accent);
}

.result__body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.result__body .sticker { --size: min(38vw, 170px); --tilt: 7deg; }

.result__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 7.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

.result__phrase {
  margin: 22px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--slide-fg) 88%, transparent);
}

.result__actions {
  display: grid;
  gap: 16px;
  padding-bottom: 8px;
}

.result__retry {
  justify-self: center;
  margin-top: 4px;
  padding: 10px;
  color: inherit;
  font-weight: 800;
}

/* Revelado escalonado (lo activa result.js; sin JS todo se ve igual) */
.result--animate .result__label,
.result--animate .result__bar { animation: ometro-rise .5s var(--ease-out) .25s both; }
.result--animate .result__bar-fill { width: 0; transition: width 1.4s var(--ease-out) .3s; }
.result--animate.result--counted .result__bar-fill { width: var(--score, 0%); }
.result--animate .sticker { animation: ometro-sticker-in .6s var(--ease-pop) 1.5s both; }
.result--animate .result__title { animation: ometro-rise .5s var(--ease-out) 1.75s both; }
.result--animate .result__phrase { animation: ometro-rise .5s var(--ease-out) 1.95s both; }
.result--animate .result__actions { animation: ometro-rise .6s var(--ease-out) 2.2s both; }

/* --------------------------------------------------------------------------
   Bloque: versus
   -------------------------------------------------------------------------- */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
}

.versus__side { display: grid; }

.versus__name {
  overflow: hidden;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.versus__score {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.versus__side--me .versus__score { color: var(--slide-bg); }

.versus__vs {
  font-weight: 800;
  text-transform: uppercase;
}

.versus__verdict {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Bloque: share
   -------------------------------------------------------------------------- */
.share {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.share__title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.share__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ececec;
  color: var(--color-text);
  font: 800 .98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease-pop), filter .15s ease;
}

.share__button:hover { filter: brightness(.96); }

.share__button:active { transform: scale(.96); }

.share__button:focus-visible {
  outline: 3px solid var(--slide-bg);
  outline-offset: 2px;
}

.share__button--story {
  grid-column: 1 / -1;
  min-height: 60px;
  background: var(--slide-bg);
  color: var(--slide-fg);
  font-size: 1.05rem;
}

.share__button--whatsapp {
  grid-column: 1 / -1;
  background: #25d366;
  color: #0b3d1f;
}

.share__button--x { background: #111; color: #fff; }

/* Sin compartir nativo, "Copiar link" ocupa la fila entera */
.share__button--copy:has(+ .share__button--native[hidden]) { grid-column: 1 / -1; }

.share__button--facebook { background: #1877f2; color: #fff; }

.share__button--done {
  background: var(--color-text);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Bloque: certificate-form
   -------------------------------------------------------------------------- */
.certificate-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.certificate-form__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.certificate-form__intro {
  margin: -4px 0 0;
  color: var(--color-muted);
}

.certificate-form__field {
  display: grid;
  gap: 6px;
}

.certificate-form__label {
  font-size: .9rem;
  font-weight: 700;
}

.certificate-form__input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--color-text);
  font: 600 1rem var(--font-body);
}

.certificate-form__input:focus {
  outline: none;
  border-color: var(--slide-bg);
}

.certificate-form__input--error { border-color: #c8102e; }

.certificate-form__error {
  margin: 0;
  color: #b00d26;
  font-size: .88rem;
  font-weight: 700;
}

.certificate-form__error--general { text-align: center; }

.certificate-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.certificate-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--color-muted);
  cursor: pointer;
}

.certificate-form__checkbox {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--slide-bg);
}

.certificate-form__link { color: inherit; }

.certificate-form__captcha { min-height: 65px; }

.certificate-form__submit {
  background: var(--color-text);
  color: #fff;
}

.certificate-form__success {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-small);
  background: var(--slide-bg);
  color: var(--slide-fg);
  font-weight: 800;
  text-align: center;
}

.certificate-form--sent .certificate-form__intro,
.certificate-form--sent .certificate-form__field,
.certificate-form--sent .certificate-form__consent,
.certificate-form--sent .certificate-form__captcha,
.certificate-form--sent .certificate-form__submit,
.certificate-form--sent .certificate-form__error { display: none; }

/* --------------------------------------------------------------------------
   Bloque: more (otros ómetros)
   -------------------------------------------------------------------------- */
.more { margin-top: 12px; }

.more__title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more__link {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid color-mix(in srgb, var(--more-fg, var(--slide-fg)) 20%, transparent);
  border-radius: 999px;
  background: var(--more-bg, transparent);
  color: var(--more-fg, var(--slide-fg));
  font-weight: 800;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Bloque: home y ometro-card
   -------------------------------------------------------------------------- */
.home__title {
  margin: 28px 0 10px;
  font-family: var(--font-title);
  font-size: clamp(3rem, 15vw, 4.8rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
}

.home__subtitle {
  max-width: 30ch;
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--slide-fg) 80%, transparent);
}

.home__grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home__item--ad .ad { margin: 4px 0; }

.ometro-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-fg);
  text-decoration: none;
  transition: transform .2s var(--ease-pop);
}

.ometro-card:hover { transform: rotate(-1deg) scale(1.01); }

.ometro-card__text { display: grid; gap: 2px; }

.ometro-card__title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

.ometro-card__headline {
  font-weight: 600;
  color: color-mix(in srgb, var(--card-fg) 80%, transparent);
}

/* --------------------------------------------------------------------------
   Bloque: legal (privacidad)
   -------------------------------------------------------------------------- */
.legal { padding: 20px 0 8px; }

.legal__title {
  margin: 24px 0 6px;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}

.legal__meta {
  margin: 0 0 24px;
  font-size: .85rem;
  color: color-mix(in srgb, var(--slide-fg) 70%, transparent);
}

.legal__section {
  margin-bottom: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.55;
}

.legal__heading {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.legal__section p { margin: 0 0 10px; }

.legal__section p:last-child { margin-bottom: 0; }

.legal__list {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal__list li { margin-bottom: 6px; }

.legal__section a { color: inherit; font-weight: 700; }

/* --------------------------------------------------------------------------
   Bloque: notice (404)
   -------------------------------------------------------------------------- */
.notice { padding: 40px 0 8px; }

.notice__title {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}

.notice__text { margin: 0 0 24px; }

/* --------------------------------------------------------------------------
   Bloque: ad (publicidad)
   Tarjeta neutra con etiqueta y alto reservado: la página no salta al cargar.
   Si no hay aviso para mostrar, ads.js agrega ad--empty y el bloque desaparece.
   -------------------------------------------------------------------------- */
.ad {
  padding: 12px 12px 14px;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-muted);
  text-align: center;
}

.ad__label {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ad__slot {
  min-height: var(--ad-min-height, 280px);
  overflow: hidden;
}

.ad--filled .ad__slot { min-height: 0; }

.ad--empty,
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* --------------------------------------------------------------------------
   Bloque: sponsor ("Presentado por")
   El logo va siempre sobre una píldora blanca: se ve bien en cualquier color de fondo.
   -------------------------------------------------------------------------- */
.sponsor {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.sponsor__label {
  font-size: .78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--slide-fg) 80%, transparent);
}

.sponsor__logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.sponsor__image {
  display: block;
  width: auto;
  max-width: 140px;
  height: 28px;
  object-fit: contain;
}

a.sponsor:hover .sponsor__logo { transform: rotate(-2deg); }

.sponsor--loading { align-self: center; }

.sponsor--result { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Bloque: confetti
   -------------------------------------------------------------------------- */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes ometro-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ometro-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ometro-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ometro-pop {
  0%   { transform: rotate(var(--tilt)) scale(1); }
  45%  { transform: rotate(calc(var(--tilt) * -1)) scale(1.18); }
  100% { transform: rotate(var(--tilt)) scale(1); }
}

@keyframes ometro-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes ometro-sticker-in {
  from { opacity: 0; transform: rotate(-30deg) scale(.3); }
  to   { opacity: 1; transform: rotate(var(--tilt)) scale(1); }
}

@keyframes ometro-wobble {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-10px); }
}

@media (min-width: 720px) {
  .ometro__main { padding-top: 36px; }
  .result__card { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
