/* =========================================================
   Credi Origen — Sitio corporativo (v2)
   Dark theme "paisanos" edition
   Operado por CONEXION INFO S.A. DE C.V., SOFOM, E.N.R.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Fondos oscuros (línea base) */
  --bg: #050f0c;
  --bg-elev-1: #0a1c17;
  --bg-elev-2: #10261f;
  --bg-hero-a: #0a3d31;
  --bg-hero-b: #062820;
  --bg-hero-c: #041814;

  /* Líneas y superficies */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);

  /* Texto */
  --text: #eef4f0;
  --text-muted: #8fa89f;
  --text-dim: #5c6f66;
  --text-invert: #0d2a24;

  /* Color de marca */
  --emerald: #12a67f;
  --emerald-dark: #0b7a5e;
  --emerald-light: #4ed3aa;
  --emerald-soft: rgba(18, 166, 127, 0.14);

  --gold: #f6d071;
  --gold-dark: #d4a017;
  --gold-soft: rgba(246, 208, 113, 0.14);

  --danger: #ef6060;
  --danger-soft: rgba(239, 96, 96, 0.14);

  /* Tipografía */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Radios */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --r-full: 999px;

  /* Sombras */
  --shadow-glow: 0 24px 60px -20px rgba(18, 166, 127, 0.55);
  --shadow-gold: 0 24px 60px -24px rgba(246, 208, 113, 0.55);
  --shadow-card: 0 20px 40px -22px rgba(0, 0, 0, 0.7);

  /* Gradientes */
  --grad-hero: radial-gradient(1200px 700px at 80% -10%, rgba(246, 208, 113, 0.14) 0%, transparent 60%),
               radial-gradient(900px 700px at 0% 40%, rgba(18, 166, 127, 0.20) 0%, transparent 55%),
               linear-gradient(180deg, var(--bg-hero-a) 0%, var(--bg-hero-b) 55%, var(--bg-hero-c) 100%);
  --grad-emerald: linear-gradient(120deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --grad-line-gold: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--text-invert); }

a { color: var(--emerald-light); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

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

button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.small { font-size: 0.875rem; }
.gold { color: var(--gold); }
.gold-grad {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 208, 113, 0.24);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 208, 113, 0.22);
}
.eyebrow.emerald {
  color: var(--emerald-light);
  background: var(--emerald-soft);
  border-color: rgba(18, 166, 127, 0.32);
}
.eyebrow.emerald::before { background: var(--emerald-light); box-shadow: 0 0 0 4px rgba(78, 211, 170, 0.22); }

/* ---------- Titulares tipo editorial ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-weight: 600; }

.h1-mixed em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.h1-mixed .stroke {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--gold);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--grad-emerald);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { color: #fff; }

.btn-gold {
  background: var(--grad-gold);
  color: var(--text-invert);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { color: var(--text-invert); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(246, 208, 113, 0.06); }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 15, 12, 0.7);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-logo img {
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px -6px rgba(246, 208, 113, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-text strong .gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small { color: var(--text-dim); font-size: 0.7rem; letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all .15s ease;
}
.header-cta:hover { background: var(--gold); color: var(--text-invert); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px; height: 42px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-glow-a, .hero-glow-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-a { top: -140px; right: -80px; width: 460px; height: 460px; background: rgba(246, 208, 113, 0.20); }
.hero-glow-b { bottom: -180px; left: -140px; width: 520px; height: 520px; background: rgba(18, 166, 127, 0.24); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 28px; }
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-trust .t {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-trust .t b { color: var(--text); font-weight: 700; font-size: 1rem; margin-right: 2px; }
.hero-trust .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 12px var(--emerald-light);
}
.hero-trust .dot.gold { background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Hero mockups (3 phones staggered) */
.hero-mockups {
  position: relative;
  height: 620px;
}
.hero-mockups .phone {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 12px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-mockups .phone img {
  width: 100%; height: auto; display: block;
}
.hero-mockups .phone.p1 {
  width: 290px;
  right: 4%;
  top: 20px;
  transform: rotate(4deg);
  z-index: 3;
}
.hero-mockups .phone.p2 {
  width: 240px;
  left: 4%;
  top: 100px;
  transform: rotate(-6deg);
  z-index: 2;
  opacity: 0.9;
}
.hero-mockups .phone.p3 {
  width: 220px;
  left: 32%;
  top: 300px;
  transform: rotate(2deg);
  z-index: 1;
  opacity: 0.75;
}

/* ---------- Section shell ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-tight { padding: 88px 0; }
.section-alt { background: var(--bg-elev-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--bg); }

.section-head {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}
.section-head.align-left { text-align: left; margin-left: 0; }

.divider-gold {
  height: 1px;
  width: 100%;
  background: var(--grad-line-gold);
  margin: 0 auto;
  max-width: 80%;
}

/* ---------- Personas ---------- */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.persona {
  position: relative;
  padding: 40px 32px 36px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.persona:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 208, 113, 0.35);
}
.persona::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 208, 113, 0.22), transparent);
  pointer-events: none;
}
.persona-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-soft);
  border: 1px solid rgba(18, 166, 127, 0.28);
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 24px;
}
.persona h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}
.persona h3 em { font-style: italic; color: var(--gold); font-weight: 500; }
.persona p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.98rem;
  line-height: 1.65;
}
.persona .tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(18, 166, 127, 0.12);
  color: var(--emerald-light);
  border: 1px solid rgba(18, 166, 127, 0.24);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-dark), var(--emerald), rgba(255, 255, 255, 0.08));
}
.timeline-item {
  position: relative;
  padding: 0 0 44px 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(246, 208, 113, 0.12);
}
.timeline-item .step-n {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.timeline-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}
.timeline-item .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--emerald-soft);
  color: var(--emerald-light);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(18, 166, 127, 0.28);
}

