/* ─────────────────────────────────────────────────────────────────────
   Aletas de Vida — shared styles
   ───────────────────────────────────────────────────────────────────── */

/* Tokens — palettes & type get swapped via Tweaks (CSS vars on :root). */
:root {
  /* Nocturno palette — applied by JS (tweaks-app.jsx); set here as defaults
     so the dark theme shows immediately without waiting for React/Babel. */
  --ink:        #D6E5F2;
  --ink-soft:   #8CA5BF;
  --paper:      #0A1E36;
  --paper-2:    #13294A;
  --navy:       #06182D;
  --teal:       #3E6E92;
  --sand:       #DCE7F2;
  --coral:      #A8C8E0;
  --rule:       rgba(168, 200, 224, 0.18);
  --display:    #DCE9F2;

  --ff-display: 'Inter Tight', system-ui, sans-serif;
  --ff-body:    'Inter Tight', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --density:    1;    /* 1 = comfortable, 0.7 = compact */
  --max-w:      1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper texture — subtle noise via repeating radial gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(14,36,51,0.045) 1px, transparent 1px),
    radial-gradient(rgba(14,36,51,0.025) 1px, transparent 1px);
  background-size: 24px 24px, 7px 7px;
  background-position: 0 0, 3px 4px;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* All page content sits above the texture layer */
.page { position: relative; z-index: 2; }

/* ── Typography ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--display);
}

h1.display, .h1 {
  font-size: clamp(56px, 8.4vw, 124px);
  margin: 0;
}

/* Hero H1 — Poppins Black override, light-blue accent */
.hero h1.hero-h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 900;
  font-size: 70px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--coral);
  text-transform: none;
}
.hero h1.hero-h1 em {
  font-style: italic;
  color: var(--coral);
  font-weight: 900;
}
.hero h1.hero-h1 .stroke {
  -webkit-text-stroke: 1.5px var(--coral);
  -webkit-text-fill-color: transparent;
  color: transparent;
}
h2.display, .h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  margin: 0;
  line-height: 1.0;
}
h3.display, .h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0;
  line-height: 1.1;
}

.italic { font-style: italic; }
.coral  { color: var(--coral); }
.teal   { color: var(--teal); }
.navy   { color: var(--navy); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--coral);
}

p.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ── Layout containers ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section.block {
  padding: calc(120px * var(--density)) 0;
  position: relative;
}
section.block.tight { padding: calc(72px * var(--density)) 0; }

.rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--rule);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--display);
  text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; color: var(--coral); }
.brand small {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
  align-self: center;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
}
.navlinks a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.navlinks a:hover { color: var(--coral); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--display);
  border-color: var(--display);
}
.btn-ghost:hover {
  background: var(--display);
  color: var(--paper);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.18s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Hero (full-bleed video bg) ─────────────────────────────────── */
.hero.hero-video {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: calc(100vh - 64px);
  min-height: 640px;
  max-height: 880px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0A1E36;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.62) saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(6,21,40,0.0) 0%, rgba(6,21,40,0.55) 75%, rgba(6,21,40,0.85) 100%),
    linear-gradient(to bottom, rgba(6,21,40,0.25), rgba(6,21,40,0.45));
}

/* Inset card overlay — frames the hero like the reference */
.hero-content-card {
  position: relative;
  z-index: 3;
  width: min(1120px, 100%);
  height: 100%;
  border-radius: 14px;
  border: none;
  background: rgba(6,21,40,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}
.hero-corner {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220,233,242,0.7);
}
.hero-corner.top-left     { top: 20px; left: 24px; }
.hero-corner.top-right    { top: 20px; right: 24px; }
.hero-corner.bottom-left  { bottom: 20px; left: 24px; }
.hero-corner.bottom-right { bottom: 20px; right: 24px; }

.hero-inner {
  width: 100%;
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* H1 — bold sans, light blue, centered */
.hero h1.hero-h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #F2F8FE;
  text-shadow: 0 2px 24px rgba(6,21,40,0.45);
  margin: 0;
  text-transform: uppercase;
}
.hero h1.hero-h1 em {
  font-style: normal;
  font-weight: 900;
  color: #A8C8E0;
}

/* Sub-row with side rules + tracked caps */
.hero-sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 620px;
}
.hero-sub-rule {
  flex: 1;
  height: 1px;
  background: rgba(220,233,242,0.45);
}
.hero-sub {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #DCE9F2;
  white-space: nowrap;
}

.hero-lead {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(242,248,254,0.85);
  max-width: 56ch;
  margin: 0;
  text-shadow: 0 1px 8px rgba(6,21,40,0.35);
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero.hero-video .btn-primary {
  background: rgba(168,200,224,0.95);
  color: #06182D;
  border: 1px solid rgba(220,233,242,0.4);
  padding: 16px 28px;
}
.hero.hero-video .btn-primary:hover {
  background: #F2F8FE;
  color: #06182D;
  transform: translateY(-1px);
}
.hero.hero-video .btn-ghost {
  color: #F2F8FE;
  border-color: rgba(220,233,242,0.55);
  padding: 16px 24px;
}
.hero.hero-video .btn-ghost:hover {
  background: rgba(242,248,254,0.92);
  color: #06182D;
}

@media (max-width: 720px) {
  .hero.hero-video { height: 100vh; padding: 12px; }
  .hero-content-card { padding: 40px 20px; }
  .hero-corner { font-size: 9px; letter-spacing: 0.15em; }
  .hero-corner.top-right, .hero-corner.bottom-right { display: none; }
}

/* ── Problema (3 col editorial) ─────────────────────────────────────── */
.problema-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.three-col article h4 {
  font-family: var(--ff-display);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--display);
}
.three-col article .num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--coral);
  margin-bottom: 18px;
}
.three-col article p {
  color: var(--ink-soft);
  margin: 0;
}

