/* ============================================================
   styles.css — Pulso360 Landing Page
   ============================================================ */

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --blue:         #2563EB;
  --blue-dark:    #1D4ED8;
  --blue-light:   #EFF6FF;
  --cyan:         #06B6D4;
  --cyan-dark:    #0891B2;
  --dark:         #0F172A;
  --dark-2:       #1E293B;
  --dark-3:       #334155;
  --text:         #0F172A;
  --text-2:       #334155;
  --text-3:       #64748B;
  --text-4:       #94A3B8;
  --bg:           #F8FAFC;
  --bg-2:         #F1F5F9;
  --white:        #FFFFFF;
  --grey:         #94A3B8;
  --border:       #E2E8F0;
  --border-2:     #CBD5E1;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  14px;
  --radius-lg:  20px;

  --header-h:   64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

/* Focus visible — estado explícito para teclado y AT */
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn--primary:focus-visible   { outline-color: var(--cyan); }
.btn--outline:focus-visible   { outline-color: var(--grey); }

.nav__link:focus-visible,
.mobile-nav__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px;
}
.header--scrolled .nav__link:focus-visible { outline-color: var(--blue); }

/* Primary */
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .4);
}

/* Outline — for dark backgrounds */
.btn--outline {
  background: transparent;
  color: var(--grey);
  border: 1.5px solid var(--grey);
}
.btn--outline:hover {
  border-color: var(--grey);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 4px 14px rgba(123, 123, 123, 0.3);
}

/* White — for colored/gradient backgrounds */
.btn--white {
  background: var(--white);
  color: var(--blue);
}
.btn--white:hover {
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

/* Large modifier */
.btn--lg {
  padding: 0.75rem 1.625rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  min-height: 44px; /* accesibilidad: target mínimo 44 × 44 px */
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

/* Imágenes del logo */
.logo__img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Logo sobre fondo oscuro (header transparente): mostrar versión blanca */
.logo__img--white { display: block; }
.logo__img--dark  { display: none; }

/* Logo sobre fondo claro (header scrolled): mostrar versión oscura */
.header--scrolled .logo__img--white { display: none; }
.header--scrolled .logo__img--dark  { display: block; }

/* En footer siempre se usa logo blanco — ya queda con display:block por defecto */

/* Fallback legacy (mantiene compatibilidad si hubiera spans) */
.logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.logo__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: color 0.25s;
}

.logo--light .logo__name { color: var(--white); }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header.header--scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

/* Nav links — default state (over dark hero) */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav__link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

/* Nav + logo on scrolled header */
.header--scrolled .nav__link       { color: var(--text-3); }
.header--scrolled .nav__link:hover { color: var(--text); background: var(--bg); }
.header--scrolled .logo__name      { color: var(--text); }

/* Logo name on transparent header */
.header:not(.header--scrolled) .logo__name { color: var(--white); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover               { background: rgba(255,255,255,.1); }
.header--scrolled .hamburger:hover { background: var(--bg); }

.hamburger__line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, .85);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.header--scrolled .hamburger__line { background: var(--text); }

/* Open state — X shape */
.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  background-image: radial-gradient(
    ellipse 80% 55% at 50% -5%,
    rgba(37, 99, 235, .2) 0%,
    transparent 65%
  );
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, .18);
  border: 1px solid rgba(37, 99, 235, .35);
  color: #93C5FD;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

/* Etiqueta eyebrow del hero — pill cian, fondo muy transparente */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .28);
  color: #67E8F9;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero__lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #94A3B8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero__screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 30px 60px rgba(0, 0, 0, .5),
    0 10px 20px rgba(0, 0, 0, .3);
}

.hero__screenshot img { width: 100%; }

/* ── Sections base ─────────────────────────────────────────── */
.section { padding-top: 5rem; padding-bottom: 5rem; }

.bg-light { background: var(--bg); }

.section__header {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-3);
}

/* ── Grid 4-col ─────────────────────────────────────────────── */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Problem cards ─────────────────────────────────────────── */
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.problem-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.problem-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-3);
}

/* ── Solution section ────────────────────────────────────────── */
.solution-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Eyebrow pill — azul discreto, diferenciado del cian del hero */
.solution-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .2);
  color: #2563EB;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* Tres beneficios en fila */
.solution-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .solution-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.solution-benefit {
  padding: 0 2rem;
  text-align: center;
}

