/* ==========================================================================
   YoVendo Pro — Hoja de estilos (CSS puro, sin build step)
   Réplica del design system de la versión Next.js.
   Breakpoints: 640px / 768px / 1024px.
   ========================================================================== */

:root {
  /* Marca (teal) */
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0f766e;
  --brand-700: #115e59;
  --brand-800: #134e4a;

  /* Tinta */
  --ink-950: #0b1220;
  --ink-900: #111a2c;
  --ink-700: #263042;
  --ink-600: #3f4756;
  --ink-500: #5b6474;
  --ink-400: #7a8497;

  /* Superficies y líneas */
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #e6eaf0;
  --line-strong: #d3dae4;

  /* Estados / acentos */
  --success: #16a34a;
  --accent: #f59e0b;

  /* Sombras */
  --shadow-card: 0 1px 2px 0 rgb(16 24 40 / 0.05), 0 1px 3px 0 rgb(16 24 40 / 0.08);
  --shadow-card-hover: 0 10px 24px -8px rgb(16 24 40 / 0.16);
  --shadow-hero: 0 24px 60px -24px rgb(15 118 110 / 0.28);
}

/* ------------------------------- Reset ---------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; border: 0; background: none; cursor: pointer; }

svg { display: block; }

/* ------------------------------- Base ----------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* compensa el header fijo en anclas */
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-800);
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

section[id],
footer[id] { scroll-margin-top: 5rem; }

/* Tamaños de icono (sprite) */
.i-16 { width: 1rem; height: 1rem; flex: none; }
.i-20 { width: 1.25rem; height: 1.25rem; flex: none; }
.i-24 { width: 1.5rem; height: 1.5rem; flex: none; }

.text-success { color: var(--success); }
.text-brand-400 { color: var(--brand-400); }
.text-brand-500 { color: var(--brand-500); }
.text-brand-600 { color: var(--brand-600); }

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.container-narrow { max-width: 48rem; }

@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* Enlace de salto (accesibilidad por teclado) */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--brand-600);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
}

/* ------------------------------ Botones --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}
.btn:active { transform: scale(0.98); }

.btn-md { min-height: 44px; padding-inline: 1.25rem; font-size: 0.95rem; }
.btn-lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.btn-invert { background: #fff; color: var(--brand-700); }
.btn-invert:hover { background: var(--brand-50); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.3);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

/* ------------------------------- Header --------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled,
.header.menu-open {
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .nav { height: 4.5rem; } }

.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo-link { border-radius: 0.5rem; }
.logo-img { display: block; height: 2.75rem; width: auto; }
@media (min-width: 768px) { .logo-img { height: 3rem; } }
.logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-950); }
.logo-text-light { color: #fff; }
.logo-accent { color: var(--brand-600); }
.logo-accent-light { color: var(--brand-400); }
/* El logo usa colores oscuros; en el footer (fondo oscuro) se muestra como silueta blanca. */
.logo-img-light { filter: brightness(0) invert(1); }

.nav-links { display: none; }
.nav-cta { display: none; }
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-links a {
    display: inline-block;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-600);
    transition: color 0.2s, background 0.2s;
  }
  .nav-links a:hover { color: var(--brand-700); background: var(--brand-50); }
  .nav-cta { display: block; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  background: #fff;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 26rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
}
.mobile-menu a:not(.btn) {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-700);
}
.mobile-menu a:not(.btn):hover { background: var(--brand-50); color: var(--brand-700); }
.mobile-menu-cta { padding-top: 0.5rem; }
.mobile-menu-cta .btn { width: 100%; }
@media (min-width: 768px) { .mobile-menu { display: none; } }

/* -------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  padding: 7rem 0 4rem;
}
@media (min-width: 768px) { .hero { padding: 9rem 0 6rem; } }

.hero-halo {
  position: absolute;
  top: -8rem;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgb(204 251 241 / 0.6);
  filter: blur(48px);
  pointer-events: none;
}

.hero-grid { position: relative; }
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-copy { max-width: 36rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-700);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .hero-badge { font-size: 0.875rem; } }

.hero-title {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-950);
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.4rem; } }

.text-brand { color: var(--brand-600); }

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-600);
}
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; align-items: center; }
}

.hero-trust {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.375rem; }

.hero-social {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.hero-social strong { color: var(--ink-900); }

.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}
.avatars span + span { margin-left: -0.5rem; }

.hero-visual { margin-top: 3rem; display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { margin-top: 0; justify-content: flex-end; } }

/* ------------------------- Mockup ilustrativo ---------------------------- */