/* ── Cifras Nautilus (bento) ────────────────────────────────────────── */
.cifras-wrap {
  background: var(--navy);
  color: var(--sand);
  border-radius: 8px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.cifras-wrap .eyebrow {
  color: var(--sand);
  opacity: 0.85;
}
.cifras-wrap .eyebrow::before { background: var(--coral); }
.cifras-wrap h2 { color: var(--sand); }
.cifras-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(232,220,196,0.18);
  margin-top: 48px;
  border: 1px solid rgba(232,220,196,0.18);
  border-radius: 4px;
  overflow: hidden;
}
.stat {
  background: var(--navy);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  position: relative;
}
.stat.big { grid-column: span 2; }
.stat.wide { grid-column: span 3; }
.stat .num {
  font-family: var(--ff-display);
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  color: var(--sand);
}
.stat.big .num { font-size: clamp(56px, 6vw, 88px); }
.stat .label {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--sand);
  opacity: 0.75;
  margin-top: auto;
}
.stat .icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  color: var(--coral);
  opacity: 0.85;
}
.stat.benchmark {
  background: var(--coral);
  color: #fff;
}
.stat.benchmark .num,
.stat.benchmark .label { color: #fff; opacity: 1; }
.stat.benchmark .icon { color: rgba(255,255,255,0.7); }

/* ── Modelo de crecimiento ──────────────────────────────────────────── */
.growth {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.growth-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sand);
  border-radius: 8px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.growth ul.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.growth ul.steps li {
  background: var(--paper);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: center;
}
.growth ul.steps li .step-n {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--coral);
}
.growth ul.steps li .step-t {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--display);
}
.growth ul.steps li .step-v {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── Impacto (4 cards) ──────────────────────────────────────────────── */
.impact-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.impact-card {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  border: 1px solid var(--rule);
  transition: transform 0.25s ease, background 0.25s;
  position: relative;
  overflow: hidden;
}
.impact-card:hover {
  transform: translateY(-3px);
  border-color: var(--coral);
}
.impact-card .icon {
  width: 42px;
  height: 42px;
  color: var(--coral);
}
.impact-card h4 {
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
  color: var(--display);
}
.impact-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ── CTA closing ────────────────────────────────────────────────────── */
.closing {
  background: var(--navy);
  color: var(--sand);
  border-radius: 8px;
  padding: clamp(56px, 7vw, 120px) clamp(40px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.closing h2 {
  color: var(--sand);
  max-width: 18ch;
}
.closing h2 em {
  font-style: italic;
  color: var(--coral);
}
.closing-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
}
.closing p {
  color: var(--sand);
  opacity: 0.85;
  max-width: 42ch;
  margin: 24px 0 0;
}
.closing .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.closing .btn-primary { background: rgba(168,200,224,0.95); color: #06182D; border-color: rgba(220,233,242,0.4); }
.closing .btn-primary:hover { background: #F2F8FE; color: #06182D; }
.closing .btn-ghost { color: #F2F8FE; border-color: rgba(220,233,242,0.55); }
.closing .btn-ghost:hover { background: rgba(242,248,254,0.92); color: #06182D; }

.closing .accent-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 520px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer.site {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
footer.site .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 20px;
}
footer.site a:hover { color: var(--coral); }

/* ── Decorative wave separator ──────────────────────────────────────── */
.wave-sep {
  display: block;
  width: 100%;
  height: 32px;
  color: var(--rule);
}

/* ── Contact form page ──────────────────────────────────────────────── */
.contact-page {
  padding: calc(80px * var(--density)) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h1 {
  font-size: clamp(48px, 6vw, 80px);
}
.contact-intro p {
  color: var(--ink-soft);
  margin-top: 24px;
}
.contact-facts {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-facts dl {
  background: var(--paper);
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.contact-facts dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-facts dd {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
}

.form-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px;
}
.form-card h3 {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-size: 30px;
  color: var(--display);
}
.form-card .form-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 28px;
}
.field { margin-bottom: 20px; }
.field.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.field .hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: 0.7;
}
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-submit-row .privacy {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.4;
}
.success-msg {
  display: none;
  background: var(--navy);
  color: var(--sand);
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.success-msg.show { display: block; }
.success-msg h4 {
  font-family: var(--ff-display);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--sand);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .problema-head,
  .three-col,
  .growth,
  .impact-head,
  .impact-grid,
  .closing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cifras-grid { grid-template-columns: repeat(2, 1fr); }
  .stat.big, .stat.wide { grid-column: span 2; }
  .navlinks { display: none; }
  .cifras-wrap { padding: 40px 28px; }
  .form-card { padding: 28px; }
  .field.row { grid-template-columns: 1fr; }
  section.block { padding: calc(72px * var(--density)) 0; }
}
