/* =================================================================== */
/* FORJAR TU HABILIDAD — Landing v2                                     */
/* Dark premium fintech · navy + naranja Forjar                        */
/* Mobile-first · sin overflow horizontal · WCAG AA                    */
/* =================================================================== */

/* ----------------------- VARIABLES ----------------------- */
:root {
  /* Fondos — deep navy */
  --bg-primary: #0A1228;
  --bg-secondary: #131D3D;
  --bg-elevated: #1B2649;

  /* Acentos — naranja Forjar */
  --accent-primary: #E85D2C;
  --accent-glow: #FF7A45;
  --accent-subtle: rgba(232, 93, 44, 0.1);

  /* Textos */
  --text-primary: #F5F5F0;
  --text-secondary: #B8BCC8;
  --text-muted: #6B7280;

  /* Estructurales */
  --border-subtle: rgba(245, 245, 240, 0.08);
  --border-accent: rgba(232, 93, 44, 0.3);

  /* Señales filtro (sutiles) */
  --yes: #3FB37F;
  --no: #D96A6A;

  /* Sombras */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 32px rgba(232, 93, 44, 0.15);

  /* Tipografía */
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --pad-x: 20px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 64px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(27, 38, 73, 0.55) 0%, rgba(10, 18, 40, 0) 60%);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }

/* anclas: que el header sticky no tape el título al saltar */
section[id], [id] { scroll-margin-top: 84px; }

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

/* ----------------------- FONDO DECORATIVO GLOBAL ----------------------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(245, 245, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 240, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
}
.bg-decor__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.bg-decor__glow--1 {
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, rgba(232, 93, 44, 0.35) 0%, rgba(232, 93, 44, 0) 70%);
}
.bg-decor__glow--2 {
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(45, 84, 168, 0.4) 0%, rgba(45, 84, 168, 0) 70%);
}

/* ----------------------- LAYOUT ----------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: 64px;
  position: relative;
}
.section--narrow { padding-block: 64px; }

.section__title {
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--text-primary);
}
.section__title--center { text-align: center; }

.section__lead {
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-top: 14px;
}
.section__lead--center { text-align: center; max-width: 640px; margin-inline: auto; }

.prose p { color: var(--text-secondary); font-size: clamp(1rem, 1.5vw, 1.125rem); }
.prose p + p { margin-top: 16px; }
.prose .prose__lead {
  color: var(--text-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}
.prose--center { text-align: center; max-width: 600px; margin-inline: auto; }

.pull-quote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  line-height: 1.3;
  border-left: 3px solid var(--accent-primary);
  padding-left: 20px;
  margin-top: 28px;
}
.pull-quote--center {
  border-left: none;
  border-top: 2px solid var(--border-accent);
  padding: 28px 8px 0;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-top: 48px;
}

/* ----------------------- BOTONES ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn--sm { min-height: 48px; padding: 12px 20px; font-size: 0.95rem; }
.btn--lg { min-height: 54px; padding: 15px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* ----------------------- HEADER ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(10, 18, 40, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.header__logo { display: inline-flex; align-items: center; min-height: 48px; }
.header__logo img { height: 22px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { display: none; } /* en mobile se usa la hamburguesa */

/* Hamburguesa */
.nav-toggle {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 7px; left: 0; }
body.nav-open .nav-toggle__bars { background: transparent; }
body.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menú overlay full-screen */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 40, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; }
.mobile-nav__list {
  list-style: none;
  padding: 0 24px;
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 6px;
  text-align: center;
}
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  border-radius: 12px;
  transition: background-color 0.2s ease;
}
.mobile-nav__list .btn { margin-top: 12px; width: 100%; }

/* ----------------------- HERO ----------------------- */
.hero {
  position: relative;
  padding-block: 48px 56px;
  overflow: hidden;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.9;
  z-index: 0;
}
.hero::before {
  /* overlay navy para legibilidad del texto sobre la imagen */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.85) 0%, rgba(10, 18, 40, 0.62) 40%, rgba(10, 18, 40, 0.82) 78%, rgba(10, 18, 40, 0.95) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; }
