/* ============================================================
   CONTAVLE — Home CSS
   ============================================================ */

/* ====== Top banner ====== */
/* ============================================================
   TOP BANNER — "1 mes gratis" promo bar (toda la web)
   ============================================================ */
.top-banner {
  display: block;
  background: var(--ink);
  color: white;
  padding: 10px 0;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 99;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s var(--ease);
}
/* Sliding lime fill from left on hover */
.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(195,231,107,0) 0%,
    rgba(195,231,107,0.08) 35%,
    rgba(195,231,107,0.15) 50%,
    rgba(195,231,107,0.08) 65%,
    rgba(195,231,107,0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.top-banner:hover::before { transform: translateX(100%); }
/* Glow lime sutil en el borde inferior */
.top-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(195,231,107,0.30) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-banner-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(195,231,107,0.25);
  animation: pulse-soft 2s ease-in-out infinite;
  flex-shrink: 0;
}
.top-banner-text {
  letter-spacing: -0.005em;
}
.top-banner-text strong {
  color: var(--lime);
  font-weight: 700;
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}
.top-banner:hover .top-banner-text strong {
  background-size: 100% 1.5px;
}
.top-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: gap 0.25s var(--ease);
}
.top-banner:hover .top-banner-link {
  gap: 9px;
}
.top-banner-rocket {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}
.top-banner:hover .top-banner-rocket {
  transform: translate(2px, -3px) rotate(8deg);
}

/* Push nav down for banner — banner ahora es sticky, mantener nav debajo */
.nav { top: 40px; }
.nav.scrolled { top: 40px; }
@media (max-width: 700px) {
  .top-banner { font-size: 11.5px; padding: 8px 0; }
  .top-banner-inner { flex-wrap: nowrap; gap: 8px; }
  .top-banner-text {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
  }
  .nav { top: 34px; }
  .nav.scrolled { top: 34px; }
}
@media (max-width: 480px) {
  .top-banner-link { display: none; }
  .top-banner-rocket { font-size: 12px; }
}

/* ====== PAGE HERO (shared by inner pages) ====== */
.page-hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .pill { margin: 0 auto 24px; }
.page-hero h1 {
  font-size: clamp(40px, 5.8vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.page-hero .lead {
  margin: 0 auto 32px;
  max-width: 660px;
}
@media (max-width: 700px) {
  .page-hero { padding: 130px 0 40px; }
}

/* ====== HERO ====== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Sophisticated layered background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,17,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}
/* Ambient lime glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(195,231,107,0.18) 0%, rgba(195,231,107,0.06) 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15,17,42,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 620px; }
.hero-content .pill { margin-bottom: 28px; animation: pillFloat 3s ease-in-out infinite; }
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.hero h1 {
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.98;
  font-weight: 700;
}
.hero .lead {
  margin-bottom: 36px;
  max-width: 540px;
  font-size: clamp(17px, 1.4vw, 20px);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-trust-item span {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 2px;
}
.hero-trust-divider {
  width: 1px;
  height: 28px;
  background: var(--mist);
}

/* === HERO MOCKUP (real product image) === */
.hero-mockup {
  position: relative;
  perspective: 1500px;
}
/* Ambient glow ring behind the mockup */
.hero-mockup-glow {
  position: absolute;
  inset: -60px -40px -40px -40px;
  background:
    radial-gradient(circle at 30% 30%, rgba(195,231,107,0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(15,17,42,0.12), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-mockup-frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff, #f5f6fa);
  border: 1px solid rgba(15,17,42,0.08);
  box-shadow:
    0 50px 130px rgba(15,17,42,0.18),
    0 16px 48px rgba(15,17,42,0.10),
    0 1px 0 rgba(255,255,255,0.8) inset;
  transition: transform 0.6s var(--ease);
}
.hero-mockup:hover .hero-mockup-frame {
  transform: translateY(-4px);
  box-shadow:
    0 60px 140px rgba(15,17,42,0.22),
    0 20px 56px rgba(15,17,42,0.12);
}
.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating cards around the mockup */
.hero-float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid rgba(15,17,42,0.08);
  border-radius: 14px;
  padding: 12px 18px 12px 12px;
  box-shadow:
    0 24px 60px rgba(15,17,42,0.14),
    0 8px 24px rgba(15,17,42,0.06);
  animation: floatY 6s ease-in-out infinite;
}
.hero-float-card-1 {
  bottom: 6%;
  left: -8%;
  animation-delay: -2s;
}
.hero-float-card-2 {
  top: 8%;
  right: -10%;
  animation-delay: -4s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hfc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hfc-icon-lime { background: var(--lime); color: var(--ink); }
.hfc-icon-navy { background: var(--ink); color: var(--lime); }
.hfc-text { display: flex; flex-direction: column; line-height: 1.2; }
.hfc-text strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hfc-text span {
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 3px;
}

/* Sparkle accents */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(195,231,107,0.25), 0 0 20px rgba(195,231,107,0.6);
  z-index: 2;
  animation: sparkleAnim 3s ease-in-out infinite;
}
.sparkle-1 { top: -10px; left: 30%; animation-delay: 0s; }
.sparkle-2 { bottom: 30%; right: -8px; animation-delay: -1s; }
.sparkle-3 { top: 60%; left: -10px; animation-delay: -2s; }
@keyframes sparkleAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 1080px) {
  .hero { padding: 130px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { max-width: 100%; }
  .hero-float-card-1 { left: 0; }
  .hero-float-card-2 { right: 0; }
  .hero-mockup-frame { transform: none; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(36px, 9.5vw, 56px); }
  .hero-float-card { display: none; }
  .sparkle { display: none; }
  .hero-trust { gap: 14px; }
  .hero-trust-divider { display: none; }
  .hero-trust-item strong { font-size: 16px; }
}

/* ====== TRUST BAR ====== */
.trust-bar {
  padding: 40px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--mist);
}
.trust-bar-label {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.trust-bar-label::before { display: none; }
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease);
}
.trust-item:hover {
  background: white;
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,17,42,0.08);
}
.trust-icon {
  color: var(--lime-dark);
  flex-shrink: 0;
}
.trust-item:hover .trust-icon {
  color: var(--ink);
}

