@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fuentes/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fuentes/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fuentes/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --noche: #100b24; --noche-2: #1a1338; --tiza: #f4f1ff; --papel: #fff;
  --tinta: #1b1433; --tinta-2: #514a6b; --violeta: #7c5cff; --violeta-osc: #5535d6; --rosa: #ff5cb8;
  /* Colores que usa el chat (agentes.css) */
  --bg: var(--noche); --bg-soft: #221a45; --surface: #1a1338; --surface-hover: #2a2153;
  --ink: #f6f3ff; --ink-soft: #c6bfe0; --ink-faint: #a9a1c8;
  --primary: #7c5cff; --primary-soft: #b8a5ff; --pink: #ff5cb8; --accent: #2fe0bb; --danger: #ff8fa5;
  --border: rgba(255,255,255,.12); --border-hover: rgba(255,255,255,.28);
  --titulos: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--noche); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }
.ancho { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.saltar { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--tinta); padding: 12px 18px; border-radius: 0 0 10px 10px; }
.saltar:focus { top: 0; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.08; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.bajada { font-size: 19px; max-width: 60ch; margin-top: 18px; }
.banda { padding: 104px 0; }
.clara { background: var(--tiza); color: var(--tinta); }
.clara .bajada { color: var(--tinta-2); }
.oscura .bajada { color: var(--ink-soft); }

.barra { position: sticky; top: 0; z-index: 50; background: var(--noche); border-bottom: 1px solid var(--border); }
.barra .ancho { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.marca img { height: 36px; width: auto; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { text-decoration: none; font-size: 16px; color: var(--ink-soft); padding: 10px 0; }
.menu a:hover { color: #fff; }
.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; background: none; border: 0; flex-direction: column; gap: 6px; align-items: center; justify-content: center; position: relative; z-index: 60; }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 28px; border-radius: 14px; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center; transition: background .15s; }
.boton-1 { background: var(--rosa); color: #24062f; }
.boton-1:hover { background: #ff85ca; }
.boton-2 { border: 2px solid rgba(255,255,255,.4); color: #fff; }
.boton-2:hover { background: rgba(255,255,255,.1); }
.boton-3 { background: var(--violeta-osc); color: #fff; }
.boton-3:hover { background: #4527ba; }
.barra .boton { min-height: 46px; padding: 10px 20px; font-size: 16px; border-radius: 12px; }

.inicio { padding: 84px 0 100px; overflow: hidden; }
.inicio .ancho { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(40px, 5.5vw, 70px); font-weight: 800; line-height: 1.02; letter-spacing: -.018em; }
.inicio .bajada { font-size: 20px; color: var(--ink-soft); margin-top: 26px; max-width: 52ch; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.nota { margin-top: 18px; font-size: 16px; color: var(--ink-soft); }

/* El cuaderno que se convierte en un sistema: la pieza de la portada */
.escena { position: relative; min-height: 540px; }
.hoja { position: absolute; left: 0; top: 0; width: 62%; padding: 24px 24px 30px 44px; background: #fffbe9 repeating-linear-gradient(#fffbe9 0 33px, #d6dcec 33px 34px); color: #39406b; transform: rotate(-5deg); border-radius: 4px; font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; font-size: 16px; line-height: 34px; }
.hoja::before { content: ''; position: absolute; left: 32px; top: 0; bottom: 0; width: 1px; background: #f3a7b8; }
.hoja s { color: #7b7f9b; }
.panel { position: absolute; right: 0; bottom: 0; width: 80%; background: #fff; color: var(--tinta); border-radius: 18px; padding: 20px 22px 22px; box-shadow: 0 0 0 10px var(--violeta); }
.panel-t { font-family: var(--titulos); font-weight: 700; font-size: 21px; margin-bottom: 10px; }
.fila { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #e5e0f5; font-size: 15px; }
.fila b { display: block; font-weight: 600; }
.fila small { font-size: 14px; color: var(--tinta-2); }
.estado { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; background: #d8f7ef; color: #07594a; }
.estado.espera { background: #ffe3f3; color: #8a1259; }
.panel-total { margin-top: 8px; padding-top: 13px; border-top: 2px solid var(--tinta); display: flex; justify-content: space-between; font-weight: 600; }

.casos { list-style: none; margin-top: 52px; border-top: 2px solid var(--tinta); }
.casos li { display: grid; grid-template-columns: 1fr 1.15fr 150px; gap: 40px; padding: 32px 0; border-bottom: 1px solid #cfc7e8; align-items: start; }
.casos q { quotes: '“' '”'; font-family: var(--titulos); font-size: 25px; line-height: 1.2; font-weight: 600; color: var(--violeta-osc); letter-spacing: -.01em; }
.casos h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.casos p { color: var(--tinta-2); max-width: 52ch; }
.plazo { font-size: 16px; font-weight: 600; white-space: nowrap; padding-top: 3px; }
.tras-casos { margin-top: 36px; }

.agentes { padding: 104px 0; border: 0; }
.agentes-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.ag-list { margin-top: 30px; }
.ag-list li { font-size: 17px; color: var(--ink-soft); }
.cw-av { font-family: var(--titulos); font-weight: 700; background: var(--violeta-osc); }
.cw-state, .cw-foot { font-size: 14px; }
.cw-msg, .cw-input { font-size: 16px; }
.cw-chip { font-size: 15px; min-height: 44px; text-align: left; }
.cw-send { background: var(--rosa); color: #24062f; }
.cw-msg.yo { background: var(--violeta-osc); }
.cw-badge { font: 600 14px 'Inter', sans-serif; letter-spacing: 0; text-transform: none; }

.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 44px 0 40px; list-style: none; }
.demos a { display: flex; align-items: center; min-height: 68px; padding: 12px 0; border-bottom: 1px solid #cfc7e8; text-decoration: none; font-family: var(--titulos); font-weight: 600; font-size: 20px; line-height: 1.2; }
.demos a:hover { color: var(--violeta-osc); border-color: var(--violeta-osc); }

.pasos { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 52px; }
.pasos li { counter-increment: paso; color: var(--ink-soft); }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--violeta-osc); color: #fff; font: 700 25px var(--titulos); margin-bottom: 20px; }
.pasos h3 { font-size: 22px; color: #fff; margin-bottom: 8px; }

.dudas-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
details { border-bottom: 1px solid #cfc7e8; }
details:first-child { border-top: 2px solid var(--tinta); }
summary { cursor: pointer; padding: 22px 44px 22px 0; position: relative; list-style: none; font-family: var(--titulos); font-weight: 600; font-size: 20px; line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 30px; line-height: 1.2; color: var(--violeta-osc); }
details[open] summary::after { content: '–'; }
details p { padding: 0 44px 24px 0; color: var(--tinta-2); max-width: 64ch; }

.contacto { background: var(--violeta-osc); padding: 104px 0; }
.contacto .ancho { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.contacto .bajada { color: #ece6ff; }
.datos { list-style: none; }
.datos li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.35); }
.datos li:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.datos span { display: block; color: #ece6ff; font-size: 16px; }
.datos a { display: inline-block; font-family: var(--titulos); font-weight: 600; font-size: 22px; padding: 4px 0; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.pie { padding: 36px 0; color: var(--ink-soft); font-size: 16px; }
.pie .ancho { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.pie nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pie a { display: inline-block; padding: 6px 0; }

.scroll-top { position: fixed; right: 18px; bottom: 20px; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 14px; background: var(--noche); color: #fff; font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 40; }
.scroll-top.visible { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
  .banda, .agentes, .contacto { padding: 76px 0; }
  .inicio { padding: 56px 0 76px; }
  .inicio .ancho, .agentes-grid, .dudas-grid, .contacto .ancho { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .escena { max-width: 520px; width: 100%; }
  .casos li { grid-template-columns: 1fr; gap: 12px; }
  .demos, .pasos { grid-template-columns: 1fr 1fr; }
  .hamburger { display: flex; }
  .barra .boton { display: none; }
  .menu { position: fixed; inset: 0; background: var(--noche); flex-direction: column; align-items: center; justify-content: center; gap: 18px; margin: 0; visibility: hidden; opacity: 0; transition: opacity .2s; z-index: 55; }
  .menu.open { visibility: visible; opacity: 1; }
  .menu a { font: 600 26px var(--titulos); color: #fff; }
}
@media (max-width: 560px) {
  .ancho { padding: 0 20px; }
  .inicio .bajada, .bajada { font-size: 18px; }
  .acciones .boton { width: 100%; }
  .escena { min-height: 500px; }
  .hoja { width: 74%; font-size: 15px; }
  .panel { width: 88%; right: 8px; bottom: 8px; padding: 18px; box-shadow: 0 0 0 8px var(--violeta); }
  .demos, .pasos { grid-template-columns: 1fr; }
  .casos q { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
  
.miga { padding: 22px 0 0; font-size: 15px; color: var(--ink-soft); }
.miga a { display: inline-block; padding: 8px 0; }
.srv { padding: 44px 0 88px; }
.srv h1 { max-width: 18ch; }
.srv .bajada { color: var(--ink-soft); font-size: 20px; }
.srv .plazo { display: inline-block; margin-top: 22px; color: #fff; white-space: normal; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.lista { list-style: none; margin-top: 28px; border-top: 2px solid var(--tinta); }
.lista li { padding: 16px 0; border-bottom: 1px solid #cfc7e8; color: var(--tinta-2); }
.enlaces { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.enlaces a { display: inline-block; padding: 8px 0; text-underline-offset: 5px; }
.texto h2 { font-size: 28px; margin: 44px 0 12px; }
.texto h2:first-child { margin-top: 0; }
.texto p { max-width: 68ch; color: var(--tinta-2); margin-top: 10px; }
h2.sub { font-size: 26px; margin-top: 48px; }
@media (max-width: 960px) { .dos { grid-template-columns: minmax(0, 1fr); gap: 56px; } }
