/* Kennedy Comercial — landing de lanzamiento
   Tokens del sistema de diseño Kennedy Comercial */
:root {
  --brand-red: #EE3338;
  --action-red: #D62828;
  --action-red-strong: #B71F1F;
  --ink: #1F1F23;
  --ink-muted: #6B6B73;
  --sun: #FFC23D;
  --cream: #FFF8F1;
  --surface: #FFFFFF;
  --line: #ECE7E1;
  --on-brand: #FFFFFF;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
  /* Fondo rojo para bandas con texto blanco pequeño: #D62828 da 5:1 (AA) */
  --band: var(--action-red);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--action-red); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s var(--ease-out), color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--action-red); color: var(--on-brand); }
.btn-solid:hover { background: var(--action-red-strong); color: var(--on-brand); box-shadow: 0 12px 24px -10px rgba(214, 40, 40, .55); }
.btn-light { background: var(--surface); color: var(--action-red); }
.btn-light:hover { color: var(--action-red-strong); box-shadow: 0 14px 30px -12px rgba(31, 31, 35, .45); }
.btn-outline-light { color: var(--on-brand); box-shadow: inset 0 0 0 2px var(--on-brand); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--on-brand); }

.tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--sun); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--band);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-solid { background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(31,31,35,.4); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-brand); transition: color .3s; }
.nav.is-solid .brand { color: var(--action-red); }
.brand-icon { width: 44px; height: 44px; fill: currentColor; }
.brand-hole { fill: var(--band); transition: fill .3s; }
.nav.is-solid .brand-hole { fill: var(--surface); }
.brand-hand { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-word { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-display); line-height: 1; }
.brand-word span:first-child { font-size: 21px; font-weight: 800; }
.brand-word span:last-child { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative; color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: 15px;
  padding-block: 6px; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav.is-solid .nav-links a { color: var(--ink); }
.nav-cta { background: var(--surface); color: var(--action-red); }
.nav-cta:hover { background: var(--surface); color: var(--action-red-strong); }
.nav.is-solid .nav-cta { background: var(--action-red); color: var(--on-brand); }
.nav.is-solid .nav-cta:hover { background: var(--action-red-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--band); color: var(--on-brand);
  padding: 56px 0 96px;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.kicker-red { color: var(--action-red); }
.kicker-sun { color: var(--sun); }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance; max-width: 13ch;
}
.hero-sub { margin-top: 24px; max-width: 560px; font-size: 19px; line-height: 1.55; font-weight: 500; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-price { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.hero-price strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; }

/* Pines decorativos que flotan */
.hero-pins { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pin {
  position: absolute; width: 64px; height: 64px;
  background: rgba(255,255,255,.1);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  animation: pinFloat 9s ease-in-out infinite;
}
.pin::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--band); }
.p1 { top: 10%; left: 4%; }
.p2 { top: 70%; left: 10%; width: 40px; height: 40px; animation-delay: -2s; }
.p3 { top: 16%; left: 48%; width: 34px; height: 34px; animation-delay: -4s; }
.p4 { top: 78%; left: 56%; width: 90px; height: 90px; animation-delay: -6s; background: rgba(255,194,61,.22); }
.p5 { top: 6%; right: 6%; width: 48px; height: 48px; animation-delay: -1s; }
@keyframes pinFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

/* Teléfono con el directorio */
.phone {
  justify-self: center; width: min(340px, 100%);
  padding: 12px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(31,31,35,.7);
  transform: rotate(3deg);
  transition: transform .6s var(--ease-out);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--cream); color: var(--ink); padding-bottom: 16px; }