/* ====== INTRO ====== */
.intro {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.intro-text .eyebrow { margin-bottom: 24px; }
.intro-text h2 { letter-spacing: -0.03em; }
.intro-body .lead { margin-bottom: 20px; }
.intro-body .btn-link { margin-top: 16px; display: inline-block; }
@media (max-width: 900px) {
  .intro-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ====== WIDGETS 01-04 ====== */
.widgets { background: var(--bg); padding: clamp(80px, 11vw, 160px) 0; position: relative; overflow: visible; }
.widgets::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(195,231,107,0.07), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.widgets-header {
  max-width: none;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}
.widgets-header-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
}
.widgets-header-left { display: flex; flex-direction: column; }
.widgets-header .eyebrow { display: inline-flex; margin-bottom: 20px; align-self: flex-start; }
.widgets-header .eyebrow::before { display: none; }
.widgets-header h2 {
  letter-spacing: -0.035em;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  margin: 0;
}
.widgets-header-right {
  padding-bottom: 8px;
}
.widgets-header-right .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 18px;
}
.widgets-header-right .btn-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--lime);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.widgets-header-right .btn-link:hover {
  color: var(--cobalt, #2663eb);
  border-color: currentColor;
}
@media (max-width: 900px) {
  .widgets-header-grid { grid-template-columns: 1fr; gap: 32px; }
}

.widget-block {
  display: grid;
  grid-template-columns: auto 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 56px;
  border-top: none;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid rgba(15,17,42,0.06);
  /* Profundidad real con sombras navy multi-capa */
  box-shadow:
    /* Highlight superior interno (luz suave) */
    0 1px 0 rgba(255,255,255,0.9) inset,
    /* Sombra cercana fina */
    0 1px 2px rgba(15,17,42,0.04),
    /* Sombra media */
    0 8px 24px rgba(15,17,42,0.06),
    /* Sombra grande de elevación */
    0 32px 64px rgba(15,17,42,0.10);
  position: sticky;
  top: 110px;
  margin-bottom: 28px;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
  will-change: transform;
}
/* Acento lateral navy puro — vertical, 3px */
.widget-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--ink);
  border-radius: 0 3px 3px 0;
  opacity: 0.85;
}
/* Capa de profundidad: degradado navy super sutil desde arriba (efecto "envolvente") */
.widget-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(15,17,42,0.04), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(15,17,42,0.025), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.widget-block:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(15,17,42,0.04),
    0 12px 32px rgba(15,17,42,0.08),
    0 44px 90px rgba(15,17,42,0.14);
}
.widget-block:last-of-type { margin-bottom: 0; }
.widgets-stack .widget-block:nth-child(1) { top: calc(110px + 0px); }
.widgets-stack .widget-block:nth-child(2) { top: calc(110px + 12px); }
.widgets-stack .widget-block:nth-child(3) { top: calc(110px + 24px); }
.widgets-stack .widget-block:nth-child(4) { top: calc(110px + 36px); }
.widget-block.is-stacked {
  transform: scale(0.98) translateY(-8px);
  opacity: 0.88;
}
.widget-block.is-stacked-2 {
  transform: scale(0.965) translateY(-16px);
  opacity: 0.75;
}
.widget-block.is-stacked-3 {
  transform: scale(0.95) translateY(-22px);
  opacity: 0.6;
}

