/* =========================================================
   SEPAS × VITALLIS — sitio responsive
   Layout fluido: una sola escala de tipografía y espacio que
   funciona de 320px a pantalla grande. Sin lienzo fijo.
   ========================================================= */

:root {
  /* Marca Vitallis */
  --purple-deep: #2E1065;
  --purple-dark: #3B0764;
  --purple: #6D28D9;
  --magenta: #C026D3;
  --orange: #F97316;
  --amber: #FBBF24;

  /* Texto y superficies */
  --ink: #23085A;
  --ink-soft: #574473;
  --ink-mute: #6F6383;
  --paper: #FFFFFF;
  --paper-alt: #F7F3FD;
  --line: #E7DEF7;

  --field: linear-gradient(150deg, #2E1065 0%, #5B21B6 52%, #A21CAF 100%);
  --heat: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);

  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Escala fluida */
  --t-h1: clamp(2.15rem, 1.35rem + 3.4vw, 4.1rem);
  --t-h2: clamp(1.6rem, 1.22rem + 1.7vw, 2.55rem);
  --t-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --t-lead: clamp(1.08rem, 1.0rem + 0.45vw, 1.35rem);
  --t-body: clamp(1rem, 0.97rem + 0.16vw, 1.1rem);
  --t-small: clamp(0.86rem, 0.84rem + 0.1vw, 0.94rem);

  --gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  --bay: clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--purple-deep); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.7em;
  border: 0;
  border-radius: 11px;
  font-family: inherit;
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-accent {
  background: var(--heat);
  color: #3A1400;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, .8);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(249, 115, 22, .9); }
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 0.6em 1.1em; font-size: var(--t-small); }
.btn-lg { padding: 1.05em 2em; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); }

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(46, 16, 101, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.topbar-inner {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none;
}
.topbar-brand img { width: 28px; height: 28px; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .18s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.icon-btn[aria-pressed="true"] { background: var(--amber); color: #3A1400; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--field);
  color: #fff;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem);
}
.hero-eyebrow {
  font-size: var(--t-small);
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 1rem;
}
.hero-title {
  max-width: 15ch;
  font-size: var(--t-h1);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 34ch;
  margin-top: 1.1rem;
  font-size: var(--t-lead);
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2rem;
}
.hero-meta {
  max-width: 42ch;
  margin-top: 1.75rem;
  font-size: var(--t-small);
  color: rgba(255, 255, 255, .6);
}

/* Único momento de movimiento del sitio: la entrada del hero. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .7s cubic-bezier(.22, .8, .3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 90ms + 60ms);
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding-block: var(--bay); }
.section-alt { background: var(--paper-alt); }

.section-title {
  font-size: var(--t-h2);
  max-width: 20ch;
  text-wrap: balance;
}
.prose {
  max-width: 58ch;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--t-lead);
  line-height: 1.55;
}
.footnote {
  max-width: 60ch;
  margin-top: 2rem;
  color: var(--ink-mute);
  font-size: var(--t-small);
}

/* =========================================================
   VOCES DE CLIENTES
   Lo que los clientes ya le dicen al PAS. Se leen como frases
   dichas, no como tarjetas: sangría colgante y comilla real.
   ========================================================= */
.voices {
  margin-top: clamp(2rem, 1.2rem + 2vw, 3rem);
  display: grid;
  gap: 0.9rem;
}
.voices li {
  position: relative;
  padding-left: 2.1rem;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.voices li::before {
  content: "“";
  position: absolute;
  left: 0; top: -0.35em;
  font-size: 2.4em;
  line-height: 1;
  color: var(--magenta);
  opacity: .45;
}
.voices li::after { content: "”"; }

@media (min-width: 760px) {
  .voices { grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; }
}

/* =========================================================
   DEFINICIÓN — qué es SEPAS
   ========================================================= */
.definition { text-align: left; }
.definition-term {
  font-size: clamp(3rem, 1.8rem + 6vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--field);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.definition-expansion {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.6rem);
  font-weight: 600;
  color: var(--purple);
  max-width: 24ch;
  line-height: 1.25;
}
.definition-body { margin-top: 1.5rem; }

/* =========================================================
   LAS TRES MODALIDADES — la escalera
   La intensidad visual sube con el nivel de participación:
   ese ascenso ES la información.
   ========================================================= */
.tiers {
  margin-top: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  display: grid;
  gap: 1.1rem;
}

.tier {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.tier-1 { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.tier-2 { background: var(--paper-alt); box-shadow: inset 0 0 0 1.5px #DCCBF5; }
.tier-3 { background: var(--field); color: #fff; }

.tier-name { font-size: var(--t-h3); }
.tier-claim {
  margin-top: 0.45rem;
  font-size: var(--t-body);
  color: var(--ink-soft);
  line-height: 1.45;
}
.tier-3 .tier-claim { color: rgba(255, 255, 255, .82); }

.tier-gauge {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-mute);
}
.tier-3 .tier-gauge { color: rgba(255, 255, 255, .75); }

.gauge { display: inline-flex; gap: 3px; }
.gauge i {
  width: 16px; height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.gauge i.on { background: var(--orange); }
.tier-3 .gauge i { background: rgba(255, 255, 255, .25); }
.tier-3 .gauge i.on { background: var(--amber); }

.tier-split {
  display: grid;
  gap: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.tier-3 .tier-split { border-top-color: rgba(255, 255, 255, .22); }

.tier-split h4 {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.tier-3 .tier-split h4 { color: var(--amber); }

.tier-split ul { display: grid; gap: 0.35rem; }
.tier-split li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: 1.45;
}
.tier-3 .tier-split li { color: rgba(255, 255, 255, .85); }
.tier-split li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--magenta);
}
.tier-3 .tier-split li::before { background: var(--amber); }

.tier-close {
  margin-top: auto;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.tier-3 .tier-close { color: #fff; }

@media (min-width: 620px) {
  .tier-split { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}

/* En pantalla ancha las tres columnas se escalonan hacia arriba */
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 1.25rem;
  }
  .tier-1 { padding-top: 2rem; }
  .tier-2 { padding-top: 3.4rem; }
  .tier-3 { padding-top: 4.8rem; }
  /* En columna angosta el desdoblado Vos/Vitallis se apila: se lee mejor */
  .tier-split { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* =========================================================
   RESPALDO — lo que aporta Vitallis
   ========================================================= */
.capabilities {
  margin: clamp(2rem, 1.2rem + 2vw, 3rem) 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.capabilities > div {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.capabilities dt {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.capabilities dd {
  margin: 0;
  color: var(--ink-mute);
  font-size: var(--t-small);
}

@media (min-width: 700px) {
  .capabilities { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .capabilities > div {
    grid-template-columns: 12rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
  .capabilities dd { text-align: left; }
}

/* =========================================================
   TRAZABILIDAD — secuencia real, por eso va numerada
   ========================================================= */
.track {
  counter-reset: step;
  margin-top: clamp(2rem, 1.2rem + 2vw, 3rem);
  max-width: 30rem;
  display: grid;
}
.track li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.35rem 3.25rem;
}
.track li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-alt);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
}
/* línea que conecta los pasos */
.track li::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px); top: 2.1rem;
  width: 2px; bottom: -0.1rem;
  background: var(--line);
}
.track li:last-child { padding-bottom: 0; }
.track li:last-child::after { display: none; }

.track-step { font-weight: 600; }

.track-end::before {
  background: var(--heat);
  box-shadow: none;
  color: #3A1400;
}
.track-end .track-step { color: var(--orange); }

/* =========================================================
   CIERRE
   ========================================================= */
.closing {
  background: var(--field);
  color: #fff;
  padding-block: var(--bay);
  text-align: center;
}
.closing-inner { display: grid; justify-items: center; }
.closing-title {
  font-size: var(--t-h2);
  max-width: 16ch;
  text-wrap: balance;
}
.closing-lead {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: var(--t-lead);
  color: rgba(255, 255, 255, .84);
  line-height: 1.5;
}
.closing .btn { margin-top: 2rem; }
.closing-logo {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  width: clamp(240px, 55vw, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* =========================================================
   PIE
   ========================================================= */
.footer {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, .55);
  padding-block: 1.75rem;
  font-size: var(--t-small);
}
.footer p { max-width: 60ch; }

/* =========================================================
   IMPRESIÓN
   ========================================================= */
@media print {
  .topbar, .skip-link, .btn { display: none !important; }
  body { color: #000; }
  .hero, .closing, .footer { background: #fff !important; color: #000 !important; }
  .hero-lead, .hero-meta, .closing-lead { color: #333 !important; }
  .tier-3 { background: #fff !important; color: #000 !important; box-shadow: inset 0 0 0 1.5px #999; }
  .tier-3 .tier-claim, .tier-3 .tier-split li { color: #333 !important; }
  .section, .closing { padding-block: 1.5rem; break-inside: avoid; }
  .definition-term { -webkit-text-fill-color: #3B0764; color: #3B0764; }
}