.ph-top { background: var(--brand-red); color: #fff; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ph-logo { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.ph-logo small { font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.ph-search { background: #fff; color: var(--ink-muted); border-radius: var(--radius-pill); padding: 11px 16px; font-size: 13px; }
.ph-chips { display: flex; gap: 6px; padding: 14px 14px 6px; }
.ph-chips span { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink); background: #fff; white-space: nowrap; }
.ph-chips .on { background: var(--ink); color: #fff; }
.ph-card { margin: 8px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.ph-card--top { border: 2px solid var(--action-red); }
.ph-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); }
.ph-card--top .ph-thumb { background: var(--brand-red); }
.ph-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-info em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--action-red); }
.ph-info b { font-size: 14px; }
.ph-info i { font-style: normal; font-size: 11px; color: var(--ink-muted); }
.ph-open { align-self: flex-start; margin-top: 3px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--sun); }
.ph-wa { margin: 14px 14px 0; background: var(--action-red); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 12px; border-radius: var(--radius-pill); }

/* ---------- Marquee de UPZ ---------- */
.marquee { background: var(--sun); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; white-space: nowrap;
  padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--action-red); margin-left: 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: #fff; }
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em;
  text-wrap: balance; max-width: 22ch;
}
.lead { margin-top: 20px; font-size: 19px; color: var(--ink); max-width: 520px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(31,31,35,.45); border-color: var(--brand-red); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  margin-bottom: 22px;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--ink-muted); font-size: 16px; }

/* Beneficios */
.benefits { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.benefit:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 24px 40px -28px rgba(214,40,40,.5); }
.benefit-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-red); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.benefit p { font-size: 15px; color: var(--ink-muted); }

/* Plan */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.plan-card {
  position: relative; background: var(--surface);
  border: 3px solid var(--action-red); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: 14px 14px 0 var(--brand-red);
  display: flex; flex-direction: column; gap: 14px;
}
.plan-card .tag { align-self: flex-start; }
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-price span { white-space: nowrap; }
.plan-price strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; color: var(--action-red); letter-spacing: -.02em; }
.plan-price span { font-size: 20px; font-weight: 700; }
.plan-note { color: var(--ink-muted); font-size: 15px; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.pay-label { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.pay-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pay-list li { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--cream); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.plan-list { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.plan-list li { position: relative; padding-left: 34px; font-size: 16px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Para quién */
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 12px 20px; border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,.85); font-weight: 600; font-size: 16px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.chips li:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); transform: translateY(-3px); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-red); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--cream);
  background-image: linear-gradient(var(--action-red), var(--action-red)), linear-gradient(var(--action-red), var(--action-red));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-muted); font-size: 16px; }

/* CTA final */
.cta { background: var(--band); color: #fff; padding: 96px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; text-wrap: balance; max-width: 20ch; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.footer p { font-size: 14px; margin-top: 6px; }
.footer-meta { margin: 0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--action-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(31,31,35,.55);
  transition: transform .25s var(--ease-out), background-color .2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--action-red-strong); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Revelado al hacer scroll (solo si JS está activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2), .js .benefits .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3), .js .benefits .reveal:nth-child(3) { transition-delay: .16s; }
.js .benefits .reveal:nth-child(4) { transition-delay: .24s; }

/* Solo efectos intrusivos se desactivan con reduce-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; min-height: 0; }
  .hero-inner, .plan-wrap, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: rotate(0deg); width: min(320px, 100%); }
  .section { padding: 72px 0; }
  .plan-card { padding: 28px; box-shadow: 8px 8px 0 var(--brand-red); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --nav-h: 68px; }
  .wrap { padding-inline: 18px; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-word span:first-child { font-size: 17px; }
  .brand-word span:last-child { font-size: 10px; }
  .nav-cta { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .cta .btn { white-space: normal; text-align: center; }
  .marquee-track span { font-size: 16px; }
  .plan-card { padding: 24px 20px; }
  .plan-price strong { font-size: 2.6rem; }
}
/* Redes sociales */
.cta-social { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.cta-social p { font-size: 16px; font-weight: 600; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.social a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-light a { padding: 0 18px; }
.social-light a:hover { color: var(--action-red); }

/* Deja espacio para el botón flotante de WhatsApp */
.footer-inner { padding-right: 72px; }