/* legibilidad garantizada del texto sobre la imagen */
.hero__copy { position: relative; text-align: center; text-shadow: 0 1px 14px rgba(5, 9, 20, 0.6); }
.hero__copy::before {
  /* capa de fondo suave detrás de la promesa (sin caja dura) */
  content: "";
  position: absolute;
  inset: -28px -36px -16px -40px;
  z-index: -1;
  background: radial-gradient(120% 95% at 50% 44%, rgba(7, 13, 30, 0.8) 0%, rgba(8, 14, 32, 0.42) 52%, rgba(10, 18, 40, 0) 82%);
  filter: blur(10px);
  border-radius: 48px;
  pointer-events: none;
}
.hero__eyebrow { text-shadow: none; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-glow);
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: var(--accent-subtle);
  margin-bottom: 22px;
}
/* mobile: la promesa más grande y arrimada a los bordes */
.hero .container { padding-inline: 14px; }
.hero__title {
  font-weight: 800;
  font-size: clamp(1.95rem, 9vw, 2.4rem);
  color: var(--text-primary);
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: 16px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  line-height: 1.38;
  color: var(--text-secondary);
  max-width: 520px;
}
.hero__cta-group {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.hero__cta-group .btn { width: 100%; }

.hero__photo-wrap {
  position: relative;
}
.hero__photo-wrap::before {
  /* glow bokeh detrás de la foto (sin recuadro) */
  content: "";
  position: absolute;
  inset: -6% -4% 4% -4%;
  background: radial-gradient(46% 52% at 50% 42%, rgba(232, 93, 44, 0.24) 0%, rgba(45, 84, 168, 0.12) 45%, rgba(10, 18, 40, 0) 72%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* fundido suave del borde inferior para que se integre al fondo */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* ----------------------- SECCIÓN 2 — REALIDAD ----------------------- */
.realidad .prose { margin-top: 24px; }

/* ----------------------- SECCIÓN 3 — QUIÉN SOY ----------------------- */
.quien-soy { background-color: var(--bg-secondary); }
.quien-soy__inner { display: grid; gap: 32px; }
.quien-soy__photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  max-width: 360px;
}
.quien-soy__copy .prose { margin-top: 22px; }

/* ----------------------- SECCIÓN 4 — PRINCIPIOS ----------------------- */
.principios__grid {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.principio-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.principio-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  margin-bottom: 16px;
}
.principio-card__icon svg { width: 24px; height: 24px; }
.principio-card__title { font-size: clamp(1.15rem, 3.5vw, 1.3rem); font-weight: 700; color: var(--text-primary); }
.principio-card__text { margin-top: 8px; color: var(--text-secondary); font-size: 1rem; }

/* ----------------------- SECCIÓN 5 — PROCESO (timeline) ----------------------- */
.timeline {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  display: grid;
  gap: 0;
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-bottom: 32px;
}
.timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-accent), var(--border-subtle));
}
.timeline__num {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  z-index: 1;
}
.timeline__title { font-size: clamp(1.15rem, 3.5vw, 1.3rem); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.timeline__body p { color: var(--text-secondary); }

/* ----------------------- SECCIÓN 6 — CASOS ----------------------- */
.casos { background-color: var(--bg-secondary); }
.casos .prose { margin-top: 24px; }
.casos__reasons {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 16px;
}
.casos__reasons li {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-secondary);
}
.casos__reasons strong { color: var(--text-primary); }

/* ----------------------- SECCIÓN 7 — FILTRO ----------------------- */
.filtro__cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.filtro__col {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
}
.filtro__col--yes { background-color: rgba(63, 179, 127, 0.06); border-color: rgba(63, 179, 127, 0.22); }
.filtro__col--no { background-color: rgba(217, 106, 106, 0.06); border-color: rgba(217, 106, 106, 0.22); }
.filtro__col-title { font-size: clamp(1.25rem, 4vw, 1.5rem); font-weight: 700; margin-bottom: 18px; }
.filtro__col--yes .filtro__col-title { color: var(--yes); }
.filtro__col--no .filtro__col-title { color: var(--no); }
.filtro__list { list-style: none; padding: 0; display: grid; gap: 13px; }
.filtro__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-secondary); align-items: start; }
.filtro__mark { font-weight: 700; line-height: 1.6; }
.filtro__mark--yes { color: var(--yes); }
.filtro__mark--no { color: var(--no); }

