:root {
  --fondo: #ffffff;
  --tarjeta: #ffffff;
  --texto: #161616;
  --suave: #6b6b6b;
  --borde: #ebebeb;
  --primario: #c8102e;
  --primario-claro: #fdecef;
  --terracota: #c8102e;
  --ok: #2f6b3f;
  --ok-claro: #e7f1e8;
  --alerta: #9a5a12;
  --alerta-claro: #fbf0dc;
  --error: #a3261c;
  --error-claro: #f8e5e1;
  --radio: 12px;
  --sombra: 0 1px 0 rgba(40, 30, 10, .04);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #121212; --tarjeta: #1b1b1b; --texto: #f2f2f2; --suave: #a3a3a3; --borde: #2c2c2c;
    --primario: #ff5c6e; --primario-claro: #3a1a1f; --terracota: #ff5c6e; --ok-claro: #18291c; --alerta-claro: #33260f; --error-claro: #3a1a16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #121212; --tarjeta: #1b1b1b; --texto: #f2f2f2; --suave: #a3a3a3; --borde: #2c2c2c;
  --primario: #ff5c6e; --primario-claro: #3a1a1f; --terracota: #ff5c6e; --ok-claro: #18291c; --alerta-claro: #33260f; --error-claro: #3a1a16;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 16px/1.55 var(--sans);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5rem; font-optical-sizing: auto; }
h3 { line-height: 1.25; margin: 0 0 .5rem; font-size: 1rem; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.2rem; }
p { margin: 0 0 .75rem; }
a { color: var(--primario); }

.barra {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: color-mix(in srgb, var(--fondo) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.marca { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--primario); color: #fff; font-weight: 700; font-size: .8rem; }
.demo { font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 99px; background: var(--alerta-claro); color: var(--alerta); }

main { max-width: 640px; margin: 0 auto; padding: 16px; outline: none; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.suave { color: var(--suave); font-size: .9rem; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.rejilla { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--texto); background: var(--tarjeta);
  border: 1px solid var(--borde); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--primario); outline-offset: 1px; }
input[type="color"] { padding: 4px; height: 44px; }
input[type="checkbox"] { width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--borde); background: var(--tarjeta);
  color: var(--texto); font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primario { background: var(--primario); border-color: var(--primario); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.peligro { color: var(--error); }
.btn.ancho { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.fb { background: #1877f2; border-color: #1877f2; color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--primario-claro); color: var(--primario); }
.chip.ok { background: var(--ok-claro); color: var(--ok); }
.chip.alerta { background: var(--alerta-claro); color: var(--alerta); }
.chip.error { background: var(--error-claro); color: var(--error); }

.caja { border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: .92rem; }
.caja.info { background: var(--primario-claro); }
.caja.alerta { background: var(--alerta-claro); }
.caja.error { background: var(--error-claro); }
.caja.ok { background: var(--ok-claro); }

.pasos { display: flex; gap: 6px; margin-bottom: 14px; }
.pasos span { flex: 1; height: 5px; border-radius: 99px; background: var(--borde); }
.pasos span.hecho { background: var(--primario); }

.opciones { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.opcion { border: 2px solid var(--borde); border-radius: 12px; padding: 6px; background: var(--tarjeta); cursor: pointer; text-align: center; font-size: .8rem; color: var(--texto); font: inherit; font-size: .8rem; }
.opcion[aria-pressed="true"] { border-color: var(--primario); }

/* Plantillas de publicación (sistema de ADN visual: variables por pieza) */
.pieza { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: var(--neutro) center / cover no-repeat; container-type: inline-size; font-family: var(--txt); text-align: left; }
.pieza .tit { font-family: var(--tit); font-weight: var(--peso); line-height: 1.08; font-size: calc(7.4cqw * var(--esc)); letter-spacing: -.01em; text-wrap: balance; }
.pieza .tit { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.pieza.may .tit { text-transform: uppercase; letter-spacing: .06em; font-size: calc(5.2cqw * var(--esc)); line-height: 1.18; }
.p-oferta .tit, .p-minimal .tit, .p-galeria .tit, .p-arco .tit { -webkit-line-clamp: 2; }
.p-evento .tit, .p-dividida .tit { -webkit-line-clamp: 4; }
.pieza .versal { font-family: var(--txt); text-transform: uppercase; letter-spacing: .22em; font-size: 2.5cqw; font-weight: 500; opacity: .92; }
.pieza .tinta { color: var(--tinta); }
.pieza .tinta .orn { color: var(--acento); }
.pieza .claro { color: #fff; }
.pieza .foto { background: center / cover no-repeat; }
.pieza .velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.62)); }
.pieza .txt { position: absolute; display: flex; flex-direction: column; gap: 2.4cqw; }

/* Adornos */
.orn { display: block; flex: none; }
.orn-hilo { width: 12cqw; height: 1px; background: currentColor; }
.orn-doble { width: 12cqw; height: 4px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.orn-punto { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: currentColor; }

/* Formas de la foto */
.forma-recto .mascara { border-radius: 0; }
.forma-suave .mascara { border-radius: 3cqw; }
.forma-arco .mascara { border-radius: 999px 999px 0 0; }
.forma-circulo .mascara { border-radius: 50%; aspect-ratio: 1; height: auto !important; }

/* Clásica */
.p-clasica .txt { left: 7cqw; right: 7cqw; bottom: 7cqw; }
/* Galería */
.p-galeria .foto { position: absolute; left: 8cqw; right: 8cqw; top: 8cqw; height: 58cqw; }
.forma-circulo.p-galeria .foto { left: 23cqw; right: 23cqw; top: 6cqw; width: 54cqw; }
.p-galeria .txt { left: 8cqw; right: 8cqw; bottom: 7cqw; align-items: center; text-align: center; gap: 2cqw; }
.p-galeria .tit { font-size: calc(6cqw * var(--esc)); }
/* Editorial */
.p-editorial .txt { left: 7cqw; top: 8cqw; width: 46cqw; }
.p-editorial .tit { font-size: calc(8.4cqw * var(--esc)); }
.p-editorial .foto { position: absolute; right: 7cqw; bottom: 7cqw; width: 40cqw; height: 58cqw; }
.forma-circulo.p-editorial .foto { width: 44cqw; }
/* Dividida */
.p-dividida .txt { left: 6cqw; top: 0; bottom: 0; width: 40cqw; justify-content: center; }
.p-dividida .tit { font-size: calc(6.6cqw * var(--esc)); }
.p-dividida .foto { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
/* Minimal */
.p-minimal .velo { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)); }
.p-minimal .txt { left: 0; right: 0; bottom: 6cqw; align-items: center; text-align: center; gap: 1.6cqw; }
.p-minimal .tit { font-size: calc(5cqw * var(--esc)); max-width: 80%; }
/* Arco */
.p-arco .foto { position: absolute; left: 22cqw; right: 22cqw; top: 7cqw; height: 58cqw; }
.forma-recto.p-arco .foto, .forma-suave.p-arco .foto { border-radius: 999px 999px 0 0; }
.forma-circulo.p-arco .foto { left: 21cqw; width: 58cqw; top: 5cqw; }
.p-arco .txt { left: 8cqw; right: 8cqw; bottom: 6cqw; align-items: center; text-align: center; gap: 1.8cqw; }
.p-arco .tit { font-size: calc(5.6cqw * var(--esc)); }
/* Oferta */
.p-oferta .velo { background: rgba(0,0,0,.38); }
.p-oferta .sello-o { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 40cqw; height: 40cqw; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 1cqw; }
.p-oferta .cifra { font-family: var(--tit); font-weight: var(--peso); font-size: calc(10cqw * var(--esc)); line-height: 1; }
.p-oferta .txt { left: 8cqw; right: 8cqw; bottom: 7cqw; align-items: center; text-align: center; }
.p-oferta .tit { font-size: calc(5.2cqw * var(--esc)); }
/* Marco fino */
.p-fino .velo { background: rgba(0,0,0,.34); }
.p-fino .borde { position: absolute; inset: 5cqw; border: 1px solid rgba(255,255,255,.8); }
.p-fino .txt { inset: 0; align-items: center; justify-content: center; text-align: center; padding: 0 14cqw; }
/* Novedad */
.p-novedad .nuevo { position: absolute; left: 7cqw; top: 7cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.p-novedad .txt { left: 7cqw; right: 7cqw; bottom: 7cqw; }
/* Evento */
.p-evento .txt { left: 7cqw; top: 7cqw; bottom: 7cqw; width: 38cqw; justify-content: flex-end; gap: 1.8cqw; }
.p-evento .dia { font-family: var(--tit); font-weight: var(--peso); font-size: 22cqw; line-height: .85; }
.p-evento .tit { font-size: calc(5.4cqw * var(--esc)); }
.p-evento .versal.peq { font-size: 2.1cqw; }
.p-evento .foto { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; }
.forma-suave.p-evento .foto { right: 5cqw; top: 5cqw; bottom: 5cqw; width: 46%; }
.forma-arco.p-evento .foto { right: 5cqw; top: 5cqw; bottom: 0; width: 46%; }
.forma-circulo.p-evento .foto { right: 5cqw; top: 22cqw; bottom: auto; width: 48%; }


/* Espejo: invierte la composición de los diseños nuevos */
.pieza.espejo { direction: rtl; }
.pieza.espejo .tit, .pieza.espejo .versal, .pieza.espejo .tiza, .pieza.espejo .cifra, .pieza.espejo .dia, .pieza.espejo .cta { direction: ltr; }

/* Portada (revista) */
.p-revista .cabecera { position: absolute; inset-inline: 6cqw; top: 4cqw; font-family: var(--tit); font-weight: var(--peso); font-size: 9cqw; line-height: 1; text-align: center; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-revista .foto { position: absolute; inset-inline: 6cqw; top: 16cqw; height: 52cqw; }
.p-revista .txt { inset-inline-start: 6cqw; inset-inline-end: 6cqw; bottom: 5cqw; gap: 1.2cqw; }
.p-revista .tit { font-size: calc(5.6cqw * var(--esc)); -webkit-line-clamp: 2; }

/* Columnas */
.p-columnas .txt { inset-inline-start: 7cqw; top: 9cqw; bottom: 9cqw; width: 42cqw; justify-content: space-between; }
.p-columnas .tit { font-size: calc(7cqw * var(--esc)); -webkit-line-clamp: 5; }
.p-columnas .col-foto { position: absolute; inset-inline-end: 7cqw; top: 9cqw; bottom: 9cqw; width: 36cqw; }
.p-columnas .col-foto .foto { width: 100%; height: 100%; }
.p-columnas .regla { position: absolute; inset-inline-start: 52.5cqw; top: 9cqw; bottom: 9cqw; width: 1px; background: var(--acento); opacity: .4; }

/* Ventana (lujo) */
.p-ventana .foto { position: absolute; left: 30cqw; right: 30cqw; top: 8cqw; height: 62cqw; }
.p-ventana .lado { position: absolute; top: 40cqw; writing-mode: vertical-rl; font-size: 2.3cqw; }
.p-ventana .lado.izq { left: 14cqw; transform: rotate(180deg); }
.p-ventana .lado.der { right: 14cqw; }
.p-ventana .txt { left: 10cqw; right: 10cqw; bottom: 7cqw; align-items: center; text-align: center; }
.p-ventana .tit { font-size: calc(5.4cqw * var(--esc)); -webkit-line-clamp: 2; }

/* Monograma */
.p-monograma .letra { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--tit); font-size: 95cqw; line-height: 1; color: var(--acento); opacity: .09; }
.p-monograma .txt { inset: 0; align-items: center; justify-content: center; text-align: center; padding: 0 14cqw; gap: 3cqw; }
.p-monograma .tit { font-size: calc(7.6cqw * var(--esc)); }

/* Póster */
.p-poster .txt { inset-inline: 6cqw; top: 6cqw; height: 46cqw; justify-content: flex-end; color: #fff; }
.p-poster .tit { font-size: calc(10.5cqw * var(--esc)); line-height: .98; text-transform: uppercase; letter-spacing: -.01em; -webkit-line-clamp: 4; }
.p-poster .foto { position: absolute; inset-inline: 6cqw; bottom: 12cqw; height: 34cqw; }
.p-poster .pie-p { position: absolute; inset-inline: 6cqw; bottom: 5cqw; color: #fff; }

/* Bloque */
.p-bloque .caja-b { position: absolute; inset-inline-start: 0; top: 10cqw; width: 64cqw; padding: 6cqw 7cqw; background: var(--c1); color: #fff; display: flex; flex-direction: column; gap: 2.4cqw; }
.p-bloque .tit { font-size: calc(7.4cqw * var(--esc)); }

/* Lateral */
.p-lateral .banda-l { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 16cqw; background: var(--c1); display: grid; place-items: center; }
.p-lateral .banda-l span { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-family: var(--tit); font-weight: var(--peso); font-size: 6cqw; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.p-lateral .foto { position: absolute; inset-inline-start: 16cqw; inset-inline-end: 0; top: 0; bottom: 0; }
.p-lateral .txt { inset-inline-start: 22cqw; inset-inline-end: 6cqw; bottom: 6cqw; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.p-lateral .tit { font-size: calc(7.6cqw * var(--esc)); }

/* Burbuja */
.p-burbuja .blob { position: absolute; inset-inline-end: 6cqw; top: 8cqw; width: 70cqw; height: 66cqw; border-radius: 58% 42% 51% 49% / 46% 55% 45% 54%; }
.p-burbuja .pegatina { position: absolute; inset-inline-start: 5cqw; bottom: 9cqw; max-width: 62cqw; background: #fff; color: var(--c1); padding: 3.4cqw 5cqw; border-radius: 99px; transform: rotate(-4deg); box-shadow: 0 1.5cqw 0 var(--c1); }
.p-burbuja .tit { font-size: calc(5.4cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-burbuja .marca-b { position: absolute; inset-inline-start: 7cqw; top: 6cqw; color: var(--c1); }

/* Sticker */
.p-sticker .puntos { position: absolute; inset: 0; background-image: radial-gradient(var(--acento) 0.7cqw, transparent 0.8cqw); background-size: 7cqw 7cqw; opacity: .18; }
.p-sticker .foto { position: absolute; left: 12cqw; right: 12cqw; top: 10cqw; height: 60cqw; border: 2.4cqw solid #fff; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.18); transform: rotate(2.5deg); }
.p-sticker .etq { position: absolute; inset-inline-start: 7cqw; bottom: 9cqw; max-width: 70cqw; background: var(--c2); color: var(--c1); padding: 2.6cqw 4.4cqw; transform: rotate(-3deg); border-radius: 2cqw; }
.p-sticker .tit { font-size: calc(5.6cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-sticker .marca-s { position: absolute; inset-inline-end: 7cqw; bottom: 4cqw; color: var(--tinta); font-size: 2.2cqw; }

/* Mosaico */
.p-mosaico { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.4cqw; padding: 1.4cqw; }
.p-mosaico .m { background: center / cover no-repeat; border-radius: 1cqw; }
.forma-recto .m { border-radius: 0; }
.p-mosaico .m1 { background-position: 20% 30%; background-size: 180%; }
.p-mosaico .m2 { background-position: 80% 40%; background-size: 220%; }
.p-mosaico .m3 { background-position: 50% 80%; background-size: 160%; }
.p-mosaico .mt { background: var(--c1); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqw; padding: 4cqw; }
.p-mosaico .tit { font-size: calc(5cqw * var(--esc)); }
.p-mosaico .versal { font-size: 1.9cqw; }

/* Cita */
.p-cita .comillas { position: absolute; inset-inline-start: 6cqw; top: -4cqw; font-family: var(--tit); font-size: 46cqw; line-height: 1; color: var(--acento); opacity: .25; }
.p-cita .txt { inset-inline-start: 9cqw; inset-inline-end: 9cqw; top: 24cqw; gap: 3cqw; }
.p-cita .tit { font-size: calc(7cqw * var(--esc)); font-style: italic; }
.p-cita .mini-c { position: absolute; inset-inline-end: 9cqw; bottom: 8cqw; width: 18cqw; height: 18cqw; border-radius: 50%; }

/* Pizarra */
.p-pizarra { background: radial-gradient(circle at 30% 20%, #3a3f3d, #232725 70%) !important; }
.p-pizarra .txt { inset-inline: 8cqw; top: 9cqw; color: #f1ede4; gap: 3cqw; }
.p-pizarra .tiza { font-family: 'Caveat', 'Comic Sans MS', cursive; font-size: 11cqw; line-height: 1; color: #f8f5ee; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.p-pizarra .orn { color: var(--c2); width: 20cqw; height: 2px; }
.p-pizarra .redonda { position: absolute; inset-inline-end: 7cqw; bottom: 7cqw; width: 38cqw; height: 38cqw; border-radius: 50%; border: 1.4cqw solid #f1ede4; }

/* Kraft */
.p-kraft { background: #c9a57c repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px) !important; }
.p-kraft .foto-k { position: absolute; left: 13cqw; right: 13cqw; top: 9cqw; height: 52cqw; background: center / cover no-repeat; border: 2cqw solid #fffaf2; transform: rotate(-2deg); box-shadow: 0 1.5cqw 4cqw rgba(60,35,10,.3); }
.p-kraft .cinta { position: absolute; width: 18cqw; height: 5cqw; background: rgba(255,250,235,.7); }
.p-kraft .c1 { top: -3cqw; left: -4cqw; transform: rotate(-30deg); }
.p-kraft .c2 { bottom: -3cqw; right: -4cqw; transform: rotate(-30deg); }
.p-kraft .txt { inset-inline: 8cqw; bottom: 6cqw; align-items: center; text-align: center; gap: 1cqw; color: #3b2412; }
.p-kraft .tiza { font-family: 'Caveat', 'Comic Sans MS', cursive; font-size: 9.5cqw; line-height: 1; color: #3b2412; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Sello */
.p-sello .velo { background: rgba(0,0,0,.42); }
.p-sello .estampa { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); width: 64cqw; height: 64cqw; border-radius: 50%; border: 1.2cqw double #fff; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.4cqw; padding: 9cqw; }
.p-sello .tit { font-size: calc(6.4cqw * var(--esc)); -webkit-line-clamp: 3; }

/* Ficha */
.p-ficha .foto { position: absolute; left: 0; right: 0; top: 0; height: 44cqw; }
.p-ficha .txt { inset-inline: 7cqw; top: 50cqw; bottom: 6cqw; gap: 2cqw; }
.p-ficha .tit { font-size: calc(6cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-ficha ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.2cqw; font-size: 3.2cqw; }
.p-ficha li { display: flex; gap: 2cqw; align-items: center; }
.p-ficha li::before { content: ""; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--acento); flex: none; }
.p-ficha .versal { margin-top: auto; }
/* Foto primero */
.pieza .capa-foto { position: absolute; inset: 0; background: center / cover no-repeat; }
.p-foto-precio .velo-suave { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(20,10,4,.72)); }
.p-foto-precio .txt { inset-inline-start: 6cqw; inset-inline-end: 34cqw; bottom: 6cqw; gap: 1.6cqw; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.p-foto-precio .tit { font-size: calc(7.6cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-foto-precio .precio { position: absolute; inset-inline-end: 6cqw; bottom: 6cqw; width: 22cqw; height: 22cqw; border-radius: 50%; background: var(--neutro); color: var(--tinta);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4cqw; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.25); }
.p-foto-precio .precio .versal { font-size: 1.9cqw; letter-spacing: .18em; }
.p-foto-precio .precio b { font-family: var(--tit); font-weight: var(--peso); font-size: 6.4cqw; line-height: 1; white-space: nowrap; }
.p-foto-cabecera .velo-arriba { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,8,3,.62), transparent 46%); }
.p-foto-cabecera .txt { inset-inline: 8cqw; top: 7cqw; align-items: center; text-align: center; gap: 1.8cqw; }
.p-foto-cabecera .tit { font-size: calc(8.4cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-foto-cabecera .precio-l { font-family: var(--tit); font-weight: var(--peso); font-size: 5.4cqw; padding: .8cqw 4cqw; border: 1px solid rgba(255,255,255,.75); border-radius: 99px; }

/* Vista del perfil (cuadrícula) */
.perfil-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 8px; overflow: hidden; }
.perfil-rejilla .pieza { border-radius: 0; }

/* Vista previa estilo red social */
.ig { border: 1px solid var(--borde); border-radius: 12px; background: var(--tarjeta); overflow: hidden; }
.ig .cab { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-weight: 600; font-size: .9rem; }
.ig .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 700; }
.ig .pie { padding: 10px 12px 14px; font-size: .92rem; white-space: pre-wrap; word-wrap: break-word; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around;
  background: var(--tarjeta); border-top: 1px solid var(--borde); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav button { flex: 1; background: none; border: 0; color: var(--suave); font: inherit; font-size: .72rem; display: grid; justify-items: center; gap: 2px; padding: 6px 0; cursor: pointer; min-height: 48px; }
.nav button svg { width: 22px; height: 22px; }
.nav button[aria-current="page"] { color: var(--primario); font-weight: 700; }

.modal { position: fixed; inset: 0; z-index: 10; background: rgba(10, 8, 30, .5); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .tarjeta { width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; }
.aviso { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; background: var(--texto); color: var(--fondo); padding: 10px 16px; border-radius: 99px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); text-align: center; }
.aviso.ver { opacity: 1; }

.lista { list-style: none; padding: 0; margin: 0; }
.lista li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.lista li:last-child { border-bottom: 0; }
.mini { width: 56px; flex: none; }
.cifra { font-size: 1.5rem; font-weight: 800; }
.cargando { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.cargando { animation-duration: .6s; }
@media (prefers-reduced-motion: reduce) { .cargando { animation: none; } .aviso { transition: none; } }
.selector { min-height: 38px; padding: 6px 12px; font-size: .88rem; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.avatar-mini { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 700; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn.paleta { min-height: 38px; padding: 6px 10px; font-size: .82rem; font-weight: 500; }
.btn.paleta[aria-pressed="true"] { border-color: var(--primario); box-shadow: 0 0 0 1px var(--primario); }
.muestra { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--borde); flex: none; }

.dos-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcion-ia { display: flex; flex-direction: column; gap: 8px; }
.opcion-ia .pie-op { font-size: .82rem; color: var(--suave); margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 360px) { .dos-opciones { grid-template-columns: 1fr; } }

/* Acceso y portada */
.hero { padding: 18px 2px 8px; display: grid; gap: 14px; }
.hero h1 { font-size: 1.9rem; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.hero p { font-size: 1.05rem; color: var(--suave); margin: 0; }
.hero .chip { justify-self: start; }
.btn.enlace { background: none; border: 0; color: var(--primario); padding: 8px 0; min-height: 40px; justify-content: flex-start; }
.pasos-portada { margin: 0; padding-left: 1.2rem; display: grid; gap: 12px; }
.pasos-portada li span { display: block; color: var(--suave); font-size: .92rem; }
details { border-top: 1px solid var(--borde); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--suave); }
.pie-portada { text-align: center; font-size: .85rem; color: var(--suave); padding: 10px 0 24px; }
.acceso { max-width: 440px; margin: 12px auto; }
.separador { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: .85rem; margin: 14px 0 0; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.icono-grande { font-size: 2.4rem; }

[hidden] { display: none !important; }

/* Identidad */
.logo { background: var(--primario); font-family: var(--serif); font-size: .95rem; font-weight: 600; letter-spacing: -.02em; border-radius: 8px; }
.demo { background: transparent; border: 1px solid var(--borde); color: var(--suave); letter-spacing: .12em; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: -.005em; }
.btn.primario { background: var(--primario); border-color: var(--primario); }
.tarjeta { box-shadow: none; }
.chip { background: var(--primario-claro); color: var(--primario); font-weight: 600; }
.icono { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-menu { background: none; border: 0; color: var(--texto); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.barra-dcha { display: flex; gap: 6px; align-items: center; }

/* Portada */
.hero h1 { font-size: 2.15rem; line-height: 1.06; }
.hero h1 em { font-style: italic; color: var(--terracota); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracota); }
.escaparate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.escaparate .ig { box-shadow: 0 10px 30px -18px rgba(40,30,10,.5); }
.escaparate .ig:nth-child(2) { transform: translateY(18px); }
.escaparate .pie { font-size: .74rem; padding: 8px 10px 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.escaparate .cab { font-size: .76rem; padding: 7px 9px; }
.escaparate .avatar { width: 22px; height: 22px; font-size: .6rem; }
.lista-portada { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lista-portada li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.lista-portada .num { font-family: var(--serif); font-size: 1.3rem; color: var(--terracota); line-height: 1.1; }
.lista-portada b { display: block; }
.lista-portada span { color: var(--suave); font-size: .93rem; }
.firma { font-family: var(--serif); font-style: italic; color: var(--suave); }

/* Menú lateral */
.cajon { position: fixed; inset: 0; z-index: 15; background: rgba(20,16,8,.42); display: flex; justify-content: flex-end; }
.cajon[hidden] { display: none; }
.cajon nav { width: min(330px, 88vw); height: 100%; background: var(--tarjeta); padding: 18px 16px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.cajon .item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 12px 10px; border-radius: 10px; font: inherit; color: var(--texto); cursor: pointer; }
.cajon .item small { display: block; color: var(--suave); font-size: .8rem; }
.cajon hr { border: 0; border-top: 1px solid var(--borde); margin: 8px 0; width: 100%; }

.entrada { min-height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; gap: 12px; max-width: 380px; margin: 0 auto; text-align: center; }
.entrada h1 { font-size: 2rem; margin: 6px 0 0; }
.entrada p { color: var(--suave); margin: 0 0 14px; }
.logo.grande { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; margin: 0 auto; color: #fff; display: grid; place-items: center; }
.btn.enlace.centro { justify-content: center; }

.logo-img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.logo-img.grande { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto; box-shadow: 0 10px 24px -12px rgba(200, 16, 46, .55); }
.logo-img { box-shadow: 0 0 0 1px var(--borde); }
.logo-img.grande { box-shadow: 0 0 0 1px var(--borde), 0 12px 28px -14px rgba(0, 0, 0, .25); }
.logo-img { box-shadow: none; }
.logo-img.grande { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 30px -16px rgba(200, 16, 46, .6); }
.entrada h1 { margin-top: 10px; }

.colores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.color { background: none; border: 0; padding: 4px 0; display: grid; justify-items: center; gap: 6px; font: inherit; font-size: .75rem; color: var(--suave); cursor: pointer; }
.color .bola { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--borde); }
.color[aria-pressed="true"] { color: var(--texto); font-weight: 600; }
.color[aria-pressed="true"] .bola { box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--primario); }

.colores.desliza { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; padding-bottom: 6px; margin: 0 -4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.colores.desliza::-webkit-scrollbar { display: none; }
.colores.desliza .color { flex: 0 0 23%; scroll-snap-align: start; }
.colores { grid-template-columns: repeat(5, 1fr); }
.color.bloqueado .bola { display: grid; place-items: center; background: var(--primario-claro); color: var(--primario); }
.color.bloqueado { color: var(--primario); }

/* Nombre del negocio más visible en todas las plantillas */
.pieza .versal { font-size: 3.4cqw; font-weight: 600; letter-spacing: .15em; opacity: 1; }
.pieza .claro .versal, .pieza .versal.claro { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.p-evento .versal.peq { font-size: 2.9cqw; }
.p-mosaico .versal { font-size: 2.7cqw; }
.p-ventana .lado { font-size: 3cqw; }
.p-sticker .marca-s { font-size: 2.9cqw; }
.p-foto-precio .precio .versal { font-size: 1.9cqw; text-shadow: none; }
.p-oferta .sello-o .versal { font-size: 2.6cqw; }
.pieza .versal { font-size: 4cqw; letter-spacing: .13em; }

/* Si hay foto, la foto manda: nunca un circulito */
.p-cita.con-foto .txt { inset-inline-end: 48cqw; top: 18cqw; }
.p-cita.con-foto .tit { font-size: calc(6cqw * var(--esc)); -webkit-line-clamp: 4; }
.p-cita.con-foto .mini-c { inset-inline-end: 0; top: 0; bottom: 0; width: 44%; height: auto; border-radius: 0; }
.forma-suave.p-cita.con-foto .mini-c, .forma-circulo.p-cita.con-foto .mini-c { inset-inline-end: 5cqw; top: 5cqw; bottom: 5cqw; border-radius: 4cqw; }
.forma-arco.p-cita.con-foto .mini-c { inset-inline-end: 5cqw; top: 5cqw; bottom: 0; border-radius: 999px 999px 0 0; }

.estilo-ia { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 14px 32px -20px rgba(0,0,0,.5); }
.puntos-estilo { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.puntos-estilo span { width: 7px; height: 7px; border-radius: 50%; background: var(--borde); }
.puntos-estilo span.activo { background: var(--primario); }

/* Logo del negocio */
.logo-perfil { display: flex; gap: 16px; align-items: center; margin: 14px 0 6px; }
.circulo-logo { position: relative; width: 92px; height: 92px; flex: none; cursor: pointer; margin: 0; }
.circulo-logo img, .circulo-logo .ini { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; box-shadow: 0 0 0 1px var(--borde); }
.circulo-logo .camara { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--primario); color: #fff; display: grid; place-items: center; border: 3px solid var(--tarjeta); }
.circulo-logo .camara .icono { width: 16px; height: 16px; }
.circulo-logo:focus-within { outline: 2px solid var(--primario); outline-offset: 3px; border-radius: 50%; }
.acciones-logo { display: grid; gap: 2px; }
.acciones-logo .suave { font-size: .85rem; }
.acciones-logo .btn.enlace { padding: 4px 0; min-height: 32px; color: var(--error); }
.avatar.con-logo { object-fit: cover; padding: 0; background: #fff; }
.selector { display: inline-flex; align-items: center; gap: 8px; }
.avatar-sel { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 700; object-fit: cover; }
.selector span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo dentro de la publicación (opcional) */
.pieza .marca-logo { position: absolute; top: 4.5cqw; right: 4.5cqw; width: 13cqw; height: 13cqw; border-radius: 50%; object-fit: cover; border: .8cqw solid #fff; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.25); z-index: 3; }
.pieza.espejo .marca-logo { right: auto; left: 4.5cqw; }

/* Interruptor */
.interruptor { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 500; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .pista { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--borde); position: relative; transition: background .15s; }
.interruptor .pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.interruptor input:checked + .pista { background: var(--primario); }
.interruptor input:checked + .pista::after { transform: translateX(18px); }
.interruptor input:focus-visible + .pista { outline: 2px solid var(--primario); outline-offset: 2px; }
.interruptor input:disabled + .pista { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .interruptor .pista, .interruptor .pista::after { transition: none; } }
/* Si el texto va arriba, el logo baja a la esquina inferior */
.p-foto-cabecera .marca-logo, .p-revista .marca-logo, .p-editorial .marca-logo, .p-poster .marca-logo, .p-columnas .marca-logo,
.p-bloque .marca-logo, .p-pizarra .marca-logo, .p-cita .marca-logo, .p-monograma .marca-logo, .p-fino .marca-logo, .p-galeria .marca-logo { top: auto; bottom: 4.5cqw; }
.p-foto-precio .marca-logo { top: 4.5cqw; }

/* Selector de color de marca */
.sel-color { border: 1px solid var(--borde); border-radius: 12px; padding: 12px; margin-top: 12px; }
.sel-color .colores.desliza { margin-top: 10px; }
.sel-color .color { flex: 0 0 21%; }
.muestra-color { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--borde); flex: none; }
.barra-tono { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .78rem; color: var(--suave); margin-top: 8px; }
.barra-tono input[type=range] { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 99px; padding: 0; border: 0;
  background: linear-gradient(90deg, #fff, var(--base), #000); box-shadow: 0 0 0 1px var(--borde); }
.barra-tono input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--texto); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.barra-tono input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--texto); }
.codigo-marca { border-top: 0; padding: 10px 0 0; }
.codigo-marca summary { font-size: .9rem; color: var(--primario); }
.selector { max-width: 50vw; }
.barra { gap: 8px; }
.barra-dcha { min-width: 0; }

/* Gamas de color */
.desliza-h { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.desliza-h::-webkit-scrollbar { display: none; }
.gama { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borde); background: var(--tarjeta); color: var(--texto); border-radius: 99px; padding: 6px 12px 6px 6px; font: inherit; font-size: .82rem; cursor: pointer; min-height: 36px; }
.gama span { width: 22px; height: 22px; border-radius: 50%; display: block; }
.gama[aria-pressed="true"] { border-color: var(--primario); box-shadow: 0 0 0 1px var(--primario); font-weight: 600; }
.sel-color .tonos .color { flex: 0 0 15%; padding: 4px 0; }
.sel-color .tonos .bola { width: 38px; height: 38px; }

/* Elegir estilo */
.estilos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tarjeta-estilo { border: 2px solid var(--borde); border-radius: 12px; padding: 6px; background: var(--tarjeta); color: var(--texto); font: inherit; font-size: .8rem; font-weight: 600; display: grid; gap: 6px; cursor: pointer; text-align: center; }
.tarjeta-estilo[aria-pressed="true"] { border-color: var(--primario); box-shadow: 0 0 0 1px var(--primario); }
.tarjeta-estilo { position: relative; }
.tarjeta-estilo.bloq .pieza { filter: grayscale(.6) opacity(.55); }
.tarjeta-estilo .candado { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: var(--primario); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.tarjeta-estilo .candado .icono { width: 12px; height: 12px; }

/* NUNCA cortar texto en plantillas: fuera recortes y «…»; el tamaño se ajusta solo (encajarTextos). */
.pieza .tit, .pieza .tiza { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; overflow-wrap: normal; word-break: normal; hyphens: none; }
.pieza .cabecera { overflow: visible !important; text-overflow: clip !important; }
.pieza .versal, .pieza .cifra, .pieza .dia { overflow: visible; text-overflow: clip; }
.opcion { position: relative; }
.opcion.bloq .pieza { filter: grayscale(.6) opacity(.55); }
.opcion .candado { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: var(--primario); color: #fff; font-size: .62rem; font-weight: 700; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.opcion .candado .icono { width: 11px; height: 11px; }

/* Contador de uso del plan */
.uso { display: grid; gap: 10px; background: var(--primario-claro); border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
.uso > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; }
.uso .barra-uso { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--tarjeta); overflow: hidden; }
.uso .barra-uso span { display: block; height: 100%; background: var(--primario); border-radius: 99px; }
.uso p { margin: 0; font-size: .8rem; }

/* Selector de tipo */
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--borde); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.segmento button { border: 0; background: transparent; border-radius: 9px; padding: 10px; font: inherit; font-weight: 600; color: var(--suave); cursor: pointer; min-height: 42px; }
.segmento button[aria-pressed="true"] { background: var(--primario); color: var(--sobre-primario, #fff); box-shadow: 0 4px 12px -6px var(--primario); }

/* Reel en la app */
.reel-caja { display: grid; place-items: center; padding: 14px 0; background: #111; }
.reel { position: relative; width: min(270px, 78vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; container-type: inline-size; }
.reel .escena { position: absolute; inset: 0; opacity: 0; animation: r-escena 9s infinite; }
.reel .escena:nth-of-type(2) { animation-delay: 3s; }
.reel .escena:nth-of-type(3) { animation-delay: 6s; }
.reel .foto { position: absolute; inset: -6%; background: center / cover no-repeat; animation: r-zoom 9s infinite; animation-delay: inherit; }
.reel .escena:nth-of-type(2) .foto { animation-name: r-barrido; }
.reel .escena:nth-of-type(3) .foto { animation-name: r-alejar; }
.reel .velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent 32%, transparent 55%, rgba(0,0,0,.65)); }
@keyframes r-escena { 0% { opacity: 0 } 3% { opacity: 1 } 32% { opacity: 1 } 35% { opacity: 0 } 100% { opacity: 0 } }
@keyframes r-zoom { 0% { transform: scale(1) } 35%, 100% { transform: scale(1.14) } }
@keyframes r-barrido { 0% { transform: scale(1.1) translateX(-4%) } 35%, 100% { transform: scale(1.1) translateX(4%) } }
@keyframes r-alejar { 0% { transform: scale(1.18) } 35%, 100% { transform: scale(1.02) } }
.reel .progreso { position: absolute; top: 4.5cqw; left: 4.5cqw; right: 4.5cqw; display: flex; gap: 1.5cqw; z-index: 5; }
.reel .progreso span { flex: 1; height: .9cqw; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden; }
.reel .progreso span::after { content: ""; display: block; height: 100%; width: 0; background: #fff; animation: r-llenar 9s infinite linear; }
.reel .progreso span:nth-child(2)::after { animation-name: r-llenar2; }
.reel .progreso span:nth-child(3)::after { animation-name: r-llenar3; }
@keyframes r-llenar { 0% { width: 0 } 33.3%, 100% { width: 100% } }
@keyframes r-llenar2 { 0%, 33.3% { width: 0 } 66.6%, 100% { width: 100% } }
@keyframes r-llenar3 { 0%, 66.6% { width: 0 } 100% { width: 100% } }
.reel .cuenta { position: absolute; top: 9cqw; left: 4.5cqw; display: flex; align-items: center; gap: 2.5cqw; color: #fff; font: 600 4cqw/1 var(--sans); z-index: 5; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.reel .avatar-reel { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; font-size: 3cqw; color: #fff; border: .6cqw solid #fff; object-fit: cover; }
.reel .musica { position: absolute; bottom: 4.5cqw; left: 4.5cqw; color: #fff; font: 500 3.4cqw/1 var(--sans); opacity: .9; z-index: 5; }
.reel .reel-logo { position: absolute; top: 8cqw; right: 4.5cqw; width: 11cqw; height: 11cqw; border-radius: 50%; border: .6cqw solid #fff; object-fit: cover; z-index: 5; }
.reel .txt { position: absolute; left: 7cqw; right: 7cqw; top: 26cqw; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); animation: r-entra 9s infinite; animation-delay: inherit; opacity: 0; }
@keyframes r-entra { 0%, 4% { opacity: 0; transform: translateY(6cqw) } 9% { opacity: 1; transform: none } 31% { opacity: 1 } 34%, 100% { opacity: 0 } }
.reel .versal { font: 700 3.4cqw/1.2 var(--rx); letter-spacing: .18em; text-transform: uppercase; color: var(--r2); }
.reel .tit { font-family: var(--rt); font-weight: var(--rp); font-size: 11cqw; line-height: 1.02; margin-top: 2cqw; }
.reel .hilo { width: 16cqw; height: .6cqw; background: var(--r2); margin-top: 3cqw; }
.reel .precio { display: inline-grid; place-items: center; width: 26cqw; height: 26cqw; border-radius: 50%; background: #fff; color: var(--r1); font-family: var(--rt); font-weight: var(--rp); font-size: 8.5cqw; margin-top: 4cqw; text-shadow: none; }
.reel .cta { display: inline-block; margin-top: 4cqw; background: var(--r1); color: #fff; font: 700 4cqw/1.1 var(--rx); padding: 3cqw 5cqw; border-radius: 99px; text-shadow: none; box-shadow: 0 0 0 .6cqw rgba(255,255,255,.85); }
.reel .subt { position: absolute; left: 8cqw; right: 8cqw; bottom: 13cqw; text-align: center; color: #fff; font: 600 4.2cqw/1.35 var(--sans); animation: r-entra 9s infinite; animation-delay: inherit; opacity: 0; }
.reel .subt span { background: rgba(0,0,0,.55); padding: .6cqw 2cqw; border-radius: 1.5cqw; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-reduced-motion: reduce) {
  .reel .escena, .reel .foto, .reel .txt, .reel .subt, .reel .progreso span::after { animation: none !important; }
  .reel .escena:first-of-type, .reel .escena:first-of-type .txt, .reel .escena:first-of-type .subt { opacity: 1; }
}

/* Un solo reel: barra única abajo, iconos a la derecha y pie como Instagram (no historias) */
.reel .progreso { display: none; }
.reel .reel-pie { position: absolute; left: 4.5cqw; right: 18cqw; bottom: 6cqw; z-index: 6; color: #fff; display: grid; gap: 2cqw; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.reel .reel-pie .cuenta { position: static; display: flex; align-items: center; gap: 2.5cqw; font: 600 3.8cqw/1 var(--sans); }
.reel .seguir { border: .4cqw solid #fff; border-radius: 1.5cqw; padding: 1cqw 2.2cqw; font-size: 3.2cqw; }
.reel .pie-reel { font: 400 3.5cqw/1.35 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel .reel-pie .musica { position: static; font-size: 3.2cqw; }
.reel .acciones-reel { position: absolute; right: 3.5cqw; bottom: 24cqw; display: grid; gap: 5cqw; z-index: 6; }
.reel .acciones-reel svg { width: 8cqw; height: 8cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.reel .barra-reel { position: absolute; left: 0; right: 0; bottom: 0; height: .9cqw; background: rgba(255,255,255,.3); z-index: 7; }
.reel .barra-reel span { display: block; height: 100%; width: 0; background: #fff; animation: r-barra 9s infinite linear; }
@keyframes r-barra { from { width: 0 } to { width: 100% } }
.reel .subt { bottom: 34cqw; }
@media (prefers-reduced-motion: reduce) { .reel .barra-reel span { animation: none; width: 30%; } }

/* Reel de una sola imagen en movimiento (6 s) */
.reel.una .foto.unica { position: absolute; inset: -8%; background: center / cover no-repeat; animation: r-unica 6s infinite ease-in-out; }
@keyframes r-unica { 0% { transform: scale(1.02) translate(0, 0) } 100% { transform: scale(1.18) translate(-3%, -2%) } }
.reel.una .momento { position: absolute; inset: 0; opacity: 0; animation: r-momento 6s infinite; }
.reel.una .momento:nth-of-type(2) { animation-name: r-momento2; }
@keyframes r-momento { 0% { opacity: 0 } 6% { opacity: 1 } 45% { opacity: 1 } 52%, 100% { opacity: 0 } }
@keyframes r-momento2 { 0%, 48% { opacity: 0 } 56% { opacity: 1 } 97% { opacity: 1 } 100% { opacity: 0 } }
.reel.una .txt, .reel.una .subt { opacity: 1; animation: none; }
.reel.una .barra-reel span { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .reel.una .foto.unica, .reel.una .momento { animation: none !important; } .reel.una .momento:first-of-type { opacity: 1; } }
/* Imagen siempre visible y en movimiento continuo (sin cortes ni negro); textos por turnos */
.reel.una { background: #222; }
.reel.una .foto.unica { opacity: 1 !important; animation: r-unica 6s ease-in-out infinite alternate; }
.reel.una .momento.m1 { animation: r-momento 6s infinite; }
.reel.una .momento.m2 { animation: r-momento2 6s infinite; }
/* Reel: nunca cortar letras (el texto de abajo se ve entero, en dos líneas si hace falta) */
.reel .pie-reel { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }

/* Selector de 3 tipos */
.segmento { grid-template-columns: repeat(3, 1fr); }
.segmento button { font-size: .88rem; padding: 10px 4px; }

/* Carrusel (máx. 5 diapositivas) */
.miniaturas { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding: 6px 6px 4px 0; }
.mini-foto { position: relative; flex: none; }
.mini-foto img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.mini-foto button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--texto); color: var(--fondo); font-size: .9rem; line-height: 1; cursor: pointer; }
.carrusel { position: relative; }
.carrusel .pistas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrusel .pistas::-webkit-scrollbar { display: none; }
.carrusel .diapositiva { flex: 0 0 100%; scroll-snap-align: start; }
.carrusel .diapositiva .pieza { border-radius: 0; }
.carrusel .contador-diapo { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.carrusel .puntos-carrusel { display: flex; gap: 5px; justify-content: center; padding: 8px 0 2px; }
.carrusel .puntos-carrusel span { width: 6px; height: 6px; border-radius: 50%; background: var(--borde); }
.carrusel .puntos-carrusel span.activo { background: var(--primario); }
.pieza.diapo { background: center / cover no-repeat; }
.pieza.diapo .etiqueta-diapo { position: absolute; left: 6cqw; bottom: 6cqw; max-width: 80%; background: #fff; color: var(--c1); padding: 2.5cqw 4.5cqw; border-radius: 99px; font-size: 5cqw; line-height: 1.15; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.25); }
.pieza.diapo-final { background: var(--c1); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3cqw; padding: 10cqw; }
.pieza.diapo-final .tit { font-family: var(--tit); font-weight: var(--peso); font-size: 9cqw; line-height: 1.08; }
.pieza.diapo-final .versal { color: var(--c2); }
.pieza.diapo-final .logo-final { width: 18cqw; height: 18cqw; border-radius: 50%; object-fit: cover; border: .8cqw solid #fff; }

/* Más presencia de la marca del negocio */
body { background: var(--fondo); }
.barra { border-top: 4px solid var(--primario); background: color-mix(in srgb, var(--fondo) 90%, transparent); }
.portada-negocio { display: flex; align-items: center; gap: 14px; background: var(--primario); color: var(--sobre-primario, #fff); border-radius: 18px; padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; }
.portada-negocio::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--acento-marca, var(--primario-claro)); opacity: .35; }
.portada-negocio h1 { color: #fff; margin: 0; font-size: 1.5rem; position: relative; z-index: 1; }
.portada-negocio .saludo { font-size: .85rem; opacity: .9; position: relative; z-index: 1; }
.portada-negocio .zona { font-size: .85rem; opacity: .85; margin-top: 2px; position: relative; z-index: 1; }
.logo-portada { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid rgba(255,255,255,.9); position: relative; z-index: 1; }
.logo-portada.ini { display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 1.2rem; }
.tarjeta h2 { color: var(--primario); }
.tarjeta { border-color: color-mix(in srgb, var(--primario) 14%, var(--borde)); }
.nav button[aria-current="page"] svg { background: var(--primario-claro); border-radius: 10px; padding: 3px; width: 30px; height: 30px; margin: -4px 0; }
.lista li .btn.primario { box-shadow: 0 6px 14px -8px var(--primario); }
.chip { background: var(--primario-claro); color: var(--primario); }

/* Carta / catálogo */
.catalogo { display: grid; gap: 8px; margin-top: 10px; }
.fila-cat { display: grid; grid-template-columns: 1fr 96px 36px; gap: 8px; align-items: center; }
.cat-precio { position: relative; }
.cat-precio input { padding-right: 26px; }
.cat-precio span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--suave); }
.btn-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde); background: var(--tarjeta); font-size: 1.1rem; cursor: pointer; color: var(--suave); }
.fila-cat { grid-template-columns: 1fr 84px 36px; }

/* Tarjetas con el color corporativo: tinte claro + letra oscura; las importantes, color sólido + letra blanca */
.tarjeta { background: var(--tarjeta-marca, var(--tarjeta)); border-color: var(--borde-marca, var(--borde)); }
.tarjeta .lista li { border-color: var(--borde-marca, var(--borde)); }
.tarjeta input, .tarjeta select, .tarjeta textarea { background: #fff; color: #161616; }
.tarjeta .opcion, .tarjeta .btn:not(.primario):not(.ok):not(.fb) { background: #fff; color: #161616; }
.tarjeta.destacada { background: var(--primario); border-color: var(--primario); color: #fff; }
.tarjeta.destacada h2, .tarjeta.destacada .suave { color: #fff; }
.tarjeta.destacada .suave { opacity: .85; }
.tarjeta.destacada .lista li { border-color: rgba(255,255,255,.25); }
.tarjeta.destacada .btn { background: #fff; color: var(--primario); border-color: #fff; }
.nav { background: var(--tarjeta-marca, var(--tarjeta)); border-top-color: var(--borde-marca, var(--borde)); }
/* Ninguna foto tapa texto: Burbuja (la foto baja y deja sitio al nombre) y Editorial con foto redonda */
.p-burbuja .blob { top: 17cqw; height: 58cqw; width: 64cqw; }
.p-burbuja .marca-b { max-width: 86cqw; }
.forma-circulo.p-editorial .foto { width: 38cqw; }
.p-editorial .txt { width: 44cqw; }

/* ── Movimiento y respuesta al toque (revisión con emil-design-eng, 20 nov 2026) ── */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); }

/* Todo lo que se pulsa responde al toque */
.btn, .opcion, .color, .tarjeta-estilo, .gama, .segmento button, .nav button, .cajon .item, .btn-menu, .selector, .circulo-logo, .btn-x {
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn:active, .opcion:active, .color:active, .tarjeta-estilo:active, .gama:active, .segmento button:active, .nav button:active,
.cajon .item:active, .btn-menu:active, .selector:active, .circulo-logo:active, .btn-x:active { transform: scale(0.97); }
.btn:disabled:active { transform: none; }

/* Efectos al pasar el ratón: solo con ratón de verdad (no en el móvil) */
@media (hover: hover) and (pointer: fine) {
  .btn.primario:hover { filter: brightness(1.08); }
  .btn-menu:hover, .cajon .item:hover { background: var(--primario-claro); }
}

/* Ventana de aprobación: entrada corta, centrada */
.modal { transition: opacity 200ms ease; }
.modal .tarjeta { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
@starting-style { .modal:not([hidden]) { opacity: 0; } .modal:not([hidden]) .tarjeta { opacity: 0; transform: scale(0.96); } }

/* Menú ☰: entra desde la derecha, donde está el botón */
.cajon { transition: opacity 240ms ease; }
.cajon nav { transition: transform 300ms var(--ease-drawer); }
@starting-style { .cajon:not([hidden]) { opacity: 0; } .cajon:not([hidden]) nav { transform: translateX(100%); } }

/* Aviso: entra suave, sale rápido */
.aviso { transform: translate(-50%, 8px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.aviso.ver { transform: translate(-50%, 0); transition: opacity 400ms ease, transform 400ms ease; }

/* Interruptor: respuesta inmediata */
.interruptor .pista, .interruptor .pista::after { transition: background-color 200ms ease, transform 200ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .opcion:active, .color:active, .tarjeta-estilo:active, .gama:active, .segmento button:active, .nav button:active,
  .cajon .item:active, .btn-menu:active, .selector:active, .circulo-logo:active, .btn-x:active { transform: none; }
  .cajon nav, .modal .tarjeta, .aviso, .aviso.ver { transition: opacity 200ms ease; }
  @starting-style { .cajon:not([hidden]) nav { transform: none; } .modal:not([hidden]) .tarjeta { transform: none; } }
  .aviso, .aviso.ver { transform: translate(-50%, 0); }
}
.ajustes-img { display: flex; flex-wrap: wrap; gap: 6px; }
.ajustes-img .gama { padding: 6px 12px; }
.cambios textarea { min-height: 64px; margin: 8px 0; }
.cambios .fila { gap: 10px; flex-wrap: nowrap; align-items: flex-start; }

/* ───────── Programar desde el móvil (20 nov 2026) ───────── */
.cuando-rapido, .franjas { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.cuando-rapido button, .franjas button, .tira-dias button {
  font: inherit; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--borde, #e5e5e5); background: var(--tarjeta, #fff); color: inherit; cursor: pointer;
  transition: transform 160ms var(--ease-out, ease), background-color 160ms ease;
}
.cuando-rapido button:active, .franjas button:active, .tira-dias button:active { transform: scale(0.97); }
.cuando-rapido button[aria-pressed="true"], .franjas button[aria-pressed="true"], .tira-dias button[aria-pressed="true"] {
  background: var(--primario); border-color: var(--primario); color: #fff;
}
.franjas button { flex: 1; display: grid; gap: 2px; justify-items: center; }
.franjas small { font-weight: 400; opacity: .8; }
.tira-dias { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; margin: 6px 0; -webkit-overflow-scrolling: touch; }
.tira-dias button { flex: none; width: 58px; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; scroll-snap-align: start; }
.tira-dias span { font-size: .78rem; font-weight: 400; text-transform: capitalize; }
.tira-dias b { font-size: 1.2rem; }
.hora-exacta { margin-top: 6px; }
.hora-exacta summary { cursor: pointer; color: var(--suave, #6b6b6b); min-height: 44px; display: flex; align-items: center; }
.dia-libre { font: inherit; width: 100%; min-height: 44px; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--borde-marca, #d4d4d4); background: transparent; color: var(--suave, #6b6b6b); cursor: pointer; transition: transform 160ms var(--ease-out, ease); }
.dia-libre:active { transform: scale(0.98); }
.tarjeta.hueco { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 520px) { .tarjeta.hueco { display: grid; } .tarjeta.hueco .btn { width: 100%; min-height: 44px; } }
.para-dia { background: var(--primario-claro, #fde8e8); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.modal .pie-fijo { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px 16px; background: inherit; border-top: 1px solid var(--borde); }
.plan-previa { max-height: none; }

/* ───────── Habla con Zaspy (chat, 22 nov 2026) ───────── */
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - 150px); }
.chat-cab { display: flex; gap: 10px; align-items: center; padding: 4px 0 12px; border-bottom: 1px solid var(--borde); margin-bottom: 10px; }
.chat-cab .suave { font-size: .8rem; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primario); color: #fff; font: 700 1.1rem/1 var(--serif, Georgia, serif); }
.chat-lista { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.burbuja { max-width: 86%; padding: 9px 12px 6px; border-radius: 16px; line-height: 1.4; position: relative; animation: entraBurbuja 220ms var(--ease-out, ease) both; }
.burbuja p { margin: 0 0 4px; }
.burbuja time { display: block; text-align: right; font-size: .68rem; opacity: .6; }
.burbuja.ia { align-self: flex-start; background: var(--tarjeta); border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.burbuja.yo { align-self: flex-end; background: var(--primario); color: #fff; border-bottom-right-radius: 4px; }
@keyframes entraBurbuja { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.burbuja.escribiendo { display: flex; gap: 4px; padding: 12px 14px; }
.burbuja.escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: var(--suave); animation: punto 1s infinite; }
.burbuja.escribiendo span:nth-child(2) { animation-delay: .15s; } .burbuja.escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.burbuja.audio { min-width: 200px; }
.burbuja.audio .onda { display: inline-flex; gap: 2px; align-items: center; height: 22px; vertical-align: middle; }
.burbuja.audio .onda i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); height: 40%; }
.burbuja.audio .onda i:nth-child(3n) { height: 85%; } .burbuja.audio .onda i:nth-child(4n+1) { height: 60%; } .burbuja.audio .onda i:nth-child(5n) { height: 25%; }
.burbuja.audio .dur { font-size: .8rem; margin-left: 8px; opacity: .9; }
.burbuja.audio .transcrito { font-size: .82rem; opacity: .9; margin-top: 4px; font-style: italic; }
.burbuja.foto { padding: 4px 4px 6px; }
.burbuja.foto img { display: block; width: 200px; max-width: 100%; border-radius: 12px; }
.burbuja.foto p, .burbuja.foto time { padding: 0 8px; }
.burbuja.propuesta { max-width: 92%; }
.prop-pieza { width: 100%; max-width: 280px; margin: 6px 0; border-radius: 10px; overflow: hidden; }
.prop-texto summary { cursor: pointer; font-size: .85rem; color: var(--primario); min-height: 32px; display: flex; align-items: center; }
.prop-texto .pie { white-space: pre-wrap; font-size: .85rem; margin-top: 4px; }
.prop-acciones { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.prop-acciones .btn { padding: 8px 12px; min-height: 40px; font-size: .88rem; }
.chat-pie { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--fondo); padding: 8px 0 4px; margin: 0 -16px; padding-inline: 16px; }
.chat-sugerencias { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chat-sugerencias button { flex: none; font: inherit; font-size: .85rem; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--borde-marca, var(--borde)); background: var(--tarjeta); color: inherit; cursor: pointer; min-height: 36px; transition: transform 160ms var(--ease-out, ease); }
.chat-sugerencias button:active, .chat-boton:active, .chat-enviar:active { transform: scale(.95); }
.chat-barra { display: flex; gap: 6px; align-items: center; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 99px; padding: 4px; }
.chat-barra input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 6px; outline: none; color: inherit; }
.chat-boton { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--suave); cursor: pointer; transition: transform 160ms var(--ease-out, ease); }
.chat-boton .icono { width: 22px; height: 22px; }
.chat-boton.grabando { background: #dc2626; color: #fff; animation: latido 1s infinite; }
@keyframes latido { 50% { transform: scale(1.08); } }
.chat-enviar { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--primario); color: #fff; font-size: 1rem; cursor: pointer; transition: transform 160ms var(--ease-out, ease); }
.chat-adjunto { display: flex; align-items: center; gap: 8px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px; padding: 6px; margin-bottom: 8px; font-size: .85rem; }
.chat-adjunto img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-adjunto span { flex: 1; }
.chat-adjunto button { border: 0; background: none; font-size: 1rem; cursor: pointer; min-width: 36px; min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .burbuja, .burbuja.escribiendo span, .chat-boton.grabando { animation: none; } }

/* ───────── Inicio: una sola acción arriba (22 nov 2026) ───────── */
.portada-negocio { flex-direction: column; align-items: stretch; gap: 12px; }
.portada-fila { display: flex; align-items: center; gap: 14px; }
.portada-aviso { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.portada-negocio.tarde .portada-aviso::before { content: "⏰ "; }
.btn.portada-accion { width: 100%; min-height: 52px; font-size: 1.05rem; font-weight: 700; border: 0; background: #fff; color: var(--primario); border-radius: 14px; }
.ideas li.idea-plan { background: var(--primario-claro); border-radius: 12px; padding: 10px; margin: 0 -6px 4px; }
.resumen-mes { text-align: center; color: var(--suave); margin: 4px 0 18px; }
.chat-ideas { display: grid; gap: 6px; margin: 6px 0 4px; }
.chat-ideas .btn { text-align: left; justify-content: flex-start; min-height: 42px; }
.tira-dias button.ocupado b::after { content: "•"; display: block; line-height: .4; color: var(--primario); }
.tira-dias button.ocupado[aria-pressed="true"] b::after { color: #fff; }
.modal .tira-dias { margin-left: -4px; margin-right: -4px; }
/* Sin barras de desplazamiento visibles en las tiras que se deslizan con el dedo */
.tira-dias, .chat-sugerencias, .colores.desliza { scrollbar-width: none; -ms-overflow-style: none; }
.tira-dias::-webkit-scrollbar, .chat-sugerencias::-webkit-scrollbar, .colores.desliza::-webkit-scrollbar { display: none; }
.franjas button.mejor { border-color: var(--primario); box-shadow: inset 0 0 0 1px var(--primario); }

/* ───────── La foto, protagonista (22 nov 2026): ≥ 45 % de la pieza y sin tapar ninguna letra ───────── */
.p-galeria .foto { top: 7cqw; height: 62cqw; }
.p-galeria .txt { bottom: 6cqw; }
.p-editorial .foto { right: 0; top: 0; bottom: 0; width: 50%; height: auto; }
.forma-suave.p-editorial .foto, .forma-arco.p-editorial .foto { right: 4cqw; top: 4cqw; bottom: 4cqw; width: 48%; }
.p-editorial .txt { left: 6cqw; top: 8cqw; width: 38cqw; }
.p-arco .foto { left: 10cqw; right: 10cqw; top: 6cqw; height: 62cqw; }
.p-arco .txt { bottom: 5cqw; }
.p-columnas .txt { width: 36cqw; inset-inline-start: 6cqw; }
.p-columnas .col-foto { inset-inline-end: 0; top: 0; bottom: 0; width: 52%; }
.forma-suave.p-columnas .col-foto, .forma-arco.p-columnas .col-foto { inset-inline-end: 4cqw; top: 4cqw; bottom: 4cqw; width: 50%; }
.p-columnas .regla { inset-inline-start: 44cqw; }
.p-ventana .foto { left: 18cqw; right: 18cqw; top: 6cqw; height: 70cqw; }
.p-ventana .lado { top: 38cqw; }
.p-ventana .lado.izq { left: 9cqw; } .p-ventana .lado.der { right: 9cqw; }
.p-ventana .txt { bottom: 5cqw; left: 8cqw; right: 8cqw; }
.p-poster .foto { inset-inline: 6cqw; top: 6cqw; bottom: auto; height: 54cqw; }
.p-poster .txt { top: 63cqw; height: auto; bottom: 13cqw; justify-content: flex-start; }
.p-poster .tit { font-size: calc(7.6cqw * var(--esc)); -webkit-line-clamp: 2; }
.p-burbuja .blob { top: 13cqw; width: 84cqw; height: 62cqw; inset-inline-end: 8cqw; }
.p-cita.con-foto .mini-c { width: 50%; }
.forma-suave.p-cita.con-foto .mini-c, .forma-arco.p-cita.con-foto .mini-c { width: 48%; }
.p-cita.con-foto .txt { inset-inline-end: 56cqw; inset-inline-start: 7cqw; }
.p-pizarra .txt { top: 7cqw; gap: 2cqw; }
.p-pizarra .tiza { font-size: 9cqw; -webkit-line-clamp: 2; }
.p-pizarra .redonda { inset-inline: 6cqw; bottom: 6cqw; width: auto; height: 52cqw; border-radius: 2.5cqw; border-width: 1.2cqw; }
.p-kraft .foto-k { left: 9cqw; right: 9cqw; top: 7cqw; height: 58cqw; }
.p-ficha .foto { height: 50cqw; }
.p-ficha .txt { top: 54cqw; bottom: 5cqw; gap: 1.6cqw; }
.p-evento .foto, .forma-suave.p-evento .foto, .forma-arco.p-evento .foto { right: 4cqw; top: 4cqw; width: 50%; }
.forma-suave.p-evento .foto { bottom: 4cqw; }
.p-evento .txt { width: 36cqw; left: 6cqw; }
img.chat-avatar { background: none; object-fit: contain; border-radius: 12px; }

/* Vídeo del cliente en el chat y reel con su vídeo (demo) */
.burbuja.foto video { display: block; width: 200px; max-width: 100%; border-radius: 12px; background: #000; }
.chat-adjunto video { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #000; }
.reel-video { position: relative; aspect-ratio: 9 / 16; max-height: 360px; border-radius: 12px; overflow: hidden; background: #000; container-type: inline-size; }
.reel-caja .reel-video { width: min(270px, 78vw); max-height: none; border-radius: 22px; }
.reel-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); }
.rv-txt { position: absolute; left: 6cqw; right: 6cqw; bottom: 8cqw; z-index: 1; color: #fff; }
.rv-marca { font-size: 4.5cqw; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rv-tit { font: 700 9cqw/1.05 var(--serif, Georgia, serif); margin-top: 1.5cqw; }
.rv-tag { position: absolute; top: 4cqw; right: 4cqw; z-index: 1; background: rgba(0,0,0,.55); color: #fff; font-size: 4cqw; padding: 1cqw 3cqw; border-radius: 99px; }
.facturas li { gap: 10px; }

.facturas .btn { min-height: 44px; white-space: nowrap; }

/* Alta: datos obligatorios */
.obl { color: #b91c1c; font-weight: 700; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fila-2 > div { min-width: 0; }
[aria-invalid="true"] { border-color: #b91c1c !important; box-shadow: 0 0 0 2px rgba(185, 28, 28, .15); }
.check-acepta { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-weight: 400; line-height: 1.4; }
.check-acepta input { width: 22px; height: 22px; flex: none; margin: 0; }
.check-acepta[aria-invalid="true"], #acepta[aria-invalid="true"] { outline: 2px solid #b91c1c; outline-offset: 2px; }
.errores-alta { color: #b91c1c; font-weight: 600; margin: 10px 0 0; }
.errores-alta:empty { display: none; }

/* ───────── Plantillas Pro (23 nov 2026): titular grande, contraste, foto protagonista ───────── */
.pieza.pro { --pro-tit: 'Anton', 'Montserrat', system-ui, sans-serif; --pro-sans: 'Poppins', 'Montserrat', system-ui, sans-serif; --pro-serif: 'Cormorant Garamond', Georgia, serif; font-family: var(--pro-sans); }
.pieza.pro .capa-foto { position: absolute; inset: 0; background: center / cover no-repeat; }
.pieza.pro .pro-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.72) 100%); }
.pieza.pro .pro-velo.fuerte { background: rgba(10,10,12,.55); }
.pieza.pro .txt { position: absolute; display: flex; flex-direction: column; }
.pieza.pro .txt.claro { color: #fff; }
.pieza.pro .versal { font-family: var(--pro-sans); font-weight: 600; font-size: 3.3cqw; letter-spacing: .16em; text-transform: uppercase; }
.pieza.pro .tit { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.pro-cta { display: inline-block; align-self: flex-start; margin-top: 3.5cqw; background: var(--c1); color: #fff; font: 700 3.6cqw/1 var(--pro-sans); padding: 2.6cqw 5cqw; border-radius: 99px; white-space: nowrap; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.25); }
.pro-usuario { position: absolute; left: 0; right: 0; bottom: 3.5cqw; text-align: center; color: rgba(255,255,255,.85); font: 500 2.8cqw/1 var(--pro-sans); letter-spacing: .04em; }
.pro-ico { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pro-insignia { display: grid; place-items: center; width: 13cqw; height: 13cqw; border-radius: 50%; background: #fff; color: var(--c1); box-shadow: 0 1cqw 3cqw rgba(0,0,0,.18); }

/* Impacto: foto entera, titular gigante centrado, botón */
.p-impacto .pro-centro { inset: 10cqw 7cqw 12cqw; align-items: center; justify-content: flex-end; text-align: center; gap: 2cqw; }
.p-impacto .tit { font-family: var(--pro-tit); font-weight: 400; font-size: 15cqw; line-height: .95; text-transform: uppercase; letter-spacing: .005em; -webkit-line-clamp: 3; }
.p-impacto .pro-cta { align-self: center; }

/* Panel: foto arriba, bloque de color redondeado con el titular */
.p-panel { background: var(--c1); }
.p-panel .pro-foto-arriba { position: absolute; inset: 0 0 auto 0; height: 60cqw; background: center / cover no-repeat; }
.p-panel .pro-panel { position: absolute; inset: auto 0 0 0; height: 44cqw; background: var(--c1); border-radius: 7cqw 7cqw 0 0; }
.p-panel .pro-insignia { position: absolute; right: 7cqw; top: -6.5cqw; }
.p-panel .txt { inset: 6cqw 7cqw 6cqw; justify-content: space-between; }
.p-panel .tit { font-family: var(--pro-sans); font-weight: 800; font-size: 9.5cqw; line-height: 1.02; letter-spacing: -.02em; -webkit-line-clamp: 2; padding-right: 10cqw; }
.p-panel .pro-fila { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.p-panel .pro-fila .versal { opacity: .85; font-size: 2.8cqw; min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.p-panel .pro-cta { margin: 0; background: #fff; color: var(--c1); box-shadow: none; }

/* Gigante: una palabra enorme arriba, la foto debajo */
.p-gigante { background: var(--neutro); color: var(--c1); }
.p-gigante .pro-arriba { inset: 5cqw 6cqw auto; height: 26cqw; justify-content: center; align-items: center; }
.p-gigante .pro-arriba .tit { font-family: var(--pro-tit); font-size: 24cqw; line-height: .9; text-transform: uppercase; -webkit-line-clamp: 1; white-space: nowrap; }
.p-gigante .pro-foto-centro { position: absolute; left: 8cqw; right: 8cqw; top: 33cqw; height: 50cqw; border-radius: 4cqw; background: center / cover no-repeat; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.18); }
.p-gigante .pro-abajo { inset: auto 6cqw 4cqw; align-items: center; text-align: center; gap: 1cqw; }
.p-gigante .pro-resto { font: 800 4.6cqw/1.1 var(--pro-sans); letter-spacing: .02em; color: var(--c1); }
.p-gigante .pro-abajo .versal:last-child { font-size: 2.8cqw; opacity: .75; color: #222; }

/* Precio: foto entera y círculo de precio */
.p-precio .pro-izq { inset: 8cqw 34cqw 9cqw 7cqw; justify-content: flex-end; gap: 2cqw; }
.p-precio .tit { font-family: var(--pro-sans); font-weight: 800; font-size: 9cqw; line-height: 1.02; letter-spacing: -.02em; -webkit-line-clamp: 4; }
.pro-circulo { position: absolute; right: 6cqw; top: 7cqw; width: 30cqw; height: 30cqw; border-radius: 50%; background: var(--c1); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: 0 1.5cqw 4cqw rgba(0,0,0,.3); transform: rotate(-6deg); }
.pro-circulo .versal { font-size: 2.8cqw; letter-spacing: .14em; }
.pro-circulo .cifra { font: 400 10cqw/1 var(--pro-tit); white-space: nowrap; }

/* Elegante: foto oscura, marco fino y mayúsculas espaciadas */
.p-elegante .pro-marco { position: absolute; inset: 5cqw; border: 1px solid rgba(255,255,255,.6); }
.p-elegante .pro-centro { inset: 12cqw 11cqw; align-items: center; justify-content: center; text-align: center; gap: 3cqw; }
.p-elegante .tit { font-family: var(--pro-serif); font-weight: 600; font-size: 9cqw; line-height: 1.08; text-transform: uppercase; letter-spacing: .1em; -webkit-line-clamp: 3; }
.p-elegante .versal { font-size: 2.9cqw; letter-spacing: .32em; }
.pro-regla { width: 14cqw; height: 1px; background: rgba(255,255,255,.75); }
.pro-cta-texto { font: 500 3cqw/1 var(--pro-sans); letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 1cqw; }

/* Lista: columna de color con titular y puntos, foto al lado */
.p-lista { background: var(--c1); }
.p-lista .pro-col { position: absolute; inset: 0 50% 0 0; padding: 7cqw 5cqw 7cqw 7cqw; display: flex; flex-direction: column; gap: 3cqw; }
.p-lista .pro-col .txt { position: static; flex: 1; justify-content: space-between; gap: 3cqw; min-height: 0; }
.p-lista .tit { font-family: var(--pro-sans); font-weight: 800; font-size: 7.6cqw; line-height: 1.04; letter-spacing: -.02em; -webkit-line-clamp: 3; }
.pro-puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8cqw; font: 500 3.3cqw/1.2 var(--pro-sans); }
.pro-puntos li { display: flex; gap: 2cqw; align-items: flex-start; }
.pro-puntos li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #fff; color: var(--c1); font-weight: 800; font-size: 2.8cqw; }
.p-lista .pro-cta { background: #fff; color: var(--c1); box-shadow: none; }
.p-lista .pro-foto-lado { position: absolute; inset: 0 0 0 50%; background: center / cover no-repeat; }

/* Frase: letra gruesa con la última palabra manuscrita */
.p-frase .pro-centro { inset: 12cqw 8cqw 14cqw; align-items: center; justify-content: center; text-align: center; gap: 4cqw; }
.p-frase .tit { font-family: 'Montserrat', var(--pro-sans); font-weight: 900; font-size: 9.5cqw; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; -webkit-line-clamp: 4; }
.pro-script { display: block; font-family: 'Great Vibes', cursive; font-style: normal; font-weight: 400; text-transform: none; font-size: 1.45em; line-height: 1; color: var(--c2); letter-spacing: 0; margin-top: .05em; }
/* Ajustes tras la revisión automática */
.p-panel .pro-insignia { top: -9cqw; width: 12cqw; height: 12cqw; }
.p-panel .txt { inset: 7cqw 7cqw 6cqw; }
.p-panel .tit { padding-right: 0; }
.p-precio .pro-izq { right: 38cqw; }
.p-precio .pro-circulo { width: 28cqw; height: 28cqw; }
.p-lista .pro-col { padding: 6cqw 4cqw 6cqw 6cqw; }
.p-lista .tit { -webkit-line-clamp: 4; }
.p-lista .pro-cta { font-size: 3cqw; padding: 2.2cqw 3.6cqw; max-width: 100%; }
.p-panel .pro-panel { height: 46cqw; }
.p-panel .foto.pro-foto-arriba { height: 58cqw; }
.p-panel .txt { gap: 3cqw; }
.p-panel .tit { flex: 0 1 auto; min-height: 0; }
.p-panel .pro-fila { flex: none; }

/* Inicio: próximas publicaciones y «Este mes» */
.btn-texto { border: 0; background: none; color: var(--primario); font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; padding: 0 4px; }
.tira-proximas { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.tira-proximas::-webkit-scrollbar { display: none; }
.prox { flex: none; width: 42%; max-width: 170px; scroll-snap-align: start; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: transform 160ms var(--ease-out, ease); }
.prox:active { transform: scale(.97); }
.prox .pieza { border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.prox-dia { display: block; margin-top: 6px; font-weight: 600; font-size: .85rem; }
.prox-estado { display: inline-block; margin-top: 3px; font-size: .72rem; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 2px 8px; }
.prox-video { aspect-ratio: 1; border-radius: 10px; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; }
.este-mes .cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.este-mes .cifras div { background: var(--primario-claro, #f3f4f6); border-radius: 12px; padding: 12px; }
.este-mes .cifras b { display: block; font: 700 1.6rem/1.1 var(--serif, Georgia, serif); color: var(--primario); }
.este-mes .cifras span { font-size: .82rem; color: var(--suave); }
.proximas > .fila, .este-mes > .fila { flex-wrap: nowrap; align-items: center; } .proximas h2, .este-mes h2 { margin: 0; }



/* Botón de calendario rehecho: tarjeta sólida con degradado, icono en círculo y flecha (sin bordes discontinuos) */
.prox-cal .prox-cal-caja {
  position: relative; border: 0; aspect-ratio: 1; border-radius: 14px; padding: 14px 12px; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px;
  background: linear-gradient(150deg, var(--primario) 0%, color-mix(in srgb, var(--primario) 70%, #000) 100%);
  color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primario) 60%, transparent); overflow: hidden;
}
.prox-cal .prox-cal-caja::before { content: ""; position: absolute; right: -22%; top: -22%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); }
.prox-cal-icono { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.prox-cal-icono svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prox-cal-icono svg circle { fill: #fff; stroke: none; }
.prox-cal .prox-cal-caja b { font-size: .95rem; line-height: 1.15; }
.prox-cal .prox-cal-caja small { font-size: .75rem; opacity: .8; }
.prox-cal-flecha { position: absolute; top: 18px; right: 14px; font-size: 1.1rem; opacity: .9; }
.prox-nueva .prox-cal-caja { background: linear-gradient(150deg, var(--acento-marca, var(--primario)) 0%, var(--primario) 100%); }
/* Cuadrar la tarjeta del calendario con las miniaturas: mismo tamaño, mismo radio y sombra, misma etiqueta debajo */
.tira-proximas { align-items: flex-start; }
.prox-cal .prox-cal-caja { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 12px; }
.prox-cal .prox-cal-caja b { font-size: .9rem; }

/* ───────── Foto del cliente (23 nov 2026, v2): a sangre y encuadrada en lo importante ─────────
   Nada de foto «pegada» con márgenes o relleno desenfocado: la foto llena su hueco (cover) y se centra
   en el punto donde está el producto o la persona (--foco, calculado al subirla), para que lo importante no se corte.
   Además Zaspy elige el diseño cuyo hueco tiene la forma más parecida a la foto. */
.pieza.foto-cliente :is(.foto, .capa-foto, .foto-k, .blob, .mini-c, .redonda, .m:not(.mt)) {
  background-size: cover !important; background-position: var(--foco, 50% 50%) !important; background-repeat: no-repeat !important;
}
/* Gigante, Cita y Pizarra: la foto va de borde a borde, sin marcos ni márgenes (no parece un recorte pegado). */
.p-gigante .foto.pro-foto-centro { left: 0; right: 0; bottom: 0; top: 33cqw; height: auto; border-radius: 0; box-shadow: none; }
.p-gigante .pro-velo-abajo { position: absolute; left: 0; right: 0; bottom: 0; height: 34cqw; background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); }
.p-gigante .txt.pro-abajo { inset: auto 6cqw 5cqw; }
.p-gigante .txt.pro-abajo .pro-resto { color: #fff; }
.p-gigante .txt.pro-abajo .versal:last-child { color: rgba(255,255,255,.85); opacity: 1; }
.p-cita.con-foto .mini-c, .forma-suave.p-cita.con-foto .mini-c, .forma-arco.p-cita.con-foto .mini-c, .forma-recto.p-cita.con-foto .mini-c { inset-inline-end: 0; top: 0; bottom: 0; width: 48%; height: auto; border-radius: 0; }
.p-pizarra .redonda { inset-inline: 0; bottom: 0; width: auto; height: 52cqw; border: 0; border-radius: 0; border-top: 1.2cqw solid #f1ede4; }
.titulo-previa { margin: 18px 0 8px; }
.boton-texto-ia { margin-top: 10px; min-height: 46px; }
/* Chat: el texto del post se ve directamente debajo de la imagen, como en Instagram */
.burbuja.propuesta .prop-texto { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; margin: 6px 0 4px; padding: 10px 12px; background: var(--fondo); border-radius: 10px; }

/* Editor: acciones del texto juntas, y la revisión automática en una línea discreta al final */
.acciones-texto { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acciones-texto .btn { margin: 0; padding-left: 8px; padding-right: 8px; font-size: .92rem; }
#tu-texto { margin-top: 10px; }
#publicar .cuando h3 { margin-top: 0 !important; }
.revision-ok { margin: 10px 0 0; font-size: .78rem; line-height: 1.4; color: var(--suave); }
.revision-ok span { color: var(--verde, #15803d); font-weight: 700; }

/* «¿Qué quieres contar?»: micrófono dentro de la caja, como en WhatsApp */
.caja-idea { position: relative; }
.caja-idea textarea { padding-right: 56px; }
.mic-idea { position: absolute; right: 8px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primario); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -6px var(--primario); transition: transform 160ms var(--ease-out); }
.mic-idea:active { transform: scale(0.94); }
.mic-idea .icono { width: 20px; height: 20px; margin: 0; }
.mic-idea.grabando { background: #dc2626; animation: latido 1s infinite; }
@media (prefers-reduced-motion: reduce) { .mic-idea.grabando { animation: none; } }
.segmento button { color: var(--texto, #1f2937); }

/* Bajo la vista previa: de dónde sale la imagen y cómo cambiarla con un toque */
.franja-imagen { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: var(--primario-claro); font-size: .8rem; color: var(--texto); }
.franja-imagen > div { display: flex; gap: 6px; }
.franja-imagen button { border: 1px solid var(--primario); background: var(--tarjeta); color: var(--primario); border-radius: 999px; padding: 6px 10px; font: inherit; font-weight: 600; font-size: .78rem; cursor: pointer; transition: transform 160ms var(--ease-out); }
.franja-imagen button:active { transform: scale(0.96); }
.franja-imagen button[data-acc="otra-ia"] { background: var(--primario); color: #fff; }

/* Chat: varias fotos = carrusel */
.chat-adjunto.varias img { width: 36px; height: 36px; }
.chat-adjunto.varias img + img { margin-left: -14px; box-shadow: 0 0 0 2px var(--tarjeta); }
.burbuja.varias .mini-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 4px; }
.burbuja.varias .mini-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.prop-pieza .carrusel .contador-diapo { font-size: .72rem; }
.escribiendo-ia { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--primario); font-weight: 600; margin-bottom: 8px; }

/* Reel con foto (24 nov 2026): la foto del cliente se ve ENTERA, nunca recortada.
   Detrás, la misma foto desenfocada rellena el formato vertical; el movimiento solo acerca hasta el 100 %, sin cortar. */
.reel.una .foto-borrosa { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(24px) saturate(1.15) brightness(.8); }
.reel.una .foto.unica.entera { inset: 0; background-size: contain !important; background-position: center 44% !important; background-repeat: no-repeat;
  animation: r-entera 6s ease-in-out infinite alternate !important; filter: drop-shadow(0 14px 24px rgba(0,0,0,.35)); }
@keyframes r-entera { from { transform: scale(.93) } to { transform: scale(1) } }
@media (prefers-reduced-motion: reduce) { .reel.una .foto.unica.entera { animation: none !important; } }

/* Reel con vídeo del cliente (24 nov 2026): entero, sin recortar; relleno con el mismo vídeo desenfocado. */
.reel-video video.rv-fondo { object-fit: cover; filter: blur(22px) saturate(1.15) brightness(.75); transform: scale(1.15); }
.reel-video video.rv-entero { object-fit: contain; }
