/* ==========================================================================
   MayoristasTop! — Sistema de diseño (blanco/crema + azul, squishy)
   Claro, cálido, suave y redondeado. Sin luces, sin glows, sin modo oscuro.
   Paleta: cremas + terracota (clay) + verde salvia (sage).
   ========================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Tokens
 * ------------------------------------------------------------------ */
:root {
  /* Blancos / crema */
  --cream:     #f3f5f1;  /* fondo de página (crema muy claro) */
  --cream-2:   #e9eef7;  /* secciones alternadas (blanco azulado) */
  --cream-3:   #dde5f1;  /* detalles */
  --card:      #ffffff;  /* tarjetas (blanco) */
  --card-2:    #fbfcfe;

  /* Tinta / texto */
  --ink:       #16233c;  /* títulos (navy) */
  --body:      #45536c;  /* texto */
  --muted:     #7e889c;  /* secundario */
  --line:      #e4e8f1;  /* bordes */
  --line-2:    #d3dae8;

  /* Azul (acento principal) */
  --clay:      #2f6ae0;
  --clay-2:    #1f57cb;  /* borde inferior / hover */
  --clay-3:    #184aa9;
  --clay-tint: #e7eefc;

  /* Verde (WhatsApp / verificado) */
  --sage:      #25be63;
  --sage-2:    #1aa353;
  --sage-tint: #e2f5ea;

  /* Ámbar (estrellas) */
  --gold:      #f0b52e;

  /* Radios (squishy = redondeado) */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  /* Sombras suaves y cálidas */
  --sh-sm: 0 1px 2px rgba(23,40,80,.05), 0 6px 16px -8px rgba(23,40,80,.12);
  --sh-md: 0 3px 8px -3px rgba(23,40,80,.10), 0 18px 36px -18px rgba(23,40,80,.16);
  --sh-lg: 0 30px 60px -26px rgba(23,40,80,.22);
  --hi: inset 0 1px 0 rgba(255,255,255,.7);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --nav-h: 72px;

  color-scheme: light;
}

/* ------------------------------------------------------------------ *
 * 2. Base
 * ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--body);
  line-height: 1.68;
  font-size: 16px;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--clay-tint); color: var(--clay-3); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--cream-2); background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--clay); background-clip: content-box; }

/* ------------------------------------------------------------------ *
 * 3. Layout
 * ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { position: relative; padding-block: clamp(64px, 10vw, 112px); }
.section--cream2 { background: var(--cream-2); }
.section--tight { padding-block: clamp(44px, 7vw, 76px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--clay-tint); color: var(--clay-3);
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow--sage { background: var(--sage-tint); color: var(--sage-2); }

.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 62px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.14rem); }

.clay-text { color: var(--clay); }
.sage-text { color: var(--sage-2); }

/* Decorative soft flat shapes (no blur, no glow) */
.soft-shape { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; z-index: 0; pointer-events: none; opacity: .5; }

/* ------------------------------------------------------------------ *
 * 4. Buttons (squishy con "labio" inferior)
 * ------------------------------------------------------------------ */
