/* Bacheame — paleta oficial de la ficha técnica de marca */
:root {
  --navy: #0A3066;
  --navy-deep: #072450;
  --orange: #F26419;
  --amber: #F5A623;
  --green: #38AF4B;
  --asphalt: #555555;
  --paper: #F6F8FB;
  --ink: #1B2533;
  --muted: #5B6778;
  --line: #DCE3EC;
  --radius: 18px;
  --head: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--body);
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--navy); }
h3 { font-size: 1.2rem; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--orange); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font: 700 1rem var(--body);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #d9550f; transform: translateY(-1px); }
.btn--small { padding: 8px 16px; font-size: .95rem; }
.btn--big { font-size: 1.15rem; padding: 16px 28px; }

.eyebrow {
  font: 700 .85rem var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .6em;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow--dark { color: var(--orange); }
.note { font-size: .92rem; color: rgba(255,255,255,.72); }
.note--light { color: rgba(255,255,255,.6); text-align: center; margin: 0; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.top__brand { display: flex; align-items: center; gap: 10px; }
.top__brand img { width: auto; height: 38px; }
.top__brand .top__name { height: 24px; }
.foot img { width: auto; height: 22px; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; }
.top__nav a:not(.btn):hover { opacity: 1; }

/* Portada */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(56,175,75,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(242,100,25,.18), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__logo { width: min(300px, 70%); margin-bottom: 24px; }
.lead { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 34em; }
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(300px, 80vw);
  border-radius: 38px;
  padding: 10px;
  background: #0b0f17;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #2a3342;
  transform: rotate(3deg);
}
.phone img { border-radius: 30px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.store {
  display: flex; align-items: center; gap: 12px;
  min-width: 200px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
}
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; font: 700 1.15rem/1.1 var(--body); }
.store small { font: 600 .72rem var(--body); opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.store--soon { opacity: .75; cursor: default; }

/* Tres caminos para participar */
.pathways { padding: 32px 0; background: var(--paper); }
.pathways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pathway { display: flex; flex-direction: column; min-height: 265px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 12px 30px rgba(10,48,102,.06); transition: transform .15s, box-shadow .15s; }
.pathway:hover, .pathway:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(10,48,102,.12); }
.pathway > span { color: #247b37; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pathway h2 { margin: 18px 0 10px; font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.pathway p { margin-bottom: 22px; color: var(--muted); font-size: .96rem; }
.pathway strong { margin-top: auto; color: #ba4610; }
.pathway:nth-child(2) { border-top: 5px solid var(--green); }
.pathway:nth-child(3) { border-top: 5px solid var(--amber); }

/* Razón comunitaria */
.community { background: #e7f5eb; }
.community__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.community h2 { max-width: 13ch; font-size: clamp(2.3rem, 4.5vw, 4rem); }
.community__grid > div:last-child { font-size: 1.12rem; }
.community__points { margin: 24px 0 0; padding: 22px 24px; border-left: 5px solid var(--orange); border-radius: 0 16px 16px 0; background: #fff; }
.community__points strong { color: var(--navy); }

/* Contador en vivo */
.versus { background: var(--navy-deep); color: #fff; padding: 72px 0; text-align: center; }
.versus h2 { color: #fff; max-width: 20em; margin-inline: auto; }
.versus .eyebrow { justify-content: center; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(56,175,75,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(56,175,75,0); } 100% { box-shadow: 0 0 0 0 rgba(56,175,75,0); } }

.versus__board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 40px 0 28px; }
.side { padding: 28px 20px; border-radius: var(--radius); }
.side--people { background: linear-gradient(160deg, rgba(242,100,25,.28), rgba(242,100,25,.08)); border: 1px solid rgba(242,100,25,.5); }
.side--munis { background: linear-gradient(160deg, rgba(56,175,75,.28), rgba(56,175,75,.08)); border: 1px solid rgba(56,175,75,.5); }
.side__who { font: 700 1rem var(--body); text-transform: uppercase; letter-spacing: .1em; margin: 0; opacity: .9; }
.side__num { font: 700 clamp(3rem, 9vw, 5.5rem)/1 var(--head); margin: 10px 0; font-variant-numeric: tabular-nums; }
.side--people .side__num { color: #FF8A4C; }
.side--munis .side__num { color: #5BD06C; }
.side__what { margin: 0; color: rgba(255,255,255,.85); }
.vs { font: 700 1.6rem var(--head); color: var(--amber); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--amber); }

.versus__bar { height: 14px; border-radius: 999px; background: rgba(242,100,25,.45); overflow: hidden; max-width: 760px; margin: 0 auto; }
.versus__fill { height: 100%; background: var(--green); border-radius: inherit; transition: width 1.2s ease; }
.minis { list-style: none; padding: 0; margin: 24px 0 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; color: rgba(255,255,255,.85); }
.minis strong { font: 700 1.3rem var(--head); color: var(--amber); margin-right: 4px; }

/* Secciones */
.section { padding: 80px 0; }
.section--alt { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font: 700 1.1rem var(--head); margin-bottom: 12px; }
.steps li:nth-child(6) span { background: var(--green); }
.steps p { margin: 0; color: var(--muted); }

.safety { background: var(--amber); color: #1b1b1b; }
.safety__row { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.safety svg { width: 32px; height: 32px; flex: none; }
.safety p { margin: 0; }

.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(10,48,102,.07); }
.roadmap { list-style: none; padding: 0; margin: 0 0 24px; }
.roadmap li { padding: 10px 0 10px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.roadmap li strong { display: block; color: var(--navy); font-family: var(--head); }
.roadmap li.is-now { border-left-color: var(--green); color: var(--ink); }

.contact { text-align: center; max-width: 640px; }
.contact p { color: var(--muted); }

.foot { background: var(--navy); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* Teléfonos */
@media (max-width: 860px) {
  .top__row { flex-wrap: wrap; padding-block: 10px; }
  .top__nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
  .top__nav a:not(.btn) { font-size: .88rem; }
  .hero { padding-top: 32px; }
  .hero__grid, .two, .community__grid { grid-template-columns: 1fr; }
  .pathways__grid { grid-template-columns: 1fr; }
  .pathway { min-height: 0; }
  .hero__phone { order: 2; }
  .phone { transform: none; width: min(260px, 75vw); }
  .steps { grid-template-columns: 1fr; }
  .versus__board { grid-template-columns: 1fr; }
  .vs { margin: 0 auto; }
  .store { flex: 1 1 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
