/* Pasos marketing one-pager — 2026-07 visual refresh (mockup-inspired).
   Softer elevation, pastel tier tints, human hero. Same rules as before:
   self-contained, no external fonts, no third-party requests, no JavaScript. */

:root {
  --bg: #fbfaf6;
  --card: #ffffff;
  --ink: #17263c;
  --muted: #5a6474;
  --primary: #2e9e76;
  --primary-deep: #14532d;
  --primary-dark: #1f6b52;
  --mint: #e8f4ee;
  --gold: #ffc53d;
  --gold-ink: #9a6b00;
  --navy: #1b2a41;
  --navy-2: #2d4263;
  --border: #ebe6da;
  --shadow-soft: 0 10px 30px rgba(23, 38, 60, 0.08);
  --shadow-card: 0 4px 16px rgba(23, 38, 60, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 0;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--primary-deep);
  text-decoration: none;
}
.topbar .brand img { width: 38px; height: 38px; border-radius: 11px; }
.top-nav {
  display: flex;
  gap: 22px;
  font-weight: 800;
  font-size: 0.92rem;
}
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--primary-deep); }
.lang-switch {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-deep);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--card);
}
.lang-switch:hover { border-color: var(--primary); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 26px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.hero h1 em { font-style: normal; }
.hero h1 .h1-accent { color: var(--primary); display: block; }
.hero .sub {
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 30em;
}
.cta {
  display: inline-block;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 15px 32px;
  transition: transform 0.1s, background 0.15s;
}
.cta:hover { background: #0e3f22; }
.cta:active { transform: translateY(2px); }
.cta-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.badge {
  background: var(--mint);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-deep);
}

/* hero visual: two real worker photos crossfading on a pure-CSS loop, each
   with its matching phrase bubble. No JavaScript — timed opacity keyframes. */
.hero-visual {
  position: relative;
  min-height: 440px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-swap 12s infinite;
}
.hero-slide.s2 { animation-delay: 6s; }
@keyframes hero-swap {
  0% { opacity: 0; }
  6% { opacity: 1; }
  50% { opacity: 1; }
  56% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide.s1 { opacity: 1; }
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  /* Fallback (no mask support): soft rounded card */
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  background: var(--mint); /* graceful mint card while the photo is missing */
  /* Disappearing edges: the photo feathers out into the page background.
     Ellipse sized so the fade starts ~3/4 of the way out and the corners
     dissolve completely. */
  -webkit-mask-image: radial-gradient(ellipse 64% 60% at 50% 44%, #000 50%, transparent 96%);
  mask-image: radial-gradient(ellipse 64% 60% at 50% 44%, #000 50%, transparent 96%);
}
.bubble {
  position: absolute;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
}
.bubble small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}
.bubble.b1 { top: 18px; right: -6px; }
.bubble.b2 { bottom: 26px; left: -6px; }
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  margin-top: 6px;
}
.wave span {
  width: 3.5px;
  border-radius: 2px;
  background: var(--primary);
}
.wave span:nth-child(1) { height: 6px; }
.wave span:nth-child(2) { height: 12px; }
.wave span:nth-child(3) { height: 16px; }
.wave span:nth-child(4) { height: 9px; }
.wave span:nth-child(5) { height: 14px; }
.wave span:nth-child(6) { height: 7px; }
.wave span:nth-child(7) { height: 11px; }
.wave span:nth-child(8) { height: 5px; }

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin: 8px 0 10px;
}
.stat-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-cell b { font-size: 1.45rem; font-weight: 900; display: block; line-height: 1.1; }
.stat-cell small { color: var(--muted); font-weight: 700; font-size: 0.85rem; }

/* ---------- sections ---------- */
section { padding: 36px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 6px;
}
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}
.section-sub { color: var(--muted); font-weight: 600; margin: 0 0 24px; max-width: 42em; }

/* oficios */
.tier-label {
  font-weight: 900;
  font-size: 1.02rem;
  margin: 22px 0 12px;
}
.tier-label .tag {
  font-size: 0.75rem;
  color: var(--gold-ink);
  background: #fdf3da;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 8px;
  vertical-align: 2px;
}
.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}
.job {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 18px 10px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.tier-start .job { background: #eaf6f0; }
.tier-start .job small { color: #2c6e53; }
.tier-grow .job { background: #fdf3e3; }
.tier-grow .job small { color: #8a5f14; }
.tier-aspire .job { background: #eef2fb; }
.tier-aspire .job small { color: #40598f; }
.job .ico { font-size: 2rem; display: block; }
.job b { font-size: 0.96rem; display: block; margin-top: 6px; color: var(--ink); }
.job small { font-size: 0.75rem; font-weight: 700; line-height: 1.3; display: block; margin-top: 2px; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}
.step-card .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--primary-deep);
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 900; }
.step-card p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan h3 { margin: 0; font-size: 1.2rem; font-weight: 900; }
.plan .price { font-size: 2.2rem; font-weight: 900; margin: 10px 0 2px; }
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; font-weight: 700; font-size: 0.95rem; }
.plan li { padding: 5px 0; }
.plan .fine { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
/* "Pasos completo" wears the app's navy tier-card identity */
.plan.full {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: none;
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.plan.full h3 { color: var(--gold); }
.plan.full .price small { color: #aebdd2; }
.plan.full .fine { color: #aebdd2; }

/* trust */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
}
.trust-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 1.25rem;
}
.trust-card b { display: block; margin: 10px 0 4px; }
.trust-card p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 0;
  cursor: pointer;
  list-style-position: inside;
}
.faq summary::marker { color: var(--primary); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 12px 0 16px;
}

/* swipe hint (mobile carousels) */
.swipe-hint {
  display: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 0;
}

/* bottom cta */
.bottom-cta {
  text-align: center;
  background: var(--mint);
  border-radius: 26px;
  padding: 46px 24px;
}
.bottom-cta h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 900; margin: 0 0 8px; letter-spacing: -0.4px; }
.bottom-cta p { color: var(--muted); font-weight: 600; margin: 0 0 22px; }

footer {
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .top-nav { display: none; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  /* Short enough that headline + CTA share the first screen with the photo */
  .hero-visual { min-height: 280px; order: -1; }
  .bubble.b1 { right: 2px; }
  .bubble.b2 { left: 2px; }
  .cta { display: block; text-align: center; }

  /* Carousels: pure CSS scroll-snap, no JS; all content stays in the HTML
     for SEO/GEO. */
  .steps,
  .trust,
  .jobs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -20px;
    padding: 4px 20px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar,
  .trust::-webkit-scrollbar,
  .jobs::-webkit-scrollbar { display: none; }
  .steps > *,
  .trust > * {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .jobs > * {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
  .swipe-hint { display: block; }
}
