/* ============================================================
   Delta et al. · Web v2 · «el paper vivo»
   Sistema: Blanco Clínico, hairlines, tres voces tipográficas,
   ámbar solo para el dato. 60 / 30 / 10.
   ============================================================ */

:root {
  --tinta: #16263D;
  --teal: #137476;
  --teal-prof: #0E5A5C;
  --teal-claro: #6FBFB6;
  --ambar: #D98A36;
  --blanco: #F4F6F8;
  --pizarra: #46566E;
  --linea: #C9D3DC;
  --blanco-08: rgba(244, 246, 248, 0.08);
  --blanco-18: rgba(244, 246, 248, 0.18);
  --blanco-72: rgba(244, 246, 248, 0.72);
  --f-sans: 'Source Sans 3', sans-serif;
  --f-serif: 'Newsreader', serif;
  --f-glyph: 'STIX Two Text', serif;
  --f-mono: 'IBM Plex Mono', monospace;
  --wrap: 1240px;
  --gut: clamp(20px, 4.5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.has-gsap { scroll-behavior: auto; }

body {
  font-family: var(--f-sans);
  background: var(--blanco);
  color: var(--tinta);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--teal); color: #fff; }

em, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--f-mono); }
.glyph { font-family: var(--f-glyph); font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

a { color: var(--teal); }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---------- grano de papel, casi imperceptible ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.35;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- kicker: filete corto + mono, del manual ---------- */
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--teal);
  flex: none;
  transform-origin: left center;
}
.k-num { color: var(--pizarra); }

/* ---------- divisor «intervalo de confianza» ---------- */
.ci-divider {
  position: relative;
  height: 1px;
  max-width: var(--wrap);
  margin: 0 auto;
  width: calc(100% - var(--gut) * 2);
}
.ci-divider .ci-line {
  position: absolute;
  inset: 0;
  background: var(--linea);
  transform-origin: left center;
}
.ci-divider .ci-tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--linea);
}
.ci-divider .ci-tick.l { left: 0; }
.ci-divider .ci-tick.r { right: 0; }
.ci-divider .ci-dot {
  position: absolute;
  left: 63%;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ambar);
}