/* Tablet 768–899 px: reducir padding para evitar texto estrecho */
@media (min-width: 768px) and (max-width: 899px) {
  .solution-benefit {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Primer ítem: sin padding izquierdo en tablet+ */
@media (min-width: 768px) {
  .solution-benefit:first-child { padding-left: 0; }
  .solution-benefit:last-child  { padding-right: 0; }

  /* Separador vertical discreto entre columnas */
  .solution-benefit + .solution-benefit {
    border-left: 1px solid var(--border);
  }
}

/* En mobile: alinear a la izquierda y sin padding extra */
@media (max-width: 767px) {
  .solution-benefit {
    padding: 0;
    text-align: left;
  }
}

.solution-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .solution-benefit__icon { margin-left: 0; }
}

.solution-benefit__icon--blue { background: #EFF6FF; color: var(--blue); }
.solution-benefit__icon--cyan { background: #ECFEFF; color: var(--cyan-dark); }

.solution-benefit__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.solution-benefit__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-3);
}

/* Enlace secundario "Explora las funcionalidades" */
.solution-footer {
  margin-top: 3rem;
  text-align: center;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s, gap 0.2s;
  min-height: 44px; /* área táctil mínima */
}

.solution-link:hover {
  color: var(--blue-dark);
  gap: 0.625rem;
}

.solution-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Control financiero section ─────────────────────────────── */
.cf-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Grid: 1 col mobile, 2 col desktop */
.cf-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cf-inner {
    grid-template-columns: 5fr 7fr; /* ≈42% texto / 58% imágenes */
    gap: 4rem;
    align-items: center;
  }
}

/* Imágenes CF: width/height se declaran en el HTML con valores reales */
.cf-img-primary img,
.cf-img-secondary img {
  width: 100%;
  height: auto;
}

/* Texto: H2 alineado a la izquierda */
.cf-title {
  text-align: left;
  margin-bottom: 1.25rem;
}

.cf-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-3);
  margin-bottom: 2rem;
}

/* Lista de beneficios */
.cf-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

/* 2 columnas a partir de 480 px (dentro de la columna izquierda) */
@media (min-width: 480px) {
  .cf-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.75rem;
  }
}

.cf-benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.4;
}

.cf-benefits__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

/* Columna de capturas */
.cf-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Imagen secundaria: más pequeña, desplazada a la derecha en desktop */
.cf-img-secondary {
  align-self: flex-end;
  width: 78%;
}

/* En tablet/mobile: ancho completo, sin desplazamiento */
@media (max-width: 1023px) {
  .cf-img-secondary {
    align-self: initial;
    width: 100%;
  }
}

/* ── Reportes section ────────────────────────────────────── */
/* Fondo var(--bg) diferencia esta sección de la CF (fondo blanco). */
.rp-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Grid: 1 col mobile. En desktop, content antes de visual en HTML;
   se invierte con order para que las imágenes vayan a la izquierda. */
.rp-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .rp-inner {
    grid-template-columns: 7fr 5fr; /* ≈58% imágenes / 42% texto */
    gap: 4rem;
    align-items: center;
  }
  /* Imágenes a la izquierda: order negativo las coloca antes del contenido */
  .rp-visual  { order: -1; }
  .rp-content { order: 1; }
}

/* Imágenes: width/height declarados en el HTML */
.rp-img-primary img,
.rp-img-secondary img {
  width: 100%;
  height: auto;
}

/* Columna de capturas */
.rp-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Imagen secundaria: 78%, desplazada a la izquierda (inverso a CF) */
.rp-img-secondary {
  align-self: flex-start;
  width: 78%;
}

/* En tablet/mobile: ancho completo */
@media (max-width: 1023px) {
  .rp-img-secondary {
    align-self: initial;
    width: 100%;
  }
}

/* H2 alineado a la izquierda */
.rp-title {
  text-align: left;
  margin-bottom: 1.25rem;
}

.rp-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-3);
  margin-bottom: 2rem;
}

/* Lista de beneficios */
.rp-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

/* 2 columnas a partir de 480 px */
@media (min-width: 480px) {
  .rp-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.75rem;
  }
}

.rp-benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.4;
}

.rp-benefits__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

/* ── Feature cards ─────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card__icon--blue { background: #EFF6FF; color: var(--blue); }
.feature-card__icon--cyan { background: #ECFEFF; color: var(--cyan-dark); }
.feature-card__icon--red  { background: #FEF2F2; color: #DC2626; }

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-3);
}

/* ── Features grid — 3 col desktop, 2 col tablet, 1 col mobile ── */
/* Reemplaza grid-4 solo para la sección #funcionalidades.         */
/* Se usan breakpoints explícitos para evitar columnas impredecibles. */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Feature card primaria — capacidades principales ─────────── */
/* Diferenciación: fondo azul muy claro + borde azul + border-top  */
/* acentuado + título mayor (indicadores color + tipografía).      */
.feature-card--primary {
  background: #EFF6FF;
  border-color: #BFDBFE;
  border-top: 3px solid var(--blue);
}

.feature-card--primary:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* El ícono sobre fondo azul claro usa una capa interna más saturada */
.feature-card--primary .feature-card__icon--blue {
  background: #DBEAFE;
  color: var(--blue);
}

/* Título: color más oscuro + 1.0625rem (vs 0.9375rem estándar) */
.feature-card--primary h3 {
  color: var(--dark);
  font-size: 1.0625rem;
}

/* ── Roles grid ─────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.role-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.875rem;
}

.role-badge--superadmin  { background: #0F172A; color: #fff; }
.role-badge--admin       { background: #2563EB; color: #fff; }
.role-badge--coordinador { background: #4F46E5; color: #fff; }
.role-badge--lider       { background: #7C3AED; color: #fff; }
.role-badge--colaborador { background: #059669; color: #fff; }
.role-badge--consultor   { background: #D97706; color: #fff; }
.role-badge--invitado    { background: #64748B; color: #fff; }

.role-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-3);
}

/* ── Perfiles comerciales (sección Roles) ──────────────────────── */
/* 3 tarjetas de perfil: Gerencia, Coordinadores, Líderes.            */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue); /* acento superior, indicador no-color */
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.profile-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card__icon--blue { background: #EFF6FF; color: var(--blue); }
.profile-card__icon--cyan { background: #ECFEFF; color: var(--cyan-dark); }

.profile-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.profile-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-3);
  margin: 0;
  flex-grow: 1;
}

.profile-card__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-2);
}

.profile-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.4;
}

.profile-card__benefits li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--blue);
}

/* Nota inferior centrada */
.profiles-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 2.5rem;
  font-style: normal;
  font-weight: 500;
}

/* Captura de equipo: centrada, max-width para no quedar demasiado grande */
.profiles-img-wrap {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cómo funciona ────────────────────────────────────── */
.howto-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Cuatro pasos: 1 col mobile, 2 col tablet, 4 col desktop */
.howto-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .howto-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* En desktop, border-top crea la línea horizontal de conexión entre pasos */
@media (min-width: 1024px) {
  .howto-step {
    border-top: 2px solid var(--border);
    padding-top: 1.5rem;
  }
}

.howto-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.howto-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.howto-step__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-3);
  margin: 0;
}

/* ── Sectores ──────────────────────────────────────── */
.sectors-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* 1 col mobile, 2 col tablet, 3 col desktop */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sector-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sector-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.sector-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sector-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-3);
  margin: 0;
}

/* ── Seguridad y control ─────────────────────────────── */
.security-section {
  background: var(--dark);
  background-image: radial-gradient(
    ellipse 70% 50% at 50% -10%,
    rgba(6, 182, 212, .1) 0%,
    transparent 60%
  );
}

/* Sobreescribir colores del encabezado centrado para fondo oscuro */
.security-section .section__title   { color: var(--white); }
.security-section .section__subtitle { color: #94A3B8; }

/* 1 col mobile, 2 col tablet, 3 col desktop */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.security-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.security-card:hover {
  border-color: rgba(6, 182, 212, .25);
}

.security-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, .1);
  color: #67E8F9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.security-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.security-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94A3B8;
  margin: 0;
}

/* ── Product section ─────────────────────────────────────────── */
.product-section {
  background: linear-gradient(160deg, #F0F9FF 0%, #F8FAFC 60%, #fff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.product-content { order: 1; }
.product-visual  { order: 2; display: flex; justify-content: center; }

.product-title {
  text-align: left;
}

.product-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-3);
  margin-bottom: 2rem;
  max-width: 480px;
}

