/* Landing de R2 Systems.
   Los colores, radios y sombras salen de r2-tokens.css, la copia del sistema de diseño R2;
   acá va sólo lo propio de la landing. */

:root {
  /* Títulos con serif y texto con una sans geométrica, como en la primera guía
     (docs/landing1.jpeg). La pantalla de ejemplo del panel va con las letras del panel
     (--r2-font-display, --r2-font-sans). */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 112px);
  --closing-radius: clamp(24px, 4vw, 40px);

  /* Sobre azul van los valores del tema oscuro del sistema de diseño. */
  --navy-ink-muted: #b8c4d8;
  --navy-border: #2a4670;
  --navy-border-strong: #5b7aa6;
  --navy-accent: #e0bd45;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--r2-bg);
  color: var(--r2-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--r2-navy-500); }

:focus-visible {
  outline: 2px solid var(--r2-focus);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 24px; }

/* Lo que tiene `hidden` no se ve aunque su clase le dé un `display`. */
[hidden] { display: none !important; }

/* Para lo que no se corta entre renglones, como «Remedi–Arzuaga» en la raya. */
.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--r2-brand);
  border-radius: var(--r2-radius-md);
  color: var(--r2-on-brand);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.gold-bar {
  display: block;
  width: 88px;
  height: 3px;
  background: var(--r2-accent);
  border-radius: 2px;
}

.icon-circle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--r2-header-soft);
  border-radius: var(--r2-radius-full);
  color: var(--r2-ink);
}
.icon-circle svg { width: 30px; height: 30px; }
.icon-circle--sm { width: 44px; height: 44px; }
.icon-circle--sm svg { width: 24px; height: 24px; }

/* ── Botones ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r2-radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--r2-brand);
  border-color: var(--r2-brand);
  color: var(--r2-on-brand);
}
.btn--primary:hover { background: var(--r2-navy-700); border-color: var(--r2-navy-700); }

.btn--outline {
  border-color: var(--r2-border-strong);
  color: var(--r2-ink);
}
.btn--outline:hover { background: rgba(10, 27, 51, .06); border-color: var(--r2-ink); }

.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

button.btn { cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ── Cabecera y portada ───────────────────────────────────────────────── */
/* La portada sigue a docs/landing2.jpeg: sólo texto, centrado, sobre el fondo celeste. */

.hero {
  padding-bottom: clamp(72px, 9vw, 120px);
  background: var(--r2-header-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--r2-ink);
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; }
.brand__rule { flex: none; width: 2px; height: 32px; background: var(--r2-accent); }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name { font-size: 16px; line-height: 1.25; font-weight: 700; }
.brand__tagline { font-size: 12.5px; line-height: 1.3; color: var(--r2-ink-muted); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--r2-ink-muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--r2-ink); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: clamp(48px, 8vw, 104px);
  text-align: center;
}

.hero__title {
  max-width: 1000px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  max-width: 760px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--r2-ink-muted);
  text-wrap: pretty;
}
.hero__note { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--r2-ink-muted); }

.hero__copy .btn { margin-top: 8px; }

/* ── Secciones ────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section--surface { background: var(--r2-surface); border-block: 1px solid var(--r2-border); }
/* El cierre azul sube con sus esquinas redondeadas sobre el fondo de esta sección. */
.section--before-closing { padding-bottom: calc(var(--section-y) + var(--closing-radius)); }

.section--navy {
  background: linear-gradient(135deg, var(--r2-navy-700) 0%, var(--r2-navy-900) 60%);
  color: var(--r2-white);
}
.section--navy .gold-bar { background: var(--navy-accent); }

.section__head { display: flex; flex-direction: column; gap: 20px; }
/* Cuando el título va arriba de lo que presenta, y no al lado. */
.section__head--stacked { margin-bottom: clamp(40px, 5vw, 64px); }

.section__title {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__intro {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--r2-ink-muted);
  text-wrap: pretty;
}
.section--navy .section__intro { color: var(--navy-ink-muted); }

/* Título a la izquierda y texto a la derecha. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 32px 72px;
}

.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--r2-ink-muted);
  text-wrap: pretty;
}
.prose .prose__lead {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--r2-ink);
  text-wrap: balance;
}

/* ── Qué hace R2: tres pasos ──────────────────────────────────────────── */

