@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
:root {
  --ink: #0c3e33;
  --paper: #fbfae8;
  --teal: #2ac6af;
  --line: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --soft: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --bubble-team: #e3eefc;
  --gutter: max(20px, calc((100vw - 1120px) / 2));
  --radius: 14px;
  color-scheme: light;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
p { line-height: 1.6; margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 20; padding: 12px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Cabecera fija: logo, secciones y la acción principal siempre a mano */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand img { width: 128px; height: auto; }
.site-header .sections { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.site-header .sections a { text-decoration: none; padding: 6px 0; }
.site-header .sections a:hover { text-decoration: underline; }
/* Selector de idioma: dos links comunes, el actual marcado. Sin JS ni detección por navegador. */
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 24px; border-radius: 999px; background: var(--teal); color: var(--ink); font-weight: 600; text-decoration: none; border: 2px solid var(--teal); }
.button:hover { background: var(--paper); border-color: var(--ink); }
.button--small { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }
.link-arrow { font-weight: 600; text-decoration: none; padding: 14px 4px; }
.link-arrow:hover { text-decoration: underline; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Hero: la promesa a la izquierda, la prueba (una conversación) a la derecha */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 72px var(--gutter) 88px; background: var(--ink); color: var(--paper); }
.hero .eyebrow { color: var(--teal); }
h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 22px; }
.definition { font-size: 1.2rem; max-width: 34em; color: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero .link-arrow { color: var(--paper); }

.phone { margin: 0; justify-self: center; width: min(100%, 380px); border-radius: 30px; padding: 10px; background: #062a22; box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px 22px 0 0; background: #0b4a3d; color: #fff; }
.phone-top strong { display: block; font-size: 0.95rem; }
.phone-top small { font-size: 0.75rem; opacity: 0.75; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 600; }
.chat { list-style: none; margin: 0; padding: 14px 10px 16px; display: flex; flex-direction: column; gap: 8px; background: #efeae2; border-radius: 0 0 22px 22px; color: #111b21; }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 10px; font-size: 0.9rem; line-height: 1.4; box-shadow: 0 1px 0 rgb(0 0 0 / 0.08); }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 2px; }
.msg.team { background: var(--bubble-team); }
.event { align-self: center; padding: 4px 10px; border-radius: 8px; background: #fff6c8; font-size: 0.78rem; color: #54473a; }
.phone figcaption { padding: 10px 6px 2px; font-size: 0.75rem; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .chat > li { animation: appear 0.35s ease-out both; }
  .chat > li:nth-child(2) { animation-delay: 0.5s; }
  .chat > li:nth-child(3) { animation-delay: 1.1s; }
  .chat > li:nth-child(4) { animation-delay: 1.6s; }
  .chat > li:nth-child(5) { animation-delay: 2.2s; }
  .chat > li:nth-child(6) { animation-delay: 2.7s; }
  .chat > li:nth-child(7) { animation-delay: 3.3s; }
  .chat > li:nth-child(8) { animation-delay: 3.8s; }
}
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Secciones */
.section { padding: 88px var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 44px; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; margin-top: 12px; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.12rem; margin-top: 16px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 260px; margin-bottom: 10px; padding: 18px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.step-visual img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 18px rgb(12 62 51 / 0.12); }
.step-visual--chat { background: #efeae2; color: #111b21; }
.step-visual .msg { margin: 0; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.9rem; }

.console { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px 40px; align-items: start; }
.console .section-heading { grid-column: 1 / -1; margin-bottom: 8px; }
.media-frame { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 8px; box-shadow: 0 20px 50px rgb(12 62 51 / 0.12); }
.media-frame video, .media-frame img { width: 100%; border-radius: 8px; }
.media-frame figcaption { padding: 12px 6px 4px; font-size: 0.85rem; color: var(--muted); }
.console-phone { margin: 0; }
.console-phone video { width: 100%; border-radius: 26px; border: 8px solid #062a22; box-shadow: 0 20px 50px rgb(12 62 51 / 0.2); background: #062a22; }
.console-phone figcaption { padding-top: 10px; font-size: 0.85rem; color: var(--muted); }

.ways { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ways li { padding: 22px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.ways p { margin-top: 8px; color: var(--muted); }
.catalog .media-frame { display: block; }
.note { margin-top: 20px; font-weight: 600; }
.catalog-mini { display: none; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 6px 16px; box-shadow: 0 20px 50px rgb(12 62 51 / 0.12); }
.catalog-mini p { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.catalog-mini p + p { border-top: 1px solid var(--line); }
.catalog-mini__title { font-weight: 600; }
.catalog-mini__title span, .catalog-mini small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.catalog-mini__row b { font-variant-numeric: tabular-nums; }

.start-steps { list-style: none; counter-reset: paso; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.start-steps li { counter-increment: paso; border-top: 3px solid var(--teal); padding-top: 18px; }
.start-steps li::before { content: counter(paso); display: block; font-size: 2.2rem; font-weight: 600; margin-bottom: 8px; }
.start-steps p { margin-top: 6px; color: var(--muted); }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq-list article { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-list h3 { margin-bottom: 8px; }

.contact { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 88px var(--gutter); background: var(--ink); color: var(--paper); }
.contact h2 { margin: 0; }
.contact img { border-radius: 14px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 0.92rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; padding: 6px 0; }
footer nav a[aria-current="page"] { font-weight: 600; }
.sticky-cta { display: none; }

/* Páginas legales (#1918): texto largo de lectura, una columna angosta. */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 12px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p + p, .legal ul + p, .legal ol + p, .legal p + ul, .legal p + ol { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { line-height: 1.6; margin-top: 6px; }
.legal code { font-size: 0.92em; }
.legal .table-wrap { overflow-x: auto; margin-top: 14px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.legal th { background: var(--soft); }
.legal .aaip { margin-top: 20px; font-size: 0.92rem; color: var(--muted); }
/* Huecos del borrador: datos que llegan por canal privado antes de publicar. Tienen que verse. */
mark.hueco { padding: 0 0.2em; border-radius: 4px; background: #ffe58a; color: var(--ink); }
.legal .condicional { margin-top: 14px; padding: 4px 14px 14px; border-left: 4px solid #e0b300; }

@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; row-gap: 6px; }
  .lang { margin-left: auto; }
  .site-header .sections { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 0.9rem; scrollbar-width: none; }
  html { scroll-padding-top: 110px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .steps, .ways, .start-steps { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .console-phone { display: none; }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header { padding-block: 10px; }
  .brand img { width: 104px; }
  .definition { font-size: 1.05rem; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 60px; }
  .section-heading { margin-bottom: 28px; }
  .step-visual { height: 220px; }
  .console .media-frame, .catalog .media-frame { display: none; }
  .catalog-mini { display: block; }
  .console-phone { display: block; justify-self: center; width: min(100%, 300px); }
  body { padding-bottom: 76px; }
  .sticky-cta { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; gap: 12px; padding: 15px; border-radius: 999px; background: var(--teal); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgb(12 62 51 / 0.3); }
  .header-cta { display: none; }
  .site-header .sections { gap: 14px; font-size: 0.86rem; }
  .lang a { min-height: 32px; min-width: 36px; padding: 0 8px; }
}
/* La barra fija aparece después del hero, donde el botón del hero ya no se ve. Sin soporte, queda siempre visible. */
@supports (animation-timeline: scroll()) {
  @media (max-width: 700px) {
    .sticky-cta { animation: cta-in linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
  }
}
@keyframes cta-in { 0%, 85% { opacity: 0; visibility: hidden; transform: translateY(130%); } 100% { opacity: 1; visibility: visible; transform: none; } }