.btn {
  --lip: var(--clay-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  border: 0; white-space: nowrap; position: relative;
  transition: transform .18s var(--bounce), box-shadow .18s var(--ease), background .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn-lg { padding: 18px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 5px 0 0 var(--clay-2), var(--sh-sm), var(--hi); }
.btn-primary:hover { transform: translateY(-2px); background: #3d79ec; box-shadow: 0 7px 0 0 var(--clay-2), var(--sh-md); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 0 var(--clay-2), 0 4px 10px -4px rgba(31,87,203,.5); }

.btn-sage { background: var(--sage); color: #fff; box-shadow: 0 5px 0 0 var(--sage-2), var(--sh-sm), var(--hi); }
.btn-sage:hover { transform: translateY(-2px); background: #2ecb6d; box-shadow: 0 7px 0 0 var(--sage-2), var(--sh-md); }
.btn-sage:active { transform: translateY(5px); box-shadow: 0 0 0 0 var(--sage-2), 0 4px 10px -4px rgba(26,163,83,.5); }

.btn-soft { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 0 var(--cream-3), var(--sh-sm); }
.btn-soft:hover { transform: translateY(-2px); border-color: var(--clay); color: var(--clay-3); box-shadow: 0 6px 0 0 var(--cream-3), var(--sh-md); }
.btn-soft:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--cream-3), var(--sh-sm); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--card); border: 1.5px solid var(--line);
  font-weight: 600; font-size: 0.84rem; color: var(--body);
  box-shadow: var(--sh-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--sage); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); animation: softPulse 2.4s var(--ease) infinite; }

/* ------------------------------------------------------------------ *
 * 5. Cards
 * ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--bounce), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line-2); }

/* ------------------------------------------------------------------ *
 * 6. Offer banner + Nav
 * ------------------------------------------------------------------ */
.promo {
  background: var(--clay); color: #fff;
  text-align: center; font-family: var(--font-head); font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.02em;
  padding: 10px 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo b { color: #dbe8ff; }
.promo__short { display: none; }
@media (max-width: 600px) {
  .promo { font-size: 0.75rem; padding: 9px 12px; }
  .promo__full { display: none; }
  .promo__short { display: inline; }
}

.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(74,57,43,.4); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,40px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link { padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.94rem; color: var(--body); transition: color .2s var(--ease), background .2s var(--ease); }
.nav__link:hover { color: var(--clay-3); background: var(--clay-tint); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__img { height: 48px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.logo b { color: var(--clay); }
@media (max-width: 540px) { .logo__img { height: 40px; max-width: 174px; } }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); place-items: center; box-shadow: var(--sh-sm); }
.burger svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  padding: 16px clamp(20px,6vw,40px) 28px;
  display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: calc(var(--nav-h) - 16px); }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-sm); flex: none; }
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 6px; }
.mobile-menu__links a { padding: 17px 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); border-bottom: 1.5px solid var(--line); text-align: center; }
.mobile-menu__links a:active { color: var(--clay-3); }
.mobile-menu > .btn { margin-top: 22px; }
.mobile-menu__socials { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(52px, 8vw, 96px); overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.hero h1 .clay-text { display: inline; }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--body); max-width: 540px; }
.hero__points { margin-top: 24px; display: grid; gap: 12px; }
.hero__points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; list-style: none; }
.hero__points .tick { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-2); }
.hero__points .tick svg { width: 16px; height: 16px; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--sage); }

/* Hero visual: tarjeta squishy con floating cards */
.hero__visual { position: relative; min-height: 420px; }
.hero__shape { position: absolute; inset: 8% 4% 8% 8%; background: var(--clay-tint); border-radius: 44% 56% 52% 48% / 54% 48% 52% 46%; z-index: 0; }
.hero__shape2 { position: absolute; right: 2%; bottom: 4%; width: 42%; height: 42%; background: #eef2fc; border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%; z-index: 0; }
.hero__price { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--body); font-size: 1.02rem; }
.hero__price b { color: var(--clay); font-size: 1.7rem; letter-spacing: -0.02em; }
.hero__price .chip-pago { padding: 5px 12px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--sage-2); font-size: 0.8rem; font-weight: 700; }

