@font-face { font-family: 'Geist'; font-weight: 100 900; font-display: swap; src: url(/fuentes/geist-v5-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-display: swap; src: url(/fuentes/geist-mono-v6-latin.woff2) format('woff2'); }
@font-face { font-family: 'Mrs Saint Delafield'; font-weight: 400; font-display: swap; src: url(/fuentes/firma-msd-v14.woff2) format('woff2'); }
:root { --fondo: #F4F6FA; --texto: #0B1220; --cuerpo: #3B4453; --gris: #6B7280; --linea: #E3E7EF; --azul: #1D4ED8; --azul-t: #1D4ED8; --tarj: #fff; --tinta: #0B1220; --mono: 'Geist Mono', ui-monospace, monospace; --suave: cubic-bezier(.2,.8,.2,1); color-scheme: light; }
html.oscuro { --fondo: #070B14; --texto: #EEF2F8; --cuerpo: #C3CAD6; --gris: #98A2B3; --linea: #1C2436; --azul: #3B6BF0; --azul-t: #8FB0FF; --tarj: #111827; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html.sin-scroll, html.sin-scroll body { overflow: hidden; }
body { margin: 0; font-family: 'Geist', system-ui, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 620px at 78% -8%, #DCE7FF 0%, rgba(220,231,255,0) 62%), radial-gradient(900px 600px at -10% 110%, #E7EEFB 0%, rgba(231,238,251,0) 60%), var(--fondo); }
html.oscuro body { background: radial-gradient(1100px 620px at 78% -8%, #13245A 0%, rgba(19,36,90,0) 62%), radial-gradient(900px 600px at -10% 110%, #0E1733 0%, rgba(14,23,51,0) 60%), var(--fondo); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
svg { display: block; flex: none; }
.mono { font-family: var(--mono); }

/* ── La página: cabecera, pasos, texto, escenario, mando ── */
.d { height: 100vh; height: 100svh; min-height: 560px; display: grid; position: relative; }
.d-cab { grid-area: cab; display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: inherit; text-decoration: none; }
.logo i, .pr-logo i, .puente i, .ci-logo i, .n-ic i { font-style: normal; color: #3B6BF0; }
.d-que { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.d-hablamos { margin-left: auto; padding: 9px 16px; border-radius: 999px; background: var(--texto); color: var(--fondo); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.d-modo { margin-left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linea); background: var(--tarj); color: var(--texto); }
.caps { grid-area: caps; }
.cap { position: relative; display: flex; align-items: center; gap: 10px; color: var(--gris); }
.c-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; border: 1.5px solid var(--linea); transition: background .3s, color .3s, border-color .3s; }
.c-t { font-weight: 600; font-size: 15px; transition: color .3s; } .c-c, .p-c, .det-org { display: none; }
.c-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--linea); overflow: hidden; }
.c-barra i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--azul); }
.cap.act { color: var(--texto); } .cap.act .c-n { background: var(--azul); border-color: var(--azul); color: #fff; }
.cap.hecho .c-n { background: var(--texto); border-color: var(--texto); color: var(--fondo); }
.texto { grid-area: texto; }
.texto .kick { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--azul-t); }
.texto h1 { margin: 10px 0 0; font-weight: 650; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.texto .sub { margin: 14px 0 0; color: var(--cuerpo); line-height: 1.45; text-wrap: pretty; }
.texto.cambia > * { animation: sube .7s var(--suave) both; }
.texto.cambia h1 { animation-delay: .06s; } .texto.cambia .sub { animation-delay: .12s; }
@keyframes sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.escena { grid-area: escena; position: relative; overflow: hidden; overflow: clip; min-height: 0; }
.mando { grid-area: mando; display: flex; align-items: center; gap: 8px; }
.mando button { height: 44px; min-width: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--linea); background: var(--tarj); font-weight: 600; font-size: 15px; }
.mando .sig { padding: 0 18px 0 20px; background: var(--texto); color: var(--fondo); border-color: var(--texto); margin-left: auto; position: relative; }
.mando .sig.llama::after { content: ''; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--azul); animation: llama 1.6s ease-out infinite; }
@keyframes llama { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.nota-pie { grid-area: nota; margin: 0; font-size: 12px; color: var(--gris); }
body.al-final .mando #pausa, body.al-final .mando .sig { visibility: hidden; }
body.al-final .obj, body.al-final .rastro, body.al-final .costura, body.al-final .lado-et, body.al-final .texto { opacity: 0 !important; transition: opacity .5s ease; pointer-events: none; }

/* A · de uno en uno (como los estados) */
body[data-forma="a"] .d { grid-template-columns: minmax(360px, 440px) 1fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "cab escena" "texto escena" "caps escena" "mando escena" "nota escena"; column-gap: 8px; padding: 0 0 0 48px; }
body[data-forma="a"] .d-cab { padding: 40px 0 0; }
body[data-forma="a"] .texto { padding: 13vh 0 0; }
body[data-forma="a"] .texto h1 { font-size: clamp(40px, 4.2vw, 60px); }
body[data-forma="a"] .texto .sub { font-size: 18px; max-width: 34ch; }
body[data-forma="a"] .caps { display: grid; gap: 4px; align-content: end; padding: 0 0 26px; }
body[data-forma="a"] .cap { padding: 12px 0 14px; }
body[data-forma="a"] .mando { padding: 0 0 32px; }
body[data-forma="a"] .nota-pie { padding: 0 0 26px; }
body[data-forma="a"] .costura, body[data-forma="a"] .lado-et { display: none; }
.rastro { position: absolute; left: 24px; right: 24px; top: 14px; display: flex; gap: 8px; flex-wrap: nowrap; overflow: hidden; overflow: clip; z-index: 6; }
.chip-r { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--tarj); border: 1px solid var(--linea); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--cuerpo); opacity: 0; transform: scale(.85); transition: opacity .45s var(--suave), transform .45s var(--suave); box-shadow: 0 6px 16px -10px rgba(11,18,32,.35); }
.chip-r.ver { opacity: 1; transform: none; }
.chip-r svg { color: #059669; }
.chip-r[data-r="cli"] svg { color: #00A884; } .chip-r[data-r="ana"] svg { color: #B45309; }
.chip-r.late { animation: late .9s var(--suave); }
@keyframes late { 30% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(5,150,105,.18); } }

/* B · pantalla partida */
body[data-forma="b"] .d { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "cab" "caps" "texto" "escena" "mando"; padding: 0 40px; max-width: 1480px; margin: 0 auto; }
body[data-forma="b"] .d-cab { padding: 22px 0 0; }
body[data-forma="b"] .caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 0 0; }
body[data-forma="b"] .cap { padding: 0 0 12px; }
body[data-forma="b"] .texto { text-align: center; padding: 22px 0 6px; }
body[data-forma="b"] .texto h1 { font-size: clamp(32px, 3.3vw, 46px); margin-top: 6px; }
body[data-forma="b"] .texto .sub { font-size: 17px; max-width: 60ch; margin: 10px auto 0; }
body[data-forma="b"] .mando { padding: 10px 0 18px; }

body[data-forma="b"] .mando .sig { margin-left: auto; }
body[data-forma="b"] .nota-pie, body[data-forma="b"] .rastro { display: none; }
.lado-et { position: absolute; z-index: 1; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--gris); white-space: nowrap; }
.costura { position: absolute; z-index: 4; pointer-events: none; }
.costura::before { content: ''; position: absolute; background-image: linear-gradient(var(--linea) 50%, transparent 0); background-size: 2px 10px; }
body:not(.es-movil) .costura::before { left: -1px; top: 26px; bottom: 6px; width: 2px; }
body.es-movil .costura::before { top: -1px; left: 0; right: 0; height: 2px; background-image: linear-gradient(90deg, var(--linea) 50%, transparent 0); background-size: 10px 2px; }
.puente { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tinta); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.04em; box-shadow: 0 12px 30px -10px rgba(11,18,32,.6), 0 0 0 6px var(--fondo); }
html.oscuro .puente { background: #1A2A55; box-shadow: 0 0 0 1px rgba(143,176,255,.25), 0 0 0 6px var(--fondo); }
body.es-movil .puente { left: 50%; top: 0; width: 46px; height: 46px; font-size: 14px; }
.puente.zumba { animation: zumba .55s var(--suave); }
@keyframes zumba { 40% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 10px rgba(59,107,240,.25), 0 0 0 6px var(--fondo); } }

