/* ============================================================
   ÑANDE ARCHIVO VIVO — La memoria viva del Paraguay
   Diseño: tinta cálida + ámbar (memoria) + teal (tecnología)
   ============================================================ */

:root {
  /* Paleta — tinta cálida */
  --ink-950: #14100B;
  --ink-900: #1A1510;
  --ink-850: #201A13;
  --ink-800: #272016;
  --ink-700: #3A2F20;

  /* Papel */
  --paper: #F2EAD9;
  --paper-dim: #C9BFA9;
  --paper-faint: #9C917B;

  /* Acentos */
  --amber: #E8A33D;
  --amber-bright: #F5B95C;
  --copper: #C97B3D;
  --teal: #5BBFA8;
  --teal-bright: #7FD4C0;

  --line: rgba(242, 234, 217, 0.08);
  --line-strong: rgba(242, 234, 217, 0.16);

  --grad-amber: linear-gradient(135deg, #F5B95C 0%, #C97B3D 100%);
  --grad-amber-text: linear-gradient(120deg, #F5B95C 0%, #E8A33D 55%, #C97B3D 100%);

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  /* Formas */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Sombras y brillos */
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --glow-amber: 0 0 44px rgba(232, 163, 61, 0.18);
  --glow-teal: 0 0 44px rgba(91, 191, 168, 0.14);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1120px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--amber-bright); text-decoration: none; }
a:hover { color: var(--amber); }

::selection { background: var(--amber); color: var(--ink-950); }

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

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Utilidades de accesibilidad ---------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Barra de progreso ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad-amber);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 150;
  pointer-events: none;
}

/* ---------- Grano ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Encabezado ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(26, 21, 16, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tilde { color: var(--amber-bright); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  color: var(--paper-dim);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-amber);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover { color: var(--paper); }
.nav-list a.is-active { color: var(--amber-bright); }
.nav-list a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switch {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-bright);
  background: rgba(91, 191, 168, 0.08);
  border: 1px solid rgba(91, 191, 168, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lang-switch:hover {
  background: rgba(91, 191, 168, 0.16);
  border-color: var(--teal);
  box-shadow: var(--glow-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--grad-amber);
  color: var(--ink-950);
  box-shadow: 0 8px 28px rgba(232, 163, 61, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(232, 163, 61, 0.35);
  color: var(--ink-950);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  color: var(--amber-bright);
  box-shadow: var(--glow-amber);
}

/* ---------- Eyebrow / títulos ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.section-head { margin-bottom: var(--space-7); }

.prose {
  max-width: 62ch;
  color: var(--paper-dim);
  font-size: 1.0625rem;
}
.prose p + p { margin-top: var(--space-4); }
.prose strong { color: var(--paper); font-weight: 600; }

/* ---------- Secciones ---------- */

.section {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  position: relative;
}

.section-alt {
  background: var(--ink-850);
  border-block: 1px solid var(--line);
}

.section-alt::before {
  content: "";
  position: absolute;
  top: -140px; right: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 168, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-glow-amber {
  top: -180px; left: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.16) 0%, transparent 62%);
}
.hero-glow-teal {
  bottom: -200px; right: 0;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(91, 191, 168, 0.12) 0%, transparent 62%);
}

.hero-grid {
  position: absolute;
  inset: -50% 0;
  background-image:
    linear-gradient(rgba(242, 234, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 234, 217, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  animation: grid-drift 26s linear infinite;
}
@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(46px); }
}

.particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); opacity: 0.15; }
  to { transform: translateY(-26px); opacity: 0.55; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  color: var(--amber-bright);
  margin-top: var(--space-3);
}

