/* ==========================================================================
   WEBS «Todo lo que tu web hace por tu empresa»: 6 tarjetas: título, frase y un dibujo animado en SVG.
   - Sin JS o con movimiento reducido: lista normal de tarjetas, cada animación en su estado final (quieta).
   - Con JS (.wt.is-3d): la sección mide una pantalla por tarjeta, su contenido se queda fijo (sticky) y cada tarjeta tiene su
     tramo con scroll-snap (una parada por tarjeta, webs-tarjetas.js); la del centro grande y las laterales giradas con perspectiva
     (el giro lo pone webs-tarjetas.js); solo se anima la tarjeta del centro y solo con la sección a la vista (.is-viendo).
   Regla de las animaciones: el estilo base de cada pieza ES su estado final; los @keyframes solo existen bajo
   .is-viendo .is-actual, así que al volver a una tarjeta su animación empieza de cero.
   ========================================================================== */
/* Fondo negro XCENDE alrededor de las tarjetas (Webs y Automatización): las tarjetas, blancas, resaltan. Lo que queda sobre el negro
   (titular sin JS, puntos) va en claro; dentro de las tarjetas, tinta. */
.wt { position: relative; background: var(--surface-inverse); color: var(--ink-inverse); }   /* el mismo negro que Estilos: sin corte entre secciones */
.wt__marco { padding: 96px var(--gutter); display: grid; gap: 40px; }
.wt__cab { display: grid; gap: 14px; justify-items: center; text-align: center; }
.wt__ceja { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .28em; text-transform: uppercase; color: #A09C94; }
.wt__titulo { margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.02; text-wrap: balance; max-width: 22ch; }
.wt__titulo em { font-style: normal; color: #8FA2FF; }   /* cobalto claro: sobre el negro */
.wt__pista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.wt__puntos { display: none; }

/* ---- Tarjeta ---- */
.wt-tarjeta { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 18px; min-height: 420px; padding: 26px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.wt-tarjeta__texto { display: grid; gap: 12px; align-content: start; }
.wt-tarjeta__ceja { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
/* Etiqueta fija de cada tarjeta («Diseño web», «Automatización para empresas»): siempre en el mismo sitio y fuera del flujo
   (absoluta). En ordenador, arriba, encima del título; en móvil, abajo y centrada, bajo el dibujo. El margen de la tarjeta de ese
   lado crece lo justo para que no toque ni empuje el contenido */
.wt-tarjeta { --et-arriba: 22px; --et-alto: 12px; --et-hueco: 18px; padding-top: calc(var(--et-arriba) + var(--et-alto) + var(--et-hueco)) !important; }
.wt-tarjeta__etiqueta { position: absolute; top: var(--et-arriba); left: 0; right: 0; margin: 0; padding-inline: 26px;
  font: 500 var(--et-alto)/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap; pointer-events: none; }
.wt-tarjeta__t em { font-style: normal; color: var(--accent); }   /* una sola palabra en cobalto por título */
.wt-tarjeta__t { margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 32px); line-height: 1.02; text-wrap: balance; }
.wt-tarjeta__f { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.wt-tarjeta__p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
/* palabras clave: en negrita y en negro (no en cobalto, para no competir con el título) */
.wt-tarjeta__f b, .wt-tarjeta__p b, .wt-tarjeta__lista b { font-weight: 600; color: var(--ink); }   /* 600: el peso más alto de Hanken alojado (sin negrita falsa) */
.wt-tarjeta__lista { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 10px; font-size: 17px; line-height: 1.35; }
.wt-tarjeta__lista li { counter-increment: paso; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; }
.wt-tarjeta__lista li::before { content: counter(paso); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 13px/1 var(--font-text); translate: 0 -2px; }
.wt-anim { position: relative; min-height: 0; display: grid; place-items: center; }
.wt-anim svg { display: block; width: 100%; height: 100%; max-width: 340px; max-height: 100%; overflow: visible; }

/* ---- Modo con JS: una pantalla, perspectiva y tarjetas apiladas ---- */
.wt.is-3d { height: calc(var(--n, 6) * 100vh); height: calc(var(--n, 6) * 100svh); overflow: clip; }
/* Scroll-snap nativo: un tramo por tarjeta; el navegador se para en cada uno y nunca se salta ninguno (scroll-snap-stop: always).
   El snap solo está activo desde el hero hasta Estilos (html.snap-tarjetas, lo pone webs-tarjetas.js) */
.wt__tramo { position: absolute; left: 0; right: 0; top: calc(var(--i, 0) * 100vh); top: calc(var(--i, 0) * 100svh); height: 100vh; height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; visibility: hidden; }
html.snap-tarjetas { scroll-snap-type: y mandatory; }
html.snap-tarjetas #inicio, html.snap-tarjetas #estilos { scroll-snap-align: start; }
.wt.is-3d .wt__marco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; box-sizing: border-box; padding: calc(var(--nav-h) + 20px) 0 12px; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(16px, 3vh, 32px); }
/* sin titular a la vista: las tarjetas empiezan directamente (el titular queda para lectores de pantalla y #webs sigue siendo el ancla) */
.wt.is-3d .wt__cab { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wt.is-3d .wt__escena { position: relative; perspective: 1600px; perspective-origin: 50% 50%; min-height: 0; }
.wt.is-3d .wt__pista { position: absolute; inset: 0; display: block; max-width: none; transform-style: preserve-3d; }
.wt.is-3d .wt-tarjeta { position: absolute; left: 50%; top: 50%; width: min(820px, 58vw); height: min(480px, 100%); min-height: 0; margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 28px; padding: 36px;
  translate: -50% -50%; transform-origin: 50% 50%; backface-visibility: hidden; cursor: pointer;
  will-change: transform; }   /* sin transición: el giro lo lleva el scroll (webs-tarjetas.js) */
.wt.is-3d .wt-tarjeta.is-actual { cursor: default; }
.wt.is-3d .wt-tarjeta:not(.is-actual) > * { opacity: .45; transition: opacity 500ms var(--ease); }
.wt.is-3d .wt-tarjeta > * { transition: opacity 500ms var(--ease); }
.wt.is-3d .wt-anim { height: 100%; }
@media (min-width: 721px) {
  /* Ordenador: la tarjeta tan grande como cabe (sin tapar los puntos), mitad texto y mitad dibujo y márgenes de 40 px. Títulos
     de unos 47 px y frases de unos 40 px a 1470; si en una pantalla baja algo no cupiera, webs-tarjetas.js baja --ajuste. */
  .wt.is-3d .wt__marco { gap: clamp(10px, 2vh, 22px); }
  .wt.is-3d .wt-tarjeta { width: min(1320px, 88vw); height: 100%; container-type: size; --ajuste: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px; }
  .wt.is-3d .wt-tarjeta__t { font-size: calc(clamp(30px, min(3.2vw, 5vh), 54px) * var(--ajuste)); line-height: 1; }   /* ≈ 47 px a 1470 */
  .wt.is-3d .wt-tarjeta__f, .wt.is-3d .wt-tarjeta__p, .wt.is-3d .wt-tarjeta__lista { font-size: calc(clamp(22px, min(2.7vw, 4.2vh), 42px) * var(--ajuste)); line-height: 1.25; }   /* ≈ 40 px a 1470 */
  .wt.is-3d .wt-tarjeta { --et-arriba: 30px; --et-alto: clamp(12px, 1vw, 15px); --et-hueco: 22px; }
  .wt.is-3d .wt-tarjeta__etiqueta { padding-inline: 40px; }
  .wt.is-3d .wt-tarjeta__texto { position: relative; gap: clamp(14px, 2.6vh, 28px); align-content: center; height: 100%; }
  .wt.is-3d .wt-tarjeta__lista { gap: .45em; }
  .wt.is-3d .wt-tarjeta__lista li { grid-template-columns: 1.3em 1fr; gap: .45em; }
  .wt.is-3d .wt-tarjeta__lista li::before { font-size: .6em; width: 1.9em; height: 1.9em; translate: 0 -.2em; }   /* el círculo del número crece con el texto */
  .wt.is-3d .wt-anim svg { width: 100%; height: 100%; max-width: none; }
  .wt.is-3d .b4-escena { width: 100%; height: 100%; aspect-ratio: auto; }
  .wt.is-3d .b4-masc { inset: 14% 0 0 0; width: 100%; height: 86%; object-fit: contain; }
  .wt.is-3d .b4-wow { font-size: min(4.2cqw, 7cqh); right: 2%; top: 4%; }   /* dentro de la tarjeta (con la mascota grande se salía)*/
}
/* Puntos de progreso en VERTICAL a la derecha de la tarjeta (15/11/2026, Nicolás): también dicen que se avanza bajando.
   Van en una píldora negra fina, a 16 px del borde derecho de la tarjeta y centrados en su alto: así se leen también encima de
   la tarjeta vecina, que asoma por los lados. El centro de la escena: entre el final del menú y la fila del indicador. */
.wt.is-3d .wt__puntos { --pildora: 32px; position: absolute; z-index: 20; display: flex; flex-direction: column; align-items: center; padding: 8px 0;
  top: calc((var(--nav-h) + 20px + 100svh - 12px - 44px - clamp(10px, 2vh, 22px)) / 2); translate: 0 -50%;
  right: max(4px, calc((100vw - min(1320px, 88vw)) / 2 - 16px - 32px)); }
.wt.is-3d .wt__puntos::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - var(--pildora) / 2);
  background: var(--surface-inverse); border: 1px solid rgba(244, 243, 240, .18); border-radius: 999px; }
/* mientras una sección de tarjetas ocupa la pantalla, el índice lateral se aparta (webs-tarjetas.js pone la clase) */
.indice { transition: opacity 300ms var(--ease), visibility 300ms; }
html.tarjetas-a-la-vista .indice { opacity: 0; visibility: hidden; }
.wt__punto { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.wt__punto i { display: block; width: 7px; height: 7px; border-radius: 999px; background: #F4F3F0; opacity: .38; transition: height 400ms var(--ease), background 400ms var(--ease), opacity 400ms; }
.wt__punto[aria-current="true"] i { height: 22px; background: #8FA2FF; opacity: 1; }   /* cobalto claro: el #2747E0 se queda en 2,9:1 sobre el negro */
.wt__punto:focus-visible { outline: 2px solid #8FA2FF; outline-offset: -6px; border-radius: 999px; }
/* Indicador «se pasa bajando»: debajo de la tarjeta, en claro sobre el negro y sin tapar nada (ocupa la fila que tenían los puntos).
   Solo en la primera tarjeta de cada sección (webs-tarjetas.js pone .is-visible); la flecha rebota suave hacia abajo. */
.wt__bajar { display: none; }
.wt.is-3d .wt__bajar { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; margin: 0; pointer-events: none;
  font: 500 12px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #CFCCC5;
  opacity: 0; transition: opacity 400ms var(--ease); }
.wt.is-3d .wt__bajar.is-visible { opacity: 1; }
.wt__bajar svg { flex: none; color: #CFCCC5; }
.wt__bajar.is-visible svg { animation: wt-bajar 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes wt-bajar { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.wt__bajar-t--raton { display: none; }
@media (hover: hover) and (pointer: fine) { .wt__bajar-t--toque { display: none; } .wt__bajar-t--raton { display: inline; } }
@media (prefers-reduced-motion: reduce) { .wt__bajar svg { animation: none !important; } }
@media (max-width: 720px) {
  /* Móvil (como la referencia): titular compacto, la tarjeta casi a todo el ancho y alto, y las laterales fuera de la pantalla
     en reposo: solo asoman girando mientras pasa una tarjeta */
  .wt.is-3d .wt__marco { padding: calc(var(--nav-h) + 14px) 0 4px; gap: 14px; }
  /* la tarjeta conserva el alto que tenía con el titular (3 líneas de min(6,2vw, 26px) y su hueco) y queda centrada */
  .wt.is-3d .wt-tarjeta { height: calc(100% - 3.06 * min(6.2vw, 26px) - 14px) !important; }
  .wt.is-3d .wt__ceja { display: none; }
  .wt.is-3d .wt__titulo { font-size: min(6.2vw, 26px); max-width: none; }
  .wt.is-3d .wt__escena { perspective: 1100px; }
  .wt.is-3d .wt-tarjeta { width: calc(100vw - 2 * var(--gutter)); height: 100%; padding: 22px 20px; border-radius: 20px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
  .wt.is-3d .wt-tarjeta:not(.is-actual) > * { opacity: 1; }
  /* los puntos, en una píldora fina dentro del margen derecho de 16 px: la tarjeta conserva su ancho (estrecharla partía títulos
     en 3 líneas y cortaba dibujos en pantallas bajas). La zona de toque (32 px) es más ancha que la píldora, pero transparente. */
  .wt.is-3d .wt__puntos { --pildora: 14px; top: calc((var(--nav-h) + 14px + 100svh - 4px - 44px - 14px) / 2); right: 0; padding: 6px 0; align-items: flex-end; }
  .wt.is-3d .wt__puntos::before { inset: 0 1px 0 auto; width: var(--pildora); box-sizing: border-box; }
  .wt.is-3d .wt__punto { width: 32px; height: 36px; place-items: center end; padding-right: 5.5px; }
  .wt.is-3d .wt__punto i { width: 5px; height: 5px; }
  .wt.is-3d .wt__punto[aria-current="true"] i { height: 16px; }
  .wt.is-3d .wt__bajar { letter-spacing: .14em; }
  /* el dibujo se encoge hasta caber en su hueco: como elemento de rejilla, el SVG no bajaba del alto de su proporción y en
     pantallas bajas (375×667) se salía por abajo y pisaba la etiqueta (15/11/2026). Los textos no cambian. */
  .wt.is-3d .wt-anim > svg { min-height: 0; min-width: 0; }
  .wt-tarjeta__t { font-size: min(6.4vw, 26px); }
  .wt-tarjeta__f { font-size: 17px; }
}

/* ==========================================================================
   Dibujos animados (SVG). Ciclo de 7 s; al final, un fundido corto y vuelta a empezar.
   ========================================================================== */
.wt-anim { --ciclo: 7s; }
.wt.is-viendo .wt-tarjeta.is-actual .wt-anim { animation: wt-ciclo var(--ciclo) linear infinite; }
@keyframes wt-ciclo { 0%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
.wt-anim svg text { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-anchor: middle; }
.wt-anim svg g, .wt-anim svg path, .wt-anim svg rect, .wt-anim svg circle, .wt-anim svg text { transform-box: fill-box; transform-origin: center; }
.wt.is-viendo .is-actual .wt-anim * { animation-duration: var(--ciclo); animation-iteration-count: infinite; animation-timing-function: var(--ease); }

/* 1 · La web pequeña crece hasta ser un gran escaparate */
.b1-cartel text { font-size: 12px; letter-spacing: .08em; fill: #fff; }
.b1-web { opacity: 0; }
.wt.is-viendo .is-actual .b1-web { animation-name: b1-web; }
.wt.is-viendo .is-actual .b1-tienda { animation-name: b1-tienda; }
.wt.is-viendo .is-actual .b1-toldo { animation-name: b1-toldo; }
.wt.is-viendo .is-actual .b1-cartel { animation-name: b1-cartel; }
@keyframes b1-web { 0%, 5% { opacity: 1; transform: scale(1.5); } 20% { opacity: 1; transform: scale(2.7); } 24%, 100% { opacity: 0; transform: scale(2.9); } }
@keyframes b1-tienda { 0%, 12% { opacity: 0; transform: scale(.55); } 26%, 100% { opacity: 1; transform: none; } }
@keyframes b1-toldo { 0%, 26% { opacity: 0; transform: translateY(-26px); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes b1-cartel { 0%, 38% { opacity: 0; transform: scale(.4); } 44% { opacity: 1; transform: scale(1.12); } 48%, 100% { opacity: 1; transform: none; } }

/* 2 · Contador de 0,00 a 0,05 s (Lindgaard et al., 2006: 50 ms) y un cursor que duda entre «Me gusta» y «No me gusta» */
.b2-n { font-size: 30px; fill: var(--ink); }
.b2-s { font-size: 17px; }
.b2-c0, .b2-c1, .b2-c2, .b2-c3, .b2-c4 { opacity: 0; }
.wt-anim .b2-aro { stroke-dasharray: 1; stroke-dashoffset: 0; transform-box: view-box; transform-origin: 0 0; }
.b2-quedo text, .b2-voy text { font-family: var(--font-text); font-stretch: 100%; font-weight: 600; font-size: 15px; }
.b2-quedo text { fill: #fff; } .b2-voy text { fill: var(--ink); }
.wt-anim .b2-cursor { transform-box: view-box; transform-origin: 0 0; transform: translate(96px, 192px); }
.wt.is-viendo .is-actual .b2-aro { animation-name: b2-aro; animation-timing-function: linear; }
.wt.is-viendo .is-actual .b2-c0 { animation-name: b2-c0; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-c1 { animation-name: b2-c1; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-c2 { animation-name: b2-c2; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-c3 { animation-name: b2-c3; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-c4 { animation-name: b2-c4; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-c5 { animation-name: b2-c5; animation-timing-function: steps(1, end); }
.wt.is-viendo .is-actual .b2-cursor { animation-name: b2-cursor; animation-timing-function: ease-in-out; }
.wt.is-viendo .is-actual .b2-quedo { animation-name: b2-quedo; }
@keyframes b2-aro { 0% { stroke-dashoffset: 1; } 26%, 100% { stroke-dashoffset: 0; } }
@keyframes b2-c0 { 0% { opacity: 1; } 0% { opacity: 1; } 6%, 100% { opacity: 0; } }
@keyframes b2-c1 { 0% { opacity: 0; } 6% { opacity: 1; } 11%, 100% { opacity: 0; } }
@keyframes b2-c2 { 0% { opacity: 0; } 11% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes b2-c3 { 0% { opacity: 0; } 16% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes b2-c4 { 0% { opacity: 0; } 21% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes b2-c5 { 0%, 26% { opacity: 0; } 26.01%, 100% { opacity: 1; } }
@keyframes b2-cursor {
  0% { transform: translate(250px, 236px); } 14% { transform: translate(222px, 192px); } 26% { transform: translate(110px, 194px); }
  38% { transform: translate(228px, 190px); } 50% { transform: translate(116px, 192px); } 58% { transform: translate(204px, 194px); }
  70%, 74% { transform: translate(96px, 192px); } 76% { transform: translate(96px, 192px) scale(.85); } 79%, 100% { transform: translate(96px, 192px); } }
@keyframes b2-quedo { 0%, 75% { transform: none; } 78% { transform: scale(.93); } 82%, 100% { transform: none; } }

/* 3 · Tres escalones que se encienden uno a uno */
.b3-e { fill: var(--accent); }
.b3-t { font-size: 26px; fill: #fff; }
.b3-linea { stroke-dasharray: 1; stroke-dashoffset: 0; }
.wt.is-viendo .is-actual .b3-e1 { animation-name: b3-e1; } .wt.is-viendo .is-actual .b3-t1 { animation-name: b3-t1; }
.wt.is-viendo .is-actual .b3-e2 { animation-name: b3-e2; } .wt.is-viendo .is-actual .b3-t2 { animation-name: b3-t2; }
.wt.is-viendo .is-actual .b3-e3 { animation-name: b3-e3; } .wt.is-viendo .is-actual .b3-t3 { animation-name: b3-t3; }
.wt.is-viendo .is-actual .b3-linea { animation-name: b3-linea; }
.wt.is-viendo .is-actual .b3-punta { animation-name: b3-punta; }
@keyframes b3-e1 { 0%, 10% { fill: #E4E2DD; } 16%, 100% { fill: #2747E0; } }
@keyframes b3-t1 { 0%, 10% { fill: #8A8780; } 16%, 100% { fill: #fff; } }
@keyframes b3-e2 { 0%, 28% { fill: #E4E2DD; } 34%, 100% { fill: #2747E0; } }
@keyframes b3-t2 { 0%, 28% { fill: #8A8780; } 34%, 100% { fill: #fff; } }
@keyframes b3-e3 { 0%, 46% { fill: #E4E2DD; } 52%, 100% { fill: #2747E0; } }
@keyframes b3-t3 { 0%, 46% { fill: #8A8780; } 52%, 100% { fill: #fff; } }
@keyframes b3-linea { 0%, 8% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes b3-punta { 0%, 58% { opacity: 0; } 64%, 100% { opacity: 1; } }

/* 4 · La mascota, impresionada: «¡WOW!» */
.b4-escena { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.b4-masc { position: absolute; inset: 8% 0 0 0; width: 92%; height: auto; margin: 0 auto; }
.b4-wow { position: absolute; right: -4%; top: 0; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1; }
.b4-rayos { position: absolute; right: -14%; top: -12%; width: 26%; height: auto; opacity: 0; }
.wt.is-viendo .is-actual .b4-masc { animation-name: b4-masc; }
.wt.is-viendo .is-actual .b4-wow { animation-name: b4-wow; }
.wt.is-viendo .is-actual .b4-rayos { animation-name: b4-rayos; }
@keyframes b4-masc { 0%, 6% { opacity: 0; transform: translateY(24px); } 16% { opacity: 1; transform: none; } 30% { transform: translateY(-14px) scale(1.03); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes b4-wow { 0%, 30% { opacity: 0; transform: scale(.3) rotate(-12deg); } 37% { opacity: 1; transform: scale(1.15) rotate(4deg); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes b4-rayos { 0%, 33% { opacity: 0; transform: scale(.5); } 40% { opacity: 1; transform: scale(1.1); } 56%, 100% { opacity: 0; transform: scale(1.3); } }

/* 5 · Una interrogación que se convierte en un check */
.b5-duda path { stroke-dasharray: 1; }
.b5-duda, .b5-punto { opacity: 0; }
.b5-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.wt.is-viendo .is-actual .b5-circulo { animation-name: b5-circulo; }
.wt.is-viendo .is-actual .b5-duda { animation-name: b5-duda; }
.wt.is-viendo .is-actual .b5-duda path { animation-name: b5-trazo; }
.wt.is-viendo .is-actual .b5-punto { animation-name: b5-punto; }
.wt.is-viendo .is-actual .b5-check { animation-name: b5-check; }
@keyframes b5-circulo { 0%, 46% { fill: #FFFFFF; stroke: #E4E2DD; transform: none; } 52% { fill: #2747E0; stroke: #2747E0; transform: scale(1.06); } 58%, 100% { fill: #2747E0; stroke: #2747E0; transform: none; } }
@keyframes b5-duda { 0% { opacity: 1; transform: none; } 38% { opacity: 1; transform: rotate(-8deg); } 42% { opacity: 1; transform: rotate(8deg); } 46% { opacity: 0; transform: scale(.4) rotate(90deg); } 100% { opacity: 0; } }
@keyframes b5-trazo { 0% { stroke-dashoffset: 1; } 22%, 100% { stroke-dashoffset: 0; } }
@keyframes b5-punto { 0%, 20% { opacity: 0; transform: scale(0); } 25%, 42% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: scale(0); } }
@keyframes b5-check { 0%, 52% { stroke-dashoffset: 1; } 64%, 100% { stroke-dashoffset: 0; } }

/* 6 · El botón se pulsa con un destello y aparece el calendario con su check */
.b6-boton text { font-family: var(--font-text); font-stretch: 100%; font-weight: 600; font-size: 19px; fill: #fff; }
.b6-destello { opacity: 0; }
.wt-anim .b6-cursor { transform-box: view-box; transform-origin: 0 0; transform: translate(220px, 60px); opacity: 0; }
.b6-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.wt.is-viendo .is-actual .b6-boton { animation-name: b6-boton; }
.wt.is-viendo .is-actual .b6-cursor { animation-name: b6-cursor; }
.wt.is-viendo .is-actual .b6-destello { animation-name: b6-destello; }
.wt.is-viendo .is-actual .b6-cal { animation-name: b6-cal; }
.wt.is-viendo .is-actual .b6-check { animation-name: b6-check; }
@keyframes b6-boton { 0%, 4% { opacity: 0; transform: scale(.4); } 11% { opacity: 1; transform: scale(1.08); } 15%, 26% { opacity: 1; transform: none; } 29% { transform: scale(.92); } 33%, 100% { opacity: 1; transform: none; } }
@keyframes b6-cursor { 0%, 12% { opacity: 0; transform: translate(300px, 120px); } 16% { opacity: 1; transform: translate(290px, 110px); } 26% { opacity: 1; transform: translate(206px, 58px); } 29% { transform: translate(206px, 58px) scale(.85); } 33%, 44% { opacity: 1; transform: translate(206px, 58px); } 50%, 100% { opacity: 0; transform: translate(206px, 58px); } }
@keyframes b6-destello { 0%, 28% { opacity: 0; transform: scale(.7); } 32% { opacity: 1; transform: scale(1); } 42%, 100% { opacity: 0; transform: scale(1.15); } }
@keyframes b6-cal { 0%, 36% { opacity: 0; transform: translateY(30px) scale(.9); } 46%, 100% { opacity: 1; transform: none; } }
@keyframes b6-check { 0%, 50% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }

/* Movimiento reducido: nada se anima (todo queda en su estado final) */
@media (prefers-reduced-motion: reduce) {
  .wt *, .wt *::after { animation: none !important; transition: none !important; }
}
/* Móvil: la etiqueta, abajo y centrada dentro de la tarjeta (así no la tapan ni el círculo de cookies ni los puntos, que van fuera) */
@media (max-width: 720px) {
  .wt .wt-tarjeta { --et-abajo: 18px; padding-top: 22px !important; padding-bottom: calc(var(--et-abajo) + var(--et-alto) + 14px) !important; }
  .wt .wt-tarjeta__etiqueta { top: auto; bottom: var(--et-abajo); padding-inline: 16px; text-align: center; }
}
/* Nota de fuentes al pie de la tarjeta que lleva datos (Webs 2). Ordenador: abajo a la izquierda, dentro del margen de la tarjeta.
   Móvil: centrada, justo encima de la etiqueta; esa tarjeta deja el hueco justo abajo */
.wt-tarjeta__fuentes { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; padding-inline: 26px; font: 400 11px/1.3 var(--font-text); color: var(--muted); pointer-events: none; }
.wt-tarjeta--fuentes { padding-bottom: 40px; }
@media (min-width: 721px) { .wt.is-3d .wt-tarjeta__fuentes { bottom: 13px; padding-inline: 40px; font-size: 12px; } }
@media (max-width: 720px) {
  .wt .wt-tarjeta__fuentes { bottom: calc(var(--et-abajo) + var(--et-alto) + 8px); padding-inline: 16px; text-align: center; }
  .wt .wt-tarjeta--fuentes { padding-bottom: calc(var(--et-abajo) + var(--et-alto) + 8px + 15px + 12px) !important; }
}
/* Móviles estrechos: la etiqueta más larga («Automatización para empresas») cabe en una línea */
@media (max-width: 370px) { .wt .wt-tarjeta__etiqueta { letter-spacing: .12em; } }