.widget-reverse { grid-template-columns: auto 1.1fr 1fr; direction: rtl; }
.widget-reverse > * { direction: ltr; }
.widget-reverse .widget-num { direction: ltr; }
/* En filas reverse, acento del lado derecho */
.widget-block.widget-reverse::before {
  left: auto;
  right: 0;
  border-radius: 3px 0 0 3px;
}
.widget-block.widget-reverse::after {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(15,17,42,0.04), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(15,17,42,0.025), transparent 55%);
}

@media (max-width: 980px) {
  .widget-block {
    position: relative;
    top: auto !important;
    padding: 40px 28px;
    transform: none !important;
    opacity: 1 !important;
    /* Apilar contenido en 1 columna */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .widget-reverse {
    grid-template-columns: minmax(0, 1fr);
    direction: ltr;
  }
  /* Forzar que los hijos del grid no se desborden */
  .widget-block > * { min-width: 0; max-width: 100%; }
  .widget-block .widget-num { font-size: clamp(64px, 14vw, 96px); }
  .widget-block .widget-visual { max-width: 100%; }
  .widget-block .widget-visual .wv-card { overflow-x: auto; }
}
@media (max-width: 640px) {
  .widget-block {
    padding: 32px 20px;
    border-radius: 22px;
    gap: 20px;
  }
}

.widget-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 144px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.05em;
  line-height: 0.85;
  position: relative;
  transition: transform 0.5s var(--ease);
}
.widget-block:hover .widget-num { transform: translateY(-4px) scale(1.04); }
.widget-num::after {
  content: "";
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.22em;
  background: var(--lime);
  z-index: -1;
  opacity: 0.65;
}
.widget-text h3 {
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.widget-text .lead { margin-bottom: 20px; max-width: 460px; }
.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--graphite);
  line-height: 1.55;
}
.widget-list .check {
  width: 20px;
  height: 20px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Widget visuals */
.widget-visual {
  position: relative;
}
.wv-card {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.wv-card-dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* Widget 01 — flow */
.wv-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.wv-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: var(--lime-mist);
  color: var(--ink);
  border-radius: 999px;
}
.wv-status { font-size: 12px; color: var(--slate); }
.wv-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.wv-flow-step {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.wv-flow-icon { font-size: 28px; margin-bottom: 6px; }
.wv-flow-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.wv-flow-arrow {
  font-size: 18px;
  color: var(--lime-dark);
  font-weight: 600;
}
.wv-time {
  text-align: center;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Widget 02 — Verifactu */
.wv-vf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(195,231,107,0.15);
  color: var(--lime);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.wv-vf-pulse {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(195,231,107,0.3);
  animation: pulse-soft 1.5s ease-in-out infinite;
}
.wv-vf-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.wv-vf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13.5px;
}
.wv-vf-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.wv-vf-check.pending {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
}
.wv-vf-row span:not(.wv-vf-check):not(.wv-vf-status) { flex: 1; }
.wv-vf-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.wv-vf-status.ready { background: var(--lime); color: var(--ink); }
.wv-vf-status.pending { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.wv-vf-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Widget 03 — Portal */
.wv-portal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mist);
}
.wv-portal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.wv-portal-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.wv-portal-sub { font-size: 11.5px; color: var(--slate); }
.wv-portal-invoice {
  text-align: center;
  padding: 24px 0;
}
.wv-portal-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.wv-portal-label {
  font-size: 12px;
  color: var(--slate);
  margin: 4px 0 18px;
}
.wv-portal-pay {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.wv-portal-btn {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}
.wv-portal-btn-sec {
  padding: 10px 18px;
  background: var(--whisper);
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
}
.wv-portal-secure {
  text-align: center;
  font-size: 11px;
  color: var(--slate);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--mist);
}

/* Widget 04 — Dashboard */
.wv-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.wv-dashboard-header span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.wv-dashboard-tag {
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.wv-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 130px;
  margin-bottom: 24px;
  padding: 12px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--mist);
}
.wv-bar {
  width: 100%;
  height: var(--h);
  background: var(--mist);
  border-radius: 5px;
  transition: height 1s var(--ease);
}
.wv-bar-active {
  background: linear-gradient(to top, var(--lime-dark), var(--lime));
  position: relative;
}
.wv-bar-active::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink);
}
.wv-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
}
.wv-dashboard-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wv-dashboard-stats strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wv-dashboard-stats span {
  font-size: 11px;
  color: var(--slate);
}