.product-screenshot {
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.product-screenshot img { width: 100%; }

/* ── Demo section ─────────────────────────────────────────── */
.demo-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(6, 182, 212, .15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.demo-inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  background: rgba(6, 182, 212, .14);
  border: 1px solid rgba(6, 182, 212, .3);
  color: #67E8F9;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.demo-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1rem;
}

.demo-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.demo-note {
  margin-top: 1.125rem;
  font-size: 0.8125rem;
  color: #475569;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan-dark) 100%);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2rem;
}

/* Nota bajo el botón CTA */
.cta-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .55);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding-top: 3rem;
}

/*
  4 columnas: brand (1.5fr) + Producto (1fr) + Empresa (1fr) + Acceso y legal (1fr)
  .footer__nav usa grid interno para las 3 columnas de navegación.
*/
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 2.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.375rem;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

.footer__link {
  font-size: 0.875rem;
  color: #64748B;
  transition: color 0.2s ease;
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #334155;
}

@media (max-width: 899px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile navigation overlay ─────────────────────────────────
   Elemento independiente fuera del <header> para que position:fixed
   siempre se posicione relativo al viewport, nunca al stacking context
   creado por backdrop-filter del header.
───────────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  z-index: 9999;
  background: #0F172A;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.25rem 2.5rem;
  box-sizing: border-box;
  display: none; /* visible solo en mobile via media query */
}

.mobile-nav.is-open { transform: translateX(0); }

/* Bloqueo de scroll del body cuando el menú está abierto.
   Se usa position:fixed + top negativo para preservar scrollY sin salto. */
body.menu-open {
  position: fixed;
  overflow: hidden;
  width: 100%;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex-shrink: 0;
}

.mobile-nav__logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.mobile-nav__logo-link { display: flex; align-items: center; }

.mobile-nav__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.mobile-nav__close:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.mobile-nav__link:hover, .mobile-nav__link:focus {
  background: rgba(255,255,255,.07);
  color: var(--white);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.09);
}

.mobile-nav__cta {
  width: 100%;
  justify-content: center;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet e inferiores — hamburger activo, nav desktop oculto, overlay visible.
   Se activa por debajo de 1024 px para evitar compresión del header cuando el
   CTA "Agenda una demostración" + nav conviven en el mismo rail. */
@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  /* El nav original queda oculto; el overlay de mobile lo reemplaza */
  .nav { display: none; }
}

/* Mobile — hero acciones verticales, layout de producto centrado */
@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .product-title { text-align: center; }
  .product-lead  { max-width: none; }
}

/* Tablet — hero en dos columnas a partir de 960 px */
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .product-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop — imagen con mayor protagonismo (~57 % del ancho) */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 0.76fr 1fr; /* ≈ 43% texto / 57% imagen */
    gap: 4rem;
  }
}

/* Large screens — wider container padding */
@media (min-width: 1280px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── Lead Forms ──────────────────────────────────────────────── */
.lead-form-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.lead-form-wrap--sm {
  max-width: 520px;
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-required {
  color: #DC2626;
  margin-left: 2px;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lead-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group--consent {
  margin-top: 0.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 400 !important;
}

.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-error {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 0.8125rem;
  margin-bottom: 0.875rem;
}

.form-success {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.form-privacy {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--text-4);
  text-align: center;
  line-height: 1.5;
}

/* ── Billing toggle ─────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin: 0 auto 2.5rem;
  display: flex;
  width: fit-content;
}

.billing-toggle__btn {
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.billing-toggle__btn--active {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.billing-toggle__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #DCFCE7;
  color: #16A34A;
  padding: 2px 7px;
  border-radius: 100px;
}

/* ── Plans grid ─────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;          /* mobile: 1 columna */
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 600px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); } /* tablet: 2 columnas */
}

@media (min-width: 1200px) {
  .plans-grid { grid-template-columns: repeat(4, 1fr); } /* desktop ancho: 4 columnas */
}

/* ── Plan card ──────────────────────────────────────────────── */
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.plan-card:hover { box-shadow: var(--shadow-md); }

.plan-card--recommended {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}

.plan-card--enterprise {
  background: var(--dark);
  border-color: var(--dark-2);
  color: #E2E8F0;
}