.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 44px;
  margin-top: clamp(48px, 6vw, 72px);
}
.how__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--r2-surface);
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-lg);
}
/* La flecha entre un paso y el siguiente, en el espacio que los separa. */
.how__step + .how__step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -29px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--r2-border-strong);
  border-right: 2px solid var(--r2-border-strong);
  transform: translateY(-50%) rotate(45deg);
}
.how__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  background: var(--r2-brand);
  border-radius: var(--r2-radius-full);
  color: var(--r2-on-brand);
  font-size: 16px;
  font-weight: 700;
}
.how__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.how__step p { font-size: 16px; line-height: 1.55; color: var(--r2-ink-muted); text-wrap: pretty; }

.how__claim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}
/* El ícono va en el dorado de íconos del sistema de diseño, no en gold-500. */
.how__claim svg { flex: none; width: 32px; height: 32px; color: var(--r2-icon-accent); }

/* ── Información que ayuda a decidir ──────────────────────────────────── */

.topics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 28px;
}
.topic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.topic .icon-circle {
  margin-bottom: 8px;
  background: var(--r2-bg);
  border: 1px solid var(--r2-border);
}
.topic__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.topic p { font-size: 16px; line-height: 1.55; color: var(--r2-ink-muted); }

/* La pantalla de ejemplo es una ilustración (aria-hidden): no lleva controles de verdad. Va con
   las letras y los colores del panel, para que se parezca a lo que el cliente va a ver. */

.shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
}
.shot figcaption { font-size: 13px; color: var(--r2-ink-subtle); text-align: center; }

.panel {
  display: flex;
  background: var(--r2-bg);
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2-shadow-card), 0 24px 48px rgba(10, 27, 51, .10);
  font-family: var(--r2-font-sans);
  font-size: 14px;
}

.panel__menu {
  flex: 0 0 252px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 12px;
  border-right: 1px solid var(--r2-border);
}
.panel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 14px;
  font-size: 13px;
  font-weight: 700;
}
.panel__brand img { width: 22px; height: 22px; }
.panel__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r2-radius-md);
  color: var(--r2-ink-muted);
  white-space: nowrap;
}
.panel__item.is-active {
  background: var(--r2-nav-active);
  box-shadow: inset 3px 0 0 var(--r2-nav-bar);
  color: var(--r2-ink);
  font-weight: 600;
}
.panel__count {
  padding: 1px 8px;
  background: var(--r2-brand);
  border-radius: var(--r2-radius-full);
  color: var(--r2-on-brand);
  font-size: 12px;
}

.panel__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px;
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.panel__title { font: 700 22px/1.3 var(--r2-font-display); }

.panel__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 2px solid var(--r2-border);
  border-radius: var(--r2-radius-md);
}
.tile.is-selected { background: var(--r2-surface); border-color: var(--r2-ink); }
.tile span { font-size: 13px; font-weight: 600; color: var(--r2-ink-muted); }
.tile strong { font-size: 26px; line-height: 1.2; }

.panel__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 16px;
}

.alert-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-md);
  overflow: hidden;
}
.alert-list__row { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.alert-list__row + .alert-list__row { border-top: 1px solid var(--r2-border); }
.alert-list__row.is-selected { background: var(--r2-nav-active); }
.alert-list__row span { font-size: 13px; color: var(--r2-ink-muted); }

.alert-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-md);
}

