/* KMC · demostración del chat de WhatsApp */
:root { --ink: #15202A; --paper: #F6F4EE; --soft: #4D5A63; --rule: #CFCAC0; --petrol: #1D4E62; --serif: Newsreader, Georgia, serif; --sans: "IBM Plex Sans", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-bar { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 7px 12px; background: #0E1820; color: #B9C4CA; font: 500 12.5px var(--sans); }
.demo-bar a { color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 99px; background: rgb(255 255 255 / .08); }
.demo-bar a[aria-current="page"] { background: #12B3A6; color: #0B1B33; font-weight: 600; }

.stage { width: min(1120px, 100% - 40px); margin: 0 auto; padding: 40px 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.side { padding-top: 10px; }
.side__mark { border-radius: 50%; margin-bottom: 18px; }
.side__k { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); }
h1 { margin: 0 0 22px; font: 500 clamp(32px, 4vw, 46px)/1.1 var(--serif); }
h2 { margin: 26px 0 10px; font: 500 22px var(--serif); }
.areas { display: inline-flex; border: 1px solid var(--ink); margin-bottom: 18px; }
.areas a { padding: 10px 18px; text-decoration: none; color: var(--ink); font-weight: 500; }
.areas a[aria-selected="true"] { background: var(--ink); color: var(--paper); }
#sideIntro { color: var(--soft); max-width: 52ch; margin: 0; }
.tries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 520px; }
.tries li { border-bottom: 1px solid var(--rule); }
.tries button { width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 15.5px; }
.tries button::before { content: "“"; color: var(--petrol); font: 500 22px var(--serif); margin-right: 6px; }
.tries button:hover { color: var(--petrol); }
.side__fine { margin-top: 22px; font-size: 13.5px; color: var(--soft); max-width: 56ch; }
.side__fine a { color: var(--petrol); }

.phone { position: sticky; top: 20px; height: min(780px, calc(100svh - 80px)); display: flex; flex-direction: column; overflow: hidden; border: 10px solid #0E1820; border-radius: 40px; background: #0B141A; box-shadow: 0 40px 80px rgb(14 24 32 / .35); color: #E9EDEF; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #202C33; }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.wa-av img { width: 38px; }
.wa-head b { display: block; font-size: 15.5px; } .wa-head small { color: #8696A0; font-size: 12.5px; }
.wa-head > div { flex: 1; min-width: 0; }
.wa-ico { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #AEBAC1; }
.wa-ico svg { width: 22px; height: 22px; }
button.wa-ico:hover { color: #25D366; }
.wa-body { flex: 1; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 5px; background-color: #0B141A; background-image: radial-gradient(rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 18px 18px; scroll-behavior: smooth; }
.wa-day { align-self: center; margin: 4px 0; padding: 4px 10px; border-radius: 8px; background: #182229; color: #8696A0; font-size: 12px; }
.wa-sys { align-self: center; max-width: 88%; margin: 2px 0 10px; padding: 6px 10px; border-radius: 8px; background: #182229; color: #FFD279; font-size: 12px; text-align: center; }
.msg { display: flex; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg--me { justify-content: flex-end; }
.b { position: relative; max-width: 84%; padding: 6px 9px 5px; border-radius: 9px; font-size: 14.4px; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; }
.msg--bot .b { background: #202C33; border-top-left-radius: 2px; }
.msg--me .b { background: #005C4B; border-top-right-radius: 2px; }
.t { float: right; margin: 7px 0 -3px 10px; font-size: 10.5px; color: rgb(233 237 239 / .55); }
.tk { font-style: normal; color: #8696A0; } .tk.read { color: #53BDEB; }
.typing { display: inline-flex; gap: 4px; padding: 5px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: td 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes td { 30% { transform: translateY(-4px); } }
.qlist { margin: 6px 0 4px; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / .06); font-size: 13px; display: grid; gap: 4px; white-space: normal; }
.qlist div { display: flex; justify-content: space-between; gap: 10px; }
.qlist .tt { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 4px; font-weight: 700; color: #7EE2A8; }
.act { display: block; width: 100%; margin-top: 7px; padding: 9px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .07); color: #53BDEB; font: 600 14px system-ui, sans-serif; text-align: center; text-decoration: none; }
.act:disabled { opacity: .4; } .act.picked { opacity: 1; background: #005C4B; color: #fff; }
.hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; white-space: normal; }
.hour { min-height: 38px; border: 1px solid rgb(83 189 235 / .5); border-radius: 8px; background: rgb(83 189 235 / .08); color: #53BDEB; font-weight: 600; font-size: 13.5px; }
.hour:disabled { opacity: .35; } .hour.picked { background: #005C4B; color: #fff; border-color: #005C4B; opacity: 1; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 2px; padding: 10px; border-radius: 8px; background: rgb(255 255 255 / .06); font-size: 13.5px; white-space: normal; }
.sum span { color: #AEBAC1; }
.vn { display: flex; align-items: center; gap: 8px; min-width: 230px; white-space: normal; }
.vn__av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; } .vn__av img { width: 34px; }
.vn__play { width: 30px; height: 30px; border: 0; background: none; color: #AEBAC1; padding: 0; } .vn__play svg { width: 26px; height: 26px; }
.vn__w { flex: 1; display: flex; gap: 2px; align-items: center; height: 28px; }
.vn__w i { flex: 1; border-radius: 2px; background: #8696A0; opacity: .55; } .vn__w i.on { background: #25D366; opacity: 1; }
.vn__t { font-size: 11px; color: rgb(233 237 239 / .6); }
.rec { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #8696A0; font-style: italic; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.wa-chips { display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; background: #0B141A; scrollbar-width: none; }
.wa-chips:empty { display: none; }
.chip { flex: none; padding: 8px 12px; border-radius: 99px; border: 1px solid rgb(37 211 102 / .45); background: rgb(37 211 102 / .08); color: #7EE2A8; font-size: 13.5px; white-space: nowrap; }
.wa-form { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #202C33; }
.wa-form input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 99px; padding: 0 16px; background: #2A3942; color: #E9EDEF; font-size: 15.5px; outline: 0; }
.wa-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #25D366; color: #062A14; display: grid; place-items: center; flex: none; }
.wa-form button svg { width: 20px; height: 20px; }
.callbar { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: #103529; color: #CFF5DE; font-size: 13.5px; white-space: normal; }
.callbar button { margin-left: auto; padding: 6px 12px; border: 0; border-radius: 99px; background: #E5484D; color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); width: 100%; padding: 0; gap: 0; }
  .side { padding: 22px 16px 10px; order: 2; }
  .phone { order: 1; position: relative; top: 0; height: calc(100svh - 34px); border: 0; border-radius: 0; box-shadow: none; }
  h1 { font-size: 28px; }
}
