:root {
  --sky: #8fd4ff;
  --sky-deep: #5bb8f5;
  --cream: #fff6e8;
  --paper: #fffdf9;
  --ink: #2a1d16;
  --ink-soft: #5a4338;
  --muted: #7a6256;
  --orange: #ff8a3d;
  --orange-deep: #ef6a14;
  --pink: #ff6fa5;
  --pink-deep: #e94d8a;
  --mint: #3ecf9a;
  --mint-deep: #1ea877;
  --gold: #ffc43a;
  --navy: #2c2a55;
  --shadow: 0 16px 40px rgba(60, 40, 20, 0.14);
  --radius: 28px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 520px at 50% -80px, #bfe9ff 0%, var(--sky) 42%, #ffe7c2 78%, var(--cream) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: #0f6d8f; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(980px, calc(100% - 28px)); margin: 0 auto; }

/* decorative clouds */
.clouds { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.cloud {
  position: absolute;
  background: #fff;
  opacity: 0.72;
  border-radius: 40px;
  filter: drop-shadow(0 8px 0 rgba(255,255,255,0.4));
  animation: drift 28s linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud.c1 { width: 110px; height: 36px; top: 92px; left: -40px; animation-duration: 36s; }
.cloud.c1::before { width: 48px; height: 48px; top: -26px; left: 18px; }
.cloud.c1::after { width: 36px; height: 36px; top: -16px; left: 52px; }
.cloud.c2 { width: 150px; height: 42px; top: 160px; right: -60px; animation-direction: reverse; animation-duration: 42s; }
.cloud.c2::before { width: 60px; height: 60px; top: -30px; left: 26px; }
.cloud.c2::after { width: 42px; height: 42px; top: -18px; left: 78px; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 246, 232, 0.78);
  border-bottom: 2px solid rgba(255,255,255,0.7);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 6px 0 #ef6a14;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-top: 2px;
}

.lang {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 0 rgba(44, 42, 85, 0.12);
  flex-shrink: 0;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  text-align: center;
  padding: 28px 0 10px;
  z-index: 1;
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(239, 106, 20, 0.15);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 10vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--navy);
  margin: 0 0 12px;
  text-wrap: balance;
}
.lede {
  margin: 0 auto 22px;
  max-width: 28em;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  height: 310px;
  margin: 8px auto 0;
  position: relative;
}
.phone {
  width: min(46vw, 168px);
  aspect-ratio: 1290 / 2796;
  background: #1b1a28;
  border: 7px solid #1b1a28;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,0.7);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 36%;
  height: 8px;
  transform: translateX(-50%);
  background: #0e0d16;
  border-radius: 8px;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone.left {
  transform: rotate(-8deg) translateY(12px);
  animation: bob 4.6s ease-in-out infinite;
  z-index: 1;
}
.phone.right {
  transform: rotate(8deg) translateY(12px);
  animation: bob 4.6s ease-in-out infinite 0.6s;
  z-index: 2;
}
@keyframes bob {
  0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(12px); }
  50% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
}
.phone.left { --tilt: -8deg; }
.phone.right { --tilt: 8deg; }

.games { padding: 18px 0 8px; position: relative; z-index: 1; }
.games h2 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 8px 0 6px;
  text-align: center;
}
.section-intro {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 20px;
}

.card {
  background: var(--paper);
  border-radius: 32px;
  padding: 20px 16px 22px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  overflow: hidden;
}
.card.miau { background: linear-gradient(180deg, #e8f7ff 0%, #fffdf9 140px); }
.card.huevos { background: linear-gradient(180deg, #ffe9f3 0%, #fffdf9 140px); }

.card-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.card-head img.icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  box-shadow: 0 8px 0 rgba(44, 42, 85, 0.12);
}
.card h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 2px;
  color: var(--navy);
  line-height: 1.1;
}
.aka { margin: 0 0 6px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.blurb { margin: 0; color: var(--ink-soft); font-weight: 650; }

.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  margin: 0 -8px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shot {
  flex: 0 0 142px;
  scroll-snap-align: start;
}
.shot .phone {
  width: 142px;
  border-width: 6px;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(44, 42, 85, 0.16);
  animation: none;
  transform: none;
}
.shot .phone::before { height: 6px; top: 5px; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.btn-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 0 #1a1840;
}
.btn-web:hover { background: #3b3880; }
.card.huevos .btn-web { background: var(--pink-deep); box-shadow: 0 6px 0 #b8336c; }
.card.huevos .btn-web:hover { background: #d63f7c; }
.card.miau .btn-web { background: #e87812; box-shadow: 0 6px 0 #b85c0c; }
.card.miau .btn-web:hover { background: #f08620; }

.play-badge {
  display: block;
  width: 200px;
  line-height: 0;
}
.play-badge img {
  width: 200px;
  height: auto;
}

.contact {
  position: relative;
  z-index: 1;
  margin: 8px 0 18px;
  padding: 26px 22px;
  background: #fff;
  border-radius: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}
.contact h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 6px;
  color: var(--navy);
}
.contact p { margin: 0 0 8px; color: var(--ink-soft); font-weight: 700; }
.contact a.mail {
  display: inline-block;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 1.1rem;
  word-break: break-all;
}

footer.site {
  position: relative;
  z-index: 1;
  padding: 10px 0 36px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}
footer.site p { margin: 0 0 8px; }
footer.site a { color: var(--navy); font-weight: 800; }

html[lang="es"] .lang-en { display: none; }
html[lang="en"] .lang-es { display: none; }

/* Privacy */
.policy { padding: 18px 0 10px; position: relative; z-index: 1; }
.policy-card {
  background: var(--paper);
  border-radius: 28px;
  padding: 22px 18px 28px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}
.back {
  display: inline-block;
  margin: 0 0 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
}
.policy h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 6px;
}
.updated { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.policy h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 1.4em 0 0.4em;
  color: var(--navy);
}
.policy ul { padding-left: 1.15em; }
.policy li { margin: 0.35em 0; }
.policy code { font-size: 0.86em; background: #fff3d8; padding: 0 4px; border-radius: 4px; }

@media (min-width: 720px) {
  .wrap { width: min(980px, calc(100% - 48px)); }
  .hero { padding-top: 40px; }
  .hero-phones { height: 420px; gap: 28px; }
  .phone { width: 210px; border-radius: 32px; border-width: 8px; }
  .card { padding: 28px 28px 30px; }
  .card-head { grid-template-columns: 112px 1fr; gap: 20px; }
  .card-head img.icon { width: 112px; height: 112px; border-radius: 28px; }
  .shot, .shot .phone { flex-basis: 170px; width: 170px; }
  .actions { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .phone.left, .phone.right, .cloud { animation: none; }
  html { scroll-behavior: auto; }
}
