/* ==========================================================================
   TAPPI — Design tokens
   Paleta: negro, blanco, azul marino (acento único).
   Radios: 6px en botones/inputs, pill solo en chips/tag, paneles casi rectos (4px).
   ========================================================================== */

:root {
  /* color */
  --ink: #0b0c10;
  --ink-soft: #16181d;
  --white: #ffffff;
  --paper: #f7f7f8;
  --navy: #0f2a5c;
  --navy-deep: #0a1d40;
  --navy-light: #3e5c94;
  --line: #e5e7eb;
  --line-strong: #d7dae0;
  --muted: #62666f;
  --muted-on-dark: #aab2c4;

  /* type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  /* radius */
  --r-sm: 6px;
  --r-panel: 4px;
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap--narrow { max-width: 780px; }

section[id] { scroll-margin-top: 88px; }

.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--navy); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); width: 100%; margin-top: 28px; }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--white { background: var(--white); color: var(--navy-deep); }
.btn--white:hover { background: var(--paper); }

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.nav__mark { width: 30px; height: 30px; flex: none; }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.nav__mobile a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: none; margin-top: 10px; text-align: center; }
.nav__mobile.is-open { display: flex; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 88px 32px 96px;
}

.hero__title {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero__note i { color: var(--navy); font-size: 16px; }

.hero__visual { position: relative; display: flex; justify-content: center; }

.plate-scene { position: relative; width: 100%; max-width: 380px; }
.plate { width: 100%; }
.plate--lg { filter: drop-shadow(0 24px 40px rgba(10, 27, 61, 0.28)); }
.plate--md { max-width: 220px; margin: 0 auto; }

.plate-scene__phone {
  position: absolute;
  width: 84px;
  top: -30px;
  right: 12%;
  transform: rotate(8deg);
  filter: drop-shadow(0 16px 20px rgba(0,0,0,0.22));
}

.pulse-ring {
  position: absolute;
  top: -10px;
  right: 26%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--navy-light);
  opacity: 0;
  animation: pulse 3.2s var(--ease) infinite;
}
.pulse-ring--2 { animation-delay: 1.1s; }

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.4); }
  70% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.16; letter-spacing: -0.015em; }
.section__body { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 58ch; }

/* ==========================================================================
   Problema / comparación
   ========================================================================== */

#problema {
  background-color: var(--navy-deep);
  color: var(--line);
}

#problema .kicker { color: var(--white); }

#problema .section__body{ color: var(--line); }

#problema .section__head h2 { color: var(--paper); }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  padding-top: 8px;
}

.compare__title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; }
.compare__title--muted { color: var(--white); }
.compare__title--navy { color: #ffa800; }

.compare__steps li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--line);
}
.compare__steps li:last-child { border-bottom: 1px solid var(--line); }

.compare__divider { width: 1px; background: var(--line); }

.stat-line {
  margin-top: 56px;
  padding-top: 40px;
  /* border-top: 1px solid var(--line); */
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--line);
  max-width: 46ch;
}

/* ==========================================================================
   Cómo funciona
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step { background: var(--paper); padding: 40px 36px 44px; position: relative; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--line-strong);
  margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ==========================================================================
   Producto
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card { background: var(--white); padding: 48px 44px; }
.product-card__visual { margin-bottom: 32px; }
.product-card h3 { font-size: 21px; margin-bottom: 20px; }

.specs { display: flex; flex-direction: column; }
.specs li {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.specs li:last-child { border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 500; }

.product-note { margin-top: 32px; font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   Beneficios
   ========================================================================== */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.benefit {
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
}
.benefit i { font-size: 22px; color: var(--navy); }
.benefit h3 { font-size: 17.5px; margin: 14px 0 8px; }
.benefit p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 42ch; }

/* ==========================================================================
   Confianza / marquee
   ========================================================================== */

.trust { padding-bottom: 0; }
.trust .section__head { margin-bottom: 48px; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 30px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: scroll-left 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--line-strong);
  padding: 0 28px;
  white-space: nowrap;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Precios
   ========================================================================== */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 40px 32px;
  position: relative;
}
.plan--featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.plan--featured .btn{ 
  color: var(--white); 
  border-color: var(--white);
}

.plan--featured .btn:hover {
  background: var(--white);
  color: var(--ink);
}

.plan--featured h3 {
  color: var(--white);
}

.plan__tag {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}

.plan h3 { font-size: 19px; margin-bottom: 18px; }
.plan__price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan__save { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.plan--featured .plan__save { color: var(--muted-on-dark); }

.plan__desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; min-height: 44px; }
.plan--featured .plan__desc { color: var(--muted-on-dark); }

.plan__list { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan--featured .plan__list { border-top-color: rgba(255,255,255,0.14); }
.plan__list li { padding: 8px 0; font-size: 14.5px; }

.plan--featured .btn--outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.plan--featured .btn--outline:hover { background: var(--white); color: var(--ink); }

.pricing-note { margin-top: 36px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { border-top: 1px solid var(--line-strong); }

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 16px; color: var(--navy); transition: transform 0.25s var(--ease); flex: none; margin-left: 20px; }
.faq-item[open] summary i { transform: rotate(45deg); }

.faq-item p { padding: 0 4px 24px; color: var(--muted); font-size: 15.5px; max-width: 60ch; line-height: 1.65; }

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}
.cta-final h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); line-height: 1.14; letter-spacing: -0.015em; }
.cta-final p { margin-top: 18px; font-size: 18px; color: var(--muted-on-dark); }
.cta-final .btn { margin-top: 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink); color: var(--muted-on-dark); padding-top: 72px; padding-bottom: 10px; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand .nav__brand { color: var(--white); }
.footer__brand p { margin-top: 14px; font-size: 14.5px; max-width: 26ch; }

.footer__col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer__col a { display: block; font-size: 14.5px; padding: 6px 0; transition: color 0.18s var(--ease); }
.footer__col a:hover { color: var(--white); }

.footer__bottom { padding: 24px 0; font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .hero { 
    /* grid-template-columns: 1fr;  */
    padding-top: 56px; 
    text-align: left; 
  }
  .hero__visual { 
    order: -1; 
    margin-bottom: 12px; 
    /* max-width: 340px; */
  }
  .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--sm { display: none; }

  .section { padding: 76px 0; }
  .hero { padding: 44px 24px 64px; grid-template-columns: 1fr;  }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .compare { grid-template-columns: 1fr; gap: 32px; }
  .compare__divider { display: none; }

  .benefits { grid-template-columns: 1fr; gap: 0; }

  .footer__inner { grid-template-columns: 1fr; }
}
