/* ============================================================
   CGA Law — Sistema de estilos (Dirección C · "El Sello")
   Fuentes: Newsreader (display/serif) + Hanken Grotesk (UI/cuerpo)
   Autohospedadas en /fonts — sin requests a terceros.
   ============================================================ */

/* ---------- Fuentes (variables, subsets latin + latin-ext) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Paleta --- */
  --verde-sello:      #0B2A22;  /* base institucional */
  --verde-superficie: #0F3327;  /* tarjetas sobre fondo oscuro */
  --verde-08:         #08231C;  /* tinta sobre jade / footer */
  --jade:             #3FAE8E;  /* acento único */
  --jade-hover:       #4FC09E;
  --jade-oscuro:      #0B3A2C;  /* texto secundario sobre jade */
  --salvia:           #9FB4A7;  /* texto secundario sobre oscuro */
  --salvia-tenue:     #7E9A8E;  /* terciario sobre oscuro */
  --hueso:            #ECE7DB;  /* papel / texto sobre oscuro */
  --hueso-fondo:      #F4F1EA;  /* fondo de página claro */
  --tinta:            #15231D;  /* texto sobre hueso */
  --gris-texto:       #4D5650;  /* cuerpo sobre claro */
  --gris-tarjeta:     #5B5A50;  /* cuerpo dentro de tarjetas claras */
  --borde-claro:      #E4DDCF;
  --borde-oscuro:     #16463A;
  --borde-tarjeta:    #1C5040;  /* borde de tarjetas oscuras */
  --verde-linea:      #3D7A66;  /* kickers sobre claro */
  /* --- Tipografía --- */
  --font-display: 'Newsreader', Georgia, serif;
  --font-ui:      'Hanken Grotesk', system-ui, sans-serif;
  /* --- Layout --- */
  --wrap: 1200px;
  --pad-x: clamp(20px, 5vw, 40px);
  --pad-section: clamp(64px, 10vw, 110px);
  --nav-alto: 76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--hueso-fondo);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
[id] { scroll-margin-top: var(--nav-alto); }

/* ---------- Tipografía ---------- */
.disp {                       /* títulos y cifras */
  font-family: var(--font-display);
  letter-spacing: -.012em;
  font-weight: 400;
}
.disp-italic { font-style: italic; color: var(--jade); }

.kick {                       /* etiqueta / eyebrow */
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--verde-linea);
}

/* ---------- Contenedor ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Botones ---------- */
.btn-p {                      /* primario (jade) */
  display: inline-block;
  background: var(--jade);
  color: var(--verde-08);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 10px;
  transition: transform .15s, background .15s;
}
.btn-p:hover { background: var(--jade-hover); transform: translateY(-1px); }

.btn-g {                      /* secundario (contorno, sobre oscuro) */
  display: inline-block;
  border: 1px solid #3a5a4e;
  color: var(--hueso);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  transition: background .15s;
}
.btn-g:hover { background: #103029; }

/* ---------- Secciones ---------- */
.section-dark  { background: var(--verde-sello); color: var(--hueso); }
.section-light { background: var(--hueso-fondo); color: var(--tinta); }
.section-pad   { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }

.section-head .kick { margin-bottom: 22px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  max-width: 960px;
}
.section-head .lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--gris-texto);
  max-width: 920px;
  margin-top: 24px;
}
.section-dark .section-head .kick { color: var(--jade); }
.section-dark .section-head .lead { color: var(--salvia); }
.section-head .lead strong { color: var(--tinta); }
.section-dark .section-head .lead strong { color: var(--hueso); }

