/* ===================================================================
   Borneo Solutions — styles.css
   Identidad Visual: Liquid Glass — coherente con el logotipo
   Fondo: #F5F5F7 · Acento: azul marino #2355A0 · Efecto cristal
   Version: 20260527
   =================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Fondo — igual que el fondo del logo */
  --bg:           #F5F5F7;
  --bg-2:         #EAEAEF;
  --bg-dark:      #0D1B3E;   /* azul marino profundo — reemplaza negro */

  /* Texto */
  --ink:          #111827;
  --ink-soft:     #2D3748;
  --ink-muted:    #6B7280;

  /* Acento azul marino del logo */
  --accent:       #2355A0;
  --accent-dark:  #1A3F7A;
  --accent-light: #4A7EC7;
  --accent-pale:  rgba(35, 85, 160, 0.10);

  /* Líneas */
  --line:         rgba(0, 30, 100, 0.08);
  --line-strong:  rgba(0, 30, 100, 0.13);

  /* Glass tokens — efecto cristal */
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-bg-2:   rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-shadow: 0 4px 24px rgba(0, 30, 100, 0.07),
                  inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-blur:   blur(20px);

  /* Fuentes */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --nav-h:      72px;
  --section-v:  5rem;
  --max-w:      1160px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── BODY ──────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

em { font-style: italic; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ─── CONTAINER ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}

/* ─── GLASS MIXIN (clase utilitaria reutilizable) ────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ─── GRADIENT TEXT ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 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.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;   /* píldora, coherente con logo redondeado */
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.22s var(--ease-out),
              color 0.22s var(--ease-out),
              transform 0.18s var(--ease-out),
              box-shadow 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primario — cristal azul marino */
.btn--primary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 20, 60, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.btn--primary:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(0, 20, 60, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-pale);
}

/* Light (sobre fondos oscuros) */
.btn--light {
  background: rgba(255, 255, 255, 0.15);
  color: #F0F4FF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18),
              inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Sm */
.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

/* ─── SECTION COMMON ─────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light {
  color: rgba(160, 190, 255, 0.8);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  padding-bottom: 0.2em; /* evita que descendentes (j, g, p…) queden recortados por background-clip */
  /* Gradient sutil en títulos de sección */
  background: linear-gradient(140deg, var(--ink) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  margin-bottom: 3.5rem;
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ─── BADGE ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.60);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 20, 60, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.90);
  margin-bottom: 1.75rem;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(0, 30, 100, 0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 80px;
  width: 80px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 14px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--accent-dark); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  display: none;
  margin-left: 1.5rem;
  /* Idéntico a .nav__link pero en azul */
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--accent);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav__cta::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__cta:hover { color: var(--accent-dark); transform: none; }
.nav__cta:hover::after { width: 100%; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
@media (min-width: 900px) { .nav__burger { display: none; } }

.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  gap: 0.25rem;
}
.nav__mobile.is-open { display: flex; }

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav__mobile-cta {
  /* Idéntico a .nav__mobile-link pero en azul */
  margin-top: 0;
  width: auto;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  background: none;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  padding-block: 3rem 2.5rem;
  display: flex;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding-block: 5rem 4rem;
    min-height: calc(100svh - var(--nav-h));
  }
}
@media (min-width: 1024px) { .hero { padding-block: 6rem 5rem; } }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  /* Títulos en gradiente azul marino */
  background: linear-gradient(150deg, var(--ink) 30%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* La parte em del hero — gradiente más pronunciado */
.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero__link {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.hero__link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.hero__trust {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  opacity: 0.75;
}

/* ── Review mockup — glassmorphism ── */
.hero__mockup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  padding: 1.25rem 1.375rem;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-card__avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(35,85,160,0.15), rgba(74,126,199,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-dark);
  flex-shrink: 0;
  border: 1px solid rgba(35,85,160,0.15);
}

.review-card__name {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--ink);
}

.review-card__stars {
  color: #F59E0B;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-top: 1px;
}

.review-card__date {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-left: auto;
}

.review-card__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Reply card — cristal más azulado */
.reply-card {
  background: rgba(35, 85, 160, 0.07);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(35, 85, 160, 0.18);
  box-shadow: 0 4px 20px rgba(35,85,160,0.06),
              inset 0 1px 0 rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 1.125rem 1.375rem;
  margin-left: 1.25rem;
  position: relative;
}
.reply-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1.25rem;
  width: 1px;
  height: calc(100% + 1px);
  background: linear-gradient(to bottom, transparent, rgba(35,85,160,0.2), transparent);
}

.reply-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.reply-card__dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
}