.hero-sub {
  max-width: 56ch;
  margin: var(--space-5) auto 0;
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-gn {
  margin-top: var(--space-7);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--paper);
}
.hero-gn-note {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* ---------- Ecualizador (hero) ---------- */

.wave {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 64px;
  padding-bottom: var(--space-5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber-bright), var(--copper));
  transform-origin: center;
  animation: eq var(--wave-d, 1.2s) ease-in-out infinite alternate;
}
.wave-bar.is-teal {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
}
@keyframes eq {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

/* ---------- Tarjetas de estadísticas ---------- */

.stats {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.stat-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 163, 61, 0.4);
  box-shadow: var(--shadow-card), var(--glow-amber);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad-amber-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-number-text {
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  -webkit-text-fill-color: var(--amber-bright);
  color: var(--amber-bright);
}

.stat-text {
  margin-top: var(--space-3);
  color: var(--paper-dim);
  font-size: 0.98rem;
}

/* ---------- Vidrio ---------- */

.glass {
  background: rgba(39, 32, 22, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* ---------- Línea de una vida ---------- */

.timeline-card {
  margin-top: var(--space-7);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

.timeline-svg svg { width: 100%; height: auto; }

.timeline-path {
  fill: none;
  stroke: url(#tl-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-node {
  fill: var(--ink-900);
  stroke-width: 2.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline-node.is-drawn { opacity: 1; transform: scale(1); }
.timeline-node:not(.is-drawn) { transform: scale(0.2); }

.timeline-node-core { stroke: var(--amber); }
.timeline-node-last { stroke: var(--teal); }

.timeline-axis {
  stroke: var(--line-strong);
  stroke-dasharray: 3 5;
}

.timeline-labels {
  display: flex;
  margin-top: var(--space-4);
}
.tl-item {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.tl-item:first-child { text-align: left; }
.tl-item:last-child { text-align: right; }
.tl-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--amber-bright);
}
.tl-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--paper-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-caption {
  margin-top: var(--space-4);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--paper-faint);
  font-size: 1rem;
}

/* ---------- Pasos del método ---------- */

.steps {
  display: grid;
  gap: var(--space-5);
}

.step-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 191, 168, 0.4);
  box-shadow: var(--shadow-card), var(--glow-teal);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-top: var(--space-3);
  color: var(--paper);
}

.step-text {
  margin-top: var(--space-3);
  color: var(--paper-dim);
  font-size: 0.98rem;
}

/* ---------- Diferenciadores ---------- */

.diffs {
  margin-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.diff-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.diff-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(39, 32, 22, 0.5);
  color: var(--amber);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.diff-icon svg { width: 24px; height: 24px; }
.diff-row:hover .diff-icon {
  color: var(--amber-bright);
  border-color: rgba(232, 163, 61, 0.5);
  box-shadow: var(--glow-amber);
}

.diff-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--paper);
}

.diff-text {
  margin-top: var(--space-2);
  color: var(--paper-dim);
  font-size: 0.98rem;
  max-width: 58ch;
}

.diff-visual {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(20, 16, 11, 0.4);
}

.grafo { width: 100%; max-width: 340px; height: auto; }

.grafo-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3.2s ease-in-out infinite;
}
.grafo-node-sat:nth-of-type(2) { animation-delay: 0.4s; }
.grafo-node-sat:nth-of-type(3) { animation-delay: 0.8s; }
.grafo-node-sat:nth-of-type(4) { animation-delay: 1.2s; }
.grafo-node-sat:nth-of-type(5) { animation-delay: 1.6s; }
@keyframes node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* ---------- Tecnología ---------- */

.tech-grid {
  list-style: none;
  margin: var(--space-7) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.tech-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 191, 168, 0.4);
  box-shadow: var(--shadow-card), var(--glow-teal);
}

.tech-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(39, 32, 22, 0.5);
  color: var(--teal-bright);
}
.tech-icon svg { width: 22px; height: 22px; }

.tech-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: var(--space-4);
  color: var(--paper);
}

.tech-text {
  margin-top: var(--space-2);
  color: var(--paper-dim);
  font-size: 0.98rem;
}

.stack {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.stack-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.stack-chips {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.stack-chips li {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: rgba(39, 32, 22, 0.5);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--paper-dim);
}

/* ---------- Alianzas ---------- */

.alianzas-grid {
  display: grid;
  gap: var(--space-7);
}

.value-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--paper-dim);
  font-size: 1rem;
}

.value-check {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 191, 168, 0.12);
  border: 1px solid rgba(91, 191, 168, 0.4);
  color: var(--teal-bright);
}
.value-check svg { width: 14px; height: 14px; }

.cta-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border-color: rgba(232, 163, 61, 0.3);
  box-shadow: var(--shadow-card), var(--glow-amber);
  align-self: start;
}

.cta-card-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.cta-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin-top: var(--space-2);
  color: var(--paper);
}

.cta-card-text {
  margin-top: var(--space-3);
  color: var(--paper-dim);
  font-size: 0.98rem;
}

.cta-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------- Quiénes somos ---------- */

.section-quienes {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.quienes-text {
  max-width: 46ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.5;
  color: var(--paper);
}
.quienes-text a {
  color: var(--amber-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(232, 163, 61, 0.4);
}
.quienes-text a:hover { text-decoration-color: var(--amber); }

/* ---------- Contacto ---------- */

.contacto-lede {
  max-width: 52ch;
  color: var(--paper-dim);
  margin-bottom: var(--space-6);
}

.contact-cards {
  display: grid;
  gap: var(--space-5);
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 61, 0.45);
  box-shadow: var(--shadow-card), var(--glow-amber);
  color: var(--paper);
}

.contact-icon {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(39, 32, 22, 0.5);
  color: var(--amber);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--paper);
}

/* ---------- Pie de página ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-950);
  padding-block: var(--space-7);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.65rem;
  align-items: center;
}
.footer-brand .brand-mark { grid-row: 1 / 3; }

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
}

.footer-brand-line {
  font-size: 0.85rem;
  color: var(--paper-faint);
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--amber-bright);
}

.footer-meta {
  display: grid;
  gap: var(--space-2);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--paper-dim);
  transition: color 0.25s var(--ease);
}
.footer-link:hover { color: var(--amber-bright); }

.footer-copy { color: var(--paper-faint); font-size: 0.85rem; }

/* ---------- Aparición al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Puntos de corte ---------- */

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { justify-items: end; text-align: right; }
}

@media (min-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .alianzas-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .diff-row { grid-template-columns: auto 1fr; }
  .diff-visual { grid-column: auto; grid-row: 1 / 3; grid-column: 3; justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}

/* ---------- Menú móvil ---------- */

@media (max-width: 979px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(26, 21, 16, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: var(--space-4) clamp(1.25rem, 5vw, 2.5rem) var(--space-6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .nav-list a {
    display: block;
    font-size: 1.1rem;
    padding-block: 0.6rem;
    width: 100%;
  }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-grid { animation: none; }
  .particle { animation: none; }
  .wave-bar { animation: none; }
  .grafo-node { animation: none; }
}

/* ---------- Impresión ---------- */

@media print {
  .site-header, .progress, .grain, .wave, .hero-bg, .nav-toggle, .lang-switch { display: none !important; }

  body { background: #fff; color: #1a1a1a; font-size: 11pt; }

  .hero { min-height: auto; padding-top: 2rem; }
  .hero-title { color: #1a1a1a; }
  .hero-line { color: #8a5a1e; }
  .hero-sub, .prose, .stat-text, .step-text, .diff-text, .value-list li, .contacto-lede, .tech-text, .stack-chips li { color: #333; }

  .section, .section-alt { background: #fff; border: none; padding-block: 1.5rem; }
  .section-alt::before { display: none; }

  .glass { background: #f7f4ee; border: 1px solid #ddd; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .stat-number, .stat-number-text { -webkit-text-fill-color: #8a5a1e; color: #8a5a1e; }
  .eyebrow, .step-number, .cta-card-kicker, .contact-label { color: #8a5a1e; }

  .reveal { opacity: 1; transform: none; }

  .site-footer { background: #f2efe9; color: #333; }
  .footer-brand-name, .footer-copy { color: #333; }
  .footer-brand-line, .footer-quote { color: #555; }
  .footer-link { color: #555; }
}