/* ---------- cursor de cita [ · ] ---------- */
.cur, .cur-b { display: none; }
@media (pointer: fine) {
  .cur {
    display: block;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tinta);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
  .cur-b {
    display: flex;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: space-between;
    width: 36px; height: 36px;
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 300;
    color: var(--teal);
    opacity: 0;
  }
  body.cur-on .cur { background: var(--ambar); }
  body.cur-hidden .cur, body.cur-hidden .cur-b { opacity: 0 !important; }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-mark {
  font-family: var(--f-glyph);
  font-style: italic;
  font-size: clamp(72px, 12vw, 130px);
  color: var(--tinta);
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.loader-mark .dot {
  width: 0.14em; height: 0.14em;
  border-radius: 50%;
  background: var(--ambar);
  display: inline-block;
  margin-left: 0.08em;
}
.loader-meta {
  position: absolute;
  bottom: 34px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pizarra);
}
html.loading body { overflow: hidden; }

/* ---------- navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.nav-up { transform: translateY(-100%); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px var(--gut);
  max-width: var(--wrap);
  margin: 0 auto;
}
.nav-logo img { height: 40px; display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--tinta);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.act::after { transform: scaleX(1); transform-origin: left center; }
.nav-links a.act { color: var(--teal); }
.nav-links a.nav-cta {
  background: var(--tinta);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.25s ease;
}
.nav-links a.nav-cta:hover { background: var(--teal-prof); }

/* hamburguesa */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav-burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--tinta);
  transition: transform 0.35s ease, top 0.35s ease, opacity 0.2s ease, background 0.3s ease;
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 28px; }
body.menu-open .nav-burger span { background: var(--blanco); }
body.menu-open .nav-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--tinta);
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gut);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
body.menu-open .menu { visibility: visible; opacity: 1; transition: opacity 0.4s ease; }
body.menu-open { overflow: hidden; }
.menu a {
  color: var(--blanco);
  text-decoration: none;
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--blanco-18);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, color 0.25s ease;
}
body.menu-open .menu a { transform: none; opacity: 1; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.06s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .menu a:nth-child(4) { transition-delay: 0.18s; }
body.menu-open .menu a:nth-child(5) { transition-delay: 0.24s; }
.menu a:hover { color: var(--teal-claro); }
.menu a .mono { font-size: 13px; color: var(--ambar); font-weight: 400; }
.menu-meta {
  margin-top: 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanco-72);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
body.menu-open .menu-meta { opacity: 1; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--f-sans);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.btn::after {
  content: '→';
  font-family: var(--f-mono);
  font-weight: 400;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { background: var(--teal-prof); }
.btn:hover::after { transform: translateX(4px); }
.btn--dark { background: var(--tinta); }
.btn--dark:hover { background: var(--teal-prof); }
.btn--light { background: var(--blanco); color: var(--tinta); }
.btn--light:hover { background: #fff; color: var(--teal-prof); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--teal);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { color: var(--teal-prof); border-color: var(--teal-prof); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(76px + 5vh) 0 56px;
  overflow: clip;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* velo: el gráfico se desvanece bajo la columna de texto (izquierda)
     y queda pleno en su zona (derecha) */
  -webkit-mask-image: linear-gradient(100deg,
    transparent 6%,
    rgba(0, 0, 0, 0.14) 32%,
    rgba(0, 0, 0, 0.62) 50%,
    #000 62%);
  mask-image: linear-gradient(100deg,
    transparent 6%,
    rgba(0, 0, 0, 0.14) 32%,
    rgba(0, 0, 0, 0.62) 50%,
    #000 62%);
}
@media (max-width: 1023px) {
  /* móvil: gráfico presente, pero atenuado en la franja del titular */
  #hero-canvas {
    -webkit-mask-image: linear-gradient(180deg,
      #000 0%,
      rgba(0, 0, 0, 0.75) 18%,
      rgba(0, 0, 0, 0.42) 30%,
      rgba(0, 0, 0, 0.42) 48%,
      rgba(0, 0, 0, 0.8) 62%,
      #000 78%);
    mask-image: linear-gradient(180deg,
      #000 0%,
      rgba(0, 0, 0, 0.75) 18%,
      rgba(0, 0, 0, 0.42) 30%,
      rgba(0, 0, 0, 0.42) 48%,
      rgba(0, 0, 0, 0.8) 62%,
      #000 78%);
  }
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pizarra);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 4vh, 40px);
}
.hero-meta b { color: var(--teal); font-weight: 500; }
.hero-meta .nt, .hero-meta .nt b { text-transform: none; }
.hero h1 {
  font-size: clamp(46px, 7.2vw, 100px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 11em;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .wd { display: inline-block; }
.hero h1 em {
  color: var(--ambar);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-right: 0.06em;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--pizarra);
  max-width: 470px;
  margin: clamp(20px, 3.5vh, 34px) 0 clamp(26px, 4.5vh, 42px);
  text-wrap: pretty;
}
.btn-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: var(--gut);
  bottom: 26px;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pizarra);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 38px;
  background: var(--linea);
  position: relative;
  overflow: hidden;
}
.hero-scroll i::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--teal);
  animation: scrollhint 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollhint { 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- instrumento: calculadora ---------- */
.calc {
  position: absolute;
  right: var(--gut);
  bottom: 56px;
  z-index: 2;
  width: min(380px, calc(100% - var(--gut) * 2));
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 48px rgba(22, 38, 61, 0.1);
}
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linea);
}
.calc-title { font-size: 14.5px; font-weight: 600; }
.calc-spec { font-family: var(--f-mono); font-size: 10.5px; color: var(--pizarra); }
.calc-controls { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; }
.calc-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--pizarra);
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.calc-label b { color: var(--tinta); font-weight: 500; }
input[type="range"] {
  width: 100%;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--linea); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--linea);
  margin-top: -7px;
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--linea); }
input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--linea);
}
.calc-power { display: flex; border: 1px solid var(--linea); border-radius: 4px; overflow: hidden; }
.calc-power button {
  font-family: var(--f-mono);
  font-size: 12px;
  border: none;
  background: #fff;
  color: var(--pizarra);
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.calc-power button.on { background: var(--teal); color: #fff; }
.calc-result {
  border-top: 1px solid var(--linea);
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calc-n { font-size: 13px; color: var(--pizarra); }
.calc-n strong {
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--tinta);
  display: inline-block;
  min-width: 3.2em;
}
.calc-note { font-size: 11px; color: var(--pizarra); max-width: 150px; line-height: 1.4; text-align: right; }

/* ---------- marquesina ---------- */
.marquee {
  overflow: clip;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: 26px 0;
  background: #fff;
}
.marquee-track {
  display: flex;
  align-items: baseline;
  width: max-content;
  will-change: transform;
}
.mq {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tinta);
  white-space: nowrap;
}
.mq.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--pizarra); }
.mq-sep {
  font-family: var(--f-glyph);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--ambar);
  margin: 0 30px;
}

