/* =========================================================
   iMatch Business Hub — Design System
   Tipografía: Barlow Condensed (títulos) + Arial (cuerpo)
   Estilo: industrial, B2B, bold
   ========================================================= */

:root {
  /* Paleta principal */
  --ink-900: #1a1a1a;
  --ink-800: #2e2e2e;
  --ink-700: #424242;
  --ink-600: #5c5c5c;
  --ink-500: #737373;
  --ink-400: #8f8f8f;
  --ink-300: #ababab;
  --ink-200: #d0d0d0;
  --ink-100: #e8e8e8;
  --ink-50:  #f5f5f5;

  /* Acentos */
  --green-600: #0f766e;
  --green-100: #ccfbf1;
  --amber-600: #b45309;
  --amber-100: #fef3c7;
  --red-600:   #b91c1c;
  --red-100:   #fee2e2;

  /* Marca */
  --brand-red: #E30613;
  --brand-red-dark: #B30510;

  /* Neutros */
  --bg:        #ffffff;
  --bg-card:   #ffffff;
  --bg-alt:    #f5f3ee;
  --border:    #e8e3d8;
  --border-strong: #d8d2c4;

  /* Texto */
  --text-strong: var(--ink-900);
  --text-body:   var(--ink-600);
  --text-mute:   var(--ink-400);

  /* Tipografía */
  --font-display: 'Barlow Condensed', Arial Narrow, Arial, sans-serif;
  --font-body:    Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Courier New', monospace;

  /* Espaciado */
  --section-pad-y: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
}

/* ----- Reset / Base ----- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--ink-800);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--ink-900); }

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

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

/* ----- Tipografía utilitaria ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
  max-width: 720px;
  color: var(--brand-red);
  font-weight: 700;
  font-style: italic;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-red);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 640px;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ----- Layout ----- */
.container-imatch {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   SITE HEADER — Fondo rojo diagonal
   ========================================================= */
.site-header {
  background-size: cover;
  background-position: center top;
}

.header-top {
  display: flex;
  align-items: center;
  padding: 0.72rem 2.5rem;
  gap: 1rem;
}

/* Logo — izquierda */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 100px;
  width: auto;
  display: block;
}
.brand-logo-sedeco {
  height: 64px;
  width: auto;
  display: block;
  margin-left: 1.2rem;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Botones — centrados entre logo y form */
.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}

/* QUIERO COMPRAR / QUIERO VENDER — pill rojo */
.btn-header-outlined {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px;
  padding: .62rem 1.75rem;
  background: var(--brand-red);
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-header-outlined:hover {
  background: var(--brand-red-dark);
  border-color: rgba(255,255,255,.65);
  color: #fff;
}

/* CRISOL — gris oscuro pill (deshabilitado) */
.btn-header-crisol {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(55,55,55,.75);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: .62rem 1.75rem;
  text-decoration: none;
  cursor: not-allowed;
  opacity: .7;
  pointer-events: none;
  white-space: nowrap;
}

/* Login form — derecha, columna compacta */
.header-login-form {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
  width: 205px;
}
.header-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.header-input-wrap svg {
  position: absolute;
  left: .6rem;
  width: 13px;
  height: 13px;
  color: #999;
  pointer-events: none;
  flex-shrink: 0;
}
.header-input-wrap input {
  width: 100%;
  height: 32px;
  padding: 0 .75rem 0 2rem;
  font-family: var(--font-body);
  font-size: .78rem;
  border: none;
  border-radius: 2px;
  background: #fff;
  color: var(--ink-800);
  outline: none;
}
.header-input-wrap input::placeholder { color: #bbb; }

.btn-header-login {
  width: 100%;
  height: 32px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-header-login:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
}

.header-login-error {
  color: #ff8a80;
  font-size: .7rem;
  margin: .15rem 0 0 0;
  line-height: 1.3;
}

/* Barra de navegación — dentro del hero, sin fondo */
.header-nav {
  background: transparent;
  padding: .72rem 0;
  flex-shrink: 0;
}
.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav li {
  display: flex;
  align-items: center;
}
.header-nav li + li::before {
  content: '|';
  color: rgba(255,255,255,.3);
  font-size: .9rem;
  margin: 0 .1rem;
  pointer-events: none;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: .84rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 0 1.1rem;
  transition: color .2s;
}
.header-nav a:hover { color: #fff; }

/* =========================================================
   BOTONES GENERALES (secciones inferiores)
   ========================================================= */
.btn-imatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-imatch {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}
.btn-primary-imatch:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, .25);
}

.btn-outline-imatch {
  background: transparent;
  color: var(--brand-red);
  border-color: var(--brand-red);
}
.btn-outline-imatch:hover {
  background: var(--brand-red);
  color: #fff;
}

.btn-ghost-imatch {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-300);
}
.btn-ghost-imatch:hover {
  color: var(--ink-900);
  background: var(--ink-100);
}

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  padding: .55rem .7rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* =========================================================
   HERO PRINCIPAL — Imagen de fondo
   ========================================================= */
