:root {
  --blue: #2A5BBF;
  --blue-dark: #1e4494;
  --blue-light: #4f8be8;
  --wa: #25D366;
  --wa-dark: #1da851;
  --ink: #16233a;
  --muted: #5b6b7d;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --border: #e4eaf3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(42, 91, 191, .10);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px;
  cursor: pointer; border: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .30); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { background: transparent; color: var(--blue); border: 2px solid var(--border); }
.btn--ghost:hover { border-color: var(--blue); background: var(--bg-alt); }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(42, 91, 191, .08); padding: 6px 12px; border-radius: 999px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 20px; color: var(--blue); letter-spacing: .2px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 500; color: var(--muted); font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 8px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 18px 0; }
.hero .hl { color: var(--blue); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 24px; }
.hero__points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; }
.hero__points li { font-size: 14px; color: var(--muted); font-weight: 500; position: relative; padding-left: 22px; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__logo { width: min(340px, 80%); filter: drop-shadow(0 12px 24px rgba(22,35,58,.12)); position: relative; z-index: 1; }

/* ===== Secciones ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; }
.section__sub { color: var(--muted); font-size: 17px; }

/* ===== Cards verticales ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__ico { font-size: 40px; margin-bottom: 14px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.cards-note { text-align: center; max-width: 720px; margin: 34px auto 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cards-note strong { color: var(--blue); }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.feature__ico { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ===== Experiencia ===== */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp { text-align: center; padding: 22px 20px; }
.exp__ico { font-size: 34px; margin-bottom: 10px; }
.exp h3 { font-size: 18px; margin-bottom: 6px; }
.exp p { color: var(--muted); font-size: 14.5px; }

/* ===== Compromiso 1% ===== */
.pledge {
  margin-top: 48px;
  display: flex; align-items: center; gap: 30px;
  background: linear-gradient(135deg, rgba(42, 91, 191, .07), rgba(37, 211, 102, .07));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 38px;
}
.pledge__badge {
  flex: none; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; display: grid; place-items: center;
  font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 12px 26px rgba(42, 91, 191, .30);
}
.pledge__body h3 { font-size: 21px; margin-bottom: 8px; }
.pledge__body p { color: var(--muted); font-size: 15.5px; }
.pledge__body strong { color: var(--blue); }

/* ===== Capturas (marco de navegador) ===== */
.frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(22, 35, 58, .14); background: #fff;
}
.frame--lg { max-width: 940px; margin: 0 auto; }
.frame__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #eef2f8; border-bottom: 1px solid var(--border);
}
.frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd6e6; }
.frame__bar span:nth-child(1) { background: #ff5f57; }
.frame__bar span:nth-child(2) { background: #febc2e; }
.frame__bar span:nth-child(3) { background: #28c840; }
.frame img { width: 100%; display: block; }
.frame__cap { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.frame-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; padding: 80px 0; text-align: center; }
.cta__inner { max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 28px; }
.cta__phone { font-size: 15px; margin-top: 18px; color: rgba(255,255,255,.85); }

/* ===== Footer ===== */
.footer { background: #0f1a2e; color: #cdd6e6; padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .brand__name { color: #fff; }
.footer__tag { font-size: 15px; color: #9aa8c2; }
.footer__social { display: flex; gap: 14px; margin-top: 4px; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #cdd6e6; font-size: 14px; font-weight: 600;
  transition: color .15s ease;
}
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__legal { font-size: 13px; color: #6b7a97; margin-top: 6px; }

/* ===== FAB WhatsApp ===== */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .15s ease;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa .wa-icon { width: 30px; height: 30px; }

/* ===== Precios ===== */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(42, 91, 191, .16); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}
.plan__name { font-size: 19px; font-weight: 800; }
.plan__tag { color: var(--muted); font-size: 13.5px; margin-top: 2px; min-height: 20px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.plan__amount { font-size: 32px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.plan__per { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan__annual { color: #2e7d32; font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.plan__feats { list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan__feats li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink); }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }
.plan__feats li.off { color: #aab2c0; }
.plan__feats li.off::before { content: "✕"; color: #cbd3e0; }
.plan__feats strong { font-weight: 700; }
.plan__cta { margin-top: auto; justify-content: center; width: 100%; }
.pricing__note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 30px; }
.pricing__note a { color: var(--blue); font-weight: 700; }

/* ============ Animaciones ============ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ctaShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Sombra del nav al hacer scroll (no es "motion", siempre activa) */
.nav { transition: box-shadow .25s ease; }
.nav--scrolled { box-shadow: 0 6px 22px rgba(22, 35, 58, .09); }

/* Hover en features (antes no tenían) */
.feature { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3e0f5; }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero al cargar (escalonada) */
  .js .hero__copy > * { opacity: 0; animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__copy > .eyebrow      { animation-delay: .05s; }
  .js .hero__copy > h1            { animation-delay: .15s; }
  .js .hero__copy > .lead         { animation-delay: .28s; }
  .js .hero__copy > .hero__cta    { animation-delay: .40s; }
  .js .hero__copy > .hero__points { animation-delay: .52s; }

  /* Arte del hero: aparece y el logo flota suave */
  .js .hero__art  { animation: fadeIn 1s ease .1s both; }
  .js .hero__logo { animation: float 6s ease-in-out infinite; }

  /* CTA final: el gradiente se desplaza suave */
  .cta { background-size: 200% 200%; animation: ctaShift 14s ease-in-out infinite; }

  /* Scroll-reveal: aparecen al entrar al viewport (main.js agrega .is-in) */
  .js .section__head,
  .js .cards > .card,
  .js .features > .feature,
  .js .exp-grid > .exp,
  .js .pricing > .plan,
  .js .frame,
  .js .pledge {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .js .is-in { opacity: 1 !important; transform: none !important; }

  /* Escalonado dentro de las grillas */
  .js .cards > .card:nth-child(2),
  .js .features > .feature:nth-child(2),
  .js .exp-grid > .exp:nth-child(2),
  .js .pricing > .plan:nth-child(2) { transition-delay: .08s; }
  .js .cards > .card:nth-child(3),
  .js .features > .feature:nth-child(3),
  .js .exp-grid > .exp:nth-child(3),
  .js .pricing > .plan:nth-child(3) { transition-delay: .16s; }
  .js .cards > .card:nth-child(4),
  .js .features > .feature:nth-child(4),
  .js .pricing > .plan:nth-child(4) { transition-delay: .24s; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; min-height: 220px; }
  .hero__logo { width: min(220px, 60%); }
  .lead, .hero__cta, .hero__points { margin-left: auto; margin-right: auto; justify-content: center; }
  .cards, .features, .frame-row, .exp-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .pledge { flex-direction: column; text-align: center; gap: 20px; padding: 30px 24px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .pricing { grid-template-columns: 1fr; }
}