/* ---------- secciones ---------- */
section { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 16px 0 16px;
}
.sec-head h2 em { color: var(--ambar); }
.sec-head p { color: var(--pizarra); font-size: 17.5px; text-wrap: pretty; max-width: 560px; }

/* nota al margen, como en un manuscrito */
.margin-note {
  position: absolute;
  right: var(--gut);
  top: clamp(76px, 11vh, 134px);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--pizarra);
  text-align: right;
  opacity: 0.85;
}
.margin-note b { color: var(--ambar); font-weight: 400; }
@media (max-width: 1100px) { .margin-note { display: none; } }

/* ---------- para quién ---------- */
.quien-panel {
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 14px;
  padding: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) 1fr 1fr;
  gap: clamp(26px, 3.5vw, 48px);
  align-items: stretch; /* tarjetas a la misma altura */
  position: relative;
  overflow: hidden;
}
.quien-panel > div:first-child { align-self: start; }
.quien-panel::before {
  content: 'δ';
  position: absolute;
  right: -0.08em;
  bottom: -0.42em;
  font-family: var(--f-glyph);
  font-style: italic;
  font-size: 360px;
  line-height: 1;
  color: var(--blanco-08);
  pointer-events: none;
}
.quien-panel .kicker { color: var(--teal-claro); }
.quien-panel .kicker::before { background: var(--teal-claro); }
.quien-title {
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 14px;
}
.quien-title em { color: var(--ambar); }
.quien-card {
  border: 1px solid var(--blanco-18);
  border-radius: 10px;
  padding: 28px 26px 30px;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(244, 246, 248, 0.02);
}
.quien-card:hover { border-color: var(--teal-claro); transform: translateY(-4px); }
.quien-card svg { display: block; margin-bottom: 20px; }
.quien-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.quien-card p { font-size: 15px; color: var(--blanco-72); line-height: 1.55; text-wrap: pretty; }

/* ---------- servicios (lista editorial) ---------- */
.svc { border-top: 1px solid var(--linea); counter-reset: svc; }
.svc-item { border-bottom: 1px solid var(--linea); }
.svc-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 30px 8px;
  text-align: left;
  color: var(--tinta);
  position: relative;
}
.svc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.svc-item:hover .svc-btn::before, .svc-item.open .svc-btn::before { transform: scaleY(1); }
.svc-num { font-family: var(--f-mono); font-size: 14px; color: var(--ambar); }
.svc-name {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}
.svc-item:hover .svc-name { color: var(--teal); }
.svc-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--pizarra);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.svc-plus {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-item.open .svc-plus { transform: rotate(45deg); }
.svc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-body > div { overflow: hidden; min-height: 0; }
.svc-item.open .svc-body { grid-template-rows: 1fr; }
.svc-detail {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  padding: 2px 8px 34px;
}
.svc-detail p { color: var(--pizarra); font-size: 16.5px; max-width: 580px; text-wrap: pretty; }
.svc-detail ul {
  margin: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-detail li, .chips li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--teal-prof);
  border: 1px solid var(--linea);
  border-radius: 99px;
  padding: 5px 13px;
  background: #fff;
}
.svc-cta { margin-top: 34px; }