/* Tarjeta "Lista de proveedores" */
.hero__panel {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-md);
  max-width: 384px; margin: 0 auto;
  animation: cardFloat 6.5s var(--ease) infinite;
}
/* barra superior tipo documento */
.hero__panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--clay), #5b93f2, var(--clay));
  z-index: 3;
}
/* brillo/gloss que barre la tarjeta */
.hero__panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: translateX(-200%) skewX(-14deg);
  animation: cardShine 6.5s ease-in-out infinite;
  pointer-events: none; z-index: 4;
}
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes cardShine { 0%, 55% { transform: translateX(-200%) skewX(-14deg); } 80%, 100% { transform: translateX(320%) skewX(-14deg); } }
.hp-badge { position: absolute; top: 15px; right: 15px; background: var(--clay); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; letter-spacing: .01em; padding: 5px 11px; border-radius: var(--r-pill); box-shadow: var(--sh-sm), var(--hi); }
.hp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--line-2); }
.hp-logo { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: var(--sh-sm); margin-bottom: 4px; }
.hp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-brand { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.hp-title { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1.14; margin-top: 1px; }
.hp-sub { color: var(--muted); font-size: 0.76rem; font-weight: 600; margin-top: 4px; }
.hp-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.hp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.hp-list li:last-child { border-bottom: 0; }
.hp-list li span { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.hp-list li b { font-family: var(--font-head); font-weight: 800; color: var(--clay); font-size: 1.06rem; }
.hp-more { display: inline-flex; align-self: flex-start; margin-top: 12px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--clay-tint); color: var(--clay-3); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }

.pill-float {
  position: absolute; z-index: 3;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 9px 15px 9px 10px;
  box-shadow: var(--sh-md); display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.84rem; color: var(--ink);
}
.pill-float small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.pill-float .pf-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.pill-float .pf-ic svg { width: 16px; height: 16px; }
.pf-ic-soft { background: var(--clay-tint) !important; color: var(--clay-3) !important; }
.pill-dark { background: #16233c; border-color: #16233c; color: #fff; }
.pill-dark small { color: #a9b4c8; }
.pill-1 { top: -3%; left: -5%; }
.pill-2 { bottom: 3%; right: -6%; }

/* Stats */
.stats { position: relative; z-index: 1; margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 24px 14px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--clay); line-height: 1; }
.stat__label { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ------------------------------------------------------------------ *
 * 8. Grids genéricas
 * ------------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: var(--sh-sm), var(--hi); }
.feature__ic svg { width: 27px; height: 27px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

.ic-clay { background: var(--clay); }
.ic-sage { background: var(--sage); }
.ic-gold { background: var(--gold); }
.ic-soft-clay { background: var(--clay-tint); color: var(--clay-3) !important; }
.ic-soft-sage { background: var(--sage-tint); color: var(--sage-2) !important; }

/* ------------------------------------------------------------------ *
 * 9. Categorías
 * ------------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 18px; border-radius: var(--r-md);
  background: var(--card); border: 1.5px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .28s var(--bounce), box-shadow .28s var(--ease), border-color .28s var(--ease);
  min-height: 122px;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--clay); }
.cat:hover .cat__ic { transform: rotate(-6deg) scale(1.06); }
.cat__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; transition: transform .3s var(--bounce); }
.cat__ic svg { width: 24px; height: 24px; }
.cat__name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
.cat__count { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: -4px; }

/* ------------------------------------------------------------------ *
 * 10. Precios (3 packs)
 * ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--bounce), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.plan--featured {
  border: 2px solid var(--clay);
  background: linear-gradient(180deg, var(--clay-tint) 0%, var(--card) 30%);
  box-shadow: var(--sh-md);
  transform: scale(1.03);
}
.plan--featured:hover { transform: scale(1.03) translateY(-6px); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--clay); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; padding: 6px 16px; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm), var(--hi); white-space: nowrap;
}
.plan__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.plan__count { color: var(--muted); font-weight: 600; font-size: 0.92rem; margin-top: 2px; }
.plan__price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__old { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 1.05rem; }
.plan__now { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.7rem); color: var(--clay); line-height: 1; letter-spacing: -0.02em; }
.plan__now sup { font-size: 0.44em; top: -0.9em; margin-right: 1px; color: var(--muted); font-weight: 700; }
.plan__save { display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--sage-2); font-weight: 700; font-size: 0.8rem; }
.plan__cur { color: var(--muted); font-size: 0.82rem; font-weight: 600; margin-top: 8px; }
.plan__list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 12px; }
.plan__list li { display: flex; align-items: flex-start; gap: 11px; color: var(--body); font-weight: 500; font-size: 0.94rem; }
.plan__list li svg { width: 20px; height: 20px; flex: none; color: var(--sage); margin-top: 1px; }
.plan__list li.off { color: var(--muted); }
.plan__list li.off svg { color: var(--line-2); }
.plan .btn { margin-top: auto; }
.plan__note { margin-top: 12px; text-align: center; color: var(--muted); font-size: 0.78rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.plan__note svg { width: 14px; height: 14px; color: var(--sage); }

/* ------------------------------------------------------------------ *
 * 11. Cómo funciona
 * ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; text-align: center; padding: 8px; }
.step__num {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 22px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff;
  background: var(--clay); box-shadow: var(--sh-sm), var(--hi);
}
.step:nth-child(2) .step__num { background: var(--sage); }
.step:nth-child(3) .step__num { background: var(--gold); }
.step:nth-child(4) .step__num { background: var(--clay); }
.step h3 { font-size: 1.14rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
.step__arrow { position: absolute; top: 30px; right: -18px; color: var(--line-2); }
.step__arrow svg { width: 30px; height: 30px; }
.step:last-child .step__arrow { display: none; }

/* ------------------------------------------------------------------ *
 * 12. Testimonios (grid simple)
 * ------------------------------------------------------------------ */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tst__stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 14px; }
.tst__stars svg { width: 18px; height: 18px; }
.tst__quote { color: var(--body); font-size: 1rem; line-height: 1.62; }
.tst__who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.tst__av { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden; box-shadow: var(--sh-sm); }
.tst__name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.tst__role { font-size: 0.8rem; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * 13. FAQ
 * ------------------------------------------------------------------ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color .25s var(--ease); }
.faq__item.is-open { border-color: var(--clay); }
.faq__q { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__q .plus { width: 26px; height: 26px; flex: none; position: relative; transition: transform .35s var(--bounce); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--clay); border-radius: 2px; }
.faq__q .plus::before { top: 12px; left: 4px; right: 4px; height: 2.4px; }
.faq__q .plus::after { left: 12px; top: 4px; bottom: 4px; width: 2.4px; transition: opacity .3s var(--ease); }
.faq__item.is-open .faq__q .plus { transform: rotate(135deg); }
.faq__item.is-open .faq__q .plus::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 22px 22px; color: var(--muted); font-size: 0.97rem; line-height: 1.65; }

/* ------------------------------------------------------------------ *
 * 14. CTA final
 * ------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(44px, 7vw, 82px) clamp(24px, 5vw, 56px); text-align: center; background: var(--clay); box-shadow: var(--sh-md); }
.cta-band .soft-shape { opacity: .16; background: #fff; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); }
.cta-band p { margin: 16px auto 0; max-width: 520px; color: #fff3e6; font-size: 1.08rem; }
.cta-band .btn-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .price-from { margin-top: 20px; color: #fff; font-family: var(--font-head); font-weight: 700; }
.cta-band .price-from b { font-size: 1.3rem; }

/* ------------------------------------------------------------------ *
 * 15. Footer
 * ------------------------------------------------------------------ */
.footer { background: var(--cream-2); border-top: 1.5px solid var(--line); padding-block: clamp(48px, 7vw, 74px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 0.94rem; max-width: 300px; }
.footer__socials { margin-top: 18px; display: flex; gap: 10px; }
.soc { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); box-shadow: var(--sh-sm); transition: transform .2s var(--bounce), color .2s var(--ease), border-color .2s var(--ease); }
.soc:hover { transform: translateY(-3px); color: var(--clay); border-color: var(--clay); }
.soc svg { width: 20px; height: 20px; }
.footer h4 { font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 15px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 0.93rem; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__links a:hover { color: var(--clay-3); padding-left: 4px; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------------ *
 * 16. WhatsApp flotante + back to top
 * ------------------------------------------------------------------ */
.wa-float {
  position: fixed; right: clamp(16px,3vw,26px); bottom: clamp(16px,3vw,26px); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 26px -8px rgba(37,211,102,.55), var(--hi);
  animation: waBounce 1.9s ease-in-out infinite;
  transition: box-shadow .2s var(--ease);
}
.wa-float:hover { box-shadow: 0 18px 32px -8px rgba(37,211,102,.7); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.to-top { position: fixed; left: clamp(16px,3vw,26px); bottom: clamp(16px,3vw,26px); z-index: 90; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); box-shadow: var(--sh-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--bounce), visibility .3s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--clay); border-color: var(--clay); }
.to-top svg { width: 20px; height: 20px; }

/* Scroll progress (fino, clay) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: var(--clay); }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--cream); transition: opacity .5s var(--ease), visibility .5s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { width: 64px; height: 64px; animation: squish 1.3s var(--ease) infinite; }

/* ------------------------------------------------------------------ *
 * 17. Reveal
 * ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

/* ------------------------------------------------------------------ *
 * 18. Keyframes (suaves, sin luces)
 * ------------------------------------------------------------------ */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes softPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.82); } }