.reply-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.reply-card__tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  background: #1a2d5a;
  color: #fff;
  border-radius: 100px;
  border: 1px solid rgba(74, 126, 199, 0.4);
}

.reply-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.reply-card__meta { margin-top: 0.625rem; }

.reply-card__time {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR — azul marino profundo
   ═══════════════════════════════════════════════════════════════════ */
.stats {
  background: var(--bg-dark);
  padding-block: 3rem;
  position: relative;
  overflow: hidden;
}

/* Reflejo sutil tipo "cristal" en la stats bar */
.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.12) 70%,
    transparent 100%);
}

.stats__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .stats__inner {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    text-align: left;
  }
}

.stats__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  max-width: 220px;
}
@media (min-width: 640px) {
  .stats__item { padding-inline: 2.5rem; }
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats__label {
  font-size: 0.8125rem;
  color: rgba(160, 190, 255, 0.55);
  max-width: 18ch;
  line-height: 1.4;
  text-align: center;
}
@media (min-width: 640px) {
  .stats__label { text-align: left; }
}

.stats__divider { display: none; }
@media (min-width: 640px) {
  .stats__divider {
    display: block;
    width: 1px; height: 3rem;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PROBLEMA
   ═══════════════════════════════════════════════════════════════════ */
.problem {
  padding-block: var(--section-v);
  border-bottom: 1px solid var(--line);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 900px) {
  .problem__inner { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.problem .section-title { margin-bottom: 1.5rem; }

.problem__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.problem__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* No-reply card visual — glassmorphism */
.problem__visual { position: relative; }

.problem__cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.problem__cards .no-reply-card:nth-child(1) { align-self: flex-start; width: 100%; }
.problem__cards .no-reply-card:nth-child(2) { align-self: flex-end; width: calc(100% - 2rem); margin-left: 2rem; }
.problem__cards .no-reply-card:nth-child(3) { align-self: flex-start; width: 100%; }

/* Modificadores azules — doble clase para superar especificidad del selector base */
.no-reply-card.no-reply-card--blue {
  background: rgba(35, 85, 160, 0.07);
  border-color: rgba(35, 85, 160, 0.18);
  box-shadow: 0 4px 20px rgba(35,85,160,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}

.no-reply-card__avatar.no-reply-card__avatar--blue {
  background: rgba(35, 85, 160, 0.1);
  border-color: rgba(35, 85, 160, 0.15);
  color: rgba(35, 85, 160, 0.8);
}

.no-reply-card {
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 14px;
  padding: 1.375rem;
}

.no-reply-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.no-reply-card__avatar {
  width: 36px; height: 36px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #C0392B;
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.no-reply-card__name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.no-reply-card__time {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.no-reply-card__stars {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #F59E0B;
  margin-top: 1px;
}

.no-reply-card__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.no-reply-card__silence {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
}

.no-reply-card__dot {
  width: 6px; height: 6px;
  background: var(--line-strong);
  border-radius: 50%;
  animation: dotPulse 1.6s ease-in-out infinite;
}
.no-reply-card__dot--2 { animation-delay: 0.2s; }
.no-reply-card__dot--3 { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.no-reply-card__silence-text {
  font-size: 0.75rem;
  color: rgba(0,30,100,0.3);
  margin-left: 0.25rem;
  font-style: italic;
}

.problem__visual-caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
}

/* ── Stat callout — dato 5% vs 89% ────────────────────────────── */
.problem__stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.25rem 1.625rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  max-width: 420px;
}

.problem__stat-item { flex: 1; }

.problem__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.375rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem__stat-label {
  font-size: 0.79rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.problem__stat-sep {
  width: 1px;
  height: 3rem;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CÓMO FUNCIONA
   ═══════════════════════════════════════════════════════════════════ */
.how {
  padding-block: var(--section-v);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Halos de fondo — igual que cta-final */
.how::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,85,160,0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Textos claros sobre fondo oscuro */
.how .section-eyebrow { color: rgba(160, 190, 255, 0.7); }
.how .section-title {
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how .how__step {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
}
.how .how__step:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.how .how__step-number { color: rgba(160, 190, 255, 0.6); opacity: 1; }

.how .how__step-title {
  background: linear-gradient(135deg, #e8eeff 0%, rgba(120,170,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how .how__step-text { color: rgba(200, 215, 255, 0.7); }

.how .how__connector::before { color: rgba(160, 190, 255, 0.25); }

.how .how__note {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(200, 215, 255, 0.65);
}
.how .how__note svg { color: rgba(160, 190, 255, 0.5); }

.how__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .how__steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
  }
}

/* Pasos — glassmorphism */
.how__step {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .how__step:hover {
    box-shadow: 0 12px 36px rgba(35, 85, 160, 0.12),
                inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-2px);
  }
}

.how__step-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.how__step-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
}

.how__step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how__step-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.how__connector { display: none; }
@media (min-width: 768px) {
  .how__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
    padding-top: 3.5rem;
  }
  .how__connector::before {
    content: '→';
    font-size: 1.25rem;
    color: rgba(35, 85, 160, 0.3);
  }
}

.how__note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.375rem;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 56ch;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(0, 20, 60, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
.how__note svg {
  flex-shrink: 0;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════════
   SEO CALLOUT — azul marino profundo
   ═══════════════════════════════════════════════════════════════════ */
.seo-callout {
  background: var(--bg-dark);
  padding-block: 4.5rem;
  position: relative;
  overflow: hidden;
}

/* Halo de brillo tipo cristal */
.seo-callout::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center,
    rgba(74, 126, 199, 0.12) 0%,
    transparent 65%);
  pointer-events: none;
}

.seo-callout__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .seo-callout__inner { grid-template-columns: 1.2fr 0.8fr; gap: 6rem; }
}

.seo-callout__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-callout__title em {
  background: linear-gradient(135deg, rgba(160,190,255,0.95), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.seo-callout__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(160, 190, 255, 0.6);
  max-width: 50ch;
}

.seo-callout__stat {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.seo-callout__stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-callout__stat-label {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(160, 190, 255, 0.5);
  max-width: 22ch;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   BENEFICIOS
   ═══════════════════════════════════════════════════════════════════ */
.benefits {
  padding-block: var(--section-v);
  border-bottom: 1px solid var(--line);
}

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

/* Tarjetas — glassmorphism */
.benefit-card {
  padding: 2rem 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .benefit-card:hover {
    box-shadow: 0 12px 36px rgba(35, 85, 160, 0.12),
                inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-2px);
  }
}

.benefit-card__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 85, 160, 0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
  border: 1px solid rgba(35,85,160,0.15);
}

.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   PRECIOS
   ═══════════════════════════════════════════════════════════════════ */
.pricing {
  padding-block: var(--section-v);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr 1fr; }
}
.pricing__grid--single {
  grid-template-columns: 1fr !important;
  max-width: 480px;
}

/* Plan base — glassmorphism */
.pricing-card {
  padding: 2.25rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  position: relative;
  transition: box-shadow 0.3s var(--ease-out);
}
@media (hover: hover) {
  .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(35, 85, 160, 0.1),
                inset 0 1px 0 rgba(255,255,255,0.9);
  }
}

/* Plan destacado — cristal azul profundo */
.pricing-card--featured {
  background: var(--bg-dark);
  border: 1px solid rgba(74, 126, 199, 0.25);
  box-shadow: 0 8px 40px rgba(13, 27, 62, 0.35),
              inset 0 1px 0 rgba(255,255,255,0.06);
  color: #F0F4FF;
  position: relative;
  overflow: visible;
}

/* Brillo interior en el plan destacado */
.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 60%,
    transparent);
  pointer-events: none;
}

.pricing-card__badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 1.125rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(35, 85, 160, 0.3);
}

.pricing-card__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.pricing-card--featured .pricing-card__header {
  border-bottom-color: rgba(255,255,255,0.08);
}

.pricing-card__plan {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card--featured .pricing-card__plan {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__tagline {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.pricing-card--featured .pricing-card__tagline {
  color: rgba(160, 190, 255, 0.5);
}

.pricing-card__price { margin-bottom: 1.75rem; }

.pricing-card__setup {
  display: block;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.pricing-card--featured .pricing-card__setup {
  color: rgba(255, 255, 255, 0.75);
}

.pricing-card__setup-note { font-size: 0.75rem; }

.pricing-card__setup-old {
  text-decoration: line-through;
  opacity: 0.45;
  font-size: 0.9em;
  margin-right: 0.25rem;
}

.pricing-card__monthly {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-card--featured .pricing-card__amount {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--ink-muted);
}
.pricing-card--featured .pricing-card__period {
  color: rgba(160, 190, 255, 0.45);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.pricing-card--featured .pricing-card__features {
  border-bottom-color: rgba(255,255,255,0.08);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pricing-card--featured .pricing-card__features li {
  color: rgba(210, 225, 255, 0.75);
}

.pricing-card__features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-light);
}
.pricing-card--featured .pricing-card__features svg {
  color: rgba(160, 190, 255, 0.8);
}

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

.pricing-card--featured .btn--primary {
  background: rgba(255, 255, 255, 0.1);
  color: #E8F0FF;
  border-color: rgba(255,255,255,0.2);
}
.pricing-card--featured .btn--primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pricing__note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.pricing__note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(35,85,160,0.2);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.pricing__note a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ─── PRECIOS — fondo oscuro, tarjeta cristal blanco ────────────── */

/* Halo de fondo */
.pricing::before {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,85,160,0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Texto de sección sobre fondo oscuro */
.pricing .section-eyebrow { color: rgba(160, 190, 255, 0.7); }
.pricing .section-title {
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing .pricing__note { color: rgba(160, 190, 255, 0.4); }

/* Tarjeta destacada — cristal blanco sobre fondo oscuro (inversión) */
.pricing .pricing-card--featured {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--ink);
}
.pricing .pricing-card--featured::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(35, 85, 160, 0.06) 40%,
    rgba(35, 85, 160, 0.10) 50%,
    rgba(35, 85, 160, 0.06) 60%,
    transparent);
}
.pricing .pricing-card--featured .pricing-card__setup { color: var(--accent); }
.pricing .pricing-card--featured .pricing-card__amount {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing .pricing-card--featured .pricing-card__period { color: var(--ink-muted); }
.pricing .pricing-card--featured .pricing-card__features { border-bottom-color: var(--line); }
.pricing .pricing-card--featured .pricing-card__features li { color: var(--ink-soft); }
.pricing .pricing-card--featured .pricing-card__features svg { color: var(--accent-light); }
/* Badge "Primer mes sin coste" dentro de la tarjeta */
.pricing-card__guarantee {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.pricing .pricing-card--featured .btn--primary {
  background: rgba(35, 85, 160, 0.08);
  color: var(--accent-dark);
  border-color: rgba(35, 85, 160, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 12px rgba(35, 85, 160, 0.08);
}
.pricing .pricing-card--featured .btn--primary:hover {
  background: rgba(35, 85, 160, 0.15);
  border-color: rgba(35, 85, 160, 0.35);
  box-shadow: 0 6px 20px rgba(35, 85, 160, 0.14);
}

/* ═══════════════════════════════════════════════════════════════════
   CTA FINAL — azul marino profundo
   ═══════════════════════════════════════════════════════════════════ */
.cta-final {
  background: var(--bg-dark);
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Halos de cristal en el fondo */
.cta-final::before,
.cta-final::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-final::before {
  top: -30%; left: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(35,85,160,0.18) 0%, transparent 65%);
}
.cta-final::after {
  bottom: -30%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,126,199,0.12) 0%, transparent 65%);
}

.cta-final__inner {
  max-width: 680px;
  position: relative;
}

.cta-final__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(160,190,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-final__title em {
  background: linear-gradient(135deg, rgba(160,190,255,0.95), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.cta-final__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(160, 190, 255, 0.55);
  margin-bottom: 2.5rem;
  max-width: 48ch;
  margin-inline: auto;
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-final__email { font-size: 0.9rem; color: rgba(160, 190, 255, 0.4); }
.cta-final__email a {
  color: rgba(160, 190, 255, 0.65);
  border-bottom: 1px solid rgba(160, 190, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-final__email a:hover {
  color: rgba(200, 220, 255, 0.9);
  border-bottom-color: rgba(160, 190, 255, 0.4);
}

/* ─── FAQ ───────────────────────────────────────────────────────── */
.faq {
  padding-block: 4.5rem;
}

.faq__list {
  max-width: 700px;
  margin-inline: auto;
  margin-top: 3rem;
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: color 0.2s;
}

.faq__question:hover { color: var(--accent); }

.faq__icon {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ─── CONTACT FORM ──────────────────────────────────────────────── */
.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(200, 220, 255, 0.7);
  letter-spacing: 0.02em;
}

.contact-form__optional {
  font-weight: 400;
  opacity: 0.6;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact-form__field select option {
  background: var(--bg-dark);
  color: #fff;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: rgba(160, 190, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-form__submit {
  width: 100%;
  max-width: 320px;
}

.contact-form__privacy {
  font-size: 0.8rem;
  color: rgba(160, 190, 255, 0.4);
}

.contact-form__success {
  text-align: center;
  color: #86efac;
  font-size: 0.9375rem;
  padding: 0.75rem;
}

.contact-form__error {
  text-align: center;
  color: rgba(255, 160, 160, 0.85);
  font-size: 0.875rem;
}

.contact-form__error a {
  color: rgba(255, 180, 180, 0.9);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; align-items: center; }
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 28ch;
}

.footer__contact {
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) { .footer__contact { justify-content: flex-start; } }

.footer__email {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer__email:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
@media (min-width: 768px) { .footer__legal { align-items: flex-end; } }

.footer__copy {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (min-width: 768px) { .footer__links { justify-content: flex-end; } }

.footer__legal-link {
  font-size: 0.75rem;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer__legal-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  :root { --section-v: 3.5rem; }

  .hero {
    padding-block: 3.5rem 3rem;
    min-height: auto;
    align-items: flex-start;
  }
  .hero__title { font-size: clamp(2.75rem, 11vw, 3.75rem); }
  .how__steps { gap: 1rem; }
  .how__step { padding: 1.5rem 1.25rem; }
  .seo-callout { padding-block: 3rem; }
  .cta-final { padding-block: 3.5rem; }
  .pricing-card { padding: 1.75rem 1.5rem; }
}

/* ─── FOCUS VISIBLE ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SELECTION ──────────────────────────────────────────────────── */
::selection {
  background: rgba(35, 85, 160, 0.15);
  color: var(--ink);
}

/* ─── DEMO EN VIVO ───────────────────────────────────────────────── */
.demo-section {
  padding-block: 6rem;
  background: var(--bg);
}

.demo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  background: rgba(35, 85, 160, 0.07);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(35, 85, 160, 0.18);
  box-shadow: 0 4px 20px rgba(35,85,160,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 860px;
  margin-inline: auto;
}

/* Formulario */
.demo-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.demo-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.demo-input,
.demo-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.demo-input::placeholder,
.demo-textarea::placeholder {
  color: var(--ink-muted);
}

.demo-input:focus,
.demo-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 85, 160, 0.12);
}

/* Estrellas */
.demo-stars {
  display: flex;
  gap: 0.25rem;
}

.demo-star {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--line-strong);
  transition: color 0.15s, transform 0.1s;
  padding: 0;
}

.demo-star:hover,
.demo-star.hovered,
.demo-star.selected {
  color: #F5A623;
}

.demo-star:hover {
  transform: scale(1.15);
}

/* Botón enviar */
.demo-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.demo-submit:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.demo-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.demo-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.demo-submit.loading .demo-spinner {
  display: block;
}

.demo-submit.loading .demo-submit-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error */
.demo-error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.2em;
  margin: 0;
}

/* Columna respuesta */
.demo-response-col {
  display: flex;
  flex-direction: column;
  padding-top: 1.4rem;
}

.demo-response-box {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.demo-response-box.has-response {
  background: rgba(35, 85, 160, 0.07);
  border-style: solid;
  border-color: rgba(35, 85, 160, 0.18);
  box-shadow: 0 4px 20px rgba(35, 85, 160, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  align-items: flex-start;
  min-height: unset;
}

.demo-response-placeholder {
  text-align: center;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.demo-response-placeholder svg {
  opacity: 0.35;
}

.demo-response-placeholder p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.demo-response-content {
  width: 100%;
}

.demo-response-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.demo-response-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-response-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.demo-response-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(35, 85, 160, 0.12);
  border: 1px solid rgba(35, 85, 160, 0.2);
  border-radius: 100px;
  padding: 0.2rem 0.5rem;
}

.demo-response-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  white-space: pre-wrap;
  text-align: justify;
}

/* ─── THINKING DOTS ─────────────────────────────────────────────── */
.demo-thinking {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
}
.demo-thinking:not([hidden]) {
  display: flex;
}

.demo-thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: thinking-bounce 1.2s ease-in-out infinite;
}
.demo-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.demo-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40%           { transform: scale(1.15); opacity: 1; }
}

/* ─── TYPEWRITER CURSOR ─────────────────────────────────────────── */
.demo-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 1px;
  animation: cursor-blink 0.8s step-end infinite;
}
.demo-cursor.is-done {
  animation: none;
  opacity: 0;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── GLOW on response ──────────────────────────────────────────── */
.demo-response-box.has-response {
  animation: response-glow 0.6s ease-out forwards;
}

@keyframes response-glow {
  0%   { box-shadow: 0 0 0 0 rgba(35, 85, 160, 0); }
  40%  { box-shadow: 0 0 0 8px rgba(35, 85, 160, 0.12); }
  100% { box-shadow: 0 4px 20px rgba(35, 85, 160, 0.06), inset 0 1px 0 rgba(255,255,255,0.7); }
}

/* ─── DOT PULSE when active ─────────────────────────────────────── */
.demo-response-box.has-response .demo-response-dot {
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* Responsive demo */
@media (max-width: 700px) {
  .demo-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }

  .demo-response-box {
    min-height: 180px;
  }
}