@media (max-width: 980px) {
  .widget-block,
  .widget-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
    text-align: left;
  }
  .widget-num { font-size: 80px; }
}

/* ====== FEATURES GRID ====== */
.features-grid-section {
  background: var(--paper);
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.features-grid-section::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(195,231,107,0.08), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}
.features-header h2 {
  letter-spacing: -0.04em;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.0;
  font-weight: 700;
}
.features-header .eyebrow { margin-bottom: 24px; }
.features-header-right { padding-top: 16px; }
.features-header-right .lead { margin-bottom: 24px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 28px;
  padding: 40px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Dot grid pattern de fondo super sutil */
  background-image: radial-gradient(circle, rgba(15,17,42,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 10px 10px;
}
/* Glow lateral lime → cobalto en hover, fija a la izquierda */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(195,231,107,0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: -1;
}
/* Acento decorativo: gradiente cobalto-lime en esquina superior derecha al hover */
.feature-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37,99,235,0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37,99,235,0.20);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 24px 50px rgba(15,17,42,0.10), 0 40px 100px rgba(37,99,235,0.10);
  background-color: var(--bg);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-card-lg { grid-column: span 2; min-height: 300px; }
.feature-card-lg h4 { font-size: 28px; max-width: 90%; }
.feature-card-dark {
  background: var(--ink);
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  color: white;
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(15,17,42,0.12);
}
.feature-card-dark h4 { color: white; }
.feature-card-dark p { color: rgba(255,255,255,0.7); }
.feature-card-dark:hover {
  background-color: var(--ink-deep);
  border-color: rgba(195,231,107,0.20);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 24px 60px rgba(15,17,42,0.35), 0 40px 100px rgba(195,231,107,0.10);
}
.feature-card-dark::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(195,231,107,0.25), transparent 50%);
}
.feature-card-dark::after {
  background: radial-gradient(circle, rgba(195,231,107,0.25), transparent 65%);
}
.feature-card-lime {
  background: var(--lime);
  background-image: radial-gradient(circle, rgba(15,17,42,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 10px 10px;
  border-color: var(--lime);
  box-shadow: 0 8px 24px rgba(195,231,107,0.30);
}
.feature-card-lime:hover {
  background-color: var(--lime-bright);
  border-color: var(--ink);
  box-shadow: 0 16px 40px rgba(195,231,107,0.45);
}
.feature-card-lime::before { display: none; }
.feature-card-lime::after { display: none; }
.feature-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.feature-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
  position: relative;
  z-index: 1;
}
.feature-card-dark p, .feature-card-lime p { color: inherit; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--mist);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15,17,42,0.04);
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(195,231,107,0.40);
}
.feature-icon-light {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--lime);
}
.feature-card-dark:hover .feature-icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.feature-icon-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.feature-arrow {
  font-size: 22px;
  color: var(--ink);
  opacity: 0.4;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.feature-card:hover .feature-arrow {
  opacity: 1;
  transform: translate(6px, -6px);
}
.feature-card-dark .feature-arrow { color: white; }
.feature-card-lime .feature-arrow { color: var(--ink); }
.feature-card-lime p { color: var(--graphite); }

@media (max-width: 980px) {
  .features-header { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-lg { grid-column: span 1; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ====== COMPARE ====== */
.compare { background: var(--bg); padding: clamp(80px, 11vw, 160px) 0; position: relative; overflow: hidden; }
.compare::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(195,231,107,0.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.compare-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}
.compare-header .eyebrow { display: inline-flex; margin-bottom: 24px; }
.compare-header .eyebrow::before { display: none; }
.compare-header h2 {
  letter-spacing: -0.04em;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.0;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.compare-col {
  border-radius: 32px;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}
.compare-col-before {
  background: var(--whisper);
  border: 1px solid var(--mist);
}
.compare-col-after {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15,17,42,0.18);
}
.compare-col-after:hover { transform: translateY(-4px); box-shadow: 0 40px 100px rgba(15,17,42,0.24); }
.compare-col-after::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(195,231,107,0.22), transparent 60%);
  pointer-events: none;
}
.compare-col-after::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(195,231,107,0.10), transparent 60%);
  pointer-events: none;
}
.compare-col-header { margin-bottom: 32px; position: relative; z-index: 1; }
.compare-col-header h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.compare-tag-bad,
.compare-tag-good {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.compare-tag-bad {
  background: rgba(15,17,42,0.06);
  color: var(--slate);
}
.compare-tag-good {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(195,231,107,0.15);
}
.compare-col-after h3 { color: white; }
.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.5;
}
.compare-list-bad li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15,17,42,0.08);
  color: var(--slate);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}