@keyframes squish { 0%,100% { transform: scale(1,1); } 30% { transform: scale(1.06,.94); } 60% { transform: scale(.96,1.04); } }

/* ------------------------------------------------------------------ *
 * 19. Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  /* La tarjeta NO va primero: el título/CTA arriba, la tarjeta debajo */
  .hero__visual { order: 2; max-width: 430px; margin: 20px auto 0; width: 100%; min-height: 370px; }
  .hero__copy { order: 1; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .burger { display: grid; }
  /* Logo (inicio) centrado en celulares: hamburguesa izq · logo centro · carrito der */
  .nav__inner { position: relative; }
  .nav .logo { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; }
  .burger { position: absolute; left: clamp(20px, 5vw, 40px); top: 50%; transform: translateY(-50%); }
  .nav__actions { margin-left: auto; }
  /* Hero centrado en celular */
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__points { justify-items: center; }
  .hero__points li { justify-content: center; }
  .hero__price { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .step__arrow { display: none !important; }
  .tst-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  /* Pills dentro de la caja para que no se corten */
  .hero__visual { min-height: 350px; max-width: 360px; }
  .pill-1 { left: -1%; top: -2%; }
  .pill-2 { right: -1%; bottom: 2%; }
  .pill-float { font-size: 0.8rem; padding: 8px 13px 8px 9px; }
  .hero__price b { font-size: 1.5rem; }
  .plan--featured { transform: none; }
}

/* ------------------------------------------------------------------ *
 * 20. Sub-páginas (legales / contacto)
 * ------------------------------------------------------------------ */
.page-hero { padding-top: clamp(36px,6vw,64px); padding-bottom: clamp(16px,3vw,32px); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.page-hero p { margin-top: 14px; color: var(--muted); max-width: 620px; }
.legal { max-width: 780px; margin-inline: auto; padding-bottom: clamp(44px,8vw,80px); }
.legal h2 { font-size: 1.24rem; margin-top: 34px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--body); margin-top: 12px; font-size: 0.99rem; line-height: 1.7; }
.legal ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 7px; }
.legal a { color: var(--clay-3); text-decoration: underline; text-underline-offset: 3px; }
.legal .muted { color: var(--muted); font-size: 0.86rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin-inline: auto; padding-bottom: clamp(44px,8vw,80px); }
.contact-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.field { display: grid; gap: 7px; margin-top: 15px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-sm); background: var(--card-2); border: 1.5px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 0.98rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.contact-info-item .ci-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-sm), var(--hi); }
.contact-info-item b { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.contact-info-item small { display: block; color: var(--muted); font-size: 0.84rem; }

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

/* ------------------------------------------------------------------ *
 * 21. Carrito + Checkout (modal)
 * ------------------------------------------------------------------ */
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); box-shadow: var(--sh-sm); transition: transform .2s var(--bounce), color .2s var(--ease), border-color .2s var(--ease); }
.cart-btn:hover { transform: translateY(-2px); color: var(--clay); border-color: var(--clay); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--clay); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 0.72rem; display: grid; place-items: center; box-shadow: var(--sh-sm), var(--hi); transform: scale(0); transition: transform .3s var(--bounce); }
.cart-badge.is-on { transform: scale(1); }
.cart-badge.bump { animation: badgeBump .45s var(--bounce); }
@keyframes badgeBump { 0%,100% { transform: scale(1); } 45% { transform: scale(1.4); } }

