/* Demostraciones del prototipo: portada que se construye, herramientas, antes/después,
   control de servicios y calculadora. Los estados animados dependen de .fx (interactivo.js). */

/* ══ Portada en dos columnas con la web que se construye ══ */
.hero { padding: 88px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px 56px; align-items: center; }
.hero-copy { container-type: inline-size; min-width: 0; }
/* «AUTOMATIZACIONES» mide unas 9,9 veces el tamaño de letra: así nunca se sale de su columna */
.hero-grid h1 { font-size: clamp(28px, 9.8cqi, 76px); max-width: none; }
.hero-grid .facts { grid-column: 1 / -1; margin-top: 40px; }
.build { margin: 0; }
.build figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }
.browser { position: relative; background: #141310; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(227, 173, 43, 0.06); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #1b1a16; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3730; flex: none; }
.browser-bar .url { margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/1 ui-monospace, Consolas, monospace; color: var(--muted); background: #0f0e0c; padding: 6px 10px; border-radius: 6px; }
.build-state { font: 600 11px/1 var(--font); color: var(--gold); letter-spacing: 0.04em; white-space: nowrap; }

.mock { padding: 18px; display: grid; gap: 16px; background: #faf7f1; color: #1d1a14; font-family: var(--font); }
.m-nav { display: flex; justify-content: space-between; align-items: center; }
.m-logo { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; }
.m-links { display: flex; gap: 8px; }
.m-links b { width: 34px; height: 6px; border-radius: 3px; background: #d9d1c2; }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.m-h { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.m-h em { font-style: normal; color: #b0721b; }
.m-p { font-size: 12.5px; color: #6b6458; margin: 8px 0 12px; line-height: 1.45; }
.m-btn { display: inline-block; font-size: 12px; font-weight: 700; padding: 8px 12px; background: #1d1a14; color: #faf7f1; border-radius: 6px; }
.m-img { aspect-ratio: 4 / 3.4; border-radius: 8px; background: radial-gradient(circle at 30% 35%, #f3c98b 0 18%, transparent 19%), radial-gradient(ellipse at 70% 90%, #7c4a28 0 38%, transparent 39%), linear-gradient(150deg, #e9b46c, #b0721b 55%, #4a2c16); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-cards span { font-size: 11px; color: #6b6458; padding: 10px; border: 1px solid #e6dfd1; border-radius: 8px; background: #fff; }
.m-cards b { display: block; font-size: 13px; color: #1d1a14; }
.m-toast { position: absolute; right: 14px; bottom: 14px; max-width: 70%; padding: 10px 12px; font-size: 12px; background: #0c0c0c; color: var(--white); border-left: 3px solid #25d366; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.m-toast b { display: block; color: #25d366; font-size: 11px; letter-spacing: 0.04em; }
.build.is-live .m-toast { opacity: 1; transform: none; }
html:not(.fx) .m-toast { display: none; }

/* Fases: 0 esqueleto → 1 texto → 2 color → 3 publicada */
.fx .build .mock { transition: background-color 500ms ease; }
.fx .build .mock * { transition: color 400ms ease, border-color 400ms ease; }
.fx .build .mock :is(.m-logo, .m-h, .m-p, .m-btn, .m-img, .m-cards span, .m-links b) { transition: background-color 500ms ease, color 400ms ease, border-color 400ms ease; }
.fx .build[data-phase="0"] .mock { background: #1a1914; }
.fx .build[data-phase="0"] .mock * { color: transparent; border-color: transparent; }
.fx .build[data-phase="0"] .mock :is(.m-logo, .m-h, .m-p, .m-btn, .m-img, .m-cards span, .m-links b) { background: #2c2a24; border-radius: 4px; }
.fx .build[data-phase="0"] .m-h em { color: transparent; }
.fx .build[data-phase="1"] .mock { background: #f3f1ec; }
.fx .build[data-phase="1"] .m-img { background: repeating-linear-gradient(45deg, #e0ddd5 0 10px, #ebe8e1 10px 20px); }
.fx .build[data-phase="1"] .m-h em { color: inherit; }
.fx .build[data-phase="1"] .m-btn { background: #8d877b; }

/* ══ Cinta de herramientas ══ */
.tools { overflow: hidden; border-block: 1px solid var(--line); background: rgba(12, 12, 12, 0.6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tools-track { list-style: none; display: flex; gap: 48px; padding: 18px 24px; width: max-content; }
.tools-track li { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.tools-track li::after { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.fx .tools-track { animation: marquee 38s linear infinite; }
@media (hover: hover) and (pointer: fine) { .tools:hover .tools-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══ Antes y después ══ */
.ba { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line-strong); overflow: hidden; border-radius: 10px; -webkit-user-select: none; user-select: none; }
.ba-pane { position: absolute; inset: 0; overflow: hidden; }
/* Antes: web correcta pero plana */
.ba-old, .ba-new { font-size: clamp(10px, 1.3vw, 16px); }
.ba-old { background: #faf7f1; color: #1d1a14; padding: 8% 5% 3%; display: grid; align-content: start; gap: 6%; }
.sm-nav { display: flex; gap: 1.6em; align-items: center; font-size: 0.95em; color: #6b6458; }
.sm-nav b { color: #1d1a14; letter-spacing: 0.14em; text-transform: uppercase; margin-right: auto; }
.sm-cta { background: #1d1a14; color: #faf7f1; padding: 0.5em 1em; border-radius: 6px; font-weight: 700; }
.sm-hero, .sm-cards { margin-right: 50%; padding-right: 4%; }
.sm-h { font-size: 3.4em; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.sm-h em { font-style: normal; color: #b0721b; }
.sm-p { color: #6b6458; max-width: 34em; margin-top: 0.8em; }
.sm-row { display: flex; gap: 1.2em; align-items: center; margin-top: 1.2em; flex-wrap: wrap; }
.sm-btn { background: #b0721b; color: #fff; padding: 0.8em 1.3em; border-radius: 8px; font-weight: 700; }
.sm-open { color: #2f7a46; font-weight: 600; font-size: 0.9em; }
.ba-old::before { content: ""; position: absolute; right: 5%; top: 26%; width: 40%; aspect-ratio: 4 / 3.6; border-radius: 12px; background: radial-gradient(circle at 30% 35%, #f3c98b 0 18%, transparent 19%), radial-gradient(ellipse at 70% 90%, #7c4a28 0 38%, transparent 39%), linear-gradient(150deg, #e9b46c, #b0721b 55%, #4a2c16); }
.sm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; }
.sm-cards span { background: #fff; border: 1px solid #e6dfd1; border-radius: 10px; padding: 1em; color: #6b6458; font-size: 0.9em; }
.sm-cards b { display: block; color: #1d1a14; font-size: 1.15em; }

/* Después: oscura, viva e interactiva (reserva de prueba, luz que sigue al ratón, foto con relieve) */
.ba-new { background: #100d0a; color: #f6efe4; clip-path: inset(0 0 0 50%); isolation: isolate; }
.nw-blob { position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none; }
.nw-b1 { right: -12%; top: -28%; background: radial-gradient(closest-side, rgba(227, 173, 43, 0.42), transparent); }
.nw-b2 { right: 18%; bottom: -38%; background: radial-gradient(closest-side, rgba(196, 84, 60, 0.38), transparent); }
.nw-glow { position: absolute; left: 0; top: 0; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 173, 43, 0.22), transparent); pointer-events: none; opacity: 0; z-index: -1; transition: opacity 0.3s ease; }
.ba-new.is-hover .nw-glow { opacity: 1; }
.nw-nav { position: absolute; top: 0; left: 0; right: 0; padding: 8% 5% 3%; display: flex; gap: 1.6em; align-items: center; font-size: 0.95em; color: rgba(246, 239, 228, 0.7); }
.nw-nav b { margin-right: auto; letter-spacing: 0.22em; color: #f6efe4; }
.nw-nav b i { color: var(--gold); font-style: normal; }
.nw-cta { position: relative; overflow: hidden; background: var(--gold); color: #1a1306; padding: 0.5em 1.1em; border-radius: 999px; font-weight: 700; }
.nw-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%); transform: translateX(-120%); }
.nw-photo { position: absolute; left: 5%; top: 24%; bottom: 19%; width: 40%; border-radius: 14px; overflow: hidden; transition: transform 0.2s var(--ease-out); }
.nw-photo::before { content: ""; position: absolute; inset: -6%; background: radial-gradient(circle at 35% 38%, #f3c98b 0 16%, transparent 17%), radial-gradient(ellipse at 65% 98%, #6b3a20 0 42%, transparent 43%), linear-gradient(160deg, #2a1a0e, #9a5f17 55%, #e9b46c); transition: filter 0.3s var(--ease-out); }
.nw-photo[data-s="color"]::before { filter: hue-rotate(-38deg) saturate(1.6); }
.nw-photo[data-s="peinado"]::before { filter: hue-rotate(190deg) saturate(0.7) brightness(1.1); }
.nw-open, .nw-rate { position: absolute; left: 6%; padding: 0.35em 0.8em; border-radius: 999px; background: rgba(16, 13, 10, 0.78); font-size: 0.78em; display: flex; align-items: center; gap: 0.5em; }
.nw-open { top: 6%; }
.nw-rate { bottom: 6%; color: var(--gold); }
.nw-open i, .nw-try i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #5fd38d; }
.nw-try i { background: var(--gold); }
.nw-main { position: absolute; left: 50%; right: 0; top: 21%; padding: 0 5% 0 4%; display: grid; gap: 0.8em; }
.nw-h { font-size: 2.4em; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.nw-rot { display: block; height: 1.1em; overflow: hidden; color: var(--gold); }
.nw-rot-in, .nw-rot-in span { display: block; }
.nw-rot-in span { height: 1.1em; }
.nw-book { position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 0.8em 0.9em; display: grid; gap: 0.55em; max-width: 24em; }
.nw-try { display: flex; align-items: center; gap: 0.5em; font-size: 0.75em; color: var(--gold); font-weight: 600; }
.nw-tabs { display: flex; flex-wrap: wrap; gap: 0.25em; padding: 0.2em; border-radius: 999px; background: rgba(255, 255, 255, 0.06); justify-self: start; }
.nw-book button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nw-book button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nw-tabs button { font-size: 0.85em; color: rgba(246, 239, 228, 0.75); background: none; border: 0; padding: 0.35em 0.85em; border-radius: 999px; transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out); }
.nw-tabs [aria-pressed="true"] { background: #f6efe4; color: #100d0a; }
.nw-price { font-size: 0.8em; color: rgba(246, 239, 228, 0.65); }
.nw-slots { display: flex; flex-wrap: wrap; gap: 0.45em; }
.nw-slots button { font-size: 0.9em; color: #f6efe4; background: none; border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.35em 0.7em; border-radius: 8px; font-variant-numeric: tabular-nums; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out); }
.nw-slots [aria-pressed="true"] { background: var(--gold); color: #1a1306; border-color: transparent; }
.nw-go { font-weight: 700; font-size: 0.9em; background: var(--gold); color: #1a1306; border: 0; border-radius: 10px; padding: 0.65em 1em; transition: opacity 0.2s ease, transform 0.16s var(--ease-out); }
.nw-go:disabled { opacity: 0.35; cursor: default; }
.nw-book button:not(:disabled):active { transform: scale(0.96); }
.nw-ok { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1em; border-radius: inherit; background: rgba(14, 38, 24, 0.97); color: #8ff0b6; font-weight: 600; opacity: 0; transform: scale(0.96); pointer-events: none; transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.nw-book.is-done .nw-ok { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nw-tabs button:not([aria-pressed="true"]):hover { color: #f6efe4; }
  .nw-slots button:not([aria-pressed="true"]):hover { border-color: var(--gold); }
}
.nw-marq { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 0.7em 0; white-space: nowrap; overflow: hidden; font-size: 0.85em; letter-spacing: 0.06em; color: rgba(246, 239, 228, 0.7); pointer-events: none; }
.nw-marq-in { display: inline-flex; }
.fx .nw-b1 { animation: nw-float 9s ease-in-out infinite alternate; }
.fx .nw-b2 { animation: nw-float2 11s ease-in-out infinite alternate; }
.fx .nw-photo::before { animation: nw-ken 10s ease-in-out infinite alternate; }
.fx .nw-cta::after { animation: nw-shine 6s var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) infinite; }
.fx .nw-try i { animation: nw-blink 1.6s ease-in-out infinite; }
.fx .nw-rot-in { animation: nw-rot 9s var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) infinite; }
.fx .nw-marq-in { animation: marquee 16s linear infinite; }
@keyframes nw-float { to { transform: translate(-18%, 22%) scale(1.15); } }
@keyframes nw-float2 { to { transform: translate(25%, -18%) scale(0.9); } }
@keyframes nw-ken { to { transform: scale(1.1) translate(-2%, -2%); } }
@keyframes nw-shine { 0%, 73% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes nw-blink { 50% { opacity: 0.3; } }
@keyframes nw-rot { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-25%); } 66%, 91% { transform: translateY(-50%); } 100% { transform: translateY(-75%); } }
.fx .ba:not(.is-on) .ba-new *, .fx .ba:not(.is-on) .ba-new *::before, .fx .ba:not(.is-on) .ba-new *::after { animation-play-state: paused; }
/* La barra se arrastra desde su línea y su botón; así la web nueva se puede tocar */
.ba-handle { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--gold); transform: translateX(calc(50cqw - 1px)); cursor: ew-resize; touch-action: none; z-index: 2; }
.ba-handle::after { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; right: -16px; }
.ba-handle span { transition: transform 0.16s var(--ease-out); z-index: 1; }
.ba.is-drag .ba-handle span { transform: scale(1.1); }
.ba { container-type: inline-size; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); display: grid; place-items: center; }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--black); border-width: 0 0 2px 2px; }
.ba-handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.ba-handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.ba-tag { z-index: 3; position: absolute; top: 12px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(12, 12, 12, 0.8); color: var(--white); pointer-events: none; }
.ba-tag-old { left: 12px; }
.ba-tag-new { right: 12px; background: var(--gold); color: var(--black); }

/* ══ Control de servicios ══ */
.adv { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
.phone { background: #0e1621; border: 1px solid var(--line-strong); border-radius: 28px; padding: 14px; min-height: 430px; display: flex; flex-direction: column; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.phone-top { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.phone-top small { color: #7d8b99; }
.chat { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 4px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35; }
.msg-in { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; color: #cfd8e3; }
.msg-photo { display: grid; gap: 6px; }
.photo-ph { display: block; width: 170px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(160deg, #cfd6da, #8f9aa1 60%, #59636a); }
.fx .msg { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.fx .msg.on { opacity: 1; transform: none; }
.panel-adv { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; overflow-x: auto; }
.pa-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pa-head span { color: var(--muted); font-size: 14px; }
.panel-adv table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.panel-adv th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; font-weight: 600; }
.panel-adv td { padding: 14px 18px; border-top: 1px solid var(--line); }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #2a2823; color: var(--muted); }
.st-run { background: rgba(227, 173, 43, 0.16); color: var(--gold); }
.st-ok { background: rgba(37, 211, 102, 0.14); color: #4ade80; }
.row-live { transition: background-color 600ms ease; }
.row-live.flash { background: rgba(227, 173, 43, 0.1); }

/* ══ Calculadora ══ */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; }
.calc-in { display: grid; gap: 28px; }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ctl label { font-weight: 600; }
.ctl output { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.ctl input { grid-column: 1 / -1; width: 100%; height: 32px; accent-color: var(--gold); cursor: pointer; }
.calc-big { font-size: clamp(64px, 10vw, 128px); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc-big small { display: block; font-size: 18px; letter-spacing: 0; color: var(--white); margin-top: 10px; font-weight: 600; }
.calc-days { margin-top: 14px; font-size: 18px; }
.calc-how { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 44ch; }

@media (max-width: 960px) {
  .hero-grid, .adv, .calc { grid-template-columns: 1fr; }
  .phone { max-width: 360px; width: 100%; margin-inline: auto; min-height: 0; }
}
@media (max-width: 680px) {
  .hero { padding: 48px 0 56px; }
  .m-cards { grid-template-columns: 1fr 1fr; }
  .m-cards span:nth-child(3) { display: none; }
  .ba { aspect-ratio: 4 / 5; }
  .ba-old, .ba-new { font-size: 11px; }
  .sm-h { font-size: 2.6em; }
  .sm-cards { grid-template-columns: 1fr; }
  .sm-cards span:nth-child(2) { display: none; }
  .nw-h { font-size: 1.9em; }
  .nw-nav { gap: 0.9em; }
  .nw-hide { display: none; }
  .nw-tabs button { padding: 0.35em 0.6em; }
  .nw-slots button { padding: 0.35em 0.5em; }
  .nw-book { padding: 0.7em; }
  .ba-old { padding-top: 16%; }
  .nw-nav { padding-top: 16%; }
  .sm-nav, .sm-hero, .sm-cards { margin-right: 30%; padding-right: 4%; }
  .nw-photo { display: none; }
  .nw-main { left: 30%; padding-left: 6%; }
  .ba-new { clip-path: inset(0 0 0 30%); }
  .sm-nav span:not(.sm-cta) { display: none; }
  .nw-main { top: 20%; }
  .calc { padding: 22px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .fx .tools-track { animation: none; } }
@media (max-width: 680px) {
  .panel-adv table { min-width: 0; font-size: 14px; }
  .panel-adv :is(th, td):nth-child(2) { display: none; }
  .panel-adv :is(th, td) { padding: 12px 14px; }
}

/* ── Portada: servicios con su demo en miniatura ── */
.show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}
.tile:active { transform: scale(0.98); }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tile-vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #151515; }
.tile-txt { padding: 20px 22px 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.tile-txt h3 { font-size: 20px; line-height: 1.2; }
.tile-txt h3 .badge { vertical-align: middle; margin-left: 4px; }
.tile-txt p { color: var(--muted); font-size: 15px; }
.tile-go { color: var(--gold); font-weight: 600; font-size: 15px; margin-top: 6px; }
.tile-go::after { content: "\00a0→"; display: inline-block; transition: transform 0.2s var(--ease-out); }
.show-more { color: var(--muted); margin-top: 28px; font-size: 15px; }

/* Webs: antes y después que se barre solo */
.vw-old, .vw-new { position: absolute; inset: 0; padding: 7% 8%; display: grid; align-content: start; gap: 8px; }
.vw-old { background: #f6f1e7; color: #1b1712; }
.vw-old b, .vw-new b { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.05; font-weight: 700; }
.vw-old em { color: #b4801a; font-style: normal; }
.vw-btn { justify-self: start; background: #1b1712; color: #f6f1e7; font-size: 11px; font-weight: 600; padding: 6px 10px; }
.vw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.vw-cards i { height: 34px; background: #fff; border: 1px solid #e3dccd; }
.vw-new { background: #100d0a; color: #f6efe4; clip-path: inset(0 0 0 50%); isolation: isolate; }
.vw-new::before { content: ""; position: absolute; right: -20%; top: -35%; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 173, 43, 0.5), transparent); z-index: -1; }
.vw-new em { color: var(--gold); font-style: normal; }
.vw-new .vw-btn { background: var(--gold); color: #1a1306; border-radius: 999px; }
.vw-chips { display: flex; gap: 6px; }
.vw-chips i { font-style: normal; font-size: 11px; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; }
.vw-chips .on { background: var(--gold); color: #1a1306; border-color: transparent; }
.fx .vw-new::before { animation: nw-float 6s ease-in-out infinite alternate; }
.vw-bar { position: absolute; inset: 0; transform: translateX(50%); pointer-events: none; }
.vw-bar::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--gold); box-shadow: 0 0 12px rgba(227, 173, 43, 0.6); }

/* Automatizaciones: mensaje, respuesta y cita */
.vis-auto { display: grid; align-content: center; gap: 10px; padding: 0 9%; background: #0f1512; }
.va { font-size: 14px; padding: 9px 12px; max-width: 80%; line-height: 1.3; }
.va-in { justify-self: start; background: #1f2c25; color: var(--white); }
.va-out { justify-self: end; background: #1e5b3c; color: #eafff2; }
.va-cal { justify-self: center; border: 1px solid var(--gold); color: var(--white); background: rgba(227, 173, 43, 0.08); }
.va-cal b { color: var(--gold); margin-right: 6px; }

/* Limpieza: chat y fila del panel */
.vis-adv { display: grid; grid-template-rows: 1fr auto; background: #0e1420; }
.vc-chat { display: grid; align-content: center; gap: 8px; padding: 0 9%; }
.vc { justify-self: end; font-size: 13px; padding: 7px 11px; background: #2b5278; color: #eef5ff; display: flex; align-items: center; gap: 8px; }
.vc-photo { width: 26px; height: 20px; background: linear-gradient(135deg, #9fb6c9, #5d7a93); }
.vc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 9%; background: #121a28; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #c9d3e0; }
.vc-st { display: grid; }
.vc-st i { grid-area: 1 / 1; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 8px; text-align: center; }
.vc-st .s1 { background: #2a3140; color: #c9d3e0; opacity: 0; }
.vc-st .s2 { background: rgba(227, 173, 43, 0.18); color: var(--gold); opacity: 0; }
.vc-st .s3 { background: rgba(70, 190, 120, 0.18); color: #7fe0a6; }

/* Con animaciones: bucle de 7 s, solo mientras se ve */
.fx .vw-new { animation: vw-swipe 7s var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) infinite; }
.fx .vw-bar { animation: vw-bar 7s var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1)) infinite; }
@keyframes vw-swipe {
  0%, 12% { clip-path: inset(0 0 0 100%); }
  40%, 55% { clip-path: inset(0 0 0 45%); }
  75%, 92% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
@keyframes vw-bar {
  0%, 12% { transform: translateX(100%); }
  40%, 55% { transform: translateX(45%); }
  75%, 92% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.fx .va, .fx .vc { animation: 7s var(--ease-out) infinite; }
.fx .va-in, .fx .vc-1 { animation-name: pop-1; }
.fx .va-out, .fx .vc-2 { animation-name: pop-2; }
.fx .va-cal, .fx .vc-3 { animation-name: pop-3; }
@keyframes pop-1 { 0%, 6% { opacity: 0; transform: translateY(8px); } 14%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop-2 { 0%, 30% { opacity: 0; transform: translateY(8px); } 38%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop-3 { 0%, 54% { opacity: 0; transform: translateY(8px); } 62%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fx .vc-st i { animation: 7s steps(1, end) infinite; }
.fx .vc-st .s1 { animation-name: st-1; }
.fx .vc-st .s2 { animation-name: st-2; }
.fx .vc-st .s3 { animation-name: st-3; }
@keyframes st-1 { 0% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes st-2 { 0% { opacity: 0; } 14% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes st-3 { 0% { opacity: 0; } 62% { opacity: 1; } 96%, 100% { opacity: 0; } }
.fx .tile:not(.is-on) .tile-vis, .fx .tile:not(.is-on) .tile-vis * { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-4px); border-color: var(--gold); }
  .tile:hover .tile-go::after { transform: translateX(4px); }
}
@media (max-width: 960px) {
  .show { grid-template-columns: 1fr; max-width: 560px; }
}