.states { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.state {
  padding: 6px 12px;
  border: 1px solid var(--r2-border-strong);
  border-radius: var(--r2-radius-full);
}
.state.is-on { background: var(--r2-brand); border-color: var(--r2-brand); color: var(--r2-on-brand); }

.tag {
  padding: 3px 10px;
  border: 1px solid var(--r2-border-strong);
  border-radius: var(--r2-radius-full);
  color: var(--r2-ink-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--r2-radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
/* El rojo va siempre con signo o ícono (regla del sistema de diseño). */
.chip--negative { background: var(--r2-negative-soft); color: var(--r2-negative); }

.shot-title { font: 700 18px/1.3 var(--r2-font-display); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--r2-surface);
  border: 1px solid transparent;
  border-radius: var(--r2-radius-md);
}
.fact span { font-size: 12px; color: var(--r2-ink-muted); }
.fact strong { font-size: 17px; white-space: nowrap; }
/* El único destacado dorado de la pantalla. */
.fact--highlight { background: var(--r2-highlight); border-color: var(--r2-highlight-line); }
.fact--highlight span { color: var(--r2-on-highlight); }

.fake-link {
  color: var(--r2-navy-500);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── El enfoque: las tres dimensiones ─────────────────────────────────── */

.dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dimension {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-inline: 40px;
  border-left: 1px solid var(--navy-border);
}
.dimension:first-child { padding-left: 0; border-left: 0; }
.dimension:last-child { padding-right: 0; }
.dimension__icon { width: 40px; height: 40px; margin-bottom: 6px; color: var(--navy-accent); }
.dimension__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dimension p { font-size: 17px; line-height: 1.6; color: var(--navy-ink-muted); text-wrap: pretty; }

/* ── Los asesores ─────────────────────────────────────────────────────── */

.advisor {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  align-items: center;
  gap: 32px 56px;
}
.advisor__art { width: 100%; height: auto; }
.advisor__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 40px;
  border-left: 2px solid var(--r2-accent);
}
.advisor__copy .section__title { max-width: none; text-wrap: wrap; }
.advisor__copy .section__title span { display: block; }
.advisor__copy .prose { max-width: 680px; }

/* ── El valor de cada mejora ──────────────────────────────────────────── */

/* En escritorio la lista va a la derecha y la frase final queda abajo a la izquierda; en el
   código (y en el teléfono) el orden es el del texto: presentación, lista, frase final. */
.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "head list"
    "closing list";
  gap: 32px 72px;
}
.results__head { grid-area: head; }
.results__list {
  grid-area: list;
  padding: 8px 28px;
  background: var(--r2-bg);
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-lg);
  box-shadow: var(--r2-shadow-card);
}
.results__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.results__list li + li { border-top: 1px solid var(--r2-border); }
.results__closing {
  grid-area: closing;
  align-self: end;
  max-width: 520px;
  padding-left: 24px;
  border-left: 2px solid var(--r2-accent);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ── El proceso: los tres pasos ───────────────────────────────────────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
/* La línea de tiempo pasa por el centro de los tres puntos. */
.steps::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--r2-border);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 48px;
}
.step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--r2-bg);
  border: 2px solid var(--r2-ink);
  border-radius: var(--r2-radius-full);
}
.step__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--r2-accent);
  border-radius: var(--r2-radius-full);
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step p { font-size: 17px; line-height: 1.6; color: var(--r2-ink-muted); text-wrap: pretty; }

.steps__note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 18px 24px;
  background: var(--r2-surface);
  border: 1px solid var(--r2-border);
  border-radius: var(--r2-radius-lg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}
.steps__note .icon-circle { background: var(--r2-bg); border: 1px solid var(--r2-border); }

/* ── Cierre y pie ─────────────────────────────────────────────────────── */

.closing {
  position: relative;
  margin-top: calc(-1 * var(--closing-radius));
  border-radius: var(--closing-radius) var(--closing-radius) 0 0;
  /* La segunda capa lleva el azul de abajo al del pie, para que no se note la unión. */
  background:
    linear-gradient(180deg, rgba(10, 27, 51, 0) 50%, var(--r2-navy-900) 100%),
    linear-gradient(135deg, var(--r2-navy-700) 0%, var(--r2-navy-900) 60%);
  color: var(--r2-white);
}
.section--navy :focus-visible,
.closing :focus-visible,
.footer :focus-visible { outline-color: var(--r2-gold-300); }

.closing__inner { padding-block: clamp(64px, 8vw, 96px) clamp(64px, 7vw, 88px); }

/* El pedido de reunión: el texto a la izquierda y el formulario en una tarjeta blanca. A este
   bloque llevan los botones «Coordinar una reunión» de la cabecera y de la portada. */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 40px 72px;
  scroll-margin-top: 32px;
}

.contact__copy { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.contact__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.contact__copy p {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--navy-ink-muted);
  text-wrap: pretty;
}

.contact__card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--r2-bg);
  border-radius: var(--r2-radius-lg);
  color: var(--r2-ink);
}
/* Dentro de la tarjeta el fondo es blanco: el foco vuelve a ser el azul. */
.contact__card :focus-visible { outline-color: var(--r2-focus); }

/* ── Formulario ───────────────────────────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--r2-ink-muted); }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--r2-bg);
  border: 1px solid var(--r2-border-strong);
  border-radius: var(--r2-radius-sm);
  color: var(--r2-ink);
  /* 16 px: con menos, el teléfono agranda la página al entrar al campo. */
  font: 400 16px/1.4 var(--font-sans);
}
.field textarea { min-height: 112px; line-height: 1.5; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--r2-ink); }
.field [aria-invalid="true"] { border-color: var(--r2-negative); }

/* El rojo va con ícono (regla del sistema de diseño): el círculo con el signo. */
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--r2-negative);
  font-size: 13px;
  line-height: 1.4;
}
.field__error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: var(--r2-negative);
  border-radius: var(--r2-radius-full);
  color: var(--r2-white);
  font-size: 11px;
  font-weight: 700;
}

/* Fuera de la vista y del orden de tabulación: lo completan sólo los envíos automáticos. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__failure {
  padding: 12px 14px;
  background: var(--r2-negative-soft);
  border-radius: var(--r2-radius-md);
  color: var(--r2-negative);
  font-size: 14px;
  line-height: 1.5;
}
.form__failure a { color: inherit; font-weight: 600; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { flex: 1 1 200px; font-size: 13px; line-height: 1.4; color: var(--r2-ink-subtle); }

.form__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: 16px;
}
.form__done:focus { outline: 0; }
.form__done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  background: var(--r2-positive-soft);
  border-radius: var(--r2-radius-full);
  color: var(--r2-positive);
}
.form__done-icon svg { width: 28px; height: 28px; }
.form__done h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.form__done p { font-size: 17px; line-height: 1.55; color: var(--r2-ink-muted); }

.footer {
  background: var(--r2-navy-900);
  border-top: 1px solid var(--navy-border);
  color: var(--navy-ink-muted);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--r2-white);
  font-weight: 700;
}
/* La marca es negra sobre transparente: invertida queda blanca sobre el azul. */
.footer__brand img { width: 26px; height: 26px; filter: invert(1); }

/* ── Pantallas angostas ───────────────────────────────────────────────── */

/* Con la marca, los cuatro enlaces y los dos botones, la cabecera no entra en una línea por
   debajo de este ancho: se van los enlaces, que son atajos dentro de la misma página. */
@media (max-width: 1240px) {
  .nav__links { display: none; }
}

@media (max-width: 960px) {
  .split,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .results {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "list" "closing";
  }

  /* Los cinco temas pasan de columnas a renglones, con el ícono a la izquierda. */
  .topics { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .topic {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px 20px;
  }
  .topic .icon-circle { grid-row: 1 / span 2; margin-bottom: 0; }
  .topic__title { align-self: end; }
}

@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how__step + .how__step::before { display: none; }

  .panel__menu { display: none; }
  .panel__main { padding: 20px; }

  .dimensions { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dimension,
  .dimension:first-child,
  .dimension:last-child {
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--navy-border);
  }

  /* La línea de tiempo baja por la izquierda. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps::before { top: 8px; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 0 44px; }
  .step__dot { top: 6px; }
}

@media (max-width: 720px) {
  /* En el teléfono la pantalla de ejemplo muestra sólo la ficha de la alerta. */
  .panel__split { grid-template-columns: minmax(0, 1fr); }
  .alert-list { display: none; }

  .advisor { grid-template-columns: minmax(0, 1fr); }
  .advisor__art { max-width: 190px; }
  .advisor__copy { padding-left: 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  /* En el teléfono queda «Ingresar» arriba; «Coordinar una reunión» está en la portada. */
  .nav__meeting { display: none; }
  .brand { gap: 12px; }
  .brand__tagline { display: none; }

  .panel__tiles { gap: 8px; }
  .tile { padding: 10px 12px; }
  .tile strong { font-size: 22px; }

  .topic { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
  .topic .icon-circle { width: 52px; height: 52px; }
  .topic .icon-circle svg { width: 26px; height: 26px; }

  .results__list { padding-inline: 20px; }
  .results__list li { gap: 14px; font-size: 17px; }

  .steps__note { align-items: flex-start; padding: 16px 18px; }

  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
}
