/* ============================================================
   MOA ONE — Landing page
   Paleta: navy #0B1B33 · azul #02A4F7 · cian #02CDF8 · teal #07FAE8 · hueso #F7F7F7
   ============================================================ */

:root {
  --navy: #0B1B33;
  --navy-700: #12264a;
  --blue: #02A4F7;
  --cyan: #02CDF8;
  --teal: #07FAE8;
  --bone: #F7F7F7;
  --white: #FFFFFF;
  --ink: #1c2733;
  --muted: #5a6b7d;
  --grad: linear-gradient(135deg, #02A4F7 0%, #02CDF8 50%, #07FAE8 100%);
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 27, 51, 0.10);
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--cyan); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(2, 205, 248, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(2, 205, 248, 0.45); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-xl { padding: 1.1rem 2.4rem; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; margin-top: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 27, 51, 0.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }

.logo-pill {
  display: inline-flex; align-items: center;
  background: var(--bone);
  border-radius: 14px;
  padding: 6px 14px;
  line-height: 0;
}
.brand-logo { width: 150px; height: auto; border-radius: 8px; }
.brand-fallback { display: none; font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; }
.brand-fallback .moa { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-fallback .one { color: var(--navy); }
.logo-missing + .brand-fallback,
img.logo-missing { display: none; }
img.logo-missing + .brand-fallback { display: inline; }

.main-nav ul { display: flex; gap: 1.8rem; list-style: none; }
.main-nav a:not(.btn) {
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.3rem 0; position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); transition: width 0.2s ease;
}
.main-nav a:not(.btn):hover::after, .main-nav a:not(.btn):focus-visible::after { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.btn-nav { padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(2, 205, 248, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 30%, transparent 75%);
}
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 8%; opacity: 0.35; }
.hero-pulse svg { width: 100%; height: 110px; }
.pulse-line { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: pulse-draw 6s linear infinite; }
@keyframes pulse-draw { to { stroke-dashoffset: -2400; } }

.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(247, 247, 247, 0.82); max-width: 62ch; margin-top: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; margin-top: 2.4rem; }
.hero-chips li {
  font-size: 0.88rem; font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(2, 205, 248, 0.4);
  background: rgba(2, 205, 248, 0.08);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-sub { color: var(--muted); max-width: 60ch; margin-top: 0.4rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 164, 247, 0.12), rgba(7, 250, 232, 0.12));
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.closing-line {
  margin-top: 2.6rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-family: var(--font-title);
  text-align: center;
  color: var(--navy);
}
.closing-line strong, .closing-line { position: relative; }
.closing-line strong { background: linear-gradient(180deg, transparent 62%, rgba(7, 250, 232, 0.35) 62%); }

/* ---------- Franja de entregables ---------- */
.deliverables {
  margin-top: 2.4rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  box-shadow: var(--shadow-md);
}
.deliverables-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--cyan);
}
.deliverables ul { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; }
.deliverables li { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.deliverables li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--white); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: stretch; margin-top: 2.6rem;
}
.price-card {
  position: relative;
  background: var(--bone);
  border: 1px solid rgba(11, 27, 51, 0.08);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card-featured {
  background: var(--white);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(2, 164, 247, 0.18);
  z-index: 1;
}
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--navy);
  font-family: var(--font-title); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 1.1rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(2, 205, 248, 0.4);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; }
.price { font-family: var(--font-title); font-weight: 700; font-size: 2.8rem; color: var(--navy); margin-top: 0.6rem; line-height: 1; }
.price .currency { font-size: 1.2rem; vertical-align: super; margin-right: 2px; }
.price .period { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-annual { color: var(--blue); font-weight: 600; font-size: 0.92rem; margin-top: 0.3rem; }
.plan-quota { color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(11, 27, 51, 0.08); }
.plan-features { list-style: none; margin: 1.1rem 0 1.6rem; display: grid; gap: 0.55rem; }
.plan-features li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.plan-features li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg); border-radius: 1px;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ---------- Cómo funciona ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem; margin-top: 2.8rem;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%;
  height: 2px; background: linear-gradient(90deg, rgba(2,164,247,0.15), rgba(2,205,248,0.6), rgba(7,250,232,0.15));
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); color: var(--navy);
  font-family: var(--font-title); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(2, 205, 248, 0.35);
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Alcance ---------- */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.4rem; }
.scope-col {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.scope-col h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.scope-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; }
.scope-icon.check { background: rgba(7, 250, 232, 0.15); color: #009688; }
.scope-icon.cross { background: rgba(255, 82, 82, 0.12); color: #d32f2f; }
.scope-col ul { list-style: none; display: grid; gap: 0.6rem; }
.scope-col li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.scope-includes li::before, .scope-excludes li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%;
}
.scope-includes li::before { background: var(--teal); }
.scope-excludes li::before { background: #d32f2f; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; background: var(--navy); color: var(--white); overflow: hidden; text-align: center; }
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(2, 205, 248, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 780px; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(247, 247, 247, 0.82); font-size: 1.1rem; margin-top: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(247, 247, 247, 0.75); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  padding: 2.4rem 0 1.4rem;
}
.footer-tagline { margin-top: 0.7rem; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,247,247,0.5); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer-nav a { color: rgba(247, 247, 247, 0.75); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--cyan); }
.footer-contact a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.1rem 0 1.6rem; font-size: 0.82rem; color: rgba(247,247,247,0.45); }

/* ---------- Animaciones de scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-line { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card-featured { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bone);
    flex-direction: column; align-items: stretch;
    padding: 1rem 4%;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(11, 27, 51, 0.08);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav li a { display: block; padding: 0.7rem 0.2rem; }
  .btn-nav { margin-top: 0.6rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .card-grid.three, .scope-grid, .steps { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .deliverables { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