.mockup {
  width: 100%;
  max-width: 36rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  user-select: none;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 1rem 1rem 0 0;
  padding: 0.75rem 1rem;
}
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--line-strong); }
.mockup-url {
  margin-left: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-400);
}

.mockup-body { padding: 1.25rem; }
@media (min-width: 640px) { .mockup-body { padding: 1.5rem; } }

.mockup-head { display: flex; align-items: center; justify-content: space-between; }
.mockup-kicker {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-400);
}
.mockup-title { font-size: 1.125rem; font-weight: 700; color: var(--ink-950); }
.mockup-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: var(--brand-50);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-700);
}
.pulse { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--brand-500); }

.mockup-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mockup-metrics > div {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgb(246 248 250 / 0.6);
  padding: 0.75rem;
}
.m-label { font-size: 0.6875rem; color: var(--ink-400); }
.m-value { margin-top: 0.125rem; font-size: 0.875rem; font-weight: 700; color: var(--ink-950); }
@media (min-width: 640px) { .m-value { font-size: 1rem; } }

.mockup-chart {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 6rem;
}
.bars span {
  flex: 1;
  border-radius: 0.375rem 0.375rem 0 0;
  background: rgb(20 184 166 / 0.8);
}
.days {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--ink-400);
}

.mockup-invoice {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgb(246 248 250 / 0.6);
  padding: 0.75rem 1rem;
}
.invoice-left { display: flex; align-items: center; gap: 0.75rem; }
.invoice-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--brand-100);
  color: var(--brand-700);
}
.invoice-title { font-size: 0.875rem; font-weight: 600; color: var(--ink-950); }
.invoice-sub { font-size: 0.6875rem; color: var(--ink-400); }
.invoice-status {
  border-radius: 999px;
  background: rgb(22 163 74 / 0.1);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

/* ----------------------------- Logo cloud -------------------------------- */

.logocloud {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 2.5rem 0;
}
.logocloud-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}
.logocloud-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}
.logocloud-list li {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgb(91 100 116 / 0.9);
}
@media (min-width: 640px) { .logocloud-list li { font-size: 1.25rem; } }

/* --------------------------- Secciones genéricas ------------------------- */

.section { background: var(--surface); padding: 4rem 0; }
.section-alt { background: var(--surface-2); }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.section-head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .eyebrow { font-size: 0.875rem; } }
.eyebrow-light { color: var(--brand-400); }

.section-head h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-950);
}
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }

.section-desc {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-500);
}
@media (min-width: 768px) { .section-desc { font-size: 1.125rem; } }

.section-cta { margin-top: 3rem; text-align: center; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background 0.3s, color 0.3s;
}
.icon-tile-sm { width: 2.75rem; height: 2.75rem; }
.icon-tile-solid { background: var(--brand-600); color: #fff; }

/* ------------------------------ Beneficios ------------------------------- */

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

.benefit-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(246 248 250 / 0.5);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.benefit-card:hover {
  border-color: var(--brand-200);
  background: #fff;
  box-shadow: var(--shadow-card-hover);
}
.benefit-card:hover .icon-tile { background: var(--brand-600); color: #fff; }
.benefit-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; color: var(--ink-950); }
.benefit-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--ink-500); }

/* ---------------------------- Funcionalidades ---------------------------- */

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

.feature-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-card-hover);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink-950); }
.feature-card p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--ink-500); }

/* ----------------------------- Cómo funciona ----------------------------- */

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

.step-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(246 248 250 / 0.5);
  padding: 1.75rem;
}
.step-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-100);
}
.step-card h3 { position: relative; margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; color: var(--ink-950); }
.step-card p { position: relative; margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--ink-500); }

/* ---------------------------- Integración SUNAT -------------------------- */

.sunat { background: var(--ink-950); padding: 4rem 0; }
@media (min-width: 768px) { .sunat { padding: 6rem 0; } }

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

.sunat h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
@media (min-width: 768px) { .sunat h2 { font-size: 2.25rem; } }

.sunat-sub {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-400);
}
@media (min-width: 768px) { .sunat-sub { font-size: 1.125rem; } }

.sunat-pill {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgb(20 184 166 / 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-400);
}

.sunat-points { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .sunat-points { margin-top: 0; } }

.sunat-card {
  display: flex;
  gap: 1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.05);
  padding: 1.25rem;
}
.sunat-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 0.75rem;
  background: rgb(20 184 166 / 0.15);
  color: var(--brand-400);
}
.sunat-card h3 { font-size: 1rem; font-weight: 700; color: #fff; }
.sunat-card p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--ink-400); }

/* ------------------------------ Testimonios ------------------------------ */

