/* ==========================================================================
   charco creativo — tiendas.css
   Lo propio de /tiendas (tiendas.php). Todo lo demás —la barra, el charco de
   la portada, las secciones, la migración, las preguntas y el formulario— es de
   css/studio.css, que se carga antes.
   ========================================================================== */

/* --- Las dos barras (Nico, 12-11-2026) --------------------------------------
   Nunca se ven las dos juntas. Al abrir la página está sola la de charco
   creativo, la misma de la portada; acá no queda fija: al bajar se va con la
   página. Cuando terminó de irse, baja desde arriba la de la página («Tiendas
   online», sus secciones y «Quiero mi tienda»), fija y con el mismo vidrio;
   al volver arriba de todo se esconde. (Primero estaban las dos juntas al
   abrir, como en apple.com, y Nico dijo: «está mal. Cuando empezás a
   scrollear tiene que aparecer la otra barra».) Cuándo aparece, el tema
   (claro u oscuro, según lo que pasa por debajo) y el menú del celular son de
   js/tiendas.js. */
:root { --alto-local: 52px; }
html:has(.tl-local) { scroll-padding-top: var(--alto-local); }
.pagina-tiendas .nb { position: absolute; }
/* Con su menú del celular abierto, la de arriba vuelve a ser fija: el menú
   arranca justo debajo de ella (css/studio.css), aunque se haya bajado un poco */
.pagina-tiendas .nb--abierta { position: fixed; }

.tl-local {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--alto-local);
  color: var(--texto);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s var(--curva-apple), visibility 0s 0.3s;
}
/* A la vista: transform «none» y no translateY(0). Con cualquier transform, el
   velo del celular (fijo, más abajo) mediría la barra y no la pantalla. */
.tl-local--visible {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--curva);
}
@media (prefers-reduced-motion: reduce) {
  .tl-local, .tl-local--visible { transition: none; }
}
/* El vidrio va en un ::before, como en la barra de arriba: con el filtro en la
   barra misma, el velo de abajo (fijo) mediría la barra y no la pantalla. Va
   por debajo de lo de adentro (z-index -1): en el celular la fila no tiene
   posición (la bandeja ocupa todo el ancho) y el vidrio la taparía. */