/* ----------------------- SECCIÓN 8 — REUNIÓN ----------------------- */
.reunion__card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-card);
}
.reunion__icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  margin-bottom: 18px;
}
.reunion__icon svg { width: 26px; height: 26px; }
.reunion .prose { margin-top: 18px; }
.reunion__list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 11px; }
.reunion__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-secondary); align-items: start; }
.reunion__check { color: var(--accent-primary); font-weight: 700; }
.reunion__cta { margin-top: 28px; text-align: center; }
.reunion__cta .btn { width: 100%; }

/* ----------------------- FORMULARIO (modal) ----------------------- */
.form__field { margin-bottom: 18px; }
.form__label { display: block; font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form__optional { color: var(--text-muted); font-weight: 400; }
.form__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* >=16px evita el zoom automático del navegador en iOS */
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form__input::placeholder { color: var(--text-muted); }
.form__textarea { min-height: 90px; resize: vertical; }
.form__select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B8BCC8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.form__input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form__submit { margin-top: 6px; }
.form__hint { margin-top: 12px; color: var(--text-muted); font-size: 0.85rem; text-align: center; }

.form-success { text-align: center; padding: 12px 0; }
.form-success__icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background-color: rgba(63, 179, 127, 0.12);
  color: var(--yes);
  margin-bottom: 18px;
}
.form-success__icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 18px; }

/* ----------------------- MODAL (ventana flotante) ----------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--bg-elevated), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated), 0 0 60px rgba(232, 93, 44, 0.12);
  padding: 36px 22px 28px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__title { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; color: var(--text-primary); padding-right: 40px; }
.modal__lead { margin-top: 10px; margin-bottom: 24px; color: var(--text-secondary); font-size: 1rem; }

/* ----------------------- SECCIÓN 9 — FAQ ----------------------- */
.faq__list { margin-top: 36px; border-top: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  min-height: 56px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent-primary);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 4px 22px; }
.faq__a p { color: var(--text-secondary); }
.faq__item[open] .faq__a { animation: faqReveal 0.28s ease; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------- SECCIÓN 10 — CTA FINAL ----------------------- */
.cta-final { position: relative; overflow: hidden; background-color: var(--bg-secondary); }
.cta-final__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.45;
  filter: blur(4px) brightness(0.9);
  transform: scale(1.06); /* evita bordes claros por el blur */
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 29, 61, 0.9) 0%, rgba(10, 18, 40, 0.82) 100%);
}
.cta-final__inner { position: relative; z-index: 1; text-align: center; }
.cta-final .prose { margin-top: 18px; }
.cta-final__buttons {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-final__buttons .btn { width: 100%; }

/* ----------------------- FOOTER ----------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 40px;
  text-align: center;
}
.site-footer__inner { display: grid; gap: 14px; justify-items: center; }
.site-footer__logo { height: 26px; width: auto; opacity: 0.9; }
.site-footer__tagline { color: var(--text-secondary); font-size: 0.95rem; }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--accent-glow);
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.site-footer__ig { width: 20px; height: 20px; }
.site-footer__copy { color: var(--text-muted); font-size: 0.85rem; }

/* ----------------------- CTA ENTRE SECCIONES ----------------------- */
.section-cta { margin-top: 48px; text-align: center; }
.section-cta .btn { width: 100%; }
.section-cta .btn,
.hero__cta-group .btn,
.cta-final__buttons .btn,
.reunion__cta .btn { white-space: normal; }

/* ----------------------- BLOQUE DE TENSIÓN ----------------------- */
.tension__box {
  background: linear-gradient(160deg, rgba(27, 38, 73, 0.6), rgba(10, 18, 40, 0.35));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.tension__box .prose { margin-top: 18px; }
.tension__box .prose p { margin-inline: auto; max-width: 560px; }
.tension__punch {
  margin-top: 26px;
  display: grid;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.3;
}
.tension__punch span:first-child { color: var(--text-secondary); }
.tension__punch span:last-child { color: var(--accent-glow); }

/* ----------------------- COMPARATIVA ----------------------- */
.compare__cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.compare__col {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}
.compare__col--system { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.compare__col-title { font-size: clamp(1.2rem, 3.5vw, 1.45rem); font-weight: 700; margin-bottom: 18px; }
.compare__col--loose .compare__col-title { color: var(--text-secondary); }
.compare__col--system .compare__col-title { color: var(--accent-glow); }
.compare__list { list-style: none; padding: 0; display: grid; gap: 13px; }
.compare__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-secondary); align-items: start; }
.compare__mark { font-weight: 700; line-height: 1.5; }
.compare__mark--loose { color: var(--no); }
.compare__mark--system { color: var(--yes); }

/* ----------------------- EVIDENCIA ----------------------- */
.evidencia__grid {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 14px;
}
.evidencia__card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-secondary);
}
.evidencia__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ----------------------- ANIMACIÓN REVEAL ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================== */
/* HOVER — solo en dispositivos con puntero fino (no touch)            */
/* =================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(232, 93, 44, 0.35);
  }
  .btn--ghost:hover {
    border-color: var(--border-accent);
    background-color: var(--accent-subtle);
    transform: translateY(-2px);
  }
  .principio-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
  }
  .site-footer__social:hover {
    border-color: var(--border-accent);
    background-color: var(--accent-subtle);
    transform: translateY(-2px);
  }
  .modal__close:hover { color: var(--text-primary); border-color: var(--border-accent); }
  .nav-toggle:hover { border-color: var(--border-accent); }
  .mobile-nav__list a:hover { background-color: var(--accent-subtle); }
}

/* =================================================================== */
/* RESPONSIVE — pequeño (>=600px): CTAs en fila                        */
/* =================================================================== */
@media (min-width: 600px) {
  .hero__cta-group { flex-direction: row; flex-wrap: wrap; }
  .hero__cta-group .btn { width: auto; }
  .cta-final__buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-final__buttons .btn { width: auto; }
  .reunion__cta .btn { width: auto; }
  .section-cta .btn { width: auto; }
}