.hero-main {
  background-size: cover;
  background-position: center center;
  min-height: calc(100vh - 136px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-main-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  max-width: 60vw;
  width: 100%;
}
.hero-content {
  width: 100%;
}
.hero-expo-wrap {
  position: absolute;
  top: .5rem;
  right: 3rem;
}
.hero-expo-img {
  max-height: 260px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.hero-expo-img:hover {
  transform: scale(1.04);
  opacity: .9;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
}
.hero-hl-2 {
  display: block;
}
.hero-headline em {
  font-weight: 300;
  font-style: italic;
  color: #fff;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: .88rem;
  color: rgba(255,255,255,.92);
  margin-top: 1.1rem;
  line-height: 1.6;
  max-width: 430px;
}
.hero-subtitle strong {
  font-weight: 700;
  color: #fff;
}

/* Hero visual — oculto (reemplazado por imagen de fondo) */
.hero-visual { display: none; }

/* Campos legacy */
.hero-grid, .hero-ctas, .hero-trust, .hero-tagline { display: none; }

.match-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, .12),
              0 2px 4px rgba(26, 26, 26, .04);
  font-family: var(--font-body);
}

.match-card-primary {
  top: 20px; left: 0;
  width: 340px;
  z-index: 3;
}

.match-card-secondary {
  top: 160px; right: 0;
  width: 300px;
  z-index: 2;
}

.match-card-tertiary {
  bottom: 0; left: 80px;
  width: 280px;
  z-index: 1;
  opacity: .85;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.match-card-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.match-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink-900);
  line-height: 1;
}
.match-score sub {
  font-size: .85rem;
  color: var(--ink-400);
  vertical-align: baseline;
  margin-left: 2px;
}

.match-card-body { font-size: .82rem; }
.match-row {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
}
.match-row .label { color: var(--ink-500); }
.match-row .value { color: var(--ink-900); font-weight: 500; }
.masked {
  display: inline-block;
  background: var(--ink-100);
  color: transparent;
  border-radius: 3px;
  padding: 0 .5rem;
  letter-spacing: -.1em;
}
.masked::before { content: "••••••••••"; color: var(--ink-400); letter-spacing: normal; }

.match-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 999px;
}
.match-status.verified {
  background: var(--green-100);
  color: var(--green-600);
}
.match-status.pending {
  background: var(--amber-100);
  color: var(--amber-600);
}
.match-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   TRUST BAR — Banda oscura al fondo del hero
   ========================================================= */
.trust-bar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1rem 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 0 2.5rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.82);
}
.trust-item svg {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.section-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: 4rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  position: relative;
  transition: all .3s ease;
}
.path-card:hover {
  border-color: var(--ink-300);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(26, 26, 26, .1);
}

.path-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.path-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink-50);
  border-radius: 10px;
  color: var(--ink-900);
}
.path-icon svg { width: 22px; height: 22px; }