.tl-local::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(250, 250, 252, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.35s var(--curva-apple), box-shadow 0.35s;
}
.tl-local[data-tema="oscuro"] { color: #f5f5f7; }
.tl-local[data-tema="oscuro"]::before {
  background: rgba(22, 22, 23, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tl-local__fila {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  width: min(1024px, 100% - 44px);
  margin-inline: auto;
}
.tl-local__titulo {
  margin-right: auto;
  color: inherit;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tl-local__abrir { display: none; }
.tl-local__lista { display: flex; align-items: center; gap: 24px; }
.tl-local__lista a {
  color: inherit;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.tl-local__lista a:hover { opacity: 1; }
.tl-local__boton {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--azul);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}
.tl-local__boton:hover { background: var(--azul-hover); }

/* En el celular, las secciones se despliegan con la flechita al lado de
   «Tiendas online», como en apple.com: una bandeja debajo de la barra, del
   mismo vidrio, y la página de atrás un poco más oscura. */
@media (max-width: 834px) {
  .tl-local__fila { position: static; gap: 0; }
  .tl-local__titulo { margin-right: 0; font-size: 19px; }
  .tl-local__abrir {
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    margin-right: auto;
    -webkit-tap-highlight-color: transparent;
  }
  .tl-local__abrir .st-ic { width: 14px; height: 14px; opacity: 0.8; transition: transform 0.4s var(--curva); }
  .tl-local--abierta .tl-local__abrir .st-ic { transform: rotate(180deg); }
  .tl-local__lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 4px 22px 14px;
    background: rgba(250, 250, 252, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--curva-apple), transform 0.3s var(--curva), visibility 0s 0.3s;
  }
  .tl-local--abierta .tl-local__lista {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--curva-apple), transform 0.4s var(--curva);
  }
  .tl-local__lista li + li { border-top: 1px solid rgba(0, 0, 0, 0.1); }
  .tl-local__lista a { display: block; padding: 11px 0; font-size: 17px; opacity: 1; }
  .tl-local[data-tema="oscuro"] .tl-local__lista { background: rgba(22, 22, 23, 0.97); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
  .tl-local[data-tema="oscuro"] .tl-local__lista li + li { border-top-color: rgba(255, 255, 255, 0.14); }
  /* Abierta, la barra toma el mismo vidrio que la bandeja: se ven como una sola pieza */
  .tl-local--abierta::before { background: rgba(250, 250, 252, 0.97); box-shadow: none; }
  .tl-local--abierta[data-tema="oscuro"]::before { background: rgba(22, 22, 23, 0.97); }
  /* El velo: fijo, toda la pantalla, por debajo del vidrio de la barra (tocarlo la cierra) */
  .tl-local::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--curva-apple), visibility 0s 0.3s;
  }
  .tl-local--abierta::after { opacity: 1; visibility: visible; transition: opacity 0.3s var(--curva-apple); }
}
@media (max-width: 734px) {
  :root { --alto-local: 48px; }
}
@media (prefers-reduced-transparency: reduce) {
  .tl-local::before { background: #fafafc; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tl-local[data-tema="oscuro"]::before { background: #161617; }
}
@media (max-width: 834px) and (prefers-reduced-transparency: reduce) {
  .tl-local__lista { background: #fafafc; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tl-local[data-tema="oscuro"] .tl-local__lista { background: #161617; }
}

/* --- El país (Nico, 12-11-2026) -------------------------------------------
   Cada texto que cambia con el país va una vez por país con data-solo («ar»,
   «uy», «latam» o varios separados por espacio); se ve el del país elegido,
   que está en <main data-pais-tienda>. js/tiendas.js lo cambia sin recargar. */
[data-pais-tienda="ar"] [data-solo]:not([data-solo~="ar"]),
[data-pais-tienda="uy"] [data-solo]:not([data-solo~="uy"]),
[data-pais-tienda="latam"] [data-solo]:not([data-solo~="latam"]) { display: none !important; }

/* Lo que aparece al cambiar de país entra con un fundido, uno detrás del otro
   (--n lo pone js/tiendas.js). Lo que ya estaba (Mercado Pago) queda quieto. */
.tl-entra { animation: tl-entrar 0.55s calc(var(--n, 0) * 45ms) var(--curva) both; }
@keyframes tl-entrar {
  from { opacity: 0; transform: translateY(8px) scale(0.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Los botones del país: el control segmentado de iOS, con tres opciones del
   mismo ancho y la marca que se desliza a la elegida. */
.tl-paises {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: 980px;
}
html:not(.js) .tl-paises { display: none; }
.js .tl-sin-js { display: none; }
.tl-paises__opcion {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  padding: 7px 18px;
  border: 0;
  border-radius: 980px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--curva);
  -webkit-tap-highlight-color: transparent;
}
.tl-paises__opcion[aria-checked="true"] { cursor: default; }
.tl-paises__opcion:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.tl-paises__marca {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 980px;
  transition: transform 0.5s var(--curva);
}
.tl-paises[data-pais="uy"] .tl-paises__marca { transform: translateX(100%); }
.tl-paises[data-pais="latam"] .tl-paises__marca { transform: translateX(200%); }

/* En la portada: vidrio sobre el charco y la marca blanca */
.tl-paises--oscuro {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 20, 60, 0.18);
}
.tl-paises--oscuro .tl-paises__opcion { color: rgba(255, 255, 255, 0.82); }
.tl-paises--oscuro .tl-paises__opcion:hover { color: #fff; }
.tl-paises--oscuro .tl-paises__opcion[aria-checked="true"] { color: var(--texto); }
.tl-paises--oscuro .tl-paises__opcion:focus-visible { outline-color: #fff; }
.tl-paises--oscuro .tl-paises__marca { background: #fff; box-shadow: 0 4px 14px rgba(0, 20, 60, 0.25); }

/* En «Conectada con»: el gris de iOS */
.tl-paises--claro { background: rgba(118, 118, 128, 0.12); }
.tl-paises--claro .tl-paises__opcion { color: var(--texto); }
.tl-paises--claro .tl-paises__marca { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }

/* «Tiendas online para marcas de [Argentina | Uruguay | LATAM]»: en un renglón
   en la compu; en el celular los botones bajan abajo de la frase. */
.tl-hero__pais {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: 20px;
}

/* El título es más largo que el de la portada: un poco más chico para que
   quepa en dos renglones. */
.tl-hero .st-hero__titulo { font-size: clamp(40px, 6.4vw, 88px); }

/* «Sin comisión por venta» (Nico, 12-11-2026: «hacelo animado y con efecto,
   tiene que llamar la atención porque es importante ese highlight»). Una
   píldora de vidrio sobre el charco, entre la bajada y el «Deslizá»:
     - una luz le da la vuelta al borde sin parar, con su resplandor afuera
       (un degradé cónico que gira: --tl-giro);
     - cuando se posa, el tilde salta y se dibuja;
     - cada 6 s sale una onda del borde, un brillo le cruza las letras y cae
       una gota en el agua, justo debajo (js/tiendas.js le avisa a js/agua.js
       con cada vuelta de la primera onda).
   Cuando la portada no se ve, todo se frena (.tl-quieta, js/tiendas.js). La
   aclaración (el medio de pago cobra lo suyo) está en «Qué incluye» y en las
   preguntas. */
@property --tl-giro {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.tl-sin-comision {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 8px 22px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 32px rgba(0, 20, 60, 0.24);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: #fff;
}
.tl-sin-comision::before,
.tl-sin-comision::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--tl-giro),
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0) 190deg,
    rgba(120, 192, 255, 0.85) 280deg,
    #fff 326deg,
    rgba(255, 255, 255, 0) 360deg);
  animation: tl-giro 4.2s linear infinite;
}
/* La luz: solo el borde (la máscara saca el medio) */
.tl-sin-comision::before {
  inset: -1px;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* El resplandor: la misma luz, borrosa y solo afuera de la píldora */
.tl-sin-comision::after {
  inset: -17px;
  z-index: -1;
  padding: 16px;
  filter: blur(9px);
  opacity: 0.6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
@keyframes tl-giro { to { --tl-giro: 360deg; } }

/* Las ondas: dos anillos que salen del borde y se apagan */
.tl-sin-comision__onda {
  position: absolute;
  inset: -1px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: tl-onda-pildora 6s cubic-bezier(0.2, 0.6, 0.35, 1) 2.1s infinite;
}
.tl-sin-comision__onda + .tl-sin-comision__onda { border-color: rgba(255, 255, 255, 0.45); animation-delay: 2.45s; }
@keyframes tl-onda-pildora {
  0%        { inset: -1px; opacity: 0.9; }
  45%, 100% { inset: -30px; opacity: 0; }
}
.tl-sin-comision__tilde {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 50, 150, 0.45);
  animation: tl-tilde 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}
.tl-sin-comision__tilde svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-sin-comision__tilde path { stroke-dasharray: 1; animation: tl-trazo 0.45s ease-out 1.45s both; }
@keyframes tl-tilde { from { opacity: 0; transform: scale(0.3); } }
@keyframes tl-trazo { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* El brillo que cruza las letras, junto con la onda */
.tl-sin-comision__texto {
  background: linear-gradient(105deg, #fff 0%, #fff 42%, #a8d8ff 50%, #fff 58%, #fff 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tl-brillo 6s ease-in-out 2.1s infinite;
}
@keyframes tl-brillo {
  0%        { background-position: 100% 0; }
  32%, 100% { background-position: 0 0; }
}
.tl-sin-comision.tl-quieta,
.tl-sin-comision.tl-quieta::before,
.tl-sin-comision.tl-quieta::after,
.tl-sin-comision.tl-quieta * { animation-play-state: paused; }
.tl-hero .st-hero__accion { margin-top: 38px; }

/* Los íconos de «Conectada con» y del candado de la dirección */
.tl-ico {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Qué incluye: los bloques (Nico, 12-11-2026) -------------------------------
   Como las páginas de producto de Apple: bloques de distinto tamaño, cada
   uno con su frase (lo que es, en negrita, y el detalle en gris, de corrido)
   y una pantallita de la tienda de ejemplo. Lo que se mueve:
     - una vez, cuando el bloque aparece (.visible, la pone js/studio.js): el
       tilde del pago, la factura que sale, el aviso del pedido…;
     - lo que se repite (las ondas del 0 %, el envío, la migración) corre solo
       mientras el bloque se ve (.en-vista, js/tiendas.js);
     - por JavaScript (js/tiendas.js): los colores de la tienda, las cuentas
       que suben y el dominio que se escribe.
   Todo lo que se mueve va adentro de (prefers-reduced-motion: no-preference):
   con «reducir movimiento», y sin JavaScript, se ve quieto y terminado. */
.tl-bento {
  --tl-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "diseno  diseno  comision"
    "cobros  factura panel"
    "envios  envios  panel"
    "dominio dominio redes"
    "migra   migra   migra";
  gap: 16px;
}
.tl-b {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 36px 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--fondo);
  isolation: isolate;
}
.tl-b--diseno   { grid-area: diseno; min-height: 560px; }
.tl-b--comision { grid-area: comision; }
.tl-b--cobros   { grid-area: cobros; min-height: 450px; }
.tl-b--factura  { grid-area: factura; }
.tl-b--envios   { grid-area: envios; }
.tl-b--panel    { grid-area: panel; }
.tl-b--dominio  { grid-area: dominio; min-height: 430px; }
.tl-b--redes    { grid-area: redes; }
.tl-b--migra    { grid-area: migra; }

/* La frase: «Diseño con tu marca.» en negrita y el resto en gris, de corrido */
.tl-b__copia {
  position: relative;
  z-index: 1;
  max-width: 24em;
  font-size: 19px;
  line-height: 1.37;
  letter-spacing: -0.017em;
  color: var(--texto-2);
}
.tl-b__copia h3,
.tl-b__copia p { display: inline; margin: 0; font: inherit; }
.tl-b__copia h3 { font-weight: 600; color: var(--texto); }

/* Las tarjetas blancas de las pantallitas */
.tl-cobro__tarjeta,
.tl-envio,
.tl-post,
.tl-dominio__barra,
.tl-dominio__pagina,
.tl-migra__tienda {
  background: var(--blanco);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 36px rgba(0, 0, 0, 0.07);
}

/* --- Diseño: los colores y la tienda en la compu y en el celular ------------
   El color lo cambia js/tiendas.js (--tl-marca, data-colores). Las medidas
   de la pantallita van en em: para achicarla entera alcanza con su letra. */
.tl-b--diseno { --tl-marca: #9a5b3f; }
.tl-b--diseno .tl-b__copia { max-width: 15.5em; }
.tl-colores { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.tl-colores__botones { display: flex; gap: 12px; }
.tl-colores__boton {
  position: relative;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* El aro del elegido; y un blanco más grande para el dedo */
.tl-colores__boton::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.tl-colores__boton::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--c);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--curva), transform 0.4s var(--curva);
}
.tl-colores__boton[aria-checked="true"]::after { opacity: 1; transform: none; }
.tl-colores__boton:focus-visible { outline: 2px solid var(--azul); outline-offset: 7px; }
.tl-colores__nombre { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--texto-2); }

/* El celular pisa apenas el borde de la compu (1,5em): si la tapa más, esconde
   el título de la tienda */
.tl-diseno {
  position: absolute;
  right: -1.8em;
  bottom: -3.4em;
  width: 66em;
  height: 41em;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1d1d1f;
}
.tl-diseno__marca,
.tl-diseno__aviso,
.tl-diseno__bolsa,
.tl-diseno__boton,
.tl-diseno__grilla b { transition: color 0.6s var(--curva), background-color 0.6s var(--curva); }
.tl-diseno__web {
  position: absolute;
  top: 0;
  right: 0;
  width: 50em;
  height: 100%;
  overflow: hidden;
  border-radius: 1.2em;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2em 5em rgba(0, 0, 0, 0.12);
}
.tl-diseno__barra { display: flex; align-items: center; gap: 0.7em; height: 3.6em; padding: 0 1.4em; border-bottom: 1px solid #e8e8ed; background: #f5f5f7; }
.tl-diseno__barra i { width: 1.15em; height: 1.15em; border-radius: 50%; background: #ff5f57; }
.tl-diseno__barra i:nth-child(2) { background: #febc2e; }
.tl-diseno__barra i:nth-child(3) { background: #28c840; }
.tl-diseno__url { margin: 0 auto; padding: 0.45em 2.6em; border-radius: 0.7em; background: #e8e8ed; font-size: 1.15em; color: #6e6e73; }
.tl-diseno__aviso { margin: 0; padding: 0.6em; background: var(--tl-marca); color: #fff; font-size: 1.05em; font-weight: 500; text-align: center; }
.tl-diseno__cabeza { display: flex; align-items: center; gap: 2.2em; padding: 1.3em 2.2em 1.3em 3em; border-bottom: 1px solid #f0f0f2; }
.tl-diseno__marca { font-family: var(--tl-serif); font-size: 2.2em; font-weight: 600; letter-spacing: -0.01em; color: var(--tl-marca); }
.tl-diseno__menu { display: flex; gap: 1.8em; margin-left: auto; font-size: 1.2em; color: #424245; }
.tl-diseno__bolsa { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--tl-marca); color: #fff; font-size: 1em; font-weight: 600; }
.tl-diseno__portada { display: grid; grid-template-columns: 1fr 1fr; height: 100%; background: #ece4da; }
.tl-diseno__portada-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8em; padding: 5em 0 0 3em; }
.tl-diseno__portada-texto b { font-family: var(--tl-serif); font-size: 3.3em; font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; color: #3a2a20; }
.tl-diseno__boton { padding: 0.95em 1.9em; border-radius: 99em; background: var(--tl-marca); color: #fff; font-size: 1.2em; font-weight: 600; }
.tl-diseno__portada img { display: block; width: 100%; height: 30em; object-fit: cover; object-position: 50% 72%; }
.tl-diseno__tel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 17.5em;
  height: 35em;
  padding: 0.75em;
  border-radius: 2.9em;
  background: #1d1d1f;
  box-shadow: 0 0 0 0.15em #48484a, 0 2.4em 5em rgba(0, 0, 0, 0.24);
}
.tl-diseno__isla { position: absolute; z-index: 1; top: 1.45em; left: 50%; width: 5.6em; height: 1.65em; border-radius: 1em; background: #000; transform: translateX(-50%); }
.tl-diseno__pantalla { height: 100%; overflow: hidden; padding-top: 3.7em; border-radius: 2.2em; background: #fff; }
.tl-diseno__tel-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 0 1.3em 1em; }
.tl-diseno__tel-cabeza .tl-diseno__marca { font-size: 1.8em; }
.tl-diseno__tel-cabeza .tl-diseno__bolsa { width: 2.1em; height: 2.1em; font-size: 0.9em; }
.tl-diseno__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em 0.8em; padding: 0 1em; }
.tl-diseno__grilla figure { margin: 0; }
.tl-diseno__grilla img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 88%; border-radius: 0.8em; background: #eceef1; }
.tl-diseno__grilla figcaption { margin-top: 0.5em; font-size: 1em; line-height: 1.3; }
.tl-diseno__grilla b { display: block; font-weight: 600; color: var(--tl-marca); }

/* --- Sin comisión: el bloque oscuro ---------------------------------------- */
.tl-b--comision {
  padding-bottom: 30px;
  background:
    radial-gradient(130% 55% at 50% 118%, rgba(0, 113, 227, 0.6), rgba(0, 113, 227, 0) 72%),
    var(--onyx);
  color: #f5f5f7;
}
.tl-comision__titulo { display: grid; justify-items: start; margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.022em; }
.tl-comision__cifra { position: relative; display: block; margin: 0 0 14px -0.04em; font-size: 150px; line-height: 0.95; letter-spacing: -0.055em; }
.tl-comision__numero {
  position: relative;
  background: linear-gradient(180deg, #fff 30%, #84c3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tl-comision__texto { margin-top: 12px; font-size: 17px; line-height: 1.45; letter-spacing: -0.016em; color: rgba(255, 255, 255, 0.64); }
/* El charco: tres ondas que salen del pie del cero. Quietas, como un charco
   cualquiera; con movimiento, salen y se apagan (abajo). */
.tl-comision__ondas { position: absolute; left: 0.3em; bottom: 0.07em; }
.tl-comision__ondas i {
  position: absolute;
  left: -0.75em;
  top: -0.15em;
  width: 1.5em;
  height: 0.3em;
  border: 2px solid rgba(110, 185, 255, 0.55);
  border-radius: 50%;
  opacity: 0.4;
  transform: scale(0.45);
}
.tl-comision__ondas i:nth-child(2) { opacity: 0.2; transform: scale(0.72); }
.tl-comision__ondas i:nth-child(3) { opacity: 0.08; transform: none; }
.tl-comision__cuenta { margin-top: auto; padding-top: 26px; }
.tl-comision__fila { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; color: rgba(255, 255, 255, 0.62); }
.tl-comision__fila b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.tl-comision__fila--cero b { color: #5eb2ff; }
.tl-comision__nota { margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; color: rgba(255, 255, 255, 0.42); }

/* --- Cobros: el pago aprobado --------------------------------------------- */
.tl-cobro { display: grid; flex: 1; place-items: center; padding: 40px 0 36px; }
.tl-cobro__tarjeta {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 250px);
  padding: 24px 18px 22px;
  border-radius: 24px;
  text-align: center;
}
/* Dos pagos más atrás: entran seguido */
.tl-cobro__tarjeta::before,
.tl-cobro__tarjeta::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -11px;
  left: 14px;
  right: 14px;
  height: 50px;
  border-radius: 20px;
  background: #fff;
  opacity: 0.75;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.tl-cobro__tarjeta::after { top: -21px; left: 30px; right: 30px; opacity: 0.45; }
.tl-cobro__ok { width: 56px; height: 56px; fill: none; stroke: var(--azul); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tl-cobro__estado { margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--texto); }
.tl-cobro__monto { font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--texto); }
.tl-cobro__medio { margin-top: 2px; font-size: 13px; color: var(--texto-2); }

/* --- Factura: sale de la impresora y se manda sola ------------------------- */
.tl-factura { position: relative; flex: 1; min-height: 262px; margin: 26px -36px 0; }
.tl-factura__salida { position: absolute; inset: 0 0 16px; overflow: hidden; }
.tl-factura__papel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 214px;
  margin-left: -107px;
  padding: 16px 16px 14px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--texto);
}
.tl-factura__marca { display: block; font-family: var(--tl-serif); font-size: 18px; font-weight: 600; color: #9a5b3f; }
.tl-factura__tipo { display: block; margin: 1px 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--texto-2); }
.tl-factura__linea { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed #d2d2d7; font-variant-numeric: tabular-nums; }
.tl-factura__linea--total { font-size: 12.5px; font-weight: 700; }
.tl-factura__pie { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 9.5px; line-height: 1.3; color: var(--texto-3); }
.tl-factura__qr { flex: none; width: 36px; height: 36px; fill: #1d1d1f; shape-rendering: crispEdges; }
/* La impresora: una ranura oscura de donde sale el papel */
.tl-factura__ranura {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 262px;
  height: 18px;
  margin-left: -131px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #3a3a3c, #1d1d1f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tl-factura__enviada {
  position: absolute;
  top: -15px;
  right: -52px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--texto);
  transform-origin: 20% 50%;
}
.tl-factura__enviada .tl-ico,
.tl-envio__llego .tl-ico { width: 18px; height: 18px; padding: 2.5px; border-radius: 50%; background: var(--azul); stroke: #fff; stroke-width: 2.8; }

/* --- Envíos: el seguimiento -------------------------------------------------- */
.tl-envio { margin: auto 0 36px; padding: 22px 24px 20px; border-radius: 22px; }
.tl-b--envios .tl-b__copia { margin-bottom: 30px; }
.tl-envio__cabeza { display: flex; align-items: center; gap: 14px; }
.tl-envio__correo { display: grid; flex: none; place-items: center; width: 80px; height: 48px; border-radius: 12px; background: var(--fondo); }
.tl-envio__correo > span { display: contents; }
.tl-envio__correo img { display: none; width: 66px; height: 33px; object-fit: contain; }
.tl-envio__correo img.es-turno { display: block; }
.tl-envio__correo .tl-ico { width: 26px; height: 26px; }
.tl-envio__pedido { display: grid; min-width: 0; font-size: 13px; color: var(--texto-2); }
.tl-envio__pedido b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--texto); }
.tl-envio__llego { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px 6px 7px; border-radius: 99px; background: rgba(0, 113, 227, 0.1); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--azul); }
.tl-envio__ruta { position: relative; height: 6px; margin: 26px 8px 0; border-radius: 3px; background: var(--linea-suave); }
.tl-envio__avance { position: absolute; inset: 0; border-radius: inherit; background: var(--azul); transform-origin: left center; }
.tl-envio__parada { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px #fff; }
.tl-envio__parada:nth-of-type(3) { left: 50%; }
.tl-envio__parada:nth-of-type(4) { left: 100%; }
.tl-envio__paquete { position: absolute; top: 50%; left: 100%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.2), 0 2px 8px rgba(0, 0, 0, 0.18); }
.tl-envio__pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; font-size: 12.5px; color: var(--texto-2); }
.tl-envio__pasos span:nth-child(2) { text-align: center; }
.tl-envio__pasos span:nth-child(3) { text-align: right; }

/* --- Panel: los pedidos en el celular ---------------------------------------- */
.tl-panel { position: relative; flex: 1; min-height: 520px; margin-top: 34px; }
.tl-panel__tel {
  position: absolute;
  top: 0;
  bottom: -60px;
  left: 50%;
  width: 280px;
  margin-left: -140px;
  padding: 10px;
  border-radius: 50px;
  background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #48484a, 0 30px 70px rgba(0, 0, 0, 0.16);
}
.tl-panel__isla { position: absolute; z-index: 3; top: 21px; left: 50%; width: 86px; height: 25px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.tl-panel__pantalla { position: relative; height: 100%; overflow: hidden; padding: 60px 14px 0; border-radius: 40px; background: #f2f2f7; color: #000; }
.tl-panel__hoy { display: block; font-size: 12px; font-weight: 600; color: #8e8e93; }
.tl-panel__titulo { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.tl-panel__resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.tl-panel__resumen > span { display: grid; padding: 10px 12px; border-radius: 14px; background: #fff; font-size: 11.5px; color: #8e8e93; }
.tl-panel__resumen b { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #000; }
/* «12» que pasa a «13» cuando entra el pedido: queda en 13 */
.tl-panel__cuenta { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.tl-panel__cuenta span { display: block; transform: translateY(-100%); }
.tl-panel__lista { margin: 0; padding: 0 12px; border-radius: 14px; background: #fff; list-style: none; }
.tl-panel__lista li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 9px 0; border-top: 0.5px solid #e5e5ea; font-size: 12px; }
.tl-panel__lista li:first-child { border-top: 0; }
.tl-panel__nuevo { overflow: hidden; }
.tl-panel__lista li > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-panel__lista b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-panel__n { font-weight: 600; font-variant-numeric: tabular-nums; color: #8e8e93; }
.tl-chip { grid-column: 2; justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: 99px; background: #f2f2f7; font-size: 10.5px; font-style: normal; font-weight: 600; color: #636366; }
.tl-chip--azul { background: rgba(0, 113, 227, 0.12); color: var(--azul); }
.tl-chip--verde { background: rgba(52, 199, 89, 0.15); color: #248a3d; }
.tl-panel__stock { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 14px; background: #fff; font-size: 11.5px; color: #8e8e93; }
.tl-panel__stock img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; object-position: 50% 88%; background: #eceef1; }
.tl-panel__stock > span { display: grid; }
.tl-panel__stock b { font-size: 12.5px; font-weight: 600; color: #000; }
/* El interruptor de iOS (publicado), prendido */
.tl-panel__llave { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #34c759; }
.tl-panel__llave::after { content: ""; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
/* El aviso del pedido nuevo: baja, se queda un rato y se va (abajo). Quieto, no está. */
.tl-panel__aviso {
  position: absolute;
  z-index: 2;
  top: 54px;
  left: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  line-height: 1.3;
  visibility: hidden;
  opacity: 0;
}
.tl-panel__app { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #9a5b3f; font-family: var(--tl-serif); font-size: 18px; font-weight: 600; color: #fff; }
.tl-panel__aviso-texto { display: grid; min-width: 0; }
.tl-panel__aviso-texto b { font-weight: 600; }
.tl-panel__aviso-texto > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #3c3c43; }
.tl-panel__aviso small { align-self: start; font-size: 11px; color: #8e8e93; }

/* --- Dominio: la dirección que se escribe y la tienda que carga ------------ */
.tl-dominio { display: grid; flex: 1; align-content: end; justify-items: center; margin-top: 34px; }
.tl-dominio__barra { display: flex; align-items: center; gap: 11px; width: min(100%, 540px); height: 70px; padding: 0 26px; border-radius: 20px; font-size: 27px; letter-spacing: -0.02em; color: var(--texto); }
.tl-dominio__barra .tl-ico { flex: none; width: 22px; height: 22px; stroke: var(--texto-2); stroke-width: 2; }
.tl-dominio__texto { overflow: hidden; white-space: nowrap; }
.tl-dominio__cursor { flex: none; width: 2.5px; height: 32px; margin-left: -9px; border-radius: 1px; background: var(--azul); opacity: 0; }
.tl-dominio__pagina { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 12px; width: min(100%, 560px); height: 190px; margin-top: 26px; padding: 18px 18px 0; overflow: hidden; border-radius: 20px 20px 0 0; }
.tl-dominio__marca { grid-column: 1 / -1; font-family: var(--tl-serif); font-size: 19px; font-weight: 600; color: #9a5b3f; }
.tl-dominio__foto { overflow: hidden; border-radius: 12px; background: #eceef1; }
.tl-dominio__foto img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 88%; }

/* --- Redes: el producto etiquetado en una publicación ------------------------ */
.tl-redes { display: grid; flex: 1; align-items: end; justify-items: center; margin-top: 34px; }
.tl-post { width: min(100%, 264px); overflow: hidden; border-radius: 20px 20px 0 0; }
.tl-post__cabeza { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12.5px; }
.tl-post__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #9a5b3f; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #c7c7cc; font-family: var(--tl-serif); font-size: 15px; font-weight: 600; color: #fff; }
.tl-post__cabeza b { font-weight: 600; }
.tl-post__mas { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: #8e8e93; }
.tl-post__foto { position: relative; aspect-ratio: 1; background: #ece4da; }
.tl-post__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }
.tl-post__punto { position: absolute; top: 58%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); }
.tl-post__etiqueta {
  position: absolute;
  top: 58%;
  left: 50%;
  display: grid;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(29, 29, 31, 0.88);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  transform: translate(-50%, calc(-100% - 15px));
  transform-origin: 50% 100%;
}
.tl-post__etiqueta::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: rgba(29, 29, 31, 0.88); }
.tl-post__etiqueta b { font-weight: 600; }
.tl-post__pie { display: flex; align-items: center; gap: 14px; padding: 10px 12px 16px; }
.tl-post__pie svg { width: 21px; height: 21px; fill: none; stroke: #1d1d1f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl-post__ver { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: var(--fondo); font-size: 11.5px; font-weight: 600; }

/* --- Migración: la tienda de hoy sigue vendiendo mientras todo pasa ------- */
.tl-b--migra { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 28px 56px; padding: 44px; }
.tl-b--migra .tl-b__copia { max-width: 17em; font-size: 21px; }
.tl-migra { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.2fr); align-items: center; }
.tl-migra__tienda { display: grid; gap: 10px; padding: 18px; border-radius: 20px; }
.tl-migra__rotulo { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.tl-migra__vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #248a3d; }
.tl-migra__vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.tl-migra__fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tl-migra__fotos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 88%; border-radius: 8px; background: #eceef1; }
.tl-migra__flujo { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, #c7c7cc 0 4px, transparent 4px 9px); }
.tl-migra__flujo i { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--azul); opacity: 0; }
.tl-migra__lista { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tl-migra__lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 7px 8px; font-size: 13.5px; }
.tl-migra__lista b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-migra__lista .tl-ico { width: 18px; height: 18px; padding: 2.5px; border-radius: 50%; background: var(--azul); stroke: #fff; stroke-width: 2.8; }
.tl-migra__barra { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(var(--azul) 0 0) 0 0 / 100% 100% no-repeat, var(--linea-suave); }

/* --- Lo que se mueve en los bloques ------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Lo que se repite, solo mientras el bloque se ve */
  .tl-b:not(.en-vista) .tl-comision__ondas i,
  .tl-b:not(.en-vista) .tl-envio *,
  .tl-b:not(.en-vista) .tl-migra__flujo i,
  .tl-b:not(.en-vista) .tl-migra__vivo::before,
  .tl-b:not(.en-vista) .tl-post__punto,
  .tl-b:not(.en-vista) .tl-dominio__cursor { animation-play-state: paused; }

  /* Sin comisión: las ondas del charco */
  .tl-b--comision.visible .tl-comision__ondas i { animation: tl-charco 3.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
  .tl-b--comision.visible .tl-comision__ondas i:nth-child(2) { animation-delay: 1.2s; }
  .tl-b--comision.visible .tl-comision__ondas i:nth-child(3) { animation-delay: 2.4s; }

  /* Cobros: el círculo y el tilde se dibujan, después el monto */
  .js .tl-cobro__ok circle,
  .js .tl-cobro__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .tl-b--cobros.visible .tl-cobro__ok circle { animation: tl-trazo 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards; }
  .js .tl-b--cobros.visible .tl-cobro__ok path { animation: tl-trazo 0.4s ease-out 1.2s forwards; }
  .tl-b--cobros.visible .tl-cobro__estado,
  .tl-b--cobros.visible .tl-cobro__monto,
  .tl-b--cobros.visible .tl-cobro__medio { animation: tl-asoma 0.7s var(--curva) 1.3s backwards; }
  .tl-b--cobros.visible .tl-cobro__monto { animation-delay: 1.4s; }
  .tl-b--cobros.visible .tl-cobro__medio { animation-delay: 1.5s; }

  /* Factura: el papel sale de la ranura y después el aviso de que se mandó */
  .tl-b--factura.visible .tl-factura__papel { animation: tl-imprime 1.9s cubic-bezier(0.3, 0.7, 0.25, 1) 0.4s backwards; }
  .tl-b--factura.visible .tl-factura__enviada { animation: tl-salta 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s backwards; }

  /* Envíos: el paquete va de «Etiqueta lista» a «Entregado», una y otra vez
     (en cada vuelta, otro correo del país: js/tiendas.js) */
  .tl-b--envios.visible .tl-envio__avance { animation: tl-avance 7s ease-in-out infinite; }
  .tl-b--envios.visible .tl-envio__paquete { animation: tl-paquete 7s ease-in-out infinite; }
  .tl-b--envios.visible .tl-envio__parada:nth-of-type(3) { animation: tl-parada-medio 7s linear infinite; }
  .tl-b--envios.visible .tl-envio__parada:nth-of-type(4) { animation: tl-parada-fin 7s linear infinite; }
  .tl-b--envios.visible .tl-envio__llego { animation: tl-llego 7s linear infinite; }

  /* Panel: baja el aviso, entra el pedido arriba de la lista y la cuenta pasa a 13 */
  .tl-b--panel.visible .tl-panel__aviso { animation: tl-aviso 3.6s var(--curva) 0.7s both; }
  .tl-b--panel.visible .tl-panel__nuevo { animation: tl-fila 0.7s var(--curva) 1.5s backwards, tl-resalta 2.4s ease-out 2s backwards; }
  .tl-b--panel.visible .tl-panel__cuenta span { animation: tl-cuenta 0.5s var(--curva) 1.6s backwards; }

  /* Dominio: el cursor titila; la tienda carga cuando termina de escribirse
     (.tl-escribe la pone js/tiendas.js si va a escribir; .cargada, al terminar) */
  .tl-b--dominio.visible .tl-dominio__cursor { opacity: 1; animation: tl-titila 1.05s steps(1) infinite; }
  .tl-escribe:not(.cargada) .tl-dominio__foto img { opacity: 0; transform: scale(0.94); }
  .tl-escribe:not(.cargada) .tl-dominio__marca { opacity: 0; }
  .tl-escribe .tl-dominio__foto img,
  .tl-escribe .tl-dominio__marca { transition: opacity 0.6s var(--curva) calc(var(--n, 0) * 90ms), transform 0.7s var(--curva) calc(var(--n, 0) * 90ms); }

  /* Redes: la etiqueta del producto aparece y el punto late */
  .tl-b--redes.visible .tl-post__etiqueta { animation: tl-etiqueta 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s backwards; }
  .tl-b--redes.visible .tl-post__punto { animation: tl-late 2.4s var(--curva) 1.6s infinite; }

  /* Migración: las barras se llenan, los puntos viajan y la de hoy sigue viva */
  .tl-b--migra.visible .tl-migra__barra { animation: tl-llena 1.6s cubic-bezier(0.4, 0, 0.2, 1) calc(0.5s + var(--n, 0) * 0.35s) backwards; }
  .tl-b--migra.visible .tl-migra__lista .tl-ico { animation: tl-salta 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(2.1s + var(--n, 0) * 0.35s) backwards; }
  .tl-b--migra.visible .tl-migra__flujo i { animation: tl-viaja 1.8s linear infinite; }
  .tl-b--migra.visible .tl-migra__flujo i:nth-child(2) { animation-delay: 0.6s; }
  .tl-b--migra.visible .tl-migra__flujo i:nth-child(3) { animation-delay: 1.2s; }
  .tl-b--migra.visible .tl-migra__vivo::before { animation: tl-vivo 2s ease-out infinite; }
}
@keyframes tl-charco {
  from { opacity: 0.95; transform: scale(0.12); }
  to   { opacity: 0; transform: scale(1.15); }
}
@keyframes tl-asoma { from { opacity: 0; transform: translateY(8px); } }
@keyframes tl-imprime { from { transform: translateY(102%); } }
@keyframes tl-salta { from { opacity: 0; transform: scale(0.6); } }
@keyframes tl-avance {
  0%, 8%    { transform: scaleX(0); }
  62%, 100% { transform: scaleX(1); }
}
@keyframes tl-paquete {
  0%, 8%    { left: 0; }
  62%, 100% { left: 100%; }
}
@keyframes tl-parada-medio {
  0%, 34%   { background: #c7c7cc; }
  36%, 100% { background: var(--azul); }
}
@keyframes tl-parada-fin {
  0%, 61%   { background: #c7c7cc; }
  63%, 100% { background: var(--azul); }
}
@keyframes tl-llego {
  0%, 62% { opacity: 0; transform: scale(0.7); }
  67%, 94% { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: none; }
}
@keyframes tl-aviso {
  0%   { visibility: visible; opacity: 0; transform: translateY(-130%) scale(0.95); }
  14%  { opacity: 1; transform: none; }
  82%  { opacity: 1; transform: none; }
  100% { visibility: hidden; opacity: 0; transform: translateY(-50%) scale(0.95); }
}
@keyframes tl-fila { from { max-height: 0; padding-block: 0; opacity: 0; } to { max-height: 60px; } }
@keyframes tl-resalta { from { box-shadow: 0 0 0 100vmax rgba(0, 113, 227, 0.1) inset; } to { box-shadow: 0 0 0 100vmax rgba(0, 113, 227, 0) inset; } }
@keyframes tl-cuenta { from { transform: none; } }
@keyframes tl-titila { 50% { opacity: 0; } }
@keyframes tl-etiqueta { from { opacity: 0; transform: translate(-50%, calc(-100% - 15px)) scale(0.5); } }
@keyframes tl-late {
  0%   { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%, 100% { box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3), 0 0 0 12px rgba(255, 255, 255, 0); }
}
@keyframes tl-llena { from { background-size: 0 100%, auto; } }
@keyframes tl-viaja {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes tl-vivo {
  from { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); }
  to   { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
}

/* --- Conectada con: los logos del país, en tres grupos ----------------------- */
.tl-conecta {
  margin-top: 16px;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 28px;
  background: var(--fondo);
}
.tl-conecta__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.tl-conecta__titulo { font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; line-height: 1.18; letter-spacing: -0.022em; }
.tl-conecta__grupos {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 28px clamp(24px, 3vw, 40px);
  margin-top: 30px;
}
.tl-conecta__rotulo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--texto-2); }
.tl-conecta__rotulo .tl-ico { width: 20px; height: 20px; }
.tl-conecta__logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.tl-conecta__logo {
  display: grid;
  place-items: center;
  width: 120px;
  height: 68px;
  border-radius: 16px;
  background: var(--blanco);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
}
.tl-conecta__logo img { display: block; width: 100px; height: 50px; object-fit: contain; }
/* LATAM: un lugar libre para lo de tu país */
.tl-conecta__logo--libre {
  display: flex;
  gap: 8px;
  width: auto;
  min-width: 120px;
  max-width: 236px;
  padding: 0 18px;
  border: 1.5px dashed rgba(0, 0, 0, 0.16);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.3;
  color: var(--texto-2);
}
.tl-conecta__logo--libre .tl-ico { flex: none; width: 20px; height: 20px; stroke: var(--texto-3); }
.tl-conecta__nota { max-width: 44em; margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--texto-2); }

/* --- La tienda de ejemplo, adentro de un teléfono -------------------------- */
.tl-ejemplo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.tl-ejemplo__acciones { margin-top: 28px; }
.tl-boton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 980px;
  background: var(--azul);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--curva);
}
.tl-boton:hover { background: var(--azul-hover); }
.tl-boton:active { transform: scale(0.98); }
.tl-tel {
  position: relative;
  display: block;
  width: 340px;
  height: 700px;
  padding: 11px;
  border-radius: 54px;
  background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #48484a, 0 0 0 4px #1d1d1f, 0 40px 90px rgba(0, 0, 0, 0.22);
  transition: transform 0.5s var(--curva);
}
.tl-tel:hover { transform: translateY(-6px); }
/* El marco es para mirar: los toques van al link, que abre la tienda entera.
   Al cambiar de país la pantalla se apaga un instante y vuelve con la tienda
   de ese país (js/tiendas.js). */
.tl-tel iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 43px; background: #fff; pointer-events: none; transition: opacity 0.25s ease; }
.tl-tel iframe.tl-tel__cambiando { opacity: 0; }
.tl-tel__isla { position: absolute; z-index: 1; top: 22px; left: 50%; width: 31%; height: 28px; border-radius: 20px; background: #000; transform: translateX(-50%); }

/* --- La migración: cuatro pasos (la portada tiene cinco) -------------------- */
.tl-proceso { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-proceso::before,
.tl-proceso::after { right: calc(25% - 4px); }

@media (max-width: 1068px) {
  /* Qué incluye, de a dos: el panel (alto) al lado de la factura y de las redes */
  .tl-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "diseno   diseno"
      "comision cobros"
      "factura  panel"
      "redes    panel"
      "envios   envios"
      "dominio  dominio"
      "migra    migra";
  }
  .tl-b--migra { grid-template-columns: minmax(0, 1fr); }
  .tl-b--migra .tl-b__copia { max-width: 24em; }
  /* Cobros y Factura arriba; Envíos, que tiene más logos, abajo a lo ancho */
  .tl-conecta__grupos { grid-template-columns: auto minmax(0, 1fr); }
  .tl-conecta__grupo:last-child { grid-column: 1 / -1; }
  /* La línea de los pasos pasa a ser vertical (css/studio.css): sin el «right» de arriba */
  .tl-proceso { grid-template-columns: minmax(0, 1fr); }
  .tl-proceso::before,
  .tl-proceso::after { right: auto; }
}
@media (max-width: 834px) {
  .tl-ejemplo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tl-ejemplo__texto { justify-self: stretch; }
  .tl-tel { width: min(300px, 82vw); height: calc(min(300px, 82vw) * 2.06); border-radius: 48px; }
  .tl-tel iframe { border-radius: 38px; }
}
/* Qué incluye en el celular: uno abajo del otro, en el orden del HTML */
@media (max-width: 734px) {
  .tl-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 12px; }
  .tl-bento > .tl-b { grid-area: auto; min-height: 0; padding: 30px 24px 0; border-radius: 24px; }
  .tl-b__copia { font-size: 17px; }
  /* La tienda, más chica: el celular adelante y la compu atrás, cortada */
  .tl-bento > .tl-b--diseno { min-height: 445px; }
  .tl-diseno { right: auto; left: 10px; bottom: -2.6em; font-size: 6.4px; }
  .tl-bento > .tl-b--comision { padding-bottom: 24px; }
  .tl-comision__cifra { font-size: 132px; }
  .tl-comision__de { font-size: 22px; }
  .tl-cobro { padding: 36px 0 30px; }
  .tl-factura { min-height: 250px; margin-inline: -24px; }
  .tl-envio { margin-bottom: 24px; padding: 18px 16px 16px; }
  .tl-envio__correo { width: 66px; height: 42px; }
  .tl-envio__correo img { width: 56px; height: 28px; }
  /* «Entregado»: solo el tilde, para que entre en el renglón */
  .tl-envio__llego { padding: 4px; font-size: 0; }
  .tl-envio__pasos { font-size: 11.5px; }
  .tl-panel { min-height: 500px; }
  .tl-dominio__barra { gap: 8px; height: 50px; padding: 0 16px; border-radius: 15px; font-size: 18px; }
  .tl-dominio__barra .tl-ico { width: 17px; height: 17px; }
  .tl-dominio__cursor { width: 2px; height: 22px; margin-left: -6px; }
  .tl-dominio__pagina { gap: 8px; height: 150px; padding: 16px 14px 0; }
  .tl-redes { margin-top: 28px; }
  .tl-bento > .tl-b--migra { gap: 24px; padding: 30px 24px; }
  .tl-b--migra .tl-b__copia { font-size: 17px; }
  /* La migración, de arriba abajo: los puntos bajan de una tienda a la otra */
  .tl-migra { grid-template-columns: minmax(0, 1fr); }
  .tl-migra__flujo { width: 2px; height: 46px; margin: 0 auto; background: repeating-linear-gradient(180deg, #c7c7cc 0 4px, transparent 4px 9px); }
  .tl-migra__flujo i { top: 50%; left: 50%; }
  .tl-b--migra.visible .tl-migra__flujo i { animation-name: tl-baja; }
}
@keyframes tl-baja {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (max-width: 640px) {
  /* Conectada con: los botones del país a lo ancho y los logos de a dos */
  .tl-conecta__cabeza .tl-paises { display: grid; width: 100%; }
  .tl-conecta__cabeza .tl-paises__opcion { padding-inline: 8px; }
  .tl-conecta__grupos { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 24px; }
  .tl-conecta__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-conecta__logo { width: auto; height: 64px; }
  .tl-conecta__logo img { width: 96px; height: 48px; }
  .tl-conecta__logo--libre { max-width: none; justify-content: center; padding: 0 12px; text-align: left; }
  .tl-conecta__logo--solo { grid-column: 1 / -1; }
}
/* Los tres botones de la portada tienen que entrar en el ancho del celular */
@media (max-width: 400px) {
  .tl-paises__opcion { padding-inline: 13px; }
  .tl-sin-comision { gap: 10px; padding: 7px 18px 7px 7px; font-size: 16.5px; }
  .tl-sin-comision__tilde { width: 29px; height: 29px; }
  .tl-sin-comision__tilde svg { width: 16px; height: 16px; }
}
@media (max-width: 350px) {
  .tl-paises__opcion { padding-inline: 9px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tel, .tl-boton, .tl-tel iframe { transition: none; }
  .tl-tel:hover { transform: none; }
  .tl-paises__marca, .tl-paises__opcion { transition: none; }
  .tl-entra { animation: none; }
  /* «Sin comisión por venta», quieta: la luz se queda en una esquina */
  .tl-sin-comision::before,
  .tl-sin-comision::after,
  .tl-sin-comision__onda,
  .tl-sin-comision__tilde,
  .tl-sin-comision__tilde path,
  .tl-sin-comision__texto { animation: none; }
  .tl-diseno__marca, .tl-diseno__aviso, .tl-diseno__bolsa, .tl-diseno__boton, .tl-diseno__grilla b,
  .tl-colores__boton::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tl-sin-comision { background: #26272b; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tl-panel__aviso { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tl-paises--oscuro { background: #26272b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