.testimonials-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.testimonial-card figure { display: flex; flex-direction: column; height: 100%; }
.testimonial-card blockquote {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.625;
  color: var(--ink-700);
}
.testimonial-card figcaption {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.t-name { font-size: 0.875rem; font-weight: 700; color: var(--ink-950); }
.t-business { font-size: 0.875rem; color: var(--ink-500); }

/* -------------------------------- Precios -------------------------------- */

.price-toggle-wrap { margin-bottom: 3rem; display: flex; justify-content: center; }
.price-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0.25rem;
}
.price-toggle button {
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: all 0.2s;
}
.price-toggle button:hover { color: var(--ink-900); }
.price-toggle button[aria-pressed="true"] {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.toggle-tag {
  margin-left: 0.375rem;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--brand-100);
  color: var(--brand-700);
}
.price-toggle button[aria-pressed="true"] .toggle-tag {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}

.plans-grid {
  margin-inline: auto;
  max-width: 48rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.plan-featured {
  border-color: var(--brand-600);
  background: var(--ink-950);
  color: #fff;
  box-shadow: var(--shadow-hero);
}

.plan-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.plan h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-950); }
.plan-featured h3 { color: #fff; }

.plan-tagline { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.625; color: var(--ink-500); }
.plan-featured .plan-tagline { color: var(--ink-400); }

.plan-price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.375rem; }
.plan-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.plan-featured .plan-amount { color: #fff; }
.plan-period { color: var(--ink-500); }
.plan-featured .plan-period { color: var(--ink-400); }

.plan-note { margin-top: 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--ink-500); }
.plan-featured .plan-note { color: var(--ink-400); }
#precios[data-cycle="annual"] .plan-note { color: var(--brand-700); }
#precios[data-cycle="annual"] .plan-featured .plan-note { color: var(--brand-400); }

.plan-features {
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--ink-600);
}
.plan-features li svg { margin-top: 0.125rem; }
.plan-featured .plan-features li { color: var(--ink-400); }

.plan-btn { margin-top: 2rem; width: 100%; }

.billing-note {
  margin: 2.5rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--ink-500);
}

.pricing-help {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.pricing-help p { font-size: 0.875rem; color: var(--ink-500); }
.pricing-help a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
}
.pricing-help a:hover { color: var(--brand-600); }

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.25rem 1.5rem;
  transition: box-shadow 0.2s;
}
.faq-list details:hover { box-shadow: var(--shadow-card); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-950);
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-chevron {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: transform 0.3s;
}
details[open] .faq-chevron { transform: rotate(180deg); }

.faq-list details p {
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-500);
}

.faq-more { margin-top: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--ink-500); }
.faq-more a { font-weight: 600; color: var(--brand-700); }
.faq-more a:hover { color: var(--brand-600); }

/* ------------------------------- CTA final ------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--brand-700);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .final-cta { padding: 5rem 4rem; } }

.final-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}
.final-halo-1 { top: -5rem; left: -5rem; width: 16rem; height: 16rem; background: rgb(20 184 166 / 0.3); }
.final-halo-2 { bottom: -6rem; right: -4rem; width: 18rem; height: 18rem; background: rgb(45 212 191 / 0.2); }

.final-inner { position: relative; max-width: 42rem; margin-inline: auto; }
.final-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
@media (min-width: 768px) { .final-inner h2 { font-size: 2.25rem; } }
.final-inner > p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(240 253 250 / 0.9);
}
@media (min-width: 768px) { .final-inner > p { font-size: 1.125rem; } }

.final-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .final-ctas { flex-direction: row; } }

.final-note { margin-top: 1.25rem; font-size: 0.875rem; color: rgb(204 251 241 / 0.8); }

/* -------------------------------- Footer --------------------------------- */

.footer { background: var(--ink-950); color: var(--ink-400); padding: 3.5rem 0; }
@media (min-width: 768px) { .footer { padding: 4rem 0; } }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer-desc { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.625; }
.footer-location { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }

.footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.footer nav ul,
.footer > .container .footer-grid > div ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer ul a { font-size: 0.875rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--brand-400); }
.footer ul a svg { margin-right: 0.5rem; }
.footer nav li a,
.footer div li a { display: inline-flex; align-items: center; }

.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 1.5rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 0.875rem; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--brand-400); }

/* ---------------------------- Scroll reveal ------------------------------
   Progressive enhancement: solo se oculta con JS (clase `js` en <html>).
   Sin JS, todo el contenido permanece visible. */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js .reveal[data-delay="1"] { transition-delay: 90ms; }
html.js .reveal[data-delay="2"] { transition-delay: 180ms; }
html.js .reveal[data-delay="3"] { transition-delay: 270ms; }

/* --------------------------- Reduced motion ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
