/* DEPROEX CODES · temas de la consulta (los arma temas.js). El tema «clasico» no usa nada de este archivo.
   Cada tema cambia dos cosas: el bloque de consulta (.tm) y los colores del resto de la página (variables de styles.css). */

html.tema-espera .console { visibility: hidden; }

/* ---------- Colores de la página por tema ---------- */
html[data-tema="frase"] { --bg: #fbfaf7; --bg-2: #f1eee6; --card: #fff; --line: #e2ded2; --text: #14140f; --muted: #5f5f55; --accent: #2a6df4 !important; --accent-2: #2a6df4 !important; --on-accent: #fff; --ok: #0f8a57; --warn: #a86400; --err: #c8283a; }
html[data-tema="ticket"] { --bg: #f3f5ff; --bg-2: #e8ecff; --card: #fff; --line: #d5dbf5; --text: #141a33; --muted: #56608a; --accent: #2f6bff !important; --accent-2: #2f6bff !important; --on-accent: #fff; --ok: #0f8a57; --warn: #a86400; --err: #c8283a; }
html[data-tema="camaleon"] { --bg: #f5f5f4; --bg-2: #ebebea; --card: #fff; --line: #dcdcda; --text: #111; --muted: #5c5c5c; --accent: #111 !important; --accent-2: #111 !important; --on-accent: #fff; --ok: #0f8a57; --warn: #a86400; --err: #c8283a; }
html[data-tema="marcador"] { --bg: #050505; --bg-2: #0e0e0e; --card: #141414; --line: #2b2b2b; --text: #f4f4f4; --muted: #a0a0a0; --accent: #ffd400 !important; --accent-2: #ffd400 !important; --on-accent: #050505; }

html[data-tema="frase"] .top, html[data-tema="ticket"] .top, html[data-tema="camaleon"] .top { background: rgba(255, 255, 255, .88); }
html[data-tema="marcador"] .top { background: rgba(5, 5, 5, .88); }
html[data-tema="frase"] .hero, html[data-tema="ticket"] .hero, html[data-tema="camaleon"] .hero, html[data-tema="marcador"] .hero { background: none; }
html[data-tema="frase"] .btn-primary, html[data-tema="ticket"] .btn-primary, html[data-tema="camaleon"] .btn-primary, html[data-tema="marcador"] .btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
html[data-tema="frase"] .card, html[data-tema="ticket"] .card, html[data-tema="camaleon"] .card { box-shadow: 0 10px 30px rgba(20, 20, 40, .08); }
html[data-tema="frase"] .promo, html[data-tema="ticket"] .promo, html[data-tema="camaleon"] .promo, html[data-tema="marcador"] .promo { background: var(--card); border-color: var(--line); box-shadow: 0 10px 30px rgba(20, 20, 40, .08); }
html[data-tema="frase"] .cta .card, html[data-tema="ticket"] .cta .card, html[data-tema="camaleon"] .cta .card, html[data-tema="marcador"] .cta .card { background: var(--card); }
html[data-tema="frase"] .eyebrow, html[data-tema="ticket"] .eyebrow, html[data-tema="camaleon"] .eyebrow { background: rgba(0, 0, 0, .06); color: var(--text); }
html[data-tema="frase"] .step b, html[data-tema="ticket"] .step b, html[data-tema="camaleon"] .step b { background: rgba(0, 0, 0, .06); color: var(--text); }
html[data-tema="marcador"] .eyebrow, html[data-tema="marcador"] .step b { background: rgba(255, 212, 0, .14); color: #ffd400; }

/* Con un tema, la portada es la consulta: del texto de portada quedan solo los botones (WhatsApp, Instagram…), debajo. */
html[data-tema]:not([data-tema="clasico"]) .hero { padding: 28px 0 44px; }
html[data-tema]:not([data-tema="clasico"]) .hero .wrap { gap: 22px; }
html[data-tema]:not([data-tema="clasico"]) .hero-text { order: 2; }
html[data-tema]:not([data-tema="clasico"]) .hero-text > :not(.hero-actions) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-tema]:not([data-tema="clasico"]) .hero-actions a[href="#consultar"] { display: none; }

/* ---------- Base del bloque de consulta ---------- */
.console.tm-host { display: block; }
.tm { position: relative; border-radius: 22px; overflow: hidden; }
.tm button { font: inherit; cursor: pointer; border: 0; }
.tm button:disabled { cursor: not-allowed; }
.tm input { font: inherit; }
.tm .logo, .tm .tm-all { display: block; width: 100%; height: 100%; border-radius: 22%; }
.tm-all { display: flex !important; align-items: center; justify-content: center; background: linear-gradient(135deg, #4f7cff, #00d4b4); color: #fff; font-weight: 800; }
.tm-ic { display: inline-flex; flex: none; width: 24px; height: 24px; }
.tm .is-waiting { opacity: .55; }
.tm-note { margin: 6px 0 10px; }
.tm-link { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; text-decoration: none; }
.tm-old { margin: 8px 0 0; font-size: 13.5px; color: var(--warn); }
.tm-copied { position: relative; }
.tm-copied::after { content: "¡Copiado!"; position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); z-index: 3; padding: 4px 10px; border-radius: 8px; background: #111; color: #fff; font: 700 13px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }

/* Registro (aparece cuando hay consultas) */
.tm-log { margin-top: 16px; min-height: 0; max-height: 260px; background: var(--card); box-shadow: none; }
.tm-log .log-clear { background: none; }
html[data-tema="frase"] .tm-log .log-time, html[data-tema="ticket"] .tm-log .log-time, html[data-tema="camaleon"] .tm-log .log-time,
html[data-tema="frase"] .tm-log .log-text small, html[data-tema="ticket"] .tm-log .log-text small, html[data-tema="camaleon"] .tm-log .log-text small { color: var(--muted); }
html[data-tema="frase"] .tm-log .log-line, html[data-tema="ticket"] .tm-log .log-line, html[data-tema="camaleon"] .tm-log .log-line { border-bottom-color: var(--line); }
html[data-tema="frase"] .tm-log .log-code, html[data-tema="ticket"] .tm-log .log-code, html[data-tema="camaleon"] .tm-log .log-code { background: rgba(15, 138, 87, .1); border-color: rgba(15, 138, 87, .4); }

/* ---------- 1 · Chat de soporte ---------- */
.tm-chat { display: flex; flex-direction: column; height: 600px; max-height: 82vh; background: #0b1020; color: #eef1ff; border: 1px solid #26305a; }
.ch-scroll { flex: 1; overflow-y: auto; padding: 22px 18px 10px; display: flex; flex-direction: column; gap: 12px; width: min(620px, 100%); margin: 0 auto; scrollbar-width: thin; scrollbar-color: #2a3566 transparent; }
.ch-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.ch-msg.me { align-self: flex-end; }
.ch-av { width: 34px; height: 34px; flex: none; border-radius: 10px; }
.ch-bub { padding: 12px 15px; border-radius: 18px 18px 18px 5px; background: #182145; font-size: 15.5px; overflow-wrap: anywhere; animation: ch-in .2s ease-out; }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ch-msg.me .ch-bub { display: flex; align-items: center; gap: 8px; border-radius: 18px 18px 5px 18px; background: linear-gradient(135deg, #4f7cff, #3aa0f0); font-weight: 600; }
.ch-msg.me .logo, .ch-msg.me .tm-all { width: 22px; height: 22px; font-size: 12px; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tm .ch-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #0b1020; border: 1px solid #2a3566; color: #eef1ff; font-size: 13.5px; font-weight: 600; }
.ch-chip .logo, .ch-chip .tm-all { width: 22px; height: 22px; font-size: 12px; }
.ch-chip:not(:has(svg, .tm-all)) { padding-left: 12px; }
.ch-chip:hover:not(:disabled) { border-color: #00d4b4; }
.ch-chip.on { border-color: #00d4b4; background: rgba(0, 212, 180, .14); }
.ch-chip:disabled:not(.on) { opacity: .45; }
.ch-bub.ch-code { background: #0f2b2a; border: 1px solid rgba(0, 212, 180, .5); }
.ch-bub.ch-code.old { background: #2b230f; border-color: rgba(255, 181, 71, .5); }
.ch-bub small { display: block; color: #8fd9cc; font-size: 12.5px; }
.ch-num { display: block; font-family: Consolas, Menlo, monospace; font-size: 38px; letter-spacing: .18em; color: #1fe0b8; line-height: 1.2; cursor: pointer; }
.ch-code.old .ch-num { color: #ffb547; }
.tm .ch-copy { margin-top: 6px; padding: 7px 14px; border-radius: 10px; background: #00d4b4; color: #062621; font-weight: 800; font-size: 13px; }
.ch-typing { display: flex; gap: 5px; padding: 4px 2px; }
.ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: #7f89b8; animation: ch-bl 1.2s infinite; }
.ch-typing i:nth-child(2) { animation-delay: .2s; } .ch-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ch-bl { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.ch-send { display: flex; gap: 8px; width: min(620px, 100%); margin: 0 auto; padding: 10px 18px 18px; }
.ch-send input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; background: #131a36; border: 1px solid #2a3566; color: #fff; font-size: 16px; outline: 0; }
.ch-send input:focus { border-color: #4f7cff; }
.ch-send input:disabled { opacity: .6; }
.tm .ch-send button { width: 50px; height: 50px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #4f7cff, #00d4b4); color: #fff; font-size: 19px; font-weight: 800; }
.ch-bub .tm-link { background: #00d4b4; color: #062621; }

/* ---------- 2 · La frase ---------- */
.tm-frase { overflow: visible; padding: 54px 56px 26px; background: #fff; color: #14140f; border: 1px solid #e2ded2; }
.fr-say { font-size: clamp(28px, 4.6vw, 54px); line-height: 1.32; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.fr-wrap { position: relative; display: inline-block; vertical-align: middle; }
.tm .fr-slot { display: inline-flex; align-items: center; gap: .22em; padding: .02em .3em .06em .2em; border-radius: .34em; background: #fff; color: inherit; border: 3px solid #14140f; box-shadow: 5px 5px 0 #14140f; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.fr-slot .tm-ic { width: .82em; height: .82em; }
.fr-slot .tm-all { font-size: .45em; }
.fr-slot em { font-style: normal; font-size: .45em; opacity: .5; }
.fr-menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(400px, 86vw); padding: 8px; background: #fff; border: 3px solid #14140f; border-radius: 16px; box-shadow: 5px 5px 0 #14140f; }
.fr-menu[hidden] { display: none; }
.tm .fr-menu button { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; background: none; color: #14140f; font-size: 15px; font-weight: 700; letter-spacing: 0; text-align: left; }
.fr-menu button:hover, .fr-menu button.on { background: #eef3ff; }
.fr-menu .tm-ic { width: 26px; height: 26px; }
.fr-menu .tm-all { font-size: 13px; }
.fr-mail { display: inline-block; width: 13.5em; max-width: calc(100% - 2.2em); border: 0; border-bottom: 5px solid #2a6df4; background: transparent; font-size: .68em !important; font-weight: 800; letter-spacing: -.03em; color: #2a6df4; padding: 0 4px; outline: 0; vertical-align: baseline; }
.fr-mail::placeholder { color: #b9c9f3; }
.tm .fr-go { display: inline-flex; align-items: center; justify-content: center; width: 1.26em; height: 1.26em; border-radius: 50%; background: #14140f; color: #fff; font-size: 1em; vertical-align: middle; margin-left: .15em; }
.fr-go.is-waiting { font-size: .7em; width: 1.8em; height: 1.8em; }
.fr-ans { min-height: 120px; margin-top: 34px; }
.fr-msg { margin: 0; font-size: 19px; color: #5f5f55; max-width: 640px; }
.fr-msg.err { color: #c8283a; } .fr-msg.warn { color: #a86400; }
.fr-res { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 0; }
.fr-res > span { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; color: #5f5f55; font-weight: 600; }
.fr-res > span .tm-ic { width: 30px; height: 30px; }
.fr-res b { font-family: Consolas, Menlo, monospace; font-size: clamp(48px, 9vw, 92px); line-height: 1; letter-spacing: .08em; cursor: pointer; }
.fr-res.old b { color: #a86400; }
.tm .fr-res button { padding: 12px 22px; border-radius: 999px; background: #2a6df4; color: #fff; font-weight: 800; font-size: 16px; }
.fr-res small { flex-basis: 100%; color: #5f5f55; font-size: 14px; }
.fr-foot { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #e7e4da; font-size: 13.5px; color: #6b6b60; }
.fr-foot li::before { content: "✓ "; color: #0f8a57; font-weight: 800; }

/* ---------- 3 · El marcador ---------- */
.tm-marcador { display: flex; flex-direction: column; align-items: center; padding: 44px 24px 40px; background: #050505; color: #f4f4f4; text-align: center; border: 1px solid #2b2b2b; }
.mc-dock { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tm .mc-dock button { width: 54px; height: 54px; padding: 0; border-radius: 15px; background: none; opacity: .38; transition: all .15s; }
.mc-dock button:hover { opacity: .75; }
.tm .mc-dock button.on { opacity: 1; transform: translateY(-5px) scale(1.1); box-shadow: 0 0 0 3px #050505, 0 0 0 5px #ffd400; }
.mc-dock .tm-all { font-size: 22px; background: #ffd400; color: #050505; }
.mc-sel { margin: 16px 0 20px; font-size: 14px; color: #a0a0a0; }
.mc-sel b { color: #ffd400; }
.mc-field { display: flex; width: min(560px, 100%); border: 2px solid #2b2b2b; border-radius: 16px; overflow: hidden; background: #111; }
.mc-field:focus-within { border-color: #ffd400; }
.mc-field input { flex: 1; min-width: 0; padding: 17px 20px; background: none; border: 0; color: #fff; font-size: 18px; outline: 0; }
.tm .mc-field button { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; background: #ffd400; color: #050505; font-weight: 900; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.mc-out { width: 100%; }
.mc-board { margin-top: 34px; }
.mc-digits { display: flex; gap: 12px; justify-content: center; width: min(620px, 100%); margin: 0 auto; container-type: inline-size; }
.mc-d { position: relative; flex: 0 1 92px; aspect-ratio: 92 / 128; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid #2b2b2b; background: linear-gradient(#1c1c1c 0 49.3%, #050505 49.3% 50.7%, #151515 50.7%); font-family: Consolas, Menlo, monospace; font-size: 48px; font-size: min(88px, calc(84cqw / var(--n, 6))); font-weight: 700; color: #ffd400; }
.mc-d::before, .mc-d::after { content: ""; position: absolute; top: 50%; width: 7px; height: 16px; margin-top: -8px; background: #050505; border-radius: 3px; }
.mc-d::before { left: -1px; } .mc-d::after { right: -1px; }
.mc-board.idle .mc-d { color: #3a3a3a; }
.mc-board.old .mc-d { color: #ff9f2e; }
.mc-meta { display: flex; gap: 10px 18px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 16px; color: #a0a0a0; font-size: 15px; }
.mc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.mc-meta .tm-ic { width: 26px; height: 26px; }
.mc-bar { width: 140px; height: 6px; border-radius: 3px; background: #222; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: #ffd400; }
.tm .mc-meta button { padding: 9px 20px; border-radius: 10px; background: #f4f4f4; color: #050505; font-weight: 800; }
.mc-msg { margin: 18px auto 0; max-width: 560px; color: #c9c9c9; }
.mc-msg.err { color: #ff6b7a; } .mc-msg.warn { color: #ffb547; }
.tm-marcador .tm-link { background: #ffd400; color: #050505; }

/* ---------- 4 · El ticket ---------- */
.tm-ticket { display: flex; align-items: center; justify-content: center; gap: 30px 54px; flex-wrap: wrap; padding: 44px 30px 54px; background: #2f6bff radial-gradient(rgba(255, 255, 255, .15) 1.5px, transparent 1.6px) 0 0 / 22px 22px; color: #fff; }
.tk-pitch { max-width: 360px; }
.tk-pitch h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 12px; }
.tk-pitch p { margin: 0; font-size: 17px; opacity: .92; }
.tk-paper { position: relative; width: 350px; max-width: 100%; padding: 24px 22px 0; background: #fffdf6; color: #1b1b1b; font-family: Consolas, Menlo, "Courier New", monospace; transform: rotate(-2deg); box-shadow: 0 26px 50px rgba(0, 0, 40, .4); }
.tk-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px; background: linear-gradient(135deg, #fffdf6 8px, transparent 0) 0 0 / 16px 12px, linear-gradient(225deg, #fffdf6 8px, transparent 0) 0 0 / 16px 12px; }
.tk-head { text-align: center; font-weight: 700; letter-spacing: .18em; font-size: 14px; text-transform: uppercase; }
.tk-head img { display: block; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 10px; }
.tk-paper hr { border: 0; border-top: 2px dashed #b9b4a3; margin: 14px 0; }
.tk-lbl { display: block; font-size: 11px; letter-spacing: .14em; color: #7a7566; margin: 0 0 7px; text-transform: uppercase; }
.tk-lbl b { color: #1b1b1b; }
.tk-svc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.tm .tk-svc button { aspect-ratio: 1; padding: 3px; border-radius: 9px; background: none; border: 2px solid transparent; opacity: .4; }
.tk-svc button:hover { opacity: .8; }
.tm .tk-svc button.on { opacity: 1; border-color: #1b1b1b; }
.tk-svc .tm-all { font-size: 18px; background: #1b1b1b; }
.tk-paper input { width: 100%; padding: 11px 12px; border: 2px solid #1b1b1b; border-radius: 0; background: #fff; color: #1b1b1b; font-size: 16px; outline: 0; }
.tk-paper input:focus { box-shadow: 3px 3px 0 #2f6bff; }
.tm .tk-print { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 13px; background: #1b1b1b; color: #fffdf6; font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.tk-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 2px 0; text-transform: uppercase; }
.tm .tk-big { display: block; width: 100%; background: none; color: #1b1b1b; text-align: center; font-size: 50px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; padding: 4px 0 0; }
.tk-res.old .tk-big { color: #a86400; }
.tk-bars { height: 40px; margin: 8px 0 0; background: repeating-linear-gradient(90deg, #1b1b1b 0 2px, transparent 2px 5px, #1b1b1b 5px 9px, transparent 9px 11px, #1b1b1b 11px 12px, transparent 12px 16px); }
.tk-tiny { text-align: center; font-size: 11px; letter-spacing: .12em; color: #7a7566; padding: 10px 0 18px; text-transform: uppercase; }
.tk-msg { font-size: 13px; line-height: 1.5; margin: 0; }
.tk-msg.err { color: #c8283a; } .tk-msg.warn { color: #a86400; }
.tk-paper .tm-note { font-size: 13px; }
.tk-paper .tm-link { border-radius: 0; background: #1b1b1b; color: #fffdf6; }
.tk-paper .tm-old { color: #a86400; font-size: 12px; }
.tk-out > :first-child { animation: tk-in .35s ease-out; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 5 · El camaleón ---------- */
.tm-camaleon { --c: linear-gradient(135deg, #3b6cff, #00b89c); --t: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "left panel" "feat panel"; gap: 0 30px; align-items: center; padding: 50px 44px; background: var(--c); color: var(--t); }
.cm-left { grid-area: left; position: relative; z-index: 1; }
.cm-panel { grid-area: panel; position: relative; z-index: 1; }
/* Fondo por servicio: ambiente de la destacada (difuminada) + muro de carátulas + velo del color del servicio */
.cm-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cm-amb { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(28px) saturate(1.25); transition: background-image .6s; }
.cm-amb.is-duel i { position: absolute; top: 0; bottom: 0; width: 50%; background: center / cover no-repeat; }
.cm-amb.is-duel i:first-child { left: 0; } .cm-amb.is-duel i:last-child { right: 0; }
.cm-wall { position: absolute; inset: -40% -14%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; align-content: center; transform: rotate(-9deg); opacity: .58; }
.cm-wall span { display: block; aspect-ratio: 2 / 3; border-radius: 9px; background: rgba(0, 0, 0, .2) center / cover no-repeat; }
.cm-wall.is-crests { grid-template-columns: repeat(11, 1fr); gap: 16px; opacity: .5; }
.cm-wall.is-crests span { aspect-ratio: 1; border-radius: 50%; background-color: #fff; background-size: 66%; }
.cm-veil { position: absolute; inset: 0; background: linear-gradient(100deg, var(--cs, #2f66d8) 12%, transparent 130%); background: linear-gradient(100deg, var(--cs, #2f66d8) 10%, color-mix(in srgb, var(--cs, #2f66d8) 84%, transparent) 46%, color-mix(in srgb, var(--cs, #2f66d8) 44%, transparent)); }
.has-scene h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
/* La destacada: en pantallas angostas es una franja; en anchas, la carátula en grande entre el título y el formulario */
.cm-feat { grid-area: feat; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin-top: 24px; color: #fff; }
.cm-feat-body { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(0, 0, 0, .36); border: 1px solid rgba(255, 255, 255, .22); animation: cm-in .4s ease-out; }
@keyframes cm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cm-poster { position: relative; display: block; width: 64px; flex: none; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.cm-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-badge { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.cm-feat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-feat-text small { font-size: 12.5px; font-weight: 700; opacity: .88; }
.cm-feat-text strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; line-height: 1.2; }
.cm-duel { display: flex; flex-direction: column; gap: 8px; width: 172px; flex: none; padding: 12px; border-radius: 14px; background: #fff; color: #111; font-weight: 700; }
.cm-duel small { color: #666; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-vs { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cm-crest { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none; }
.cm-crest i { font-style: normal; font-size: 12px; font-weight: 800; color: #666; }
.cm-crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cm-time { text-align: center; line-height: 1.1; }
.cm-time strong { font-size: 18px; }
.cm-time i { display: block; font-style: normal; font-size: 10.5px; color: #666; }
.cm-cine-dots { display: flex; gap: 6px; }
.cm-cine-dots:empty { display: none; }
.tm .cm-cine-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .2s, background .2s; }
.tm .cm-cine-dots button.on { width: 22px; background: #fff; }
/* Bloque ancho (el ancho del bloque, no de la pantalla: también vale dentro de otra web) */
.console.tm-host { container-type: inline-size; }
@container (min-width: 1080px) {
  .tm-camaleon.has-scene { grid-template-columns: minmax(0, 1fr) 190px 380px; grid-template-areas: "left feat panel"; gap: 0 28px; min-height: 430px; }
  .tm-camaleon.has-scene h2 { font-size: 58px; }
  .has-scene .cm-feat { align-items: center; max-width: none; margin: 0; text-align: center; }
  .has-scene .cm-feat-body { flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; }
  .has-scene .cm-feat .cm-poster { width: 100%; border: 0; border-radius: 14px; transform: rotate(4deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
  .has-scene .cm-duel { width: 100%; transform: rotate(3deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
  .has-scene .cm-feat-text { align-items: center; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
  .has-scene .cm-badge { width: 34px; height: 34px; left: 8px; bottom: 8px; }
}
.tm-camaleon h2 { margin: 0; font-size: clamp(44px, 8.4vw, 92px); line-height: .92; letter-spacing: -.05em; font-weight: 900; overflow-wrap: anywhere; }
.tm-camaleon h2 small { display: block; font-size: 22px; letter-spacing: 0; font-weight: 700; opacity: .88; margin-bottom: 16px; }
.cm-pick { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; max-width: 540px; }
.tm .cm-pick button { width: 56px; height: 56px; padding: 0; border-radius: 16px; background: none; border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.cm-pick button:hover { transform: scale(1.06); }
.tm .cm-pick button.on { border-color: var(--t); transform: scale(1.1); }
.cm-pick .tm-all { font-size: 22px; background: #111; }
.cm-panel { background: #fff; color: #111; border-radius: 26px; padding: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.cm-panel label { display: block; font-size: 13px; font-weight: 700; color: #666; }
.cm-panel input { display: block; width: 100%; margin: 6px 0 12px; padding: 15px 16px; border-radius: 14px; border: 2px solid #e3e3e3; background: #fff; color: #111; font-size: 16px; outline: 0; }
.cm-panel input:focus { border-color: #111; }
.tm .cm-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px 10px; border-radius: 14px; background: var(--c); color: var(--t); font-weight: 800; font-size: 16px; }
.cm-out:not(:empty) { margin-top: 16px; padding-top: 6px; border-top: 2px dashed #e3e3e3; }
.cm-res { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.cm-res .tm-ic { width: 46px; height: 46px; }
.cm-res > div { flex: 1; min-width: 0; }
.cm-res b { display: block; font-family: Consolas, Menlo, monospace; font-size: 36px; letter-spacing: .14em; line-height: 1.1; cursor: pointer; }
.cm-res.old b { color: #a86400; }
.cm-res small { display: block; color: #777; font-size: 12.5px; }
.tm .cm-res button { padding: 9px 14px; border-radius: 10px; background: #111; color: #fff; font-weight: 700; font-size: 13px; }
.cm-msg { margin: 10px 0 0; font-size: 15px; color: #444; }
.cm-msg.err { color: #c8283a; } .cm-msg.warn { color: #a86400; }
.cm-panel .tm-link { background: #111; color: #fff; }
.cm-panel .tm-old { color: #a86400; flex-basis: 100%; }
/* Servicios dentro de la tarjeta y consulta paso a paso (temas.js pone data-paso="1|2|3" en .cm-panel) */
.cm-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.cm-steps li { flex: 1; padding: 7px 4px; border-radius: 10px; border: 2px solid #ececec; background: #f6f6f6; color: #888; font-size: 12.5px; font-weight: 700; text-align: center; transition: all .15s; }
.cm-steps li.on { border-color: #111; background: #fff; color: #111; }
.cm-steps li.done { border-color: #bfe8d4; background: #eefaf4; color: #138a58; }
.cm-steps li.done::after { content: " ✓"; }
.cm-steps li.ir { cursor: pointer; }
.cm-steps li.ir:hover { border-color: #138a58; }
.cm-lbl { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #666; }
.cm-panel .cm-pick { margin: 0; max-width: none; }
.tm .cm-panel .cm-pick button.on { border-color: #111; }
.cm-panel .cm-pick button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.cm-chosen { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; border: 2px solid #ececec; }
.cm-chosen .tm-ic { width: 34px; height: 34px; flex: none; }
.cm-chosen b { flex: 1; min-width: 0; font-size: 15px; }
.tm .cm-chosen button, .tm .cm-again button { padding: 8px 14px; border-radius: 10px; border: 2px solid #e3e3e3; background: #fff; color: #111; font-weight: 700; font-size: 13px; }
.tm .cm-chosen button:hover, .tm .cm-again button:hover { border-color: #111; }
.cm-again { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cm-panel[data-paso="1"] form, .cm-panel[data-paso="1"] .cm-out, .cm-panel[data-paso="1"] .cm-chosen,
.cm-panel[data-paso="2"] .cm-s1, .cm-panel[data-paso="3"] .cm-s1,
.cm-panel[data-paso="3"] form, .cm-panel[data-paso="3"] .cm-chosen,
.cm-panel:not([data-paso="3"]) .cm-again { display: none; }
.cm-panel[data-paso="3"] .cm-out:not(:empty) { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 900px) {
  .tm-camaleon { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "panel" "feat"; padding: 34px 22px; }
  .cm-panel { margin-top: 26px; }
  .cm-feat { max-width: none; margin-top: 20px; }
  .tm-frase { padding: 30px 22px 20px; }
}
@media (max-width: 480px) {
  .tm { border-radius: 18px; }
  .tm-chat { height: 560px; }
  .ch-scroll { padding: 16px 12px 8px; }
  .ch-send { padding: 8px 12px 14px; }
  .fr-mail { width: 100%; }
  .fr-ans { min-height: 0; margin-top: 22px; }
  .mc-d::before, .mc-d::after { width: 4px; height: 10px; margin-top: -5px; }
  .tm .fr-slot { box-shadow: 3px 3px 0 #14140f; }
  .tm-marcador { padding: 30px 14px 30px; }
  .tm .mc-dock button { width: 44px; height: 44px; border-radius: 12px; }
  .mc-digits { gap: 6px; }
  .mc-d { border-radius: 9px; }
  .mc-field { flex-direction: column; }
  .tm .mc-field button { justify-content: center; padding: 14px; }
  .tm-ticket { padding: 30px 16px 44px; }
  .tk-paper { transform: none; }
  .tm .cm-pick button { width: 46px; height: 46px; border-radius: 13px; }
  .cm-panel { padding: 20px; border-radius: 20px; }
  .cm-steps li { font-size: 11.5px; }
}