.modal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(52,42,28,.46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 448px; max-height: 90vh; overflow-y: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 30px); box-shadow: var(--sh-lg); transform: translateY(18px) scale(.97); transition: transform .38s var(--bounce); }
.modal-overlay.is-open .modal { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal__head h3 { font-size: clamp(1.3rem, 3.5vw, 1.55rem); }
.modal__x { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); border: 0; color: var(--body); flex: none; transition: background .2s var(--ease), color .2s var(--ease); }
.modal__x:hover { background: var(--cream-3); color: var(--ink); }
.modal__x svg { width: 18px; height: 18px; }
.modal__sub { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

.cart-empty { text-align: center; padding: 26px 0 10px; }
.cart-empty__ic { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--cream-2); color: var(--line-2); }
.cart-empty__ic svg { width: 32px; height: 32px; }
.cart-empty p { color: var(--muted); margin-bottom: 18px; }

.cart-items { display: grid; gap: 11px; margin-top: 20px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md); background: var(--cream); border: 1.5px solid var(--line); }
.cart-item__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--clay-tint); color: var(--clay-3); }
.cart-item__ic svg { width: 21px; height: 21px; }
.cart-item__info b { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--ink); display: block; line-height: 1.2; }
.cart-item__info small { color: var(--muted); font-size: 0.8rem; }
.cart-item__right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cart-item__price { font-family: var(--font-head); font-weight: 800; color: var(--clay); font-size: 0.98rem; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; }
.qty button { width: 25px; height: 25px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink); display: grid; place-items: center; transition: background .18s var(--ease), color .18s var(--ease); }
.qty button:hover { background: var(--clay); color: #fff; }
.qty button svg { width: 13px; height: 13px; }
.qty span { min-width: 22px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.cart-remove { background: none; border: 0; color: var(--muted); font-size: 0.76rem; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.cart-remove:hover { color: #c0483b; }
.cart-remove svg { width: 13px; height: 13px; }

.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 4px; padding: 16px 6px; border-top: 1.5px dashed var(--line-2); border-bottom: 1.5px dashed var(--line-2); }
.cart-total b { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.cart-total .amt { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--clay); }

.checkout-fields { margin-top: 4px; }
.modal__note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.modal .btn + .btn { margin-top: 10px; }

/* Toast "agregado al carrito" (arriba a la derecha) */
.toast-wrap { position: fixed; top: calc(var(--nav-h) + 12px); right: clamp(14px, 3vw, 24px); z-index: 500; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 18px 12px 12px; box-shadow: var(--sh-md); transform: translateX(130%); opacity: 0; transition: transform .45s var(--bounce), opacity .35s var(--ease); max-width: 320px; }
.toast.is-on { transform: none; opacity: 1; }
.toast__ic { width: 36px; height: 36px; border-radius: 11px; background: var(--sage-tint); color: var(--sage-2); display: grid; place-items: center; flex: none; }
.toast__ic svg { width: 19px; height: 19px; }
.toast b { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); display: block; line-height: 1.25; }
.toast small { color: var(--muted); font-size: 0.8rem; }

/* Utilidades */
.text-center { text-align: center; }
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }
