/* =====================================================================
   oGo — componentes reutilizables
   (botones, navegación, insignias de tienda, chips, teléfono,
    ventanilla, botón de video, footer, aviso de cookies)
   ===================================================================== */

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h); padding: 0 var(--s-6);
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), box-shadow var(--t-mid) var(--ease), border-color var(--t-fast);
}
.btn--lg { --h: 56px; padding: 0 var(--s-8); font-size: var(--fs-base); }
.btn--primary { background: var(--orange); color: var(--on-orange); box-shadow: var(--sh-orange); }
.btn--primary:hover { background: var(--orange-strong); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--orange); }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--ink);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color var(--t-fast);
}
.icon-btn:hover { border-color: var(--orange); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-6); }
.nav__brand { display: inline-flex; flex-shrink: 0; border-radius: 8px; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: none; gap: var(--s-1); margin-inline: auto; }
.nav__links a {
  position: relative; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); color: var(--muted); text-decoration: none;
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--orange);
}
.nav__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav__cta { display: none; }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: var(--s-6) var(--gutter) var(--s-10);
  overflow-y: auto;
}
.drawer nav { display: flex; flex-direction: column; gap: var(--s-1); }
.drawer a:not(.btn) {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  padding: var(--s-3) 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: var(--s-6); --h: 56px; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 0; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .drawer { display: none !important; }
}

/* ---------- Insignias de tienda ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-2) var(--s-5) var(--s-2) var(--s-4);
  border-radius: 14px; border: 1.5px solid var(--ink);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid);
}
a.store-badge:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: .72rem; font-weight: 500; opacity: .85; }
.store-badge strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.store-badge.is-soon { border-style: dashed; border-color: var(--muted); }
.store-row--invert .store-badge { background: #fff; color: #111; border-color: #fff; }
@media (max-width: 420px) {
  .store-badge { min-height: 52px; gap: var(--s-2); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3); }
  .store-badge svg { width: 22px; height: 22px; }
  .store-badge strong { font-size: 1.05rem; }
}
.store-row--invert .store-badge.is-soon { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

/* ---------- Chips y etiquetas ---------- */
.chip {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 0 var(--s-3); border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink); white-space: nowrap;
}
.chip.is-on { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.tag {
  display: inline-flex; align-items: center; vertical-align: middle;
  padding: .1rem .55rem; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  background: var(--teal-soft); color: var(--teal);
}
.tag--prime { background: var(--orange); color: var(--on-orange); }

/* ---------- Teléfono (marco para capturas reales) ---------- */
.phone {
  --w: 280px;
  width: var(--w); max-width: 100%;
  padding: 9px; border-radius: 42px;
  background: var(--bezel);
  box-shadow: var(--sh-lg), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone__screen {
  position: relative; border-radius: 34px; overflow: hidden;
  aspect-ratio: 1320 / 2714; background: var(--screen);
}
.phone__screen img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.phone__screen--orange { background: #F1A640; }
.phone--sm { --w: 230px; border-radius: 36px; padding: 8px; }
.phone--sm .phone__screen { border-radius: 29px; }

/* ---------- Ventanilla de avión (video del hero) ---------- */
.window {
  position: relative;
  width: 100%; aspect-ratio: 3 / 4.1;
  padding: clamp(12px, 2.2vw, 18px);
  border-radius: 48% / 36%;
  background: linear-gradient(160deg, var(--window-a), var(--window-b));
  box-shadow: var(--sh-lg), inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 8px rgba(0,0,0,.08);
}
.window__glass {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 46% / 34%;
  background: #E9B776;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.07), inset 0 6px 18px rgba(0,0,0,.25);
}
.window__video { width: 100%; height: 100%; object-fit: cover; }
.window__glass::after { /* reflejo del vidrio */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 32%);
}
.window__shade { /* persiana: sube una vez al cargar la página */
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, var(--window-a), var(--window-b));
  transform: translateY(-84%);
  animation: shade-up 1.5s var(--ease) .35s both;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.window__shade span {
  position: absolute; left: 50%; bottom: 10px; width: 46px; height: 7px; margin-left: -23px;
  border-radius: 99px; background: var(--muted); opacity: .45;
}
@keyframes shade-up { from { transform: translateY(0); } to { transform: translateY(-84%); } }

/* ---------- Botón de pausa para videos ---------- */
.media-btn {
  position: absolute; z-index: 3; right: 14%; bottom: 9%;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18, 18, 18, .55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .85; transition: opacity var(--t-fast);
}
.media-btn:hover, .media-btn:focus-visible { opacity: 1; }
.media-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.media-btn .i-play { display: none; fill: currentColor; }
.media-btn.is-paused .i-play { display: block; }
.media-btn.is-paused .i-pause { display: none; }

/* ---------- Marcas de la tabla comparativa ---------- */
.mark { display: inline-flex; align-items: center; justify-content: center; }
.mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark--yes { color: var(--teal); }
.mark--no { color: var(--muted); opacity: .6; }
.mark--text { font-weight: 700; font-size: var(--fs-sm); }

/* ---------- QR ---------- */
.qr-row { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.qr { text-align: center; }
.qr img { width: 120px; height: 120px; padding: 8px; background: #fff; border-radius: var(--r-md); }
.qr figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); opacity: .8; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); padding-block: var(--s-16) var(--s-8); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: var(--s-10); grid-template-columns: 1fr; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { margin-top: var(--s-4); color: var(--muted); max-width: 34ch; font-size: var(--fs-sm); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink); transition: border-color var(--t-fast), color var(--t-fast);
}
.socials a:hover { border-color: var(--orange); color: var(--accent-text); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill, .socials svg path.fill { fill: currentColor; stroke: none; }
.footer__col h3 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: var(--s-3); }
.footer__col ul { display: grid; gap: var(--s-1); }
.footer__col a { display: inline-block; padding: var(--s-1) 0; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); justify-content: space-between;
  margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--muted);
}
.footer__made { display: inline-flex; align-items: center; gap: var(--s-2); }
.flag-mx { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Aviso de cookies ---------- */
.consent {
  position: fixed; z-index: 150; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  max-width: 560px; margin-inline: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--s-5); display: grid; gap: var(--s-4);
  font-size: var(--fs-sm);
}
.consent a { color: var(--accent-text); font-weight: 600; }
.consent__actions { display: flex; gap: var(--s-2); justify-content: flex-end; flex-wrap: wrap; }