/* ---------- Barra de navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 42, 34, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde-oscuro);
}
.nav-inner {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-weight: 500; font-size: 21px; color: var(--hueso); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav-link { font-size: 14.5px; color: var(--salvia); font-weight: 500; transition: color .15s; }
.nav-link:hover { color: var(--hueso); }
.nav-lang {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--salvia); border: 1px solid var(--borde-oscuro);
  padding: 6px 10px; border-radius: 8px; transition: color .15s, border-color .15s;
}
.nav-lang:hover { color: var(--hueso); border-color: #3a5a4e; }
.btn-nav { padding: 11px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-ring { position: absolute; border-radius: 140px; pointer-events: none; }
.hero-ring.r1 { right: -220px; top: -160px; width: 760px; height: 760px; border: 2px solid #14392F; }
.hero-ring.r2 { right: 40px; top: 120px; width: 480px; height: 480px; border: 2px solid #123329; border-radius: 100px; }
.hero-inner { position: relative; padding-top: var(--pad-section); padding-bottom: clamp(72px, 11vw, 120px); }
.hero-inner .kick { font-size: 13px; color: var(--jade); margin-bottom: 28px; }
.hero h1 { font-size: clamp(42px, 6.5vw, 78px); line-height: 1.04; max-width: 920px; }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--salvia);
  max-width: 720px;
  margin-top: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 64px;
  border-top: 1px solid var(--borde-oscuro);
  padding-top: 34px;
}
.hero-stats .num { font-size: clamp(34px, 4vw, 44px); color: var(--hueso); }
.hero-stats .lbl { font-size: 15px; color: var(--salvia-tenue); margin-top: 4px; }

/* ---------- Franja de confianza ---------- */
.trust { background: #093028; border-top: 1px solid var(--borde-oscuro); }
.trust-inner {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.5vw, 30px); flex-wrap: wrap;
}
.trust .kick { font-size: 11px; color: #5F8473; }
.trust-item { font-size: 15px; color: var(--salvia); font-weight: 500; }
.trust-dot { color: #2E5547; }

/* ---------- Tarjetas ---------- */
.card {                       /* sobre fondo claro */
  background: #fff;
  border: 1px solid var(--borde-claro);
  border-radius: 18px;
  padding: 40px 38px;
}
.card-dark {                  /* sobre fondo oscuro */
  background: var(--verde-superficie);
  border: 1px solid var(--borde-tarjeta);
  border-radius: 18px;
  padding: 36px 34px;
}
.card-accent {                /* acento (jade) */
  background: var(--jade);
  color: var(--verde-08);
  border-radius: 18px;
  padding: 36px 34px;
}

.card-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 52px; }
.card-row > * { flex: 1 1 260px; }

/* Tarjetas de cifras (sección problema) */
.stat-card .num { font-size: clamp(44px, 5vw, 58px); color: var(--jade); line-height: 1; }
.stat-card p { font-size: 18px; color: var(--gris-tarjeta); margin-top: 14px; line-height: 1.45; }

/* Tarjetas comparativas (sección GPT-4) */
.compare-card .kick { font-size: 11px; color: var(--salvia-tenue); }
.compare-card h3 { font-size: 26px; color: var(--hueso); margin-top: 12px; }
.compare-card p { font-size: 17px; color: var(--salvia); margin-top: 12px; line-height: 1.45; }
.compare-card.card-accent .kick { color: var(--jade-oscuro); }
.compare-card.card-accent h3 { color: var(--verde-08); }
.compare-card.card-accent p { color: var(--jade-oscuro); font-weight: 500; }

/* ---------- Pipeline (6 etapas) ---------- */
.pipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.pipe-card {
  background: #fff;
  border: 1px solid var(--borde-claro);
  border-radius: 16px;
  padding: 30px;
  position: relative;
}
.pipe-card .num { font-size: 24px; color: var(--jade); }
.pipe-card h3 { font-size: 24px; color: var(--tinta); margin-top: 8px; }
.pipe-card p { font-size: 16px; color: #6E6A5E; margin-top: 8px; line-height: 1.45; }
.pipe-card--dark { background: var(--verde-sello); border-color: var(--verde-sello); }
.pipe-card--dark h3 { color: var(--hueso); }
.pipe-card--dark p { color: var(--salvia); }
.pipe-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; color: var(--jade);
}

/* ---------- Privacidad + benchmark ---------- */
.privacy-split {
  display: flex; align-items: center;
  gap: clamp(44px, 6vw, 70px);
  padding-top: var(--pad-section); padding-bottom: var(--pad-section);
}
.privacy-copy { flex: 1.1; }
.privacy-copy .kick { font-size: 12px; color: var(--jade); margin-bottom: 22px; }
.privacy-copy h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; }
.privacy-copy .lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--salvia); margin-top: 24px; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.checklist li {
  list-style: none;
  display: flex; gap: 12px; align-items: baseline;
  font-size: 17px; color: var(--hueso);
}
.checklist .check { color: var(--jade); font-weight: 700; }