/* ---------- Compare table ---------- */
.compare-wrap {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev-1);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.compare th, .compare td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  vertical-align: middle;
}
.compare thead th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.compare thead th.own {
  color: var(--gold);
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold-dark);
}
.compare td.own { background: rgba(246, 208, 113, 0.05); color: var(--text); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th {
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.02);
}
.compare .yes, .compare .no, .compare .partial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.compare .yes { color: var(--emerald-light); }
.compare .no { color: var(--danger); }
.compare .partial { color: var(--gold); }
.compare .yes::before, .compare .no::before, .compare .partial::before {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.compare .yes::before { content: "✓"; background: var(--emerald-soft); color: var(--emerald-light); }
.compare .no::before { content: "✕"; background: var(--danger-soft); color: var(--danger); }
.compare .partial::before { content: "~"; background: var(--gold-soft); color: var(--gold); }

/* ---------- Screens strip (3 mockups horizontal) ---------- */
.screens-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.screen-card { text-align: center; }
.screen-card .frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.65), 0 8px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.screen-card .frame img { width: 100%; height: auto; display: block; background: #fff; }
.screen-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.screen-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Numbers (stats) ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev-1);
}
.num-cell {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.num-cell:last-child { border-right: 0; }
.num-cell .k {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.num-cell .v {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: var(--gold);
  font-weight: 400;
  font-size: 1.35rem;
  margin-left: 16px;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--gold); }
.faq-item .a {
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}
.faq-item .a p { margin: 0 0 10px; }
.faq-item .a p:last-child { margin-bottom: 0; }

/* ---------- Empresa cards ---------- */
.empresa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.empresa-card {
  padding: 40px 34px;
  border-radius: var(--r-lg);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.empresa-card.emerald::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-emerald);
}
.empresa-card.gold::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
}
.empresa-card .role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.empresa-card.emerald .role { color: var(--emerald-light); }
.empresa-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.empresa-card .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 24px;
}
.empresa-card .data {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.empresa-card .data li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.empresa-card .data li:last-child { border-bottom: 0; }
.empresa-card .data li span { color: var(--text-muted); flex-shrink: 0; }
.empresa-card .data li strong { color: var(--text); text-align: right; font-weight: 500; }
.empresa-card .data li a { color: var(--gold); }

.empresa-note {
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 20px 28px;
  border-radius: var(--r-md);
  background: var(--surface);
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.empresa-note strong { color: var(--text); font-weight: 600; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  padding: 100px 0;
  background: var(--bg-elev-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 208, 113, 0.16), transparent);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 20px;
}
.cta-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-strip .c {
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.contact-strip .c .icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-strip .c .lbl {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-strip .c .val { color: var(--text); font-weight: 500; font-size: 0.98rem; }
.contact-strip .c .val a { color: var(--text); }
.contact-strip .c .val a:hover { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal {
  background: var(--bg);
  padding: 80px 0 100px;
}
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-card);
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
  color: var(--text);
}
.legal .updated {
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 40px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text);
}
.legal h2 .num {
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 208, 113, 0.32);
  width: 34px; height: 34px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
.legal p { margin: 12px 0; color: var(--text-muted); }
.legal ul { padding-left: 22px; margin: 12px 0; color: var(--text-muted); }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--gold); }
.legal a:hover { color: var(--emerald-light); }