.path-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-900);
  font-style: italic;
}
.path-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: block;
  margin-bottom: 2px;
}

.path-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  counter-reset: steps;
}
.path-steps li {
  counter-increment: steps;
  position: relative;
  padding: .85rem 0 .85rem 3rem;
  font-size: .92rem;
  color: var(--ink-800);
  border-bottom: 1px solid var(--border);
}
.path-steps li:last-child { border-bottom: none; }
.path-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-400);
  width: 2.25rem;
}

.path-card .btn-imatch { width: 100%; }

/* =========================================================
   SECURITY GRID
   ========================================================= */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 4rem;
}
.security-cell {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  transition: background .2s ease, color .2s ease;
}
.security-cell:hover {
  background: var(--brand-red);
  transition: background .2s ease;
}
.security-cell:hover .security-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.security-cell:hover h3 {
  color: #fff;
}
.security-cell:hover p {
  color: rgba(255, 255, 255, 0.88);
}

.security-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}
.security-icon svg { width: 20px; height: 20px; }

.security-cell h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-900);
  margin-bottom: .65rem;
}
.security-cell p {
  font-size: .9rem;
  color: var(--ink-600);
  line-height: 1.55;
}

/* =========================================================
   AI VALIDATION SECTION
   ========================================================= */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ai-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0 0;
}
.ai-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 0;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--ink-700);
}
.ai-list li:last-child { border-bottom: 1px solid var(--border); }
.ai-list svg {
  width: 18px; height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, .1);
}
.ai-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.ai-mockup-title {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-900);
}
.ai-mockup-title svg { width: 16px; height: 16px; color: var(--ink-700); }
.ai-mockup-doc {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--ink-50);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: var(--ink-700);
}
.ai-mockup-doc svg { width: 16px; height: 16px; color: var(--red-600); }

.ai-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .88rem;
}
.ai-field:last-of-type { border-bottom: none; }
.ai-field-label { color: var(--ink-500); font-weight: 500; }
.ai-field-value {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink-900); font-weight: 500;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.ai-field-value svg { width: 14px; height: 14px; color: var(--green-600); }

.ai-mockup-footer {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.ai-mockup-note {
  font-size: .75rem;
  color: var(--ink-400);
  font-style: italic;
  margin-top: .75rem;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  position: relative;
}
.price-card:hover {
  border-color: var(--ink-400);
  transform: translateY(-3px);
}
.price-card.featured {
  border-color: var(--brand-red);
  border-width: 1.5px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--ink-50) 100%);
}
.price-badge {
  position: absolute;
  top: -10px; right: 2rem;
  background: var(--brand-red);
  color: var(--bg);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-900);
}
.price-tagline {
  font-size: .9rem;
  color: var(--ink-600);
  margin-top: .5rem;
  margin-bottom: 2rem;
  min-height: 2.6em;
}
.price-features {
  list-style: none;
  padding: 0; margin: 0;
  flex-grow: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .65rem 0;
  font-size: .88rem;
  color: var(--ink-700);
  border-top: 1px solid var(--border);
}
.price-features li:first-child { border-top: none; padding-top: 0; }
.price-features svg {
  width: 14px; height: 14px;
  color: var(--ink-700);
  flex-shrink: 0;
  margin-top: 4px;
}
.price-card .btn-imatch { margin-top: 2rem; width: 100%; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.faq-list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -.01em;
  transition: color .2s;
}
.faq-question:hover { color: var(--ink-700); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--ink-500);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--ink-900); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 0 0 1.75rem 0;
  font-size: .95rem;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 620px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--brand-red);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.final-cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.03em;
}
.final-cta h2 em { font-style: italic; color: rgba(255,255,255,0.75); font-weight: 300; }
.final-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.final-cta .btn-primary-imatch {
  background: #fff;
  color: var(--brand-red);
  border-color: #fff;
}
.final-cta .btn-primary-imatch:hover {
  background: rgba(255,255,255,0.9);
  color: var(--brand-red-dark);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.final-cta .btn-outline-imatch {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.final-cta .btn-outline-imatch:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .35rem 0; }
.footer-col a {
  font-size: .9rem;
  color: var(--ink-700);
}
.footer-col a:hover { color: var(--ink-900); text-decoration: underline; }

.footer-brand p {
  font-size: .9rem;
  color: var(--ink-500);
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .82rem;
  color: var(--ink-400);
}
.footer-bottom .badge-closed {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--ink-600);
  background: var(--ink-50);
  padding: .35rem .8rem;
  border-radius: 999px;
}
.footer-bottom .badge-closed svg { width: 12px; height: 12px; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.match-status .pulse { animation: pulse-soft 2s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 380px; max-width: 480px; margin: 0 auto; }
  .match-card-primary { width: 300px; }
  .match-card-secondary { width: 270px; top: 130px; }
  .match-card-tertiary { width: 250px; left: 40px; }

  .how-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .hero-expo-wrap { top: 1.5rem; right: 1.5rem; }
  .hero-expo-img { max-height: 180px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost-imatch { display: none; }
  .nav-toggle { display: block; }

  .hero { padding-top: calc(76px + 3rem); padding-bottom: 4rem; }
  .hero-ctas .btn-imatch { flex: 1 1 100%; }

  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero-trust { font-size: .8rem; gap: .75rem 1rem; }
  .trust-bar-inner { justify-content: flex-start; }

  .path-card { padding: 2rem 1.5rem; }
  .ai-mockup { padding: 1.5rem; }

  /* ── Header mobile ── */
  .header-top {
    flex-wrap: wrap;
    padding: .55rem .9rem;
    gap: .4rem;
  }

  .brand-logo { height: 68px; }
  .brand-logo-sedeco { height: 44px; margin-left: .6rem; }

  .header-actions {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
  }

  .btn-header-outlined,
  .btn-header-crisol {
    font-size: .7rem;
    padding: .4rem .85rem;
  }

  .header-login-form {
    order: 2;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .3rem;
  }

  .header-input-wrap { flex: 1; min-width: 110px; }

  .btn-header-login {
    width: auto;
    flex-shrink: 0;
    padding: 0 1rem;
  }

  /* ── Hero main mobile ── */
  .header-nav { display: none; }

  .hero-main {
    min-height: 55vh;
    background-position: left center;
  }

  .hero-main-inner {
    max-width: 100%;
    padding: 1.5rem 1.25rem 1rem;
  }

  .hero-expo-wrap {
    position: static;
    display: flex;
    justify-content: center;
    padding: .5rem 1.25rem 1.5rem;
  }

  .hero-expo-img { max-height: 150px; }
}

@media (max-width: 480px) {
  .header-top { padding: .45rem .75rem; }
  .brand-logo { height: 56px; }
  .brand-logo-sedeco { height: 56px; }
  .btn-header-outlined,
  .btn-header-crisol { font-size: .65rem; padding: .35rem .7rem; }
  .hero-main-inner { padding: 1.25rem 1rem .75rem; }
  .hero-expo-img { max-height: 320px; }
}

/* =========================================================
   LOGOS CAROUSEL — Banda de logos en loop infinito
   ========================================================= */
.logos-carousel-section {
  background-image: url('/images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2.25rem 0;
  overflow: hidden;
  position: relative;
}
.logos-carousel-section::before,
.logos-carousel-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.logos-carousel-section::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,.6), transparent);
}
.logos-carousel-section::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,.6), transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logos-scroll 55s linear infinite;
  will-change: transform;
}
.logos-track:hover {
  animation-play-state: paused;
}
.logo-carousel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}
.logo-carousel-item img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(1.15);
  transition: opacity .2s;
}
.logo-carousel-item img:hover {
  opacity: 1;
}
@keyframes logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