/* ── Las piezas ── */
.obj { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .9s var(--suave), opacity .55s ease; will-change: transform; container-type: size; }
.escena.sin-trans .obj { transition: none !important; }
.obj.apagada { pointer-events: none; }
/* El teléfono (en ordenador, con su marco; en el móvil, la pantalla sola) */
.tel { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 52px; border: 11px solid #0B1220; background: #EFEAE2; box-shadow: 0 50px 90px -40px rgba(11,18,32,.55), 0 0 0 1px rgba(11,18,32,.08); }
.tel::before { content: ''; position: absolute; z-index: 9; top: 10px; left: 50%; width: 104px; height: 30px; border-radius: 20px; background: #0B1220; transform: translateX(-50%); }
.estado-tel { flex: none; display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 30px 0 34px; font-size: 15px; background: #F0F2F5; color: #111B21; }
.st-ic { display: flex; gap: 3px; align-items: flex-end; } .st-ic i { width: 4px; border-radius: 1px; background: currentColor; } .st-ic i:nth-child(1) { height: 6px; } .st-ic i:nth-child(2) { height: 9px; } .st-ic i:nth-child(3) { height: 12px; }
.tel-osc .estado-tel { background: transparent; color: #fff; position: absolute; z-index: 8; left: 0; right: 0; transition: color .3s; }
.tel-osc:has(.preg.ver) .estado-tel { color: #0B1220; } html.oscuro .tel-osc:has(.preg.ver) .estado-tel { color: #E7EBF3; }
body.es-movil .tel { border-radius: 22px; border: 1px solid var(--linea); box-shadow: 0 24px 50px -30px rgba(11,18,32,.45); }
body.es-movil .tel::before, body.es-movil .estado-tel { display: none; }
html.oscuro .tel { box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }

/* WhatsApp del cliente */
.wa { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #EFEAE2; }
.wa-cab { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F0F2F5; border-bottom: 1px solid #E2E4E7; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0B1220; color: #fff; font-weight: 650; }
.wa-cab b { display: block; font-weight: 600; color: #111B21; } .wa-cab small { display: block; color: #667781; font-size: 13px; }
.wa-hilo { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; scrollbar-width: none; }
.wa-hilo::-webkit-scrollbar { display: none; }
.wa-hilo > :first-child { margin-top: auto; }
.wa-b { position: relative; max-width: 86%; padding: 6px 9px 7px; border-radius: 9px; font-size: 15px; line-height: 1.38; color: #111B21; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-b.ent { align-self: flex-start; background: #fff; border-top-left-radius: 0; margin-left: 8px; }
.wa-b.sal { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 0; margin-right: 8px; }
.wa-b.ent::before, .wa-b.sal::before { content: ''; position: absolute; top: 0; width: 8px; height: 12px; background: inherit; }
.wa-b.ent::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); } .wa-b.sal::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-b .de { display: block; font-size: 12.5px; font-weight: 600; color: #1F7A5C; margin-bottom: 1px; }
.wa-b .ln { display: block; padding: 1px 5px; margin: 1px -5px 0; border-radius: 5px; transition: background .4s, color .4s; }
.wa-b .ln:first-of-type { margin-top: 4px; }
.wa-b .ln.marca { background: #DBE7FF; color: #1D4ED8; font-weight: 600; }
.wa-b .pa { display: block; margin-top: 5px; }
.wa-h { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px -2px -3px 12px; font-size: 11px; line-height: 15px; color: #667781; }
.wa-b.entra { animation: burbuja .45s var(--suave) both; }
@keyframes burbuja { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-b.aud { min-width: 250px; }
.wa-audio { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.wa-audio .play { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #54656F; }
.wa-onda { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.wa-onda i { display: block; width: 3px; border-radius: 2px; background: #9DA8AE; transition: background .1s; }
.wa-onda.suena i { animation: oir .12s linear both; animation-delay: calc(var(--k, 0) * 1s); } .wa-onda.oida i { background: #2F6FED; }
@keyframes oir { to { background: #2F6FED; } }
.aud-pie { display: flex; justify-content: space-between; align-items: center; padding-left: 42px; font-size: 11px; color: #667781; }
.aud-pie .wa-h { float: none; margin: 0; }
.wa-trans { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(17,27,33,.08); font-size: 14px; line-height: 1.4; color: #3B4A54; font-style: italic; animation: burbuja .5s var(--suave) both; }
.wa-chip { align-self: center; margin: 4px 0; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.95); color: #54656F; font-size: 12.5px; }
.wa-escribe { align-self: flex-start; margin-left: 8px; display: flex; gap: 4px; padding: 12px 14px; border-radius: 9px; border-top-left-radius: 0; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); animation: burbuja .3s var(--suave) both; }
.wa-escribe i { width: 7px; height: 7px; border-radius: 50%; background: #9DA8AE; animation: puntos 1.1s infinite ease-in-out; }
.wa-escribe i:nth-child(2) { animation-delay: .15s; } .wa-escribe i:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-pie { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 10px 12px; background: #F0F2F5; }
.wa-in { flex: 1; padding: 10px 16px; border-radius: 999px; background: #fff; color: #8696A0; font-size: 15px; }
.wa-mic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #00A884; color: #fff; }
html.oscuro .wa, html.oscuro .tel { background: #0B141A; }
html.oscuro .wa-cab, html.oscuro .wa-pie, html.oscuro .estado-tel { background: #202C33; border-color: #2A3942; color: #E9EDEF; }
html.oscuro .wa-cab b { color: #E9EDEF; } html.oscuro .wa-cab small { color: #8696A0; } html.oscuro .wa-av { background: #2A3942; }
html.oscuro .wa-b { color: #E9EDEF; box-shadow: none; } html.oscuro .wa-b.ent, html.oscuro .wa-escribe { background: #202C33; } html.oscuro .wa-b.sal { background: #005C4B; }
html.oscuro .wa-h, html.oscuro .aud-pie { color: rgba(233,237,239,.6); } html.oscuro .wa-b .de { color: #53BDEB; }
html.oscuro .wa-trans { color: #D1D7DB; border-color: rgba(255,255,255,.1); } html.oscuro .wa-audio .play { color: #AEBAC1; } html.oscuro .wa-onda i { background: #8696A0; }
html.oscuro .wa-onda.oida i { background: #53BDEB; } html.oscuro .wa-chip { background: #182229; color: #8696A0; } html.oscuro .wa-in { background: #2A3942; color: #8696A0; }
html.oscuro .wa-b .ln.marca { background: rgba(83,189,235,.18); color: #9FD8F3; }

/* Su programa: un programa de gestión cualquiera (siempre claro: es el suyo) */
.erp { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #F3F4F6; color: #1F2937; font-size: 13.5px; box-shadow: 0 50px 90px -40px rgba(11,18,32,.5), 0 0 0 1px rgba(11,18,32,.1); }
html.oscuro .erp { box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); }
.erp-barra { flex: none; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: #374151; color: #E5E7EB; font-size: 13px; }
.erp-logo { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #F59E0B; color: #1F2937; font-weight: 800; font-size: 13px; }
.erp-barra b { color: #fff; font-size: 14px; }
.erp-nav { display: flex; gap: 2px; } .erp-nav span { padding: 4px 9px; border-radius: 5px; opacity: .75; } .erp-nav .act { background: rgba(255,255,255,.14); opacity: 1; }
.erp-emp { margin-left: auto; opacity: .7; white-space: nowrap; }
.erp-c { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow: hidden; }
.erp-t { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.erp table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E5E7EB; }
.erp th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; padding: 7px 10px; border-bottom: 1px solid #E5E7EB; background: #F9FAFB; font-weight: 600; white-space: nowrap; }
.erp td { padding: 8px 10px; border-bottom: 1px solid #F1F2F4; white-space: nowrap; }
.erp .der { text-align: right; }
.org { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #F3F4F6; color: #4B5563; }
.org.mz { background: #DBEAFE; color: #1D4ED8; }
.erp-lista tr.nueva td { background: #EFF6FF; font-weight: 600; }
.erp-lista tbody tr:nth-child(n+5) { display: none; }
.erp-lista tr.nueva.entra td { animation: fila 1s var(--suave) both; }
@keyframes fila { from { background: #BFDBFE; opacity: 0; transform: translateY(-6px); } 40% { opacity: 1; } to { background: #EFF6FF; } }
.erp-det { display: none; padding: 12px; border-radius: 8px; background: #fff; border: 1px solid #E5E7EB; }
.erp-det.ver { display: block; animation: burbuja .5s var(--suave) both; }
.det-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.det-cab b { font-size: 15px; } .det-cab span { color: #4B5563; } .det-ent { flex-basis: 100%; font-size: 12.5px; }
.erp-det table { border: 0; }
.erp-lin td:nth-child(2) { white-space: normal; }
.erp-lin tr.vacia td { height: 34px; }
.hueso { display: block; width: 58px; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #EEF0F3, #F6F7F9, #EEF0F3); background-size: 200% 100%; animation: hueso 1.4s linear infinite; }
.hueso.largo { width: 70%; }
@keyframes hueso { to { background-position: -200% 0; } }
.erp-lin tr.llena.flash td { animation: llena 1.4s var(--suave); }
@keyframes llena { 0% { background: #C7DAFF; } 100% { background: #fff; } }
.erp-tot { display: flex; justify-content: flex-end; gap: 16px; margin-top: 10px; font-size: 14px; } .erp-tot b { font-size: 16px; font-variant-numeric: tabular-nums; }
.erp-obs { margin: 8px 0 0; font-size: 12px; color: #6B7280; }
.sello { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #0B1220; color: #fff; font-size: 13.5px; box-shadow: 0 16px 30px -14px rgba(11,18,32,.6); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s var(--suave), transform .5s var(--suave); }
.sello.ver { opacity: 1; transform: none; } .sello svg { color: #FBBF24; } .sello b { font-weight: 650; }
@container (max-width: 560px) {
  .erp-nav, .erp-emp, .c-f, .c-e, .c-p, .erp-lista, .erp-obs, .p-l { display: none; }
  .p-c { display: inline; } .det-org { display: inline-block; } .det-cab { gap: 4px 8px; } .erp-t { margin: 0; }
  .erp-c { padding: 10px; gap: 10px; } .erp td, .erp th { padding: 6px 7px; } .erp-det { padding: 10px; }
  .erp-lin td:nth-child(2) { font-size: 12.5px; line-height: 1.25; }
  .sello { left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; font-size: 13px; }
}
@container (max-height: 330px) { .erp-lw, .erp-obs, .det-ent, .erp-lin thead { display: none; } .erp-c { padding-top: 8px; } .det-cab { margin-bottom: 6px; } .erp-lin td { padding-top: 5px; padding-bottom: 5px; } .erp-lin tr.vacia td { height: 27px; } .erp-tot { margin-top: 6px; } .sello { display: none; } }
@container (max-height: 300px) { .wa-pie { display: none; } .wa-cab { padding: 6px 12px; } .wa-av { width: 30px; height: 30px; font-size: 13px; } .wa-cab small { display: none; } .wa-hilo { padding-top: 6px; padding-bottom: 8px; } .wa-b { font-size: 14px; } }

/* El móvil de Ana: el aviso y la pregunta */
.tel-osc { background: radial-gradient(120% 80% at 20% 0%, #33508F 0%, #182544 45%, #0B1220 100%); }
.bloq { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 70px 14px 20px; color: #fff; }
.b-arriba { text-align: center; } .b-arriba p { margin: 0; font-size: 16px; opacity: .85; } .b-arriba b { display: block; font-size: 78px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.notis { margin-top: 26px; }
.noti { position: relative; display: flex; gap: 10px; width: 100%; padding: 12px; border-radius: 20px; background: #E9ECF3; color: #111; text-align: left; }
.noti.cae { animation: cae .7s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes cae { from { opacity: 0; transform: translateY(-40px) scale(.94); } to { opacity: 1; transform: none; } }
.n-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #0B1220; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: -.03em; }
.n-t { flex: 1; min-width: 0; } .n-app { display: flex; justify-content: space-between; font-size: 12px; color: #6B7280; letter-spacing: .02em; }
.n-t b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; } .n-c { display: block; margin-top: 1px; font-size: 14.5px; line-height: 1.3; color: #1F2937; }
.preg { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: #F3F5FA; color: #0B1220; transform: translateX(104%); transition: transform .55s var(--suave); }
.preg.ver { transform: none; }
.pr-cab { flex: none; display: flex; align-items: center; gap: 10px; padding: 58px 18px 10px; font-weight: 600; }
body.es-movil .pr-cab { padding-top: 14px; }
.pr-logo { font-weight: 700; letter-spacing: -.04em; font-size: 17px; }
.pr-cab span:last-child { color: #6B7280; font-weight: 500; font-size: 14px; }
.pr-cuerpo { flex: 1; min-height: 0; overflow: hidden; padding: 4px 18px; }
.pr-num { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: #B45309; }
.preg h3 { margin: 4px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.pr-q { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
.et { margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #6B7280; }
.pr-mir { margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E3E7F0; }
.f2 { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; } .f2 + .f2 { border-top: 1px solid #EEF0F4; } .f2 b { font-weight: 600; }
.pr-dicho { margin-top: 12px; } .dicho-b { margin: 0; padding: 8px 10px; border-radius: 10px; border-top-left-radius: 0; background: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.pr-pie { flex: none; padding: 10px 14px 18px; background: #FFF5E3; border-top: 1px solid #F6D39A; }
.pr-pie p { margin: 0 4px 8px; font-weight: 600; font-size: 14px; color: #92400E; }
.d-resp { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: #fff; border: 1px solid #F0CF98; }
.d-campo { flex: 1; min-width: 0; min-height: 34px; padding: 7px 0; font-size: 15.5px; line-height: 1.3; color: #0B1220; }
.d-campo .ph { color: #8A93A3; } .d-resp:has(.foco) { box-shadow: 0 0 0 2px #5B86FF; }
.cursor { display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #1D4ED8; animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.d-env { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1D4ED8; color: #fff; }
html.oscuro .preg { background: #0E1524; color: #E7EBF3; } html.oscuro .pr-cab span:last-child, html.oscuro .et { color: #98A2B3; }
html.oscuro .pr-mir, html.oscuro .dicho-b { background: #151E31; border-color: #222C40; color: #E7EBF3; } html.oscuro .f2 + .f2 { border-color: #222C40; }
html.oscuro .pr-pie { background: #241A0B; border-color: #5A3F12; } html.oscuro .pr-pie p, html.oscuro .pr-num { color: #F8B850; }
html.oscuro .d-resp { background: #0E1524; border-color: #5A3F12; } html.oscuro .d-campo { color: #E7EBF3; } html.oscuro .d-env { background: #3B6BF0; }
@container (max-height: 470px) { .pr-dicho { display: none; } .b-arriba b { font-size: 56px; } .bloq { padding-top: 26px; } .notis { margin-top: 16px; } }
@container (max-height: 330px) { .pr-mir, .pr-q { display: none; } .pr-cab { padding: 10px 14px 4px; } .preg h3 { font-size: 19px; } .b-arriba { display: none; } .bloq { padding-top: 14px; justify-content: center; } .notis { margin: 0; } .pr-pie { padding: 8px 12px 12px; } }

/* Su panel (Marino) */
.pan { position: absolute; inset: 0; display: flex; overflow: hidden; border-radius: 22px; background: #F3F5FA; color: #0B1220; box-shadow: 0 50px 90px -40px rgba(11,18,32,.5), 0 0 0 1px rgba(11,18,32,.08); }
.pan-riel { flex: none; width: 70px; margin: 12px 0 12px 12px; padding: 12px 0; border-radius: 22px; background: #0F1E45; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pa-a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; font-weight: 650; margin-bottom: 6px; }
.pa-i { width: 52px; height: 44px; border-radius: 14px; display: grid; place-items: center; } .pa-i.act { background: rgba(255,255,255,.14); }
.sq { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); }
.c-inicio { --c: #1D4ED8; } .c-pedidos { --c: #0891B2; } .c-clientes { --c: #7C3AED; } .c-catalogo { --c: #059669; } .c-ajustes { --c: #64748B; }
.pan-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; overflow: hidden; }
.pan-cab { margin: 0; font-weight: 650; font-size: 17px; }
.pan-sal { padding: 20px 22px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(91,134,255,.45) 0%, rgba(91,134,255,0) 55%), linear-gradient(135deg, #0F1E45 0%, #1B3878 100%); }
.pan-sal p { margin: 0; font-size: 14px; opacity: .8; } .pan-sal h4 { margin: 6px 0 0; font-size: 42px; font-weight: 600; letter-spacing: -.045em; line-height: 1; } .pan-sal h4 span { color: #9DBBFF; } .pan-sal .fr { margin-top: 10px; font-size: 15.5px; }
.pan-cif { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pan-cif > div { padding: 14px; border-radius: 16px; }
.pan-cif i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-bottom: 8px; }
.pan-cif span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.pan-cif b { display: block; margin-top: 4px; font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.pan-cif small { display: block; margin-top: 4px; font-size: 12px; color: #4B5563; }
.t1 { background: #E8F0FF; } .t1 i { background: #1D4ED8; } .t1 span { color: #1E40AF; }
.t2 { background: #E3F6EE; } .t2 i { background: #059669; } .t2 span { color: #047857; }
.t3 { background: #ECEBFD; } .t3 i { background: #5B4BDB; } .t3 span { color: #4338CA; }
.pan-lista { border-radius: 18px; background: #fff; border: 1px solid #E3E7F0; overflow: hidden; }
.pl-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #E3E7F0; } .pl-cab b { font-size: 15px; }
.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #047857; }
.pl-f { padding: 10px 16px; border-top: 1px solid #EEF0F4; } .pl-f:first-of-type { border-top: 0; }
.pl-f b { display: block; font-weight: 600; font-size: 15px; } .pl-f small { display: block; font-size: 13px; color: #6B7280; }
.pl-f.brilla { animation: brilla 1.6s var(--suave); }
@keyframes brilla { 0% { background: #DBE7FF; box-shadow: inset 3px 0 0 #1D4ED8; } 100% { background: #fff; box-shadow: inset 3px 0 0 transparent; } }
html.oscuro .pan { background: #0A0F1C; color: #E7EBF3; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
html.oscuro .pan-riel { background: #0F1A33; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
html.oscuro .pan-sal { background: radial-gradient(120% 140% at 100% 0%, rgba(91,134,255,.35) 0%, rgba(91,134,255,0) 55%), linear-gradient(135deg, #12265A 0%, #1E3F8C 100%); }
html.oscuro .t1 { background: #13234A; } html.oscuro .t1 span { color: #A9C3FF; } html.oscuro .t2 { background: #0E2A22; } html.oscuro .t2 span { color: #6EE7B7; } html.oscuro .t3 { background: #1F1D47; } html.oscuro .t3 span { color: #C4B5FD; }
html.oscuro .pan-cif small { color: #A3ACBC; } html.oscuro .pan-lista { background: #121A2B; border-color: #212B40; } html.oscuro .pl-cab, html.oscuro .pl-f { border-color: #1C2538; }
html.oscuro .pl-f small { color: #98A2B3; } html.oscuro .ok { color: #4ADE9B; }
@keyframes brilla-o { 0% { background: #1C2C55; } 100% { background: transparent; } } html.oscuro .pl-f.brilla { animation-name: brilla-o; }
@container (max-width: 600px) { .pan-riel { display: none; } .pan-c { padding: 12px; gap: 10px; } .pan-sal { padding: 14px 16px; } .pan-sal h4 { font-size: 30px; } .pan-sal .fr { font-size: 14px; margin-top: 6px; }
  .pan-cif { gap: 6px; } .pan-cif > div { padding: 10px; } .pan-cif i { display: none; } .pan-cif b { font-size: 30px; } .pan-cif small { display: none; } .pan-cif span { min-height: 26px; font-size: 9.5px; } .pan-cab { font-size: 15px; } }
@container (max-height: 460px) { .pl-f:nth-of-type(n+3) { display: none; } }
@container (max-height: 330px) { .pan-lista, .pan-sal > p:first-child { display: none; } .pan-sal h4 { font-size: 24px; } }

/* ── Vuelos ── */
.vuelos { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.vuelo { position: absolute; left: 0; top: 0; padding: 7px 12px; border-radius: 999px; background: #fff; color: #0B1220; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(11,18,32,.45), 0 0 0 1px rgba(11,18,32,.08); transition: background .25s, color .25s, opacity .3s; }
.vuelo.larga { white-space: normal; width: 260px; border-radius: 16px; font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.vuelo.ya { background: #1D4ED8; color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
.vuelo.fuera { opacity: 0; }
.pulsa { position: relative; }
.pulsa::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 2.5px solid #3B6BF0; animation: pulsa 1.3s ease-out infinite; pointer-events: none; }
.play.pulsa::after, .d-env.pulsa::after { border-radius: 50%; }
.noti.pulsa::after { border-radius: 24px; }
@keyframes pulsa { 0% { opacity: 1; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.18); } }
.toque { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(59,107,240,.35); animation: toque .55s ease-out forwards; }
@keyframes toque { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.play.sonando { color: #2F6FED; }

/* ── El cierre ── */
.cierre { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.cierre.ver { opacity: 1; pointer-events: auto; }
.ci-in { max-width: 520px; text-align: center; }
.cierre.ver .ci-in > * { animation: sube .8s var(--suave) both; } .cierre.ver .ci-in > :nth-child(2) { animation-delay: .08s; } .cierre.ver .ci-in > :nth-child(3) { animation-delay: .16s; } .cierre.ver .ci-in > :nth-child(n+4) { animation-delay: .24s; }
.ci-logo { display: inline-block; font-weight: 700; font-size: 26px; letter-spacing: -.04em; }
.cierre h2 { margin: 18px 0 0; font-size: clamp(34px, 4vw, 52px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
.cierre p { margin: 14px auto 0; max-width: 40ch; font-size: 17px; line-height: 1.45; color: var(--cuerpo); }
.ci-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 16px 26px; border-radius: 999px; background: #0B1220; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; box-shadow: 0 18px 36px -16px rgba(11,18,32,.6); transition: transform .1s; }
html.oscuro .ci-wa { background: #fff; color: #0B1220; }
.ci-wa:active { transform: translateY(1px) scale(.98); } .ci-wa svg { color: #25D366; }
.ci-dos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ci-dos button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--tarj); font-weight: 600; font-size: 15px; }
.ci-nota { font-size: 14px !important; }

/* ── En el móvil ── */
@media (max-width: 759px) {
  body[data-forma="a"] .d, body[data-forma="b"] .d { grid-template-columns: 1fr; padding: 0 16px; column-gap: 0; }
  body[data-forma="a"] .d { grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "caps" "cab" "texto" "escena" "mando"; }
  body[data-forma="a"] .caps { grid-template-columns: repeat(4, 1fr); display: grid; gap: 4px; padding: 10px 0 0; align-content: start; }
  body[data-forma="a"] .cap { padding: 0; height: 3px; } body[data-forma="a"] .cap .c-n, body[data-forma="a"] .cap .c-t { display: none; }
  body[data-forma="a"] .c-barra { height: 3px; background: color-mix(in srgb, var(--texto) 14%, transparent); }
  body[data-forma="a"] .cap.hecho .c-barra i { width: 100% !important; }
  body[data-forma="a"] .d-cab { padding: 10px 0 0; } body[data-forma="a"] .texto { padding: 12px 0 12px; }
  body[data-forma="a"] .texto h1, body[data-forma="b"] .texto h1 { font-size: 27px; margin-top: 6px; }
  body[data-forma="a"] .texto .sub, body[data-forma="b"] .texto .sub { font-size: 15px; margin-top: 7px; }
  body[data-forma="a"] .nota-pie { display: none; }
  body[data-forma="a"] .mando, body[data-forma="b"] .mando { padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
  body[data-forma="b"] .mando::before { display: none; }
  body[data-forma="b"] .mando .sig { margin-left: auto; }
  .rastro { left: 0; right: 0; top: 2px; gap: 6px; } .chip-r { height: 28px; font-size: 12px; padding: 0 9px 0 8px; }
  .chip-r:not(.ult) { width: 28px; padding: 0; justify-content: center; } .chip-r:not(.ult) .cl { display: none; }
  .d-cab { gap: 8px; } .logo { font-size: 19px; } .d-que { font-size: 10.5px; } .d-modo { width: 36px; height: 36px; }
  body[data-forma="b"] .d-cab { padding: 10px 0 0; }
  body[data-forma="b"] .caps { gap: 6px; padding: 10px 0 0; } body[data-forma="b"] .cap { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 0 8px; }
  body[data-forma="b"] .c-n { display: none; } body[data-forma="b"] .c-t { font-size: 11.5px; line-height: 1.15; min-height: 27px; }
  body[data-forma="b"] .texto { padding: 10px 0 4px; text-align: left; } body[data-forma="b"] .texto .kick { display: none; }
  body[data-forma="b"] .texto h1 { font-size: 23px; } body[data-forma="b"] .texto .sub { margin-left: 0; font-size: 14px; }
  .cierre h2 { font-size: 32px; } .cierre p { font-size: 15.5px; } .ci-wa { padding: 15px 22px; font-size: 16px; }
  .vuelo { font-size: 13px; padding: 6px 10px; } .vuelo.larga { width: 230px; }
}
@media (max-width: 759px) { body[data-forma="a"] .texto .sub { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } body[data-forma="b"] .texto .sub { display: none; } .c-l { display: none; } .c-c { display: inline; }
  body[data-forma="b"] .lado-et { z-index: 6; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--fondo) 86%, transparent); font-size: 10px; }
  body[data-forma="b"] .caps { padding-top: 12px; } body[data-forma="b"] .c-t { min-height: 0; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── El final de la historia: hablar, o antes mirarlo ── */
.ci-dos a, .ci-dos button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--tarj); color: var(--texto); font-weight: 600; font-size: 15px; text-decoration: none; }
.ci-dos svg { flex: none; }

/* ── 2 · Míralo tú: el panel de verdad ── */
.mira { padding: 64px 48px 30px; }
.mira-txt { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.mira .kick, .final .kick { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--azul-t); }
.mira h2, .final h2 { margin: 10px 0 0; font-size: clamp(40px, 4.6vw, 66px); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.mira-txt p:last-child { margin: 14px auto 0; max-width: 46ch; font-size: 18px; line-height: 1.45; color: var(--cuerpo); }
.ventana { position: relative; display: flex; flex-direction: column; width: min(1240px, 100%); height: min(760px, calc(100svh - 200px)); min-height: 520px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: var(--tarj); box-shadow: 0 60px 120px -60px rgba(11,18,32,.55), 0 0 0 1px rgba(11,18,32,.1); }
html.oscuro .ventana { box-shadow: 0 60px 120px -60px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); }
.v-barra { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #EEF1F6; border-bottom: 1px solid #E1E5EC; }
.v-barra i { width: 11px; height: 11px; border-radius: 50%; background: #D5D9E2; }
.v-barra span { margin: 0 auto; transform: translateX(-26px); padding: 4px 16px; border-radius: 8px; background: #fff; font-family: var(--mono); font-size: 12px; color: #6B7280; }
html.oscuro .v-barra { background: #161E2E; border-color: #222C40; } html.oscuro .v-barra i { background: #2A3550; } html.oscuro .v-barra span { background: #0E1524; color: #98A2B3; }
.ventana iframe { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: var(--fondo); }
.abrir, .v-cerrar { display: none; }

/* ── 3 · El cierre ── */
.final { padding: 120px 24px 34px; text-align: center; }
.final p.sub { margin: 16px auto 0; max-width: 40ch; font-size: 18px; line-height: 1.45; color: var(--cuerpo); }
.final .ci-wa { margin-top: 28px; }
.probar-l { display: block; width: fit-content; margin: 18px auto 0; color: var(--cuerpo); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cuerpo) 40%, transparent); }
.final .ci-nota { margin: 10px auto 0; max-width: 46ch; font-size: 14px; color: var(--gris); }
.pie { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin: 110px auto 0; max-width: 900px; font-size: 13px; color: var(--gris); }
.pie .logo { font-size: 17px; color: var(--texto); }
.pie a { color: inherit; text-decoration: none; } .pie a:hover { text-decoration: underline; }
.pie .nota { flex-basis: 100%; text-align: center; margin: 4px 0 0; font-size: 12px; }

@media (max-width: 759px) {
  .mira { padding: 52px 16px 10px; }
  .mira-txt { margin-bottom: 18px; } .mira h2, .final h2 { font-size: 36px; } .mira-txt p:last-child, .final p.sub { font-size: 16px; }
  .ventana { height: min(560px, calc(100svh - 190px)); min-height: 400px; border-radius: 24px; cursor: pointer; }
  .v-barra { display: none; }
  .ventana iframe { pointer-events: none; }
  .ventana::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--fondo) 88%); }
  .abrir { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px; background: var(--texto); color: var(--fondo); font-weight: 600; font-size: 16px; white-space: nowrap; box-shadow: 0 18px 36px -16px rgba(11,18,32,.6); }
  .ventana.abierta { position: fixed; z-index: 100; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; }
  .ventana.abierta::after, .ventana.abierta .abrir { display: none; }
  .ventana.abierta iframe { pointer-events: auto; }
  .ventana.abierta .v-cerrar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px 16px; background: var(--texto); color: var(--fondo); font-size: 14px; font-weight: 600; }
  .v-cerrar button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--fondo) 16%, transparent); color: inherit; font-weight: 600; }
  .final { padding: 80px 20px 28px; }
  .pie { margin-top: 70px; }
}

/* ── La cabecera en el móvil: el logo, «¿Hablamos?» y el modo ── */
@media (max-width: 759px) { .d-que { display: none; } .d-hablamos { padding: 8px 14px; font-size: 14px; } }

/* ── El cierre, firmado (el de la web: «¿Hablamos de tu almacén?») ── */
.firma { display: block; margin: 18px 0 0; font-family: 'Mrs Saint Delafield', cursive; font-size: 46px; line-height: 1; color: var(--texto); }
.fin-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fin-btns .ci-wa { margin-top: 0; }
.ci-correo { display: inline-flex; align-items: center; padding: 16px 24px; border-radius: 999px; border: 1px solid var(--linea); background: var(--tarj); color: var(--texto); font-weight: 600; font-size: 17px; text-decoration: none; }
.fin-mas { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.fin-mas button { color: var(--cuerpo); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cuerpo) 40%, transparent); }
.pie .volver-web { color: inherit; }
@media (max-width: 759px) { .ci-correo { padding: 15px 22px; font-size: 16px; } .firma { font-size: 40px; } }

/* ── El chat de preguntas (chat.js): las de siempre, con su respuesta, y lo que escribas va al asistente de MZ ── */
.x-asis { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: min(88vh, 700px); height: min(88dvh, 700px); display: flex; flex-direction: column; overflow: hidden; text-align: left; background: var(--tarj); border: 1px solid var(--linea); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,.3); }
.x-asis[hidden] { display: none !important; }
.x-asis button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.x-asis-cab { display: flex; align-items: center; gap: 11px; padding: 13px 8px 13px 16px; border-bottom: 1px solid var(--linea); }
.x-asis-cab .x-logo { font-weight: 700; font-size: 18px; letter-spacing: -.04em; } .x-asis-cab .x-logo i { font-style: normal; color: #3B6BF0; }
.x-asis-cab div { flex: 1; min-width: 0; line-height: 1.2; } .x-asis-cab b { display: block; font-weight: 650; font-size: 15.5px; } .x-asis-cab div span { font-size: 12.5px; color: var(--gris); }
.x-asis-cab button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.x-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.x-asis-chat { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--fondo); }
.x-am { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.x-am.bot { align-self: flex-start; background: var(--tarj); border: 1px solid var(--linea); border-bottom-left-radius: 5px; }
.x-am.yo { align-self: flex-end; background: #1D4ED8; color: #fff; border-bottom-right-radius: 5px; }
.x-am-wa { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: var(--texto); color: var(--fondo); font-weight: 600; text-decoration: none; text-align: center; }
.x-am.escribe { display: flex; gap: 4px; padding: 14px; } .x-am.escribe i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris); animation: puntos 1s infinite; }
.x-am.escribe i:nth-child(2) { animation-delay: .15s; } .x-am.escribe i:nth-child(3) { animation-delay: .3s; }
.x-fijas { align-self: stretch; display: grid; gap: 6px; margin: 2px 0 4px; }
.x-fijas button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 9px 13px; border-radius: 13px; border: 1px solid var(--linea); background: var(--tarj); font-size: 15px; line-height: 1.25; font-weight: 550; text-align: left; }
.x-fijas button::after { content: ''; flex: none; width: 7px; height: 7px; border-top: 1.8px solid var(--gris); border-right: 1.8px solid var(--gris); transform: rotate(45deg); margin-right: 3px; }
.x-fijas button.vista { color: var(--gris); }
.x-asis-form { display: flex; gap: 8px; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.x-asis-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--texto); border: 1.5px solid var(--linea); border-radius: 99px; padding: 11px 16px; outline: none; background: var(--tarj); }
.x-asis-form input:focus { border-color: #3B6BF0; }
.x-asis-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #1D4ED8; color: #fff; display: grid; place-items: center; }
.x-asis-form button:disabled { opacity: .4; }
@media (min-width: 760px) { .x-asis { left: auto; right: 24px; bottom: 24px; width: 420px; height: min(640px, calc(100vh - 48px)); border-radius: 24px; border-bottom: 1px solid var(--linea); } }

/* ── «Pruébalo con un pedido tuyo» (prueba.js) ── */
.pr-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--tarj); color: var(--texto); box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); }
.pr-dlg::backdrop { background: rgba(7,11,20,.55); }
.pr-in { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.pr-cab { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 10px; }
.pr-cab h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.03em; } .pr-cab p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--cuerpo); }
.pr-cab button { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linea); }
.pr-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 0; }
.pr-cuerpo label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--cuerpo); }
.pr-cuerpo select, .pr-cuerpo textarea { width: 100%; font: inherit; font-size: 16px; color: var(--texto); background: var(--fondo); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; }
.pr-cuerpo textarea { min-height: 84px; resize: vertical; }
.pr-chat { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; margin-top: 12px; padding: 12px; border-radius: 16px; background: #EFEAE2; }
.pr-chat[hidden] { display: none; }
.pr-b { position: relative; max-width: 86%; padding: 7px 10px 8px; border-radius: 10px; font-size: 15px; line-height: 1.38; color: #111B21; white-space: pre-line; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.pr-b.cli { align-self: flex-end; background: #D9FDD3; } .pr-b.asis { align-self: flex-start; background: #fff; }
.pr-h { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: #667781; }
.pr-foto { display: block; max-width: 180px; border-radius: 6px; margin-bottom: 6px; }
.pr-escribe { display: flex; gap: 4px; padding: 12px 14px; } .pr-escribe i { width: 7px; height: 7px; border-radius: 50%; background: #9DA8AE; animation: puntos 1.1s infinite; } .pr-escribe i:nth-child(2) { animation-delay: .15s; } .pr-escribe i:nth-child(3) { animation-delay: .3s; }
.pr-si { display: flex; gap: 8px; align-self: flex-start; }
.pr-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: #0B1220; font-weight: 600; font-size: 14.5px; }
.pr-btn.prim { background: #0B1220; color: #fff; border-color: #0B1220; }
.pr-prog { align-self: stretch; margin-top: 6px; padding: 12px; border-radius: 12px; background: #fff; color: #1F2937; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.pr-prog-t { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 14px; } .pr-prog-t span { color: #6B7280; font-size: 12.5px; }
.pr-prog table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .pr-prog th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; padding: 6px; border-bottom: 1px solid #E5E7EB; }
.pr-prog td { padding: 7px 6px; border-bottom: 1px solid #F1F2F4; } .pr-prog .der { text-align: right; } .pr-nota { margin: 8px 0 0; font-size: 12.5px; color: #6B7280; }
.pr-herr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pr-herr button { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--linea); background: var(--tarj); font-weight: 600; font-size: 14px; }
.pr-herr button.activo { background: #B91C1C; color: #fff; border-color: #B91C1C; }
.pr-herr .pr-adj { font-size: 13px; color: var(--cuerpo); }
.pr-aviso { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fondo); font-size: 13px; line-height: 1.4; color: var(--cuerpo); }
.pr-error { margin: 10px 0 0; color: #B91C1C; font-size: 14px; font-weight: 500; }
.pr-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.pr-pie button { padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15.5px; border: 1px solid var(--linea); }
.pr-pie .prim { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.pr-pie .prim:disabled { opacity: .6; }
html.oscuro .pr-chat { background: #0B141A; } html.oscuro .pr-b { color: #E9EDEF; box-shadow: none; } html.oscuro .pr-b.cli { background: #005C4B; } html.oscuro .pr-b.asis { background: #202C33; }
html.oscuro .pr-h { color: rgba(233,237,239,.6); }