/* ---------- qué aportamos ---------- */
.aporta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--linea);
  border-left: 1px solid var(--linea);
}
.aporta-item {
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: clamp(26px, 3vw, 40px);
  background: transparent;
  transition: background 0.35s ease;
}
.aporta-item:hover { background: #fff; }
.aporta-item svg { display: block; margin-bottom: 20px; }
.aporta-item .ap-num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ambar);
  display: block;
  margin-bottom: 16px;
}
.aporta-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.aporta-item p { font-size: 15.5px; color: var(--pizarra); line-height: 1.6; text-wrap: pretty; }

/* ---------- método (escena oscura) ---------- */
.metodo { background: var(--tinta); color: var(--blanco); overflow: clip; }
.metodo .wrap { position: relative; }
.metodo .kicker { color: var(--teal-claro); }
.metodo .kicker::before { background: var(--teal-claro); }
.metodo .sec-head h2 { color: var(--blanco); }
.metodo .sec-head p { color: var(--blanco-72); }
.metodo-art {
  position: absolute;
  right: clamp(8px, 4vw, 56px);
  top: -10px;
  width: clamp(170px, 18vw, 250px);
  pointer-events: none;
  opacity: 0.9;
}
@media (max-width: 980px) { .metodo-art { display: none; } }
.fases { position: relative; margin-top: 16px; max-width: 720px; }
.fase-line {
  position: absolute;
  left: 9.5px;
  top: 14px;
  bottom: 14px;
  width: 1.5px;
  background: var(--blanco-18);
}
.fase-line i {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  background: var(--teal-claro);
  height: 0%;
}
.fase { position: relative; padding: 0 0 clamp(40px, 6vh, 60px) 60px; }
.fase:last-child { padding-bottom: 0; }
.fase-dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--blanco-18);
  background: var(--tinta);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.fase.lit .fase-dot {
  border-color: var(--teal-claro);
  background: var(--teal-claro);
  box-shadow: 0 0 0 5px rgba(111, 191, 182, 0.15);
}
.fase:last-child.lit .fase-dot {
  background: var(--ambar);
  border-color: var(--ambar);
  box-shadow: 0 0 0 5px rgba(217, 138, 54, 0.18);
}
.fase-when {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--teal-claro);
  text-transform: uppercase;
}
.fase h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; margin: 8px 0 8px; }
.fase h3 em { color: var(--ambar); }
.fase p { color: var(--blanco-72); font-size: 16px; max-width: 560px; text-wrap: pretty; }
.fase .chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.fase .chips li, .metodo .chips li { color: #9FD2CB; border-color: var(--blanco-18); background: none; }

/* ---------- cita ---------- */
.cita { text-align: center; }
.cita-brackets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 48px);
}
.cita-brackets > span {
  font-family: var(--f-mono);
  font-size: clamp(56px, 9vw, 110px);
  color: var(--teal);
  font-weight: 300;
  line-height: 1;
}
.cita p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.38;
  max-width: 600px;
  text-wrap: pretty;
}
.cita .attr { font-family: var(--f-mono); font-style: normal; font-size: 13px; color: var(--pizarra); margin-top: 22px; }
.cita .attr b { color: var(--ambar); font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-of-type { border-top: 1px solid var(--linea); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 8px;
  font-size: 19px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--f-mono);
  color: var(--teal);
  font-size: 22px;
  font-weight: 300;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal); }