.bench-card {
  flex: .9;
  background: var(--verde-superficie);
  border: 1px solid var(--borde-tarjeta);
  border-radius: 22px;
  padding: clamp(30px, 4vw, 46px) clamp(26px, 4vw, 44px);
}
.bench-card .kick { font-size: 11px; color: var(--jade); margin-bottom: 24px; }
.bench-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bench-row + .bench-row { border-top: 1px solid var(--borde-tarjeta); padding-top: 18px; margin-top: 18px; }
.bench-row .lbl { font-size: 16px; color: var(--salvia); max-width: 170px; line-height: 1.35; }
.bench-row .lbl small { font-size: 12px; color: var(--salvia-tenue); }
.bench-row .num { font-size: clamp(48px, 6vw, 68px); color: var(--jade); line-height: .85; }
.bench-row .num.dim { color: var(--salvia-tenue); }
.bench-note {
  font-size: 15px; color: var(--salvia-tenue); line-height: 1.5;
  margin-top: 24px; border-top: 1px solid var(--borde-tarjeta); padding-top: 18px;
}

/* ---------- CTA ---------- */
.cta-card {
  background: var(--jade);
  border-radius: 28px;
  padding: clamp(52px, 8vw, 80px) clamp(26px, 6vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-ring { position: absolute; width: 460px; height: 460px; border: 2px solid #2E8E72; border-radius: 90px; pointer-events: none; }
.cta-ring.r1 { left: -120px; bottom: -160px; }
.cta-ring.r2 { right: -120px; top: -160px; }
.cta-card h2 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; color: var(--verde-08); position: relative; }
.cta-card p {
  font-size: clamp(17px, 2vw, 20px); color: var(--jade-oscuro);
  margin: 24px auto 0; max-width: 620px; line-height: 1.55; position: relative;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; position: relative; }
.btn-dark {
  display: inline-block;
  background: var(--verde-08);
  color: var(--hueso);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 11px;
  transition: transform .15s;
}
.btn-dark:hover { transform: translateY(-1px); }

/* ---------- Footer ---------- */
.footer { background: var(--verde-08); color: var(--salvia); }
.footer-inner {
  padding-top: 50px; padding-bottom: 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer .brand-name { font-size: 18px; }
.footer .brand-domain { font-size: 11px; color: #5F8473; letter-spacing: .1em; }
.footer-legal { font-size: 14px; color: #5F8473; text-align: right; line-height: 1.5; }

/* ---------- Página legal (aviso de privacidad) ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin-top: 10px; }
.legal-updated { font-size: 14px; color: var(--gris-tarjeta); margin: 10px 0 8px; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; }
.legal h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; margin-top: 18px; }
.legal p { font-size: 16px; line-height: 1.65; color: var(--gris-texto); margin-top: 12px; }
.legal ul { margin: 12px 0 0 1.2em; display: grid; gap: 8px; }
.legal li { font-size: 16px; line-height: 1.55; color: var(--gris-texto); }
.legal a { color: var(--verde-linea); text-decoration: underline; }
.legal table { border-collapse: collapse; margin-top: 14px; width: 100%; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--borde-claro); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--gris-texto); }
.legal th { background: #fff; color: var(--tinta); font-weight: 700; }
.legal .table-scroll { overflow-x: auto; }
.legal-links { margin-top: 40px; border-top: 1px solid var(--borde-claro); padding-top: 20px; }

/* ---------- Animación de entrada (scroll reveal) ---------- */
/* Solo se activa con JS (html.js); sin JS todo es visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pipe-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-split { flex-direction: column; align-items: stretch; }
  .privacy-copy, .bench-card { flex: none; }
  .hero-ring.r2 { display: none; }
}
@media (max-width: 720px) {
  .nav-link { display: none; }   /* en móvil quedan logo, idioma y CTA */
  .pipe-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

/* ---------- Notas al pie de las métricas ---------- */
.num .fn {
  font-family: var(--font-ui);
  font-size: .38em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  opacity: .5;
  margin-left: 2px;
  letter-spacing: 0;
}
.notas { border-bottom: 1px solid var(--borde-oscuro); padding-top: 26px; padding-bottom: 22px; }
.notas-list { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; }
.notas-list li { font-size: 12px; color: #5F8473; line-height: 1.55; }
.notas-list li::marker { color: #5F8473; }