.plan-card--enterprise .plan-card__name { color: #F1F5F9; }
.plan-card--enterprise .plan-card__tagline { color: #94A3B8; }
.plan-card--enterprise .plan-card__usd { color: #64748B; }
.plan-card--enterprise .plan-card__features li { color: #CBD5E1; }
.plan-card--enterprise .plan-card__features svg { stroke: #60A5FA; }

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.plan-card__header { display: flex; flex-direction: column; gap: 0.375rem; }

.plan-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.plan-card__tagline { font-size: 0.8125rem; color: var(--text-3); }

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.plan-card__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.plan-card__amount--custom {
  font-size: 1.5rem;
  color: #F1F5F9;
}

.plan-card__period { font-size: 0.8125rem; color: var(--text-3); }

.plan-card__usd { font-size: 0.75rem; color: var(--text-4); }

.plan-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

/* Límites de capacidad (usuarios, proyectos, almacenamiento) */
.plan-card__limits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.plan-card--enterprise .plan-card__limits {
  border-bottom-color: rgba(255, 255, 255, .1);
}

.plan-card__limits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.plan-card__limits svg { stroke: var(--blue); flex-shrink: 0; }
.plan-card--enterprise .plan-card__limits svg { stroke: #60A5FA; }
.plan-card--enterprise .plan-card__limits li { color: #CBD5E1; }

/* Nota de periodo anual ("Total anual · ahorra 15%") */
.plan-card__period-note {
  font-size: 0.75rem;
  color: #16A34A;
  font-weight: 500;
  min-height: 1em; /* evita layout shift cuando cambia el toggle */
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.plan-card__features svg { stroke: var(--blue); flex-shrink: 0; }

/* ── Plans note ─────────────────────────────────────────────── */
.plans-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.plans-note svg { flex-shrink: 0; color: var(--text-3); margin-top: 2px; }
.plans-note strong { color: var(--text); }

/* Nota de referencia USD bajo los planes */
.plans-usd-note {
  font-size: 0.8125rem;
  color: var(--text-3);  /* #64748B sobre blanco: ~4.75:1 — pasa WCAG AA */
  text-align: center;
  margin-top: 0.75rem;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__question {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 1rem;
  min-height: 44px; /* área táctil mínima */
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.faq-item__answer a { color: var(--blue); text-decoration: underline; }

/* ── Contact section ────────────────────────────────────────── */
.contact-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); }

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.contact-content { display: flex; flex-direction: column; gap: 0.5rem; }

.contact-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
}

.contact-lead { font-size: 0.9375rem; color: #94A3B8; }

.contact-email {
  font-size: 0.875rem;
  color: #60A5FA;
  font-weight: 500;
}

/* ── CTA actions ────────────────────────────────────────────── */
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
}
.btn--outline-white:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}

/* ── Footer link-btn ────────────────────────────────────────── */
.footer__link--btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* ── Modal overlay ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.modal__close {
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--bg-2); color: var(--text); }

.modal__form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

@media (max-width: 520px) {
  .modal-grid { grid-template-columns: 1fr; }
}

.form-group--full { grid-column: 1 / -1; }

.modal__form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.3rem;
}

.modal__form input[type="text"],
.modal__form input[type="email"],
.modal__form input[type="tel"],
.modal__form select,
.modal__form textarea {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.modal__form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.modal__form input:focus,
.modal__form select:focus,
.modal__form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.modal__form textarea { resize: vertical; min-height: 80px; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 400 !important;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 2px; accent-color: var(--blue); cursor: pointer;
}

.form-required { color: #DC2626; margin-left: 2px; }

.form-error {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #DC2626; font-size: 0.8125rem;
}

.form-success {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  background: #F0FDF4; border: 1px solid #BBF7D0;
  color: #16A34A; font-size: 0.875rem; font-weight: 500;
}

.btn--full { width: 100%; justify-content: center; }

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-4);
  text-align: center;
  line-height: 1.5;
}

/* ── Product frame (browser chrome reutilizable) ─────────────── */
.product-frame {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .12),
    0 60px 120px rgba(0, 0, 0, .5),
    0 24px 48px rgba(0, 0, 0, .28);
  width: 100%;
}

.product-frame__bar {
  background: #1E293B;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.product-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-frame__dot--red    { background: #FF5F57; }
.product-frame__dot--yellow { background: #FEBC2E; }
.product-frame__dot--green  { background: #28C840; }

.product-frame__bar-label {
  margin-left: auto;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, .32);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Variante hero: llena todo el ancho de su columna */
.hero__product-frame {
  max-width: none;
  margin: 0;
}

/* ── Hero note (texto de apoyo bajo CTAs) ────────────────────── */
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #94A3B8;  /* mejorado: ratio ~8:1 sobre fondo oscuro del hero */
  margin-top: 1rem;
}
.hero__note svg { flex-shrink: 0; stroke: #22D3EE; }

/* ── Product showcase section ────────────────────────────────── */
.product-showcase {
  background: var(--dark);
  background-image: radial-gradient(
    ellipse 70% 40% at 50% 100%,
    rgba(37, 99, 235, .12) 0%,
    transparent 70%
  );
}

.product-showcase .section__title { color: var(--white); }

.product-showcase .section__subtitle { color: #94A3B8; }

.showcase-tabs {
  display: flex;
  flex-wrap: nowrap;        /* línea única — scroll horizontal si no caben */
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;    /* Firefox: ocultar barra de scroll */
}

.showcase-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .6); /* mejorado: ~7:1 sobre fondo oscuro */
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  white-space: nowrap;      /* evitar que el texto de la pestaña se parta */
  min-height: 44px;         /* área táctil mínima */
  flex-shrink: 0;           /* no comprimir pestañas en mobile */
}

.showcase-tab:hover {
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .04);
}

.showcase-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.showcase-tab--active {
  color: var(--white);
  border-bottom-color: var(--blue);
}

.showcase-tab svg { opacity: 0.7; }
.showcase-tab--active svg { opacity: 1; }

.showcase-desc {
  font-size: 0.9375rem;
  color: #94A3B8;
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
  min-height: 3rem;
  transition: opacity 0.2s ease;
}

.showcase-frame {
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-frame img {
  transition: opacity 0.18s ease;
}

/* ── Accesibilidad: skip link ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Utilidad: visually hidden (screen readers) ─────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Botón flotante de WhatsApp ──────────────────────────── */
/* z-index por debajo de .header y .modal-overlay (200) y de
   .mobile-nav (9999) para quedar cubierto cuando estén abiertos */
.whatsapp-float {
  position: fixed;
  right: 24px;
  /* --consent-banner-offset la actualiza script.js (0px si el banner de
     cookies no está visible) para que el botón no quede tapado por él */
  bottom: calc(24px + var(--consent-banner-offset, 0px));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  min-width: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #25D366;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, bottom 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.whatsapp-float__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.whatsapp-float__text {
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: calc(16px + var(--consent-banner-offset, 0px));
    width: 52px;
    height: 52px;
    min-height: 52px;
    min-width: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float__icon svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float__text {
    display: none;
  }
}

/* ── Banner de consentimiento de cookies ─────────────────────── */
/* z-index por encima de .header/.modal-overlay (200), .whatsapp-float (150)
   y .mobile-nav (9999): el banner y el panel deben quedar siempre visibles
   y, al ser una barra inferior de ancho completo, cubren de forma natural
   el botón flotante de WhatsApp mientras están abiertos. */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--dark);
  border-top: 1px solid var(--dark-2);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
}

.consent-banner[hidden] { display: none; }

.consent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.consent-banner__text {
  flex: 1 1 420px;
  font-size: 0.8125rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0;
}

.consent-banner__text a {
  color: var(--cyan);
  text-decoration: underline;
}

.consent-banner__actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.consent-banner .btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
}
.consent-banner .btn--outline:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 640px) {
  .consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-banner__actions {
    flex-direction: column;
  }
  .consent-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Panel de preferencias de cookies ────────────────────────── */
.consent-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(3px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.consent-panel-overlay[hidden] { display: none; }

.consent-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.consent-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.consent-panel__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.consent-panel__body {
  padding: 1.5rem;
}

.consent-panel__body > p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.consent-option {
  padding: 0.875rem 0;
  border-top: 1px solid var(--border);
}
.consent-option:first-of-type { border-top: none; }

.consent-option__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.375rem;
}

.consent-option__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.consent-option__desc {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin: 0;
}

.consent-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}

.consent-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.consent-toggle input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.7;
}

.consent-panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .consent-panel__footer {
    flex-direction: column;
  }
  .consent-panel__footer .btn {
    width: 100%;
    justify-content: center;
  }
}
