/* Página pública de Paini Bot (painibot.com). Misma marca que el panel: DM Sans, negro noche, hueso y rubí. */
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  --night: #0C0D0E; --night-2: #1C1D20; --line-dark: #303134;
  --bone: #F5F5F2; --paper: #FBFBF9; --ink: #141516; --muted: #596168; --line: #E1E0DA;
  --ruby: #A31E3D; --ruby-2: #C63657; --ruby-faint: #F8EEF1;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bone); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ruby-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bone); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; max-width: 20ch; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0; }

/* Barra */
.bar { max-width: var(--w); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 28px; }
.wm { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.055em; display: inline-flex; align-items: baseline; }
.wm span { margin-left: 0.22em; }
.wm i { width: 5px; height: 5px; border-radius: 50%; background: var(--ruby-2); margin-left: 2px; display: inline-block; }
.links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }
.links .enter { color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; background: var(--paper); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--ruby); color: #fff; }
.btn.primary:hover { background: var(--ruby-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #CFCEC7; }
.btn.ghost:hover { border-color: var(--ink); }

/* Portada */
.hero { max-width: var(--w); margin: 0 auto; padding: 40px 24px 88px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.lead { margin-top: 22px; font-size: 1.15rem; color: #3B4046; max-width: 46ch; }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* El teléfono: lo memorable de la página */
.phone { margin: 0; justify-self: end; width: min(100%, 400px); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { font: 600 0.88rem var(--font); padding: 7px 13px; border-radius: 999px; border: 1px solid #CFCEC7; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.screen { background: var(--night); border-radius: 30px; padding: 16px 14px 20px; box-shadow: 0 30px 60px -30px rgba(12, 13, 14, 0.55); min-height: 384px; }
.chat-head { display: flex; align-items: baseline; gap: 8px; color: var(--bone); padding: 4px 8px 14px; border-bottom: 1px solid var(--line-dark); margin-bottom: 14px; }
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DBA77; align-self: center; }
.chat-head b { font-size: 0.98rem; }
.chat-head .sub { font-size: 0.8rem; color: #8E9399; }
.chat { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 10px; }
.chat li { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; }
.chat .in { align-self: flex-end; background: var(--ruby); color: #fff; border-bottom-right-radius: 5px; }
.chat .out { align-self: flex-start; background: var(--night-2); color: var(--bone); border-bottom-left-radius: 5px; }
.chat.swap li { animation: pop 0.32s ease both; }
.chat.swap li:nth-child(2) { animation-delay: 0.12s; } .chat.swap li:nth-child(3) { animation-delay: 0.24s; } .chat.swap li:nth-child(4) { animation-delay: 0.36s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.phone figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

/* Secciones */
.does, .start, .who, .faq, .close { max-width: var(--w); margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--line); }
.does .grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.does article p { margin-top: 8px; color: #3B4046; max-width: 52ch; }
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; color: var(--ruby); line-height: 1; margin-bottom: 14px; }
.steps p { margin-top: 6px; color: #3B4046; }
.kinds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.kinds li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 760px; }
.faq details:first-of-type { margin-top: 24px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ruby); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: #3B4046; max-width: 64ch; }
.close { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 96px; }
.foot { background: var(--night); color: #B8BCC1; }
.foot { padding: 28px max(24px, calc((100% - var(--w)) / 2 + 24px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.foot a, .linkish { color: var(--bone); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* Aviso de cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(12, 13, 14, 0.35); display: flex; gap: 16px; align-items: center; z-index: 20; font-size: 0.92rem; }
.consent[hidden] { display: none; }
.consent div { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 16px; }
  .phone { justify-self: stretch; width: 100%; }
  .does .grid, .steps { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .links a:not(.enter) { display: none; }
  .consent { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) { .kinds { grid-template-columns: 1fr; } body { font-size: 16px; } }