.legal .callout {
  background: var(--emerald-soft);
  border-left: 3px solid var(--emerald);
  padding: 18px 22px;
  border-radius: var(--r-md);
  margin: 22px 0;
}
.legal .callout p { color: var(--text); margin: 6px 0; }
.legal .info-block {
  background: var(--surface-2);
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin: 18px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.legal .info-block p { margin: 4px 0; color: var(--text); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.94rem;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--text-muted);
}
.legal-table th { background: var(--surface-2); color: var(--text); font-weight: 600; }

.signature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.signature-block .sign {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.signature-block .sign p { color: var(--text-muted); }
.signature-block .sign p strong { color: var(--text); }
.signature-block .line { border-top: 1px solid var(--line-strong); margin: 40px 0 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #030a08;
  color: var(--text-muted);
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-line-gold);
  opacity: 0.6;
}
.site-footer strong { color: var(--text); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer-brand { max-width: 380px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo img { width: 48px; height: 48px; border-radius: 12px; }
.footer-logo strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo strong .gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; margin: 8px 0; }
.footer-brand a { color: var(--text-muted); }
.footer-brand a:hover { color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 10px 0; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }

.copyright {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { padding: 80px 0 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-mockups { height: 500px; }
  .hero-mockups .phone.p1 { width: 240px; right: 8%; }
  .hero-mockups .phone.p2 { width: 200px; left: 6%; }
  .hero-mockups .phone.p3 { width: 180px; left: 34%; top: 220px; }
  .personas { grid-template-columns: 1fr; gap: 20px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num-cell:nth-child(2) { border-right: 0; }
  .num-cell:nth-child(1), .num-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .screens-strip { grid-template-columns: 1fr; gap: 40px; }
  .empresa-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elev-1);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 14px;
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .brand-text small { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 80px; }
  .hero-mockups { height: auto; display: flex; flex-direction: column; align-items: center; }
  .hero-mockups .phone { position: relative; margin: -30px auto 0; width: 260px !important; left: auto !important; right: auto !important; top: auto !important; transform: none !important; }
  .hero-mockups .phone.p1 { margin-top: 0; }
  .timeline { padding-left: 40px; }
  .timeline::before { left: 14px; }
  .timeline-item::before { left: -30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .signature-block { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 14px 16px; font-size: 0.86rem; }
}


/* =========================================================
   Legal v2 · Hero + Resumen + Chapter cards + "en simple"
   ========================================================= */

.legal-hero {
  padding: 96px 0 40px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(246, 208, 113, 0.16);
  filter: blur(90px);
  pointer-events: none;
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-hero .kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--gold-soft);
  border: 1px solid rgba(246, 208, 113, 0.28);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}
.legal-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.legal-hero .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.legal-hero .updated b { color: var(--text); font-weight: 600; }

.legal-body { padding: 60px 0 100px; background: var(--bg); }
.legal-body .wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* Resumen ejecutivo (3 tarjetas) */
.legal-resumen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -40px auto 60px;
  max-width: 940px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.res-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.res-card .n {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.res-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}
.res-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Chapter (each numbered section) */
.chapter {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.chapter:first-of-type { border-top: 0; padding-top: 8px; }
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.chapter-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  min-width: 60px;
  padding-top: 4px;
}
.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.015em;
}
.chapter h2 em { font-style: italic; color: var(--gold); font-weight: 500; }

.chapter-body { padding-left: 78px; }
.chapter-body p { margin: 12px 0; color: var(--text-muted); line-height: 1.75; }
.chapter-body p strong { color: var(--text); font-weight: 600; }
.chapter-body ul { padding-left: 22px; margin: 12px 0; color: var(--text-muted); }
.chapter-body ul li { margin: 6px 0; }
.chapter-body ul li strong { color: var(--text); font-weight: 600; }
.chapter-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 8px;
}
.chapter-body a { color: var(--gold); }
.chapter-body a:hover { color: var(--emerald-light); }

