/* ============================================================
   RELAB — Laboratorio Relacional
   Sistema de diseño basado en el Manual de Identidad oficial
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Tonos acento (manual, p.5) */
  --ink:            #241e47;
  --magenta:        #bf4f8e;
  --coral:          #ee7d50;
  --amber:          #ecab41;
  --teal:           #2f7c86;
  --black:          #161616;

  /* Tonos crema (manual, p.5) */
  --indigo-soft:    #4f4a84;
  --pink-soft:      #e888b6;
  --peach-soft:     #f6b594;
  --gold-soft:      #f0cb7d;
  --cyan-soft:      #91cfdb;
  --white-soft:     #f9f9f9;

  /* Superficies */
  --bg:             #fbfaf8;
  --bg-alt:         #f4f1ec;
  --surface:        #ffffff;
  --border:         rgba(36, 30, 71, 0.12);
  --border-strong:  rgba(36, 30, 71, 0.24);

  /* Texto */
  --text:           #241e47;
  --text-muted:     #58527e;
  --text-on-dark:   #f9f9f9;
  --text-on-dark-muted: rgba(249, 249, 249, 0.72);

  /* Degradado de marca (recorrido del logo) */
  --grad-brand: linear-gradient(120deg, #e888b6 0%, #ee7d50 32%, #ecab41 58%, #91cfdb 88%, #2f7c86 100%);
  --grad-warm:  linear-gradient(120deg, #e888b6 0%, #ee7d50 55%, #ecab41 100%);
  --grad-cool:  linear-gradient(120deg, #ecab41 0%, #91cfdb 60%, #2f7c86 100%);

  /* Tipografía */
  --font-title: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Satoshi', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.9rem, 0.87rem + 0.16vw, 1rem);
  --step-0:  clamp(1.05rem, 1rem + 0.28vw, 1.2rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.42vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);

  /* Ritmo */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(36, 30, 71, 0.06);
  --shadow: 0 14px 44px rgba(36, 30, 71, 0.10);
}

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

/* `clip` y no `hidden`: hidden convertiría a html en contenedor de scroll
   y rompería el encabezado fijo */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.section--ink {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section--ink h2, .section--ink h3 { color: var(--text-on-dark); }
.section--ink .lead, .section--ink p { color: var(--text-on-dark-muted); }

.stack > * + * { margin-top: 1.1rem; }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-title);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
}
.section--ink .eyebrow { color: var(--cyan-soft); }

.text-gradient {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: var(--grad-brand);
  width: 88px;
  margin: 0 0 1.6rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: 99px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--ink);
  color: var(--white-soft);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(36, 30, 71, 0.26); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(36, 30, 71, 0.04); }

.btn--light {
  background: var(--white-soft);
  color: var(--ink);
}
.btn--light:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }

.btn--outline-light {
  background: transparent;
  color: var(--white-soft);
  border-color: rgba(249, 249, 249, 0.45);
}
.btn--outline-light:hover { border-color: var(--white-soft); background: rgba(249, 249, 249, 0.08); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(36, 30, 71, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
/* El encabezado necesita más ancho que el resto del contenido para que
   el menú completo quepa sin cortarse */
.site-header .wrap { width: min(100% - 2.5rem, 1280px); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 186px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.18rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: rgba(36, 30, 71, 0.06); }
.nav a[aria-current="page"] { color: var(--teal); }

.nav__cta { margin-left: 0.5rem; }
.nav__cta.btn { padding: 0.78rem 1.45rem; font-size: 1.14rem; }
/* El color de .nav a le ganaba al del botón y dejaba el texto invisible */
.nav a.btn--primary { color: var(--white-soft); }
.nav a.btn--primary:hover { background: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.6rem;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.85rem 0.9rem; font-size: 1.15rem; }
  .nav__cta { margin: 0.6rem 0 0; }
}

@media (max-width: 560px) {
  .brand img { width: 150px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem) var(--section-y);
  overflow: hidden;
}

.hero__aura {
  position: absolute;
  inset: -30% -10% auto;
  height: 720px;
  background:
    radial-gradient(38% 46% at 18% 42%, rgba(145, 207, 219, 0.55), transparent 70%),
    radial-gradient(34% 42% at 48% 30%, rgba(240, 203, 125, 0.5), transparent 70%),
    radial-gradient(36% 44% at 74% 44%, rgba(232, 136, 182, 0.48), transparent 70%),
    radial-gradient(30% 38% at 90% 22%, rgba(238, 125, 80, 0.36), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero__inner { max-width: 800px; }

.hero h1 { margin-bottom: 0.55em; }

.hero .lead { max-width: 62ch; }

.hero__note {
  margin-top: 2.4rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Grids y tarjetas ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3, .card h4 { margin-bottom: 0.45em; }
.card p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card--accent {
  position: relative;
  overflow: hidden;
  padding-top: 1.9rem;
}
.card--accent::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--grad-brand);
}

.card__num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--surface);
  background: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* Lista de capacidades (versión compacta, sólo nombres) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin-top: 2rem;
}
.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

/* Listas con viñeta de marca */
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-warm);
}
.section--ink .ticks li { color: var(--text-on-dark-muted); }

.ticks--cool li::before { background: var(--grad-cool); }

.ticks--cross li::before {
  background: none;
  border-radius: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background-image: linear-gradient(45deg, transparent 44%, var(--indigo-soft) 44%, var(--indigo-soft) 56%, transparent 56%),
                    linear-gradient(-45deg, transparent 44%, var(--indigo-soft) 44%, var(--indigo-soft) 56%, transparent 56%);
}

/* Bloque de dos columnas texto + panel */
.split {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  align-items: start;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--narrow-first { grid-template-columns: 0.9fr 1.1fr; }
  /* Titular a la izquierda y tarjeta ancha a la derecha, centradas entre sí */
  .split--feature { grid-template-columns: 0.82fr 1.18fr; }
}
.split--feature { align-items: center; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  box-shadow: var(--shadow);
}

.panel--tint {
  background: linear-gradient(150deg, rgba(232, 136, 182, 0.14), rgba(145, 207, 219, 0.16));
  border-color: transparent;
}

/* Cita / frase destacada */
.pull {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

/* Fundadoras */
.founder__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(232, 136, 182, 0.35), rgba(240, 203, 125, 0.3) 45%, rgba(145, 207, 219, 0.38));
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  color: var(--indigo-soft);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.founder__role {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.42rem; }

.field label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 124, 134, 0.16);
}

.field--row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.form__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(47, 124, 134, 0.1);
  border: 1px solid rgba(47, 124, 134, 0.3);
  font-size: var(--step--1);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(3rem, 2.4rem + 2.5vw, 4.5rem) 2rem;
}

.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white-soft); }

.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(249, 249, 249, 0.16);
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 3rem; }
}

.footer__brand img { width: 172px; margin-bottom: 1.1rem; }

.footer__tagline {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-1);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.9rem;
}

.footer__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; display: grid; gap: 0.6rem; font-size: var(--step--1); }

.footer__sub { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.footer__sub input {
  flex: 1 1 190px;
  background: rgba(249, 249, 249, 0.08);
  border: 1px solid rgba(249, 249, 249, 0.3);
  color: var(--white-soft);
  border-radius: 99px;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
}
.footer__sub input::placeholder { color: rgba(249, 249, 249, 0.5); }
.footer__sub input:focus { outline: none; border-color: var(--cyan-soft); }
.footer__sub .btn { padding: 0.75rem 1.4rem; font-size: 0.95rem; }

.footer__bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; list-style: none; }

.footer__disclaimer {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(249, 249, 249, 0.55);
  max-width: 68ch;
  line-height: 1.55;
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilidades ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white-soft);
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-family: var(--font-title);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.center { text-align: center; }
.center .rule { margin-inline: auto; }
.measure { max-width: 68ch; }
.center .measure { margin-inline: auto; }
.mt-lg { margin-top: 2.5rem; }

/* ---------- Capacidades numeradas (Inicio) ---------- */
.chips { padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 0.55rem; }
.chips span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white-soft);
  font-weight: 800;
  font-size: 0.78rem;
}

/* ---------- Afirmaciones de identificación ---------- */
.statements {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
.statements li {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.4;
  padding: 0.15rem 0 0.15rem 1.2rem;
  border-left: 4px solid;
  border-image: var(--grad-warm) 1;
}
.statements--sm li { font-size: var(--step-0); }

/* ---------- Tarjetas desplegables (capacidades) ---------- */
.caps { display: grid; gap: 1rem; }
@media (min-width: 880px) {
  .caps { grid-template-columns: 1fr 1fr; align-items: start; }
}

.cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.cap[open] { box-shadow: var(--shadow); }

.cap summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
}
.cap summary::-webkit-details-marker { display: none; }
.cap summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.cap[open] summary::after { transform: rotate(45deg); }
.cap .card__num { margin: 0; flex-shrink: 0; }

.cap__body { padding: 0 1.4rem 1.5rem 4.55rem; }
.cap__body p { color: var(--text-muted); }
.cap__body .cap__lead { color: var(--text); font-weight: 600; }
@media (max-width: 520px) { .cap__body { padding-left: 1.4rem; } }

/* ---------- Video y fotografías pendientes ---------- */
.media-placeholder {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(232, 136, 182, 0.35), rgba(240, 203, 125, 0.3) 45%, rgba(145, 207, 219, 0.38));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--indigo-soft);
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.media-placeholder small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.85;
}
.media-placeholder--photo { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: none; }

/* Fotografías de las cuatro líneas (Qué hacemos) */
.line__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(36, 30, 71, 0.16);
}

.media-placeholder__play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ink);
}
.media-placeholder__play::before {
  content: '';
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--white-soft);
}

/* ---------- Bloques alternados (Qué hacemos) ---------- */
.split--center { align-items: center; }
@media (min-width: 880px) {
  .split--reverse > :first-child { order: 2; }
}
.line + .line { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

.formats {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Recorrido visual (Dating ReLab) ---------- */
.journey {
  list-style: none;
  padding: 0;
  counter-reset: paso;
}
.journey li {
  counter-increment: paso;
  position: relative;
  padding: 0.35rem 0 2rem 4rem;
  min-height: 2.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
}
.journey li:last-child { padding-bottom: 0; }
.journey li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
}
.journey li::after {
  content: '';
  position: absolute;
  left: calc(1.4rem - 1px);
  top: 2.8rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--pink-soft), var(--cyan-soft));
}
.journey li:last-child::after { display: none; }

.grid--5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Formulario en línea (Newsletter) ---------- */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 560px;
  margin-top: 2rem;
}
.inline-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
}
.inline-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 124, 134, 0.16);
}
.inline-form .form-status { flex-basis: 100%; margin-top: 0.2rem; }

/* ---------- Páginas legales ---------- */
.legal { margin-top: 2.4rem; }
.legal h2 {
  font-size: var(--step-1);
  margin-top: 2.8rem;
  margin-bottom: 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-family: var(--font-title);
  font-size: var(--step-0);
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
}
.legal p, .legal li { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { margin: 0 0 1.1em; padding-left: 1.45rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 0.55rem; }
.legal__meta {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.legal__box {
  margin: 1.4rem 0;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(145, 207, 219, 0.14);
}
.legal__box p:last-child { margin-bottom: 0; }

.empty {
  text-align: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* ============================================================
   Iconos y tintes de color
   ============================================================ */
.icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
}
.icon svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sq { border-radius: 14px; }

.tint-1 { background: rgba(232, 136, 182, 0.20); color: #a8386f; }
.tint-2 { background: rgba(238, 125, 80, 0.20);  color: #b8511f; }
.tint-3 { background: rgba(236, 171, 65, 0.24);  color: #8d6310; }
.tint-4 { background: rgba(145, 207, 219, 0.30); color: #2c7480; }
.tint-5 { background: rgba(191, 79, 142, 0.18);  color: #a53d79; }
.tint-6 { background: rgba(79, 74, 132, 0.16);   color: #4f4a84; }
.tint-7 { background: rgba(240, 203, 125, 0.32); color: #8a6a1e; }
.tint-8 { background: rgba(47, 124, 134, 0.16);  color: #2f7c86; }

/* ============================================================
   Diagrama de las ocho capacidades (Inicio)
   Distribución radial: las ocho tarjetas rodean el círculo
   central y se conectan con líneas curvas de su mismo color.
   ============================================================ */
.diagram { position: relative; margin-top: 3.2rem; }

.cap-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border-radius: 99px;
  box-shadow: 0 6px 22px rgba(36, 30, 71, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cap-pill:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(36, 30, 71, 0.16); }

.cap-pill__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(30px, 2.9vw, 38px);
  height: clamp(30px, 2.9vw, 38px);
  border-radius: 50%;
  background: var(--accent, var(--ink));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
}
.cap-pill__label {
  flex: 1;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.05vw, 1.18rem);
  line-height: 1.25;
}
.cap-pill .icon {
  width: clamp(36px, 3.5vw, 46px);
  height: clamp(36px, 3.5vw, 46px);
  border-radius: 14px;
}

.diagram__core {
  display: grid;
  place-items: center;
  align-content: center; /* agrupa texto y logo al centro, sin repartirlos en dos mitades */
  gap: 0.6rem;
  text-align: center;
  padding: 0.6rem;
}
.diagram__core::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 11px;
  background: conic-gradient(from 0deg, #e888b6, #ee7d50, #ecab41, #91cfdb, #2f7c86, #bf4f8e, #e888b6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin 26s linear infinite;
}
.diagram__core::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}
.diagram__core > * { position: relative; z-index: 1; }
.diagram__core img { width: clamp(60px, 5.2vw, 78px); }
.diagram__core span {
  max-width: 100%;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  line-height: 1.22;
  color: var(--ink);
}

/* Conectores */
.diagram__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.diagram__links path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.diagram__links circle { stroke: none; }

/* --- Escritorio: posiciones radiales --- */
@media (min-width: 940px) {
  .diagram { aspect-ratio: 1200 / 520; }
  .diagram__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28.33%;
    height: 65.38%;
  }
  .diagram .cap-pill { position: absolute; width: 27.5%; height: 17.69%; }

  .cap-pos-1 { left: 10%;    top: 4.23%;  }
  .cap-pos-8 { left: 6.25%;  top: 26.73%; }
  .cap-pos-7 { left: 6.25%;  top: 55.58%; }
  .cap-pos-6 { left: 10%;    top: 78.08%; }
  .cap-pos-2 { left: 62.5%;  top: 4.23%;  }
  .cap-pos-3 { left: 66.25%; top: 26.73%; }
  .cap-pos-4 { left: 66.25%; top: 55.58%; }
  .cap-pos-5 { left: 62.5%;  top: 78.08%; }

  /* Las líneas se dibujan solas al entrar en pantalla */
  .diagram .diagram__links path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .diagram.is-visible .diagram__links path { animation: draw 1s ease forwards; }
  .diagram .diagram__links circle { opacity: 0; }
  .diagram.is-visible .diagram__links circle { animation: pop 0.45s ease 0.75s forwards; }
  .diagram__links path:nth-of-type(2) { animation-delay: 0.08s; }
  .diagram__links path:nth-of-type(3) { animation-delay: 0.16s; }
  .diagram__links path:nth-of-type(4) { animation-delay: 0.24s; }
  .diagram__links path:nth-of-type(5) { animation-delay: 0.05s; }
  .diagram__links path:nth-of-type(6) { animation-delay: 0.13s; }
  .diagram__links path:nth-of-type(7) { animation-delay: 0.21s; }
  .diagram__links path:nth-of-type(8) { animation-delay: 0.29s; }
}

/* --- Celular y tablet: una sola columna --- */
@media (max-width: 939px) {
  .diagram { display: grid; gap: 0.85rem; }
  .diagram__links { display: none; }
  .diagram__core {
    order: -1;
    position: relative;
    width: min(230px, 62vw);
    aspect-ratio: 1;
    margin: 0 auto 1.2rem;
  }
  .diagram__core { width: min(300px, 78vw); }
  .diagram__core img { width: 84px; }
  .diagram__core span { font-size: 1.22rem; }
  .cap-pill__num { width: 30px; height: 30px; font-size: 0.85rem; }
  .cap-pill__label { font-size: 1rem; }
  .cap-pill .icon { width: 38px; height: 38px; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* ============================================================
   Insignia de icono con destellos
   ============================================================ */
.ibadge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.ibadge svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ibadge .glyph { stroke: var(--ink); stroke-width: 1.5; }
.ibadge .spark { stroke-width: 1.7; }
.ibadge--sm { width: 48px; height: 48px; }

/* ============================================================
   Tarjetas con fondo degradado suave
   ============================================================ */
.wash-1 { background: linear-gradient(155deg, rgba(232, 136, 182, 0.26), rgba(246, 181, 148, 0.14) 46%, rgba(255, 255, 255, 0.95) 78%), var(--surface); }
.wash-2 { background: linear-gradient(155deg, rgba(240, 203, 125, 0.34), rgba(246, 181, 148, 0.16) 46%, rgba(255, 255, 255, 0.95) 78%), var(--surface); }
.wash-3 { background: linear-gradient(155deg, rgba(145, 207, 219, 0.32), rgba(232, 136, 182, 0.10) 46%, rgba(255, 255, 255, 0.95) 78%), var(--surface); }
.wash-4 { background: linear-gradient(155deg, rgba(79, 74, 132, 0.20), rgba(232, 136, 182, 0.14) 46%, rgba(255, 255, 255, 0.95) 78%), var(--surface); }
.wash-5 { background: linear-gradient(150deg, rgba(232, 136, 182, 0.20), rgba(240, 203, 125, 0.16) 40%, rgba(145, 207, 219, 0.22) 100%), var(--surface); }

/* Tarjeta enlazada (Inicio → Qué hacemos) */
.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 300px;
  padding: 1.7rem 1.6rem 4.6rem;
  border-radius: 26px;
  box-shadow: 0 8px 28px rgba(36, 30, 71, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.wcard:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(36, 30, 71, 0.16); }
.wcard .ibadge { margin-bottom: 0.7rem; background: rgba(255, 255, 255, 0.72); }
.wcard h3 { margin-bottom: 0.2em; font-size: var(--step-2); }
.wcard p { color: var(--text-muted); font-size: var(--step-0); }

.wcard__go {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1.2rem;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.wcard:hover .wcard__go { transform: translateX(4px); background: #fff; }

/* Tarjeta de contenido (Conócenos, La brecha relacional) */
.wash-card {
  position: relative;
  padding: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem);
  border-radius: 28px;
  box-shadow: 0 10px 36px rgba(36, 30, 71, 0.09);
}
.wash-card__mark { position: absolute; right: 1.6rem; bottom: 1.5rem; background: rgba(255, 255, 255, 0.6); }
.wash-card--markspace { padding-bottom: 5rem; }

/* Texto grande de apertura */
.display {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

/* Cita destacada */
.quote {
  position: relative;
  margin: 1.4rem 0 1.8rem;
  padding-left: 3.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.32;
  color: var(--ink);
}
.quote__mark {
  position: absolute;
  left: 0;
  top: -0.25em;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 4.4rem;
  line-height: 1;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bloque resaltado dentro de una tarjeta */
.highlight {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.8rem;
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}
.highlight p {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--border-strong);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.45;
  color: var(--ink);
}

/* Tarjetas con barra superior (Dating → La experiencia) */
.xcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.3rem 1.6rem;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(36, 30, 71, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.xcard:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(36, 30, 71, 0.18); }
.xcard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--grad-brand);
}
.xcard p {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.35;
  color: var(--ink);
}
.xcard::after {
  content: '';
  width: 34px;
  height: 5px;
  margin-top: auto;
  border-radius: 99px;
  background: var(--accent, var(--pink-soft));
}

/* ============================================================
   Frases de cierre de sección
   ============================================================ */
.closing {
  max-width: 60ch;
  margin-inline: auto;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.35;
}
.closing::before {
  content: '';
  display: block;
  width: 68px;
  height: 4px;
  margin: 0 auto 1.5rem;
  border-radius: 99px;
  background: var(--grad-brand);
}
.closing em {
  font-style: normal;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--ink .closing em { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; }

.closing--soft {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-1);
  color: var(--text-muted);
}
.closing--soft strong { color: var(--text); font-family: var(--font-title); }

.closing + .btn-row { justify-content: center; }

/* ============================================================
   Explorador de capacidades (página Capacidad relacional)
   ============================================================ */
.explorer { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 940px) {
  .explorer { grid-template-columns: 360px 1fr; gap: 2.2rem; align-items: start; }
}

.explorer__list { display: grid; gap: 0.45rem; }

.explorer__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.explorer__item:hover { background: rgba(36, 30, 71, 0.05); }
.explorer__item[aria-selected="true"] {
  background: linear-gradient(120deg, rgba(232, 136, 182, 0.16), rgba(145, 207, 219, 0.2));
  border-color: var(--border);
}
.explorer__item .icon { width: 40px; height: 40px; }
.explorer__item::after {
  content: '›';
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--indigo-soft);
  opacity: 0.55;
  transition: transform 0.18s ease;
}
.explorer__item[aria-selected="true"]::after { transform: translateX(3px); opacity: 1; }

.explorer__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.explorer__panel > * { position: relative; z-index: 1; }

.explorer__blob {
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -70px;
  width: 280px;
  height: 280px;
  border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%;
  background: linear-gradient(140deg, rgba(232, 136, 182, 0.28), rgba(145, 207, 219, 0.28));
  animation: morph 16s ease-in-out infinite;
  pointer-events: none;
}

.explorer__num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  line-height: 1;
  color: rgba(79, 74, 132, 0.22);
  margin-bottom: 0.3rem;
}
.explorer__lead {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
}
.explorer__body { color: var(--text-muted); }

.explorer__swap { transition: opacity 0.2s ease, transform 0.2s ease; }
.explorer__swap.is-out { opacity: 0; transform: translateY(8px); }

/* ============================================================
   Formatos destacados (Qué hacemos)
   ============================================================ */
.formats-label {
  margin: 1.8rem 0 0.9rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 0.9rem;
}

.format {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.format:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.format .icon { width: 46px; height: 46px; }

/* ============================================================
   Movimiento
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(1.5%, -2.5%, 0) scale(1.06); }
}

@keyframes morph {
  0%, 100% { border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; transform: rotate(0deg); }
  50%      { border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; transform: rotate(8deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero__aura { animation: drift 18s ease-in-out infinite; }

/* Aparición escalonada de los elementos de una lista o grilla */
.stagger > * { animation: rise 0.6s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.22s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(6) { animation-delay: 0.34s; }
.stagger > *:nth-child(7) { animation-delay: 0.40s; }
.stagger > *:nth-child(8) { animation-delay: 0.46s; }
/* Solo se anima cuando la sección entra en pantalla */
.reveal:not(.is-visible) .stagger > * { animation-play-state: paused; }