.compare-list-bad li { color: var(--graphite); opacity: 0.85; }
.compare-list-good li {
  color: rgba(255,255,255,0.92);
}
.compare-list-good li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 11px;
}
.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--ink);
}
@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .compare-col { padding: 24px; }
}

/* ====== ASESORÍAS CTA ====== */

/* ====== STATS ====== */
.stats-section { background: var(--bg); padding: 80px 0; }
.stats-header { text-align: center; margin-bottom: 56px; }
.stats-header h2 { letter-spacing: -0.03em; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: 48px 0;
}
.stat-block {
  text-align: center;
  position: relative;
}
.stat-block:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 20%;
  width: 1px;
  height: 60%;
  background: var(--mist);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat-block::after { display: none; }
}

/* ====== TESTIMONIOS ====== */
.testimonials { background: var(--paper); border-top: 1px solid var(--mist); }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .eyebrow { display: inline-flex; margin-bottom: 20px; }
.testimonials-header .eyebrow::before { display: none; }
.testimonials-header h2 { letter-spacing: -0.03em; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-card-feat {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.testimonial-stars {
  color: var(--lime-dark);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card-feat .testimonial-stars { color: var(--lime); }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
  flex: 1;
}
.testimonial-card-feat blockquote { color: white; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--mist);
}
.testimonial-card-feat .testimonial-author { border-color: rgba(255,255,255,0.1); }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.testimonial-avatar-1 { background: var(--lime); color: var(--ink); }
.testimonial-avatar-2 { background: var(--ink); color: var(--lime); }
.testimonial-card-feat .testimonial-avatar-2 { background: var(--lime); color: var(--ink); }
.testimonial-avatar-3 { background: var(--cobalt); color: white; }
.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 12.5px;
  color: var(--slate);
}
.testimonial-card-feat .testimonial-author span { color: rgba(255,255,255,0.6); }
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ====== FAQ ====== */
.faq-section { background: var(--bg); }
.faq-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.faq-header-left { position: sticky; top: 100px; }
.faq-header-left h2 { letter-spacing: -0.03em; margin: 20px 0 16px; }
.link-underline {
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--mist);
}
.faq-item:first-child { border-top: 1px solid var(--mist); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--slate); }
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--whisper);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--lime);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }
.faq-a p {
  color: var(--graphite);
  line-height: 1.65;
  max-width: 90%;
}

/* ===== Details-based FAQ (precios, asesorias) ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
.faq-left .eyebrow { display: inline-flex; margin-bottom: 20px; }
.faq-left .eyebrow::before { display: none; }
.faq-left h2 { letter-spacing: -0.03em; margin-bottom: 24px; }
.faq-left p { color: var(--graphite); }
.faq-left a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

details.faq-item {
  border-bottom: 1px solid var(--mist);
  padding: 4px 0;
}
details.faq-item:first-of-type { border-top: 1px solid var(--mist); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--whisper);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
details.faq-item[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--lime);
}
details.faq-item p {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.65;
  padding: 0 0 22px;
  max-width: 90%;
}
@media (max-width: 900px) {
  .faq-header { grid-template-columns: 1fr; gap: 32px; }
  .faq-header-left { position: static; }
}

/* ====== CTA FINAL ====== */
/* =========================================================
   CTA MORPH — scroll-driven shape expansion
   The shape starts as a rounded pill (~60vw, fully rounded) and
   morphs to full-bleed (100vw, square corners) as you scroll past.
   ========================================================= */
.cta-morph {
  position: relative;
  /* Runway height: 1.6 viewport heights — gives smooth morph */
  height: 160vh;
  background: var(--bg);
  padding: 0;
  z-index: 1;
}
.cta-morph-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4vh 0;
}
.cta-morph-shape {
  position: relative;
  background: var(--ink);
  /* Driven by --p via JS (0 → 1) */
  width: clamp(380px, calc(56vw + (44vw * var(--p, 0))), 100vw);
  max-width: 100vw;
  height: clamp(440px, calc(64vh + (28vh * var(--p, 0))), 92vh);
  border-radius: calc(280px - 280px * var(--p, 0));
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: width 0.05s linear, height 0.05s linear, border-radius 0.05s linear;
  box-shadow:
    0 40px 100px rgba(15,17,42,0.18),
    0 0 0 1px rgba(15,17,42,0.04);
}
/* Silueta de la V de Contavle super sutil en el fondo del CTA */
.cta-morph-shape::before {
  content: "";
  position: absolute;
  right: 4%;
  top: 50%;
  width: 720px;
  height: 660px;
  transform: translateY(-50%);
  background-image: url("../img/v-pattern.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.cta-morph-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-morph-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
}
.cta-morph-title {
  color: white;
  font-size: clamp(32px, calc(3.5vw + 2vw * var(--p, 0)), 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 36px;
  transition: font-size 0.05s linear;
}
.txt-lime-bold {
  color: var(--lime);
  font-weight: 700;
}
.cta-morph-lead {
  color: rgba(255,255,255,0.7);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: calc(0.3 + 0.7 * var(--p, 0));
  transition: opacity 0.05s linear;
}

/* === BTN-RING — lime ring style matching the captures === */
.btn-ring {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 32px 12px 12px;
  background: transparent;
  border: 2px solid var(--lime);
  border-radius: 999px;
  color: white;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.7s var(--ease-out), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.btn-ring::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--lime);
  transform: translateY(-50%) scale(1);
  transition: transform 1s var(--ease-fill);
  z-index: -1;
}
.btn-ring:hover::before {
  transform: translateY(-50%) scale(28);
}
.btn-ring > * { position: relative; z-index: 1; }
.btn-ring-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-ring:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(195,231,107,0.4);
}
.btn-ring:hover .btn-ring-icon {
  background: var(--ink);
  color: var(--lime);
  transform: translateX(3px);
}

@media (max-width: 700px) {
  .cta-morph { height: 140vh; }
  .cta-morph-shape {
    width: clamp(320px, calc(88vw + (12vw * var(--p, 0))), 100vw);
    height: clamp(560px, calc(72vh + (26vh * var(--p, 0))), 100vh);
  }
  .cta-morph-content { padding: 0 20px; }
  .cta-morph-title { font-size: clamp(28px, 8.5vw, 44px); line-height: 1.05; }
  .cta-morph-lead { font-size: 14.5px; }
  /* V silueta más pequeña en móvil */
  .cta-morph-shape::before {
    width: 380px;
    height: 360px;
    right: -10%;
  }
}
@media (max-width: 420px) {
  .cta-morph-title { font-size: clamp(26px, 8vw, 38px); }
}


/* ====== PARTNER PROGRAM — Tarjeta navy ancha con mockup blanco invertido ====== */
.asesorias-cta {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--bg);
}
/* Wrap que extiende hasta el ancho del nav (~1380px) */
.partner-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.partner-card {
  position: relative;
  background: var(--ink);
  border-radius: 40px;
  padding: clamp(56px, 5vw, 88px) clamp(40px, 5vw, 88px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 100px rgba(15,17,42,0.18);
}
/* Fondo: V silueta enorme + glows */
.partner-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.partner-card-bg::after {
  /* Silueta de la V de contavle, super sutil */
  content: "";
  position: absolute;
  right: -8%;
  top: 50%;
  width: 720px;
  height: 660px;
  transform: translateY(-50%);
  background-image: url("../img/v-pattern.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.025;
}
.partner-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}
.partner-glow-1 {
  top: -200px;
  right: -150px;
  background: rgba(195,231,107,0.32);
  animation: chaosGlow1 22s ease-in-out infinite;
}
.partner-glow-2 {
  bottom: -250px;
  left: -180px;
  background: rgba(38,99,235,0.22);
  animation: chaosGlow2 26s ease-in-out infinite;
}

.partner-card-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
}

/* Pill superior */
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(195,231,107,0.10);
  color: var(--lime);
  border: 1px solid rgba(195,231,107,0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.partner-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(195,231,107,0.20);
  animation: pulseDot 2s ease-in-out infinite;
}

.partner-title {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: white;
  margin-bottom: 24px;
}

.partner-lead {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}
.partner-lead strong {
  color: white;
  font-weight: 600;
}

/* Stats horizontales con dividers verticales */
/* Lista de beneficios (sustituye los stats) */
.partner-benefits {
  list-style: none;
  padding: 24px 0;
  margin: 0 0 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.55;
}
.partner-benefits li strong {
  color: white;
  font-weight: 600;
}
.partner-benefit-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 2px;
}

.partner-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1.5px solid rgba(195,231,107,0.4);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.partner-link:hover {
  color: var(--lime);
  border-color: var(--lime);
  transform: translateX(3px);
}
.partner-link svg { transition: transform 0.3s var(--ease); }
.partner-link:hover svg { transform: translateX(4px); }

