/* =========================================================================
   Adaltra · Encuesta de satisfacción — hoja de estilos del formulario
   Identidad: brand-book Adaltra (août 2025)
   - Violet Adaltra #463a86 (color mayor) · paleta de acompañamiento
   - Tipografía Lexend (Light→Black) · Montserrat Underline para cifras
   - "Ligne" degradada y "slash" a 25° como recursos gráficos
   ========================================================================= */

@font-face { font-family: 'Lexend'; font-weight: 300; font-display: swap; src: url(assets/fonts/lexend-300.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url(assets/fonts/lexend-400.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 500; font-display: swap; src: url(assets/fonts/lexend-500.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url(assets/fonts/lexend-600.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 700; font-display: swap; src: url(assets/fonts/lexend-700.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 800; font-display: swap; src: url(assets/fonts/lexend-800.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat Underline'; font-weight: 600; font-display: swap; src: url(assets/fonts/montserrat-underline-600.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat Underline'; font-weight: 700; font-display: swap; src: url(assets/fonts/montserrat-underline-700.woff2) format('woff2'); }

:root {
  --violet: #463a86;
  --violet-700: #382e6c;
  --violet-60: #8a85b8;
  --violet-20: #dad8e8;
  --violet-10: #eceaf3;
  --violet-05: #f6f5fa;
  --bleu: #2f1bec;
  --pourpre: #a532c8;
  --fuchsia: #e117c1;
  --jaune: #fbba00;
  --ciel: #00add5;
  --gris: #aeabbc;
  --text: #241d4f;
  --muted: #6a6590;
  --danger: #c0175d;
  --ok: #138a6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(70, 58, 134, .06), 0 8px 24px rgba(70, 58, 134, .08);
  --grad: linear-gradient(90deg, var(--violet) 0%, var(--pourpre) 55%, var(--fuchsia) 100%);
  --grad-soft: linear-gradient(135deg, #2e2660 0%, var(--violet) 35%, var(--violet-60) 70%, #ffffff 100%);
  --grad-hero: linear-gradient(120deg, #3b2f7c 0%, var(--violet) 45%, #6d3aa8 75%, var(--pourpre) 100%);
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Montserrat Underline', 'Lexend', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--violet-05);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.embedded { background: transparent; min-height: 0; }
body.embedded .foot { padding-bottom: 8px; }

img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Layout ---------- */
.wrap { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 28px 20px 40px; outline: none; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 18px; border: 1px solid var(--violet-10);
}
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 60px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--violet-20); border-top-color: var(--violet); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background: var(--grad-hero); padding: 44px 40px 40px; margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(70, 58, 134, .25);
}
/* «A» del logo: grande y desplazada hacia abajo para que su barra horizontal quede fuera de la tarjeta */
/* La barra de la «A» empieza al 64,7 % de su altura (alto = ancho × 190/185):
   bottom = −(1 − 0,647) × alto − 3 px  → la barra queda justo bajo el borde. */
.hero__avatar {
  --a-w: 600px;
  position: absolute; right: -90px; bottom: calc(var(--a-w) * -0.3628 - 3px); width: var(--a-w); opacity: .12;
  filter: brightness(0) invert(1); pointer-events: none;
}
.hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin: 0 0 14px; }
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.12; font-weight: 700; margin: 0 0 14px; max-width: 18ch; position: relative; z-index: 1; }
/* Línea degradada (brand-book) que nace en el borde de la tarjeta y se une a la «E» de Encuesta */
.hero h1::before {
  content: ''; display: inline-block; vertical-align: .3em;
  width: var(--hero-pad, 40px); height: 3px; margin-left: calc(-1 * var(--hero-pad, 40px));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
}
.hero__tagline { font-size: clamp(18px, 2.6vw, 22px); font-weight: 300; margin: 0 0 18px; }
.hero__intro { font-weight: 300; max-width: 56ch; margin: 0 0 26px; opacity: .95; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

.privacy h2 { font-size: 18px; margin: 0 0 12px; color: var(--violet); }
.slashlist { list-style: none; padding: 0; margin: 0; }
.slashlist li { position: relative; padding-left: 22px; margin: 0 0 8px; color: var(--text); font-size: 15px; }
.slashlist li::before { content: '/'; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--pourpre); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 6px 16px rgba(70, 58, 134, .3); }
.btn--primary:hover { background: var(--violet-700); }
.btn--light { background: #fff; color: var(--violet); }
.btn--light:hover { background: var(--violet-10); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: transparent; color: var(--violet); border-color: var(--violet-20); }
.btn--ghost:hover { background: var(--violet-10); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Progreso ---------- */
.progress { margin: 0 0 22px; }

.progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.progress__pct { font-family: var(--font-num); font-weight: 700; color: var(--violet); font-size: 15px; }
.progress__bar { height: 8px; border-radius: 999px; background: var(--violet-10); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .35s ease; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { flex: 1; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--violet-20); margin-bottom: 6px; }
.steps li.is-done::before { background: var(--violet-60); }
.steps li.is-current { color: var(--violet); font-weight: 600; }
.steps li.is-current::before { background: var(--pourpre); }

/* ---------- Sección ---------- */
.section-head { margin: 4px 0 18px; }
.section-head__num { font-family: var(--font-num); font-weight: 700; color: var(--pourpre); font-size: 14px; letter-spacing: .08em; }
.section-head h2 {
  margin: 4px 0 0; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; color: var(--violet); line-height: 1.2;
  display: flex; align-items: center; gap: 14px;
}
.section-head h2::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--violet-20), transparent); }

/* ---------- Preguntas ---------- */
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q.card { padding: 24px 26px; }
.q__legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 600; font-size: 18px; color: var(--violet); line-height: 1.35; display: flex; gap: 10px; }
.q__num { font-family: var(--font-num); font-weight: 700; color: var(--pourpre); flex: none; }
.q__req { color: var(--fuchsia); margin-left: 2px; }
.q__legend + * { clear: both; }
.q__help { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.q.has-error { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(192, 23, 93, .15), var(--shadow); }
.q__error { color: var(--danger); font-size: 14px; font-weight: 500; margin: 12px 0 0; display: flex; gap: 6px; align-items: center; }
.q__error::before { content: '!'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; }
.q--conditional { animation: reveal .3s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Opciones (radio / checkbox) */
/* Todas las cajas iguales: mismo ancho (rejilla) y misma altura (filas 1fr + altura mínima común) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.opt { position: relative; display: flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-height: 66px; padding: 10px 12px;
  border: 1.5px solid var(--violet-20); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; font-size: 14.5px; line-height: 1.3;
}
.opt__box:hover { border-color: var(--violet-60); background: var(--violet-05); }
.opt__mark {
  flex: none; width: 22px; height: 22px; border: 2px solid var(--violet-60); background: #fff;
  display: grid; place-items: center; transition: all .15s;
}
.opt--radio .opt__mark { border-radius: 50%; }
.opt--check .opt__mark { border-radius: 6px; }
.opt input:checked + .opt__box { border-color: var(--violet); background: var(--violet-10); box-shadow: inset 0 0 0 1px var(--violet); font-weight: 500; }
.opt input:checked + .opt__box .opt__mark { border-color: var(--violet); background: var(--violet); }
.opt--radio input:checked + .opt__box .opt__mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.opt--check input:checked + .opt__box .opt__mark::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(0, -1px) rotate(45deg); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--ciel); outline-offset: 2px; }
.opt input:disabled + .opt__box { opacity: .45; cursor: not-allowed; }
.opt--exclusive .opt__box { border-style: dashed; }
.specify { margin-top: 10px; }
.specify label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 6px; }
.counter-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.input, .textarea {
  width: 100%; border: 1.5px solid var(--violet-20); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(70, 58, 134, .15); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.textarea-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.notice { display: flex; gap: 10px; background: #fff8e1; border: 1px solid #ffe08a; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: #6b5200; margin-bottom: 12px; }

/* Matriz de escalas */
.scale-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.mrow { padding: 14px 0; border-top: 1px solid var(--violet-10); display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 10px 18px; }
.mrow:first-of-type { border-top: 0; }
.mrow__label { font-weight: 500; font-size: 15px; }
.mrow.has-error .mrow__label { color: var(--danger); }
.seg { display: flex; gap: 6px; flex-wrap: nowrap; border: 0; padding: 0; margin: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 10px;
  border: 1.5px solid var(--violet-20); background: #fff; cursor: pointer; font-family: var(--font-num); font-weight: 700; font-size: 16px;
  color: var(--violet); transition: all .15s; user-select: none;
}
.seg span:hover { border-color: var(--violet-60); background: var(--violet-05); }
.seg input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 10px rgba(70, 58, 134, .3); }
.seg input:focus-visible + span { outline: 3px solid var(--ciel); outline-offset: 2px; }
.seg .seg__na span { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); border-style: dashed; }
.seg .seg__na input:checked + span { background: var(--gris); border-color: var(--gris); color: #fff; }

/* NPS */
.nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; border: 0; padding: 0; margin: 0; }
.nps label { position: relative; }
.nps input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nps span {
  display: grid; place-items: center; height: 52px; border-radius: 10px; border: 1.5px solid var(--violet-20); background: #fff;
  font-family: var(--font-num); font-weight: 700; font-size: 17px; color: var(--violet); cursor: pointer; transition: all .15s;
}
.nps span:hover { border-color: var(--violet-60); background: var(--violet-05); }
.nps input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 10px rgba(70, 58, 134, .3); }
.nps input:focus-visible + span { outline: 3px solid var(--ciel); outline-offset: 2px; }
.nps-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Navegación */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.nav__spacer { flex: 1; }
.required-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 2px dashed var(--violet-60); border-radius: var(--radius-sm); padding: 14px 18px; background: var(--violet-05); margin: 16px 0;
}
.form-error { color: var(--danger); font-size: 14px; margin: 10px 0 0; min-height: 1em; }

/* Final */
.done { text-align: center; padding: 56px 28px; }
.done__check { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); box-shadow: 0 12px 28px rgba(70, 58, 134, .3); }
.done__check::after { content: ''; width: 22px; height: 40px; border: solid #fff; border-width: 0 6px 6px 0; transform: translateY(-4px) rotate(45deg); }
.done h2 { color: var(--violet); font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; text-transform: uppercase; }
.done p { max-width: 52ch; margin: 0 auto 8px; color: var(--muted); }
.done__logo { display: block; width: 260px; max-width: 70%; height: auto; margin: 30px auto 0; }

/* Diálogo */
.dialog { border: 0; border-radius: 18px; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px rgba(36, 29, 79, .35); color: var(--text); }
.dialog::backdrop { background: rgba(36, 29, 79, .55); }
.dialog__body { padding: 28px; }
.dialog h2 { margin: 0 0 10px; color: var(--violet); font-size: 22px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Pie */
.foot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 20px 28px; font-size: 12px; color: var(--muted); text-align: center; width: 100%; }
.foot span:first-child { font-weight: 700; letter-spacing: .08em; color: var(--violet); }
.foot__sep { color: var(--pourpre); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .mrow { grid-template-columns: 1fr; }
  .seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seg span { min-width: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 18px 14px 32px; }

  .card, .q.card { padding: 20px 16px; }
  .hero { padding: 32px 22px 28px; border-radius: 16px; }
  .hero { --hero-pad: 22px; }
  .hero__avatar { --a-w: 420px; right: -80px; }
  .hero__actions .btn { width: 100%; }
  .options { grid-template-columns: 1fr; }
  .nps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nps label:nth-child(n+7) { grid-row: 2; }
  .steps li { font-size: 0; }
  .nav .btn { flex: 1; }
}
@media (max-width: 370px) {

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Incrustado en iframe (WordPress): el diálogo se muestra arriba, donde el padre hace scroll */
body.embedded .dialog { margin: 24px auto auto; }
body.embedded .wrap { padding-top: 20px; }

/* =========================================================================
   Ilustración animada de la portada («imagen principal»)
   Encima de la «A» de fondo, en la parte derecha.
   Posiciones en % del lienzo original (1769 × 1179 px), igual que en el PSD.
   ========================================================================= */
.hero__content { position: relative; z-index: 2; }
.hero__art {
  position: absolute; z-index: 1; right: 2.5%; top: 50%; transform: translateY(-50%);
  width: 51%; aspect-ratio: 1769 / 1179; pointer-events: none;
}
.art { position: absolute; display: block; height: auto; max-width: none; user-select: none; }
/* Sombra de contacto bajo el portátil (para que no parezca que flota) */
.art--sombra {
  left: 6%; top: 90%; width: 88%; height: 13%;
  background: radial-gradient(closest-side, rgba(14, 8, 40, .8), rgba(14, 8, 40, .45) 50%, rgba(14, 8, 40, 0));
  filter: blur(5px);
}
.art--portatil   { left: 10.458%; top: 14.08%;  width: 79.084%; }
.art--estrellas  { left: 0.339%;  top: 34.775%; width: 33.578%; }
.art--estrella-1 { left: 8.084%;  top: 45.632%; width: 4.522%; }
.art--estrella-2 { left: 12.719%; top: 45.632%; width: 4.522%; }
.art--estrella-3 { left: 17.411%; top: 45.632%; width: 4.522%; }
.art--estrella-4 { left: 22.046%; top: 45.717%; width: 4.522%; }
.art--estrella-5 { left: 26.700%; top: 45.660%; width: 4.522%; }
.art--rayita-1   { left: 0.17%;   top: 41.391%; width: 4.296%; }
.art--rayita-2   { left: 2.318%;  top: 37.405%; width: 3.561%; }
.art--rayita-3   { left: 5.257%;  top: 34.521%; width: 2.6%; }
.art--comentario { left: 31.939%; top: 0.509%;  width: 29.226%; }
.art--linea-1    { left: 43.245%; top: 6.107%;  width: 14.811%; }
.art--linea-2    { left: 43.245%; top: 10.178%; width: 12.154%; }
.art--carita     { left: 79.48%;  top: 24.936%; width: 20.181%; }
.art--sonrisa    { left: 86.603%; top: 36.132%; width: 5.936%; }

@media (min-width: 721px) {
  .hero { min-height: 400px; }
  .hero__content { max-width: 46%; }
  .hero h1 { max-width: none; }
  /* «A» de fondo más grande: asoma por encima del portátil; su barra sigue fuera de la tarjeta */
  .hero__avatar { --a-w: 840px; right: -150px; }
}
@media (max-width: 720px) {
  .hero__art { position: relative; right: auto; top: auto; transform: none; width: 100%; margin: -8px 0 14px; }
}

/* ---- Animaciones (scale / translate independientes para que no se pisen) ---- */
@media (prefers-reduced-motion: no-preference) {
  .art--portatil { animation: art-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .art--sombra   { animation: art-fade .8s ease-out both; }

  /* Las pestañitas (bocadillos) van saliendo una a una desde su «pico» */
  .art--estrellas  { transform-origin: 82% 96%; animation: art-pop .6s cubic-bezier(.3, 1.5, .5, 1) .45s both, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--comentario { transform-origin: 86% 96%; animation: art-pop .6s cubic-bezier(.3, 1.5, .5, 1) .8s both, art-float 6s ease-in-out 1.6s infinite; }
  .art--carita     { transform-origin: 14% 92%; animation: art-pop .6s cubic-bezier(.3, 1.5, .5, 1) 1.15s both, art-float 5s ease-in-out 1.9s infinite; }

  /* Estrellas: se van llenando de color de la 1 a la 5, en bucle */
  .art--estrella { transform-origin: 50% 55%; }
  .art--estrella-1 { animation: art-star 6s ease-out 1.1s infinite both, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--estrella-2 { animation: art-star 6s ease-out 1.4s infinite both, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--estrella-3 { animation: art-star 6s ease-out 1.7s infinite both, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--estrella-4 { animation: art-star 6s ease-out 2.0s infinite both, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--estrella-5 { animation: art-star 6s ease-out 2.3s infinite both, art-float 5.5s ease-in-out 1.2s infinite; }

  /* Rayitas de las estrellas: salen una a una y luego «chispean» */
  .art--rayita { transform-origin: 100% 100%; }
  .art--rayita-1 { animation: art-ray-in .35s ease-out 1.05s both, art-ray-pulse 2.6s ease-in-out 2.2s infinite, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--rayita-2 { animation: art-ray-in .35s ease-out 1.15s both, art-ray-pulse 2.6s ease-in-out 2.3s infinite, art-float 5.5s ease-in-out 1.2s infinite; }
  .art--rayita-3 { animation: art-ray-in .35s ease-out 1.25s both, art-ray-pulse 2.6s ease-in-out 2.4s infinite, art-float 5.5s ease-in-out 1.2s infinite; }

  /* Líneas del comentario: se van «escribiendo» */
  .art--linea-1 { animation: art-type-1 5.5s steps(14, end) 1.4s infinite both, art-float 6s ease-in-out 1.6s infinite; }
  .art--linea-2 { animation: art-type-2 5.5s steps(11, end) 1.4s infinite both, art-float 6s ease-in-out 1.6s infinite; }

  /* Carita: la sonrisa se va dibujando de izquierda a derecha */
  .art--sonrisa { animation: art-smile 6s ease-in-out 1.7s infinite both, art-float 5s ease-in-out 1.9s infinite; }
}

@keyframes art-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes art-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes art-pop  { 0% { opacity: 0; scale: .2; } 60% { opacity: 1; scale: 1.06; } 100% { opacity: 1; scale: 1; } }
@keyframes art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes art-ray-in { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes art-ray-pulse { 0%, 55%, 100% { scale: 1; opacity: 1; } 70% { scale: .55; opacity: .5; } 85% { scale: 1.15; opacity: 1; } }
@keyframes art-star {
  0%        { opacity: 0; scale: .3; }
  6%        { opacity: 1; scale: 1.25; }
  10%       { opacity: 1; scale: 1; }
  80%       { opacity: 1; scale: 1; }
  90%, 100% { opacity: 0; scale: 1; }
}
@keyframes art-type-1 {
  0%        { clip-path: inset(0 100% 0 0); opacity: 1; }
  22%       { clip-path: inset(0 0 0 0); }
  86%       { clip-path: inset(0 0 0 0); opacity: 1; }
  96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes art-type-2 {
  0%, 25%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  44%       { clip-path: inset(0 0 0 0); }
  86%       { clip-path: inset(0 0 0 0); opacity: 1; }
  96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes art-smile {
  0%        { clip-path: inset(0 100% 0 0); opacity: 1; }
  16%       { clip-path: inset(0 0 0 0); }
  86%       { clip-path: inset(0 0 0 0); opacity: 1; }
  95%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
