/* Marca: brandbook de Zidni V001 (octubre 2026). Montserrat; azul 0057d6, aqua 6bfbce, azul profundo 00299b
   y la gama UI (bdf2e0, 436ff3, 9db5ff). El árabe usa Noto Kufi Arabic, porque Montserrat no tiene árabe. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/fonts/noto-kufi-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/fonts/noto-kufi-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #00299b;
  --blue: #00299b;
  --aqua: #ff846d;
  --aqua-light: #ffc2b5;
  --sky: #ffe3dc;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.22);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
[dir="rtl"] {
  --sans: "Noto Kufi Arabic", "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink) linear-gradient(160deg, #00299b 0%, #001d73 100%) fixed;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}

#orb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(16px, 5vw, 56px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 34px; width: auto; }

.langs { display: flex; gap: 6px; }
.langs button {
  font: 700 14px var(--sans);
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--white); color: var(--blue); border-color: var(--white); }
.langs button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.langs button[data-lang="fr"] { font-family: "Montserrat", system-ui, sans-serif; }
.langs button[data-lang="ar"] { font-family: "Noto Kufi Arabic", system-ui, sans-serif; }

.hero {
  align-self: center;
  padding: 0 clamp(16px, 7vw, 96px) 6vh;
  max-width: 980px;
}
.eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--aqua);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(64px, 15vw, 188px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 800;
}
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.tagline {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: var(--aqua);
}
[dir="rtl"] .tagline { font-family: var(--sans); letter-spacing: 0; line-height: 1.6; }
.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin: 22px 0 0;
}
[dir="rtl"] .lead { line-height: 1.9; }
.for {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.for li {
  font-size: 15px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(16px, 5vw, 56px) calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}

/* La tarjeta de sellos: cada toque en la página pone un sello; con 8, el regalo */
.card {
  display: block;
  width: min(100%, 380px);
  margin: 30px 0 0;
  padding: 16px 18px 14px;
  text-align: start;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: rgba(255, 255, 255, 0.4); }
.card:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.card.full { border-color: var(--aqua); background: rgba(255, 132, 109, 0.16); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-shop { font-weight: 700; font-size: 16px; }
.card-count { font-family: "Montserrat", system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.card-count b { font-size: 17px; font-weight: 800; color: var(--white); }
.stamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 12px 0 10px; }
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
}
.stamp.on { background: var(--white); border: 1.5px solid var(--white); color: var(--blue); animation: stamp 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.stamp.gift.on { background: linear-gradient(90deg, var(--aqua), var(--sky)); border-color: var(--aqua); color: var(--ink); }
@keyframes stamp { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hint { display: block; font-size: 13px; color: var(--muted); }
.card.full .hint { color: var(--aqua); font-weight: 700; }

@media (max-width: 640px) {
  .hero { padding-bottom: 4vh; }
  .brand img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .stamp.on { animation: none; }
}