/* ===== Columna derecha — Mockup invertido (blanco sobre navy) ===== */
.partner-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-mockup {
  width: 100%;
  max-width: 480px;
  background: white;
  border: 1px solid rgba(15,17,42,0.06);
  border-radius: 20px;
  padding: 22px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.40),
    0 0 0 1px rgba(255,255,255,0.04);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
  transform-origin: center;
  transition: transform 0.8s var(--ease-out);
}
.partner-card:hover .partner-mockup {
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.pm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist);
}
.pm-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--lime);
}
.pm-head strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pm-badge {
  font-size: 11px;
  color: var(--ink);
  background: var(--lime-mist);
  border: 1px solid rgba(195,231,107,0.40);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15,17,42,0.04);
}
.pm-row:last-child { border-bottom: none; }
.pm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.pm-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.pm-row-text strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-row-text span {
  color: var(--slate);
  font-size: 11.5px;
}
.pm-tag {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.pm-tag-ok { background: #dcfce7; color: #166534; }
.pm-tag-warn { background: #fef3c7; color: #92400e; }
.pm-tag-info { background: #e0e7ff; color: #3730a3; }

/* Floating AI card sobre el mockup */
.partner-float {
  position: absolute;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.6) inset;
  animation: floatY 5s ease-in-out infinite;
  z-index: 3;
  max-width: 250px;
}
.partner-float-ai {
  bottom: 4%;
  right: -3%;
  animation-delay: 1s;
}
.pf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pf-head strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
.pf-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--lime);
}
.pf-badge {
  margin-left: auto;
  font-size: 9.5px;
  background: var(--lime);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.partner-float p {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.4;
  margin: 0 0 8px;
}
.pf-btn {
  background: var(--ink);
  color: var(--lime);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.pf-btn:hover { background: var(--ink-deep); }

/* Floating savings badge — lime */
.partner-float-savings {
  top: -4%;
  left: -6%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lime);
  animation-delay: 0s;
}
.pfs-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
}
.partner-float-savings strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.partner-float-savings span {
  font-size: 11.5px;
  color: rgba(15,17,42,0.65);
}

@media (max-width: 1100px) {
  .partner-card { padding: 64px 48px; }
  .partner-mockup { max-width: 420px; }
}
@media (max-width: 900px) {
  .partner-card-grid { grid-template-columns: 1fr; gap: 48px; }
  .partner-card { padding: 48px 32px; border-radius: 28px; }
  .partner-visual { min-height: 380px; }
  .partner-mockup { transform: none; max-width: 420px; }
  .partner-float-ai { right: -10px; bottom: -16px; }
  .partner-float-savings { top: -16px; left: -10px; }
  .partner-lead { max-width: none; }
}
@media (max-width: 600px) {
  .partner-card { padding: 36px 22px; border-radius: 24px; }
  .partner-title { font-size: clamp(36px, 10vw, 48px); }
  .partner-lead { font-size: 15.5px; }
  .partner-float { display: none; }
  /* Mockup más estrecho para que respire */
  .partner-mockup { max-width: 100%; padding: 16px; }
  .partner-mockup .pm-head strong { font-size: 13px; }
  .partner-mockup .pm-row { padding: 10px 0; gap: 10px; }
  .partner-mockup .pm-avatar { width: 32px; height: 32px; font-size: 10.5px; }
  .partner-mockup .pm-row-text strong { font-size: 12.5px; }
  .partner-mockup .pm-row-text span { font-size: 10.5px; }
  .partner-mockup .pm-tag { font-size: 9.5px; padding: 3px 8px; }
  .partner-cta-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .partner-cta-row .btn { justify-content: center; }
  .partner-cta-row .partner-link { justify-content: center; }
}

/* ====== FUNCIONALIDADES — Layout sticky-scroll (lado izq fijo, der scrollea) ====== */
.features-scroll-section {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.features-scroll-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

/* Columna izquierda — sticky */
.features-sticky {
  position: sticky;
  top: 110px;
  align-self: start;
}
.features-sticky-inner {
  padding-top: 8px;
}
.features-sticky .eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
}
.features-sticky .eyebrow::before { display: none; }
.features-sticky h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.features-sticky .lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 32px;
  max-width: 460px;
}
.features-sticky .btn {
  margin-bottom: 48px;
}

/* Indicador de progreso visual (decorativo) */
.features-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--mist);
}
.features-progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.features-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}
.features-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--ink));
  border-radius: 999px;
  transition: width 0.3s var(--ease-out);
}

/* Columna derecha — grid 2 columnas */
.features-scroll-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}
.feature-row {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  align-content: start;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease),
    background 0.5s var(--ease);
  /* Dot grid sutil */
  background-image: radial-gradient(circle, rgba(15,17,42,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}
/* Top row: num + icon + arrow circle */
.feature-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.feature-row-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-row-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--slate);
  transition: color 0.4s var(--ease);
}
.feature-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--whisper);
  border: 1px solid var(--mist);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature-row-content { min-width: 0; }
.feature-row-content h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
  transition: color 0.3s var(--ease);
}
.feature-row-content p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
}
.feature-row-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--whisper);
  border: 1px solid var(--mist);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature-row:hover {
  background-color: var(--bg);
  border-color: rgba(15,17,42,0.14);
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 36px rgba(15,17,42,0.10),
    0 28px 70px rgba(15,17,42,0.06);
}
.feature-row:hover .feature-row-num { color: var(--ink); }
.feature-row:hover .feature-row-icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: scale(1.05) rotate(-4deg);
}
.feature-row:hover .feature-row-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .features-scroll-list { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .features-scroll-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-sticky { position: relative; top: auto; }
  .features-sticky h2 { font-size: clamp(32px, 6vw, 44px); }
}
@media (max-width: 640px) {
  .feature-row { padding: 22px 20px; gap: 14px; }
  .feature-row-content h4 { font-size: 18px; }
  .feature-row-content p { font-size: 13.5px; }
}