/* =================================================================== */
/* RESPONSIVE — TABLET (>=768px)                                        */
/* =================================================================== */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .section { padding-block: 88px; }
  .section--narrow { padding-block: 80px; }

  .hero .container { padding-inline: var(--pad-x); }
  .hero__title { font-size: clamp(2.5rem, 6vw, 3.6rem); }

  /* en desktop: CTA en header visible, hamburguesa oculta */
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  /* glow animado solo en pantallas grandes (perf mobile) */
  .bg-decor__glow--1 { animation: drift1 22s ease-in-out infinite alternate; }
  .bg-decor__glow--2 { animation: drift2 26s ease-in-out infinite alternate; }

  .principios__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .filtro__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .compare__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .reunion__card { padding: 40px 36px; }
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8%, 6%, 0) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-7%, -5%, 0) scale(1); }
}

/* =================================================================== */
/* RESPONSIVE — DESKTOP (>=1024px)                                      */
/* =================================================================== */
@media (min-width: 1024px) {
  .hero { padding-block: 80px 88px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(10, 18, 40, 0.94) 0%, rgba(10, 18, 40, 0.6) 52%, rgba(10, 18, 40, 0.2) 100%);
  }
  /* en desktop, el texto del hero vuelve a alinearse a la izquierda */
  .hero__copy { text-align: left; }
  .hero__copy::before {
    background: radial-gradient(115% 95% at 28% 46%, rgba(7, 13, 30, 0.8) 0%, rgba(8, 14, 32, 0.42) 52%, rgba(10, 18, 40, 0) 82%);
  }
  .hero__subtitle { margin-inline: 0; }
  .hero__cta-group { justify-content: flex-start; }
  /* desktop: promesa en 3 líneas dentro de la columna izquierda */
  .hero__title { font-size: clamp(3rem, 4.6vw, 3.6rem); }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }
  .hero__media { justify-self: end; }
  .hero__photo-wrap { max-width: 460px; }

  .quien-soy__inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 56px;
  }

  .principios__grid { grid-template-columns: repeat(4, 1fr); }

  /* timeline horizontal */
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 56px;
  }
  .timeline__step {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    justify-items: center;
    padding-bottom: 0;
  }
  .timeline__step:not(:last-child)::before {
    left: auto;
    top: 27px;
    bottom: auto;
    right: -8px;
    width: calc(100% - 56px + 16px);
    height: 2px;
    transform: translateX(50%);
    background: linear-gradient(to right, var(--border-accent), var(--border-subtle));
  }
  .timeline__body p { font-size: 0.95rem; }
}

/* =================================================================== */
/* ACCESIBILIDAD — reduce motion                                        */
/* =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-decor__glow { animation: none !important; }
  .faq__item[open] .faq__a { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