/* "En simple" — cajita de traducción a español llano */
.in-simple {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--emerald-soft);
  border: 1px solid rgba(18, 166, 127, 0.28);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.in-simple::before {
  content: "En simple";
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-light);
  background: rgba(18, 166, 127, 0.24);
  padding: 4px 10px;
  border-radius: var(--r-full);
  align-self: start;
}
.in-simple p { margin: 0; color: var(--text); }

/* Aviso — versión más fuerte para cláusulas importantes */
.warn-box {
  margin: 18px 0;
  padding: 18px 22px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.7;
}
.warn-box::before {
  content: "⚠ Importante";
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* Contract summary card (para el contrato de préstamo) */
.contract-card {
  background: linear-gradient(160deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.contract-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
}
.contract-card .h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.contract-card .h .k {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contract-card .h .folio {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-family: 'Consolas', monospace;
}
.contract-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contract-grid .cell {
  padding: 16px 4px;
  border-left: 2px solid var(--gold-dark);
  padding-left: 14px;
}
.contract-grid .cell .lbl {
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contract-grid .cell .val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.contract-grid .cell .val small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Contact types (3 tarjetas para explicar tipos de contactos) */
.contacts-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.ct-card {
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.ct-card.solid {
  background: rgba(246, 208, 113, 0.06);
  border-color: rgba(246, 208, 113, 0.32);
}
.ct-card .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.ct-card .badge.info { background: var(--emerald-soft); color: var(--emerald-light); }
.ct-card .badge.mid  { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.ct-card .badge.solid{ background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(246, 208, 113, 0.28); }
.ct-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}
.ct-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Data-flow rows (Aviso de Privacidad) */
.data-flow {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 20px 0;
}
.data-flow .row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr 0.9fr;
  gap: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.9rem;
}
.data-flow .row:last-child { border-bottom: 0; }
.data-flow .row.head {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.data-flow .row .k { color: var(--text); font-weight: 600; }
.data-flow .row .v { color: var(--text-muted); }
.data-flow .row .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--emerald-light);
  background: var(--emerald-soft);
  border: 1px solid rgba(18, 166, 127, 0.28);
}
.data-flow .row .pill.warn {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(246, 208, 113, 0.32);
}

/* Signature footer */
.sig-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.sig-block .box {
  padding: 24px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.sig-block .box .who {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.sig-block .box .name { color: var(--text); font-weight: 600; margin: 0 0 32px; }
.sig-block .box .line {
  border-top: 1px solid var(--line-strong);
  padding-top: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.sig-block .box .line:last-child { margin-bottom: 0; }

/* Responsive for legal v2 */
@media (max-width: 1000px) {
  .legal-resumen { grid-template-columns: 1fr; gap: 12px; }
  .contacts-types { grid-template-columns: 1fr; }
  .contract-grid { grid-template-columns: repeat(2, 1fr); }
  .data-flow .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .data-flow .row.head { display: none; }
  .chapter-body { padding-left: 0; }
  .chapter-head { flex-direction: column; gap: 6px; }
  .chapter-num { min-width: 0; padding-top: 0; }
  .sig-block { grid-template-columns: 1fr; }
}

/* Providers — listado de terceros al estilo de un texto legal formal.
   Sin tarjetas, sin badges: sólo tipografía y una fina barra lateral. */
.providers {
  margin: 20px 0 24px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--line-strong);
}
.providers dt {
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.98rem;
  margin: 14px 0 4px;
  letter-spacing: 0.01em;
}
.providers dt:first-child { margin-top: 0; }
.providers dt .loc {
  color: var(--text-dim);
  font-weight: 400;
  font-style: italic;
  margin-left: 4px;
}
.providers dd {
  margin: 0 0 4px 0;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: justify;
}