.faq .faq-a { padding: 0 8px 26px; color: var(--pizarra); max-width: 680px; text-wrap: pretty; }

/* ---------- contacto ---------- */
.contacto { background: #fff; border-top: 1px solid var(--linea); }
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 90px);
}
.contacto h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 14px;
}
.contacto h2 em { color: var(--ambar); }
.contacto .lede-s { color: var(--pizarra); margin-bottom: 30px; max-width: 410px; text-wrap: pretty; }
.contact-line { display: flex; gap: 16px; align-items: baseline; margin-bottom: 16px; }
.contact-line .mono { font-size: 12.5px; color: var(--pizarra); min-width: 80px; }
.contact-line a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease;
}
.contact-line a:hover { border-color: var(--teal); }
.form { display: grid; gap: 18px; align-self: start; }
.form[hidden] { display: none; }
.form label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pizarra);
  display: block;
  margin-bottom: 7px;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--linea);
  border-radius: 4px;
  background: var(--blanco);
  padding: 13px 15px;
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--tinta);
  transition: border-color 0.25s ease;
}
.form input:hover, .form textarea:hover { border-color: var(--pizarra); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--pizarra); }

.form-col { align-self: start; }
.form .opt { text-transform: none; letter-spacing: 0; color: var(--pizarra); opacity: 0.65; font-weight: 400; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--teal); cursor: pointer;
}
.form-check span { font-size: 13.5px; line-height: 1.5; color: var(--pizarra); }
.form-check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-error, .form-status.is-error a { color: #b23b3b; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-success {
  border: 1px solid var(--teal);
  background: rgba(19, 116, 118, 0.06);
  border-radius: 8px;
  padding: 24px 26px;
  align-self: start;
}
.form-success p { color: var(--tinta); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- footer ---------- */
footer {
  background: var(--tinta);
  color: var(--blanco);
  padding: clamp(56px, 9vh, 90px) 0 36px;
  position: relative;
  overflow: hidden;
}
.foot-close {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 42px);
  color: var(--blanco);
  max-width: 760px;
  line-height: 1.32;
  text-wrap: pretty;
  margin-bottom: clamp(40px, 7vh, 64px);
}
.foot-close b { color: var(--ambar); font-weight: 400; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--blanco-18);
}
footer img { height: 46px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a {
  color: var(--blanco-72);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.25s ease;
}
.foot-links a:hover { color: var(--teal-claro); }
.foot-right { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot-social { display: flex; align-items: center; gap: 16px; }
.foot-social a {
  display: flex;
  color: var(--blanco-72);
  transition: color 0.25s ease, transform 0.25s ease;
}
.foot-social a:hover { color: var(--teal-claro); transform: translateY(-2px); }
.foot-social svg { width: 19px; height: 19px; display: block; }
.foot-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(244, 246, 248, 0.5);
  letter-spacing: 0.1em;
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- páginas interiores ---------- */
.page-hero {
  padding: calc(90px + clamp(40px, 7vh, 80px)) 0 clamp(36px, 5vh, 56px);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 16px 0 18px;
  max-width: 13em;
}
.page-hero h1 em { color: var(--ambar); }
.page-hero .lede { font-size: 19px; color: var(--pizarra); max-width: 580px; text-wrap: pretty; }

/* ---------- páginas legales ---------- */
.legal { max-width: 760px; }
.legal .legal-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--pizarra);
  letter-spacing: 0.04em;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--linea);
}
.legal h2 {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  scroll-margin-top: 100px;
}
.legal h2 .legal-num { font-family: var(--f-mono); font-size: 0.6em; color: var(--ambar); margin-right: 10px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--pizarra); text-wrap: pretty; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--tinta); font-weight: 600; }
.legal .todo { background: rgba(217, 138, 54, 0.14); color: #8a5316; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.legal table { border-collapse: collapse; width: 100%; margin: 6px 0 22px; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--linea); padding: 9px 12px; text-align: left; vertical-align: top; color: var(--pizarra); }
.legal th { background: rgba(19, 116, 118, 0.06); font-weight: 600; color: var(--tinta); font-size: 13px; }

/* ---------- aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--tinta);
  color: rgba(244, 246, 248, 0.9);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(22, 38, 61, 0.28);
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 14px; line-height: 1.5; margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--teal-claro); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .btn { padding: 9px 20px; font-size: 14px; white-space: nowrap; }
.foot-legal a { color: rgba(244, 246, 248, 0.5); }
.foot-legal a:hover { color: var(--teal-claro); }

.svcp { border-top: 1px solid var(--linea); padding: clamp(40px, 6vh, 60px) 0; position: relative; }
.svcp:first-of-type { border-top: none; }
.svcp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.svcp-grid { display: grid; grid-template-columns: 96px 1fr; gap: 26px; position: relative; z-index: 1; }
.svcp-num { font-family: var(--f-mono); font-size: 15px; color: var(--ambar); padding-top: 8px; }
.svcp h2 { font-size: clamp(25px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.018em; margin-bottom: 12px; }
.svcp-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.svcp p.intro { color: var(--pizarra); font-size: 17px; max-width: 640px; text-wrap: pretty; }
.svcp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; max-width: 800px; }
.svcp-cols h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pizarra);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.svcp-cols h4::before { content: ''; width: 18px; height: 1.5px; background: var(--teal); }
.list-clean { list-style: none; }
.list-clean li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15.5px;
  border-bottom: 1px solid var(--linea);
}
.list-clean li:last-child { border-bottom: none; }
.list-clean li::before {
  content: '';
  position: absolute;
  left: 2px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ambar);
  transform: translateY(-50%);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

/* fondo de hélice (profundidad en páginas interiores) */
.svc-deep { position: relative; }
.svc-deep .bg-helix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.svc-deep .wrap { position: relative; z-index: 1; }

.cta-band {
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 14px;
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: 'δ';
  position: absolute;
  right: 4%;
  bottom: -0.45em;
  font-family: var(--f-glyph);
  font-style: italic;
  font-size: 230px;
  line-height: 1;
  color: var(--blanco-08);
  pointer-events: none;
}
.cta-band .t {
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.018em;
  max-width: 520px;
  line-height: 1.18;
}
.cta-band .t em { color: var(--ambar); }

.pasos { display: grid; margin-top: 10px; }
.paso {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--linea);
}
.paso:last-child { border-bottom: none; }
.paso-num { font-family: var(--f-mono); font-size: 14px; color: var(--ambar); padding-top: 3px; }
.paso h3 { font-size: 19px; font-weight: 600; margin-bottom: 5px; }
.paso p { font-size: 15.5px; color: var(--pizarra); max-width: 480px; text-wrap: pretty; }

/* ---------- reveals (estado inicial lo pone JS) ---------- */
.rv { will-change: transform, opacity; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .calc { position: relative; right: auto; bottom: auto; margin-top: 48px; width: min(440px, 100%); }
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero-scroll { display: none; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .contacto-grid, .quien-panel { grid-template-columns: 1fr; }
  .aporta-grid { grid-template-columns: 1fr; border-left: none; border-top: none; }
  .aporta-item { border-right: none; border-left: none; padding-left: 0; padding-right: 0; }
  .svc-btn { grid-template-columns: 52px 1fr auto; padding: 24px 4px; }
  .svc-detail { grid-template-columns: 1fr; padding: 2px 4px 30px; }
  .svcp-grid { grid-template-columns: 1fr; gap: 8px; }
  .svcp-cols { grid-template-columns: 1fr; }
  .quien-panel::before { font-size: 240px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero-meta { font-size: 10px; gap: 8px; letter-spacing: 0.1em; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn-ghost { margin: 0 auto; }
  .calc-controls { grid-template-columns: 1fr; }
  .calc-note { text-align: left; max-width: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .cur, .cur-b { display: none !important; }
}
