:root {
  color-scheme: dark;
  --bg: rgb(2, 5, 13);
  --panel: rgba(8, 13, 26, 0.86);
  --panel-strong: rgba(13, 20, 36, 0.95);
  --line: rgba(255, 255, 255, 0.12);
  --gold: rgb(253, 224, 71);
  --gold-deep: rgb(245, 158, 11);
  --green: rgb(34, 197, 94);
  --cyan: rgb(14, 165, 233);
  --text: rgb(248, 250, 252);
  --muted: rgb(185, 196, 213);
  --ink: rgb(4, 8, 16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(115deg, rgba(2, 5, 13, 0.95), rgba(4, 14, 18, 0.86) 48%, rgba(2, 5, 13, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(255, 255, 255, 0.045) 93px, transparent 95px),
    linear-gradient(160deg, rgb(4, 16, 18), rgb(2, 5, 13) 58%, rgb(6, 8, 22));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(rgba(253, 224, 71, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 12%, rgba(253, 224, 71, 0.08) 12.1% 12.28%, transparent 12.42% 87.58%, rgba(34, 197, 94, 0.07) 87.72% 87.9%, transparent 88%),
    linear-gradient(0deg, transparent 0 18%, rgba(255, 255, 255, 0.052) 18.1% 18.26%, transparent 18.4% 81.6%, rgba(255, 255, 255, 0.052) 81.74% 81.9%, transparent 82%);
  background-size: 54px 54px, 54px 54px, auto, auto;
  content: "";
  inset: 0;
  opacity: 0.95;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background:
    url("/assets/duo-jugadores.png") right clamp(-5.5rem, -7vw, -1rem) top clamp(2rem, 7vw, 5.5rem) / min(58vw, 620px) auto no-repeat;
  content: "";
  filter: blur(0.4px) saturate(1.06) contrast(1.06);
  inset: 0;
  mask-image:
    radial-gradient(ellipse 56% 62% at 79% 38%, black 0 42%, rgba(0, 0, 0, 0.7) 56%, transparent 78%);
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-court {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.page-court span {
  animation: courtLineMove 11s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(253, 224, 71, 0.34), rgba(34, 197, 94, 0.22), transparent);
  height: 2px;
  left: -10%;
  opacity: 0.38;
  position: absolute;
  transform: rotate(-12deg);
  width: 120%;
}

.page-court span:nth-child(1) {
  top: 28%;
}

.page-court span:nth-child(2) {
  animation-duration: 14s;
  animation-direction: reverse;
  top: 58%;
}

.page-court span:nth-child(3) {
  animation-duration: 17s;
  top: 82%;
}

.soon-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  position: relative;
  z-index: 5;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-link img {
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  height: 42px;
  width: 42px;
}

.brand-link span {
  color: rgb(255, 246, 196);
  font-weight: 950;
}

.soon-nav {
  align-items: center;
  background: rgba(8, 13, 26, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.2rem;
  padding: 0.25rem;
}

.soon-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.55rem 0.72rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.soon-nav a:hover {
  background: rgba(253, 224, 71, 0.12);
  color: rgb(255, 246, 196);
}

main {
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 2rem;
}

.hero-section {
  align-items: center;
  display: grid;
  gap: clamp(1.15rem, 3vw, 2.4rem);
  grid-template-columns: minmax(360px, 0.66fr) minmax(0, 1.34fr);
  min-height: 100svh;
  padding: clamp(0.8rem, 2.4vw, 1.6rem) 0 clamp(1rem, 2.4vw, 1.8rem);
}

.hero-copy {
  animation: liftIn 620ms ease-out both;
  display: grid;
  justify-items: center;
  max-width: 540px;
  text-align: center;
}

.launch-badge {
  align-items: center;
  color: rgb(253, 230, 138);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin: 0 0 0.72rem;
  text-transform: uppercase;
}

.launch-badge::before,
.launch-badge::after {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0), rgba(253, 224, 71, 0.75));
  content: "";
  display: block;
  height: 1px;
  width: 34px;
}

.launch-badge::before {
  margin-right: 0.65rem;
}

.launch-badge::after {
  margin-left: 0.65rem;
  transform: scaleX(-1);
}

.hero-brand {
  display: grid;
  gap: 0.58rem;
  justify-items: center;
  margin-bottom: 0.7rem;
  text-align: center;
}

.hero-mark {
  border-radius: 24%;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(253, 224, 71, 0.16);
  height: clamp(72px, 8vw, 102px);
  width: clamp(72px, 8vw, 102px);
}

.hero-logo {
  display: block;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 18px rgba(245, 158, 11, 0.16));
  height: auto;
  margin: 0;
  max-width: min(88vw, 400px);
  width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: rgb(255, 255, 255);
  font-size: clamp(2rem, 3.75vw, 3.55rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.hero-text {
  color: rgb(220, 228, 240);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
  margin-bottom: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-action,
.secondary-action,
.notify-form button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.primary-action,
.notify-form button {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 52%, var(--green));
  border: 0;
  color: var(--ink);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.notify-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.secondary-action:hover {
  border-color: rgba(253, 224, 71, 0.32);
}

.showcase {
  align-items: end;
  animation: liftIn 620ms 100ms ease-out both;
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  position: relative;
}

.desktop-preview,
.phone-preview,
.mini-card,
.launch-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.desktop-preview {
  background: linear-gradient(145deg, rgba(11, 17, 32, 0.985), rgba(4, 8, 18, 0.985));
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.preview-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
}

.preview-topbar span {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.preview-topbar span:nth-child(1) {
  background: rgb(248, 113, 113);
}

.preview-topbar span:nth-child(2) {
  background: rgb(251, 191, 36);
}

.preview-topbar span:nth-child(3) {
  background: rgb(34, 197, 94);
}

.preview-topbar strong {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: auto;
}

.preview-layout {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.28fr);
  min-height: 330px;
  padding: 0.8rem;
}

.preview-game,
.preview-ranking {
  background: rgba(8, 13, 26, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 0.72rem;
}

.preview-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.preview-title-row img {
  height: 66px;
  object-fit: contain;
  object-position: left center;
  width: min(230px, 58%);
}

.preview-title-row span,
.preview-ranking > span {
  color: rgb(253, 230, 138);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preview-rules {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.preview-rules span {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 0.7rem;
  font-weight: 850;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem;
  text-align: center;
}

.preview-rules span:nth-child(1) {
  background: rgba(16, 185, 129, 0.2);
  color: rgb(167, 243, 208);
}

.preview-rules span:nth-child(2) {
  background: rgba(244, 63, 94, 0.2);
  color: rgb(254, 205, 211);
}

.preview-rules span:nth-child(3) {
  background: rgba(14, 165, 233, 0.2);
  color: rgb(186, 230, 253);
}

.preview-search {
  align-items: center;
  background: rgb(255, 255, 255);
  border-radius: 8px;
  color: rgb(15, 23, 42);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  min-height: 48px;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
}

.preview-search span {
  color: rgb(71, 85, 105);
  font-weight: 750;
}

.preview-search strong {
  background: rgb(34, 211, 238);
  border-radius: 6px;
  color: rgb(8, 13, 25);
  font-size: 0.8rem;
  padding: 0.7rem 0.85rem;
}

.guess-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guess-cell {
  align-items: center;
  border-radius: 6px;
  display: flex;
  font-size: 0.74rem;
  font-weight: 950;
  justify-content: center;
  min-height: 52px;
  overflow: hidden;
  padding: 0.45rem;
  text-align: center;
}

.guess-cell.player {
  background: rgba(255, 255, 255, 0.1);
  color: rgb(226, 232, 240);
}

.guess-cell.good {
  background: linear-gradient(135deg, rgb(16, 185, 129), rgb(34, 197, 94));
  color: rgb(3, 7, 18);
}

.guess-cell.bad {
  background: linear-gradient(135deg, rgb(190, 18, 60), rgb(244, 63, 94));
}

.guess-cell.near {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgb(253, 224, 71));
  color: rgb(4, 8, 16);
}

.preview-ranking ol {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.preview-ranking li {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.62rem;
}

.preview-ranking strong {
  color: var(--gold);
  font-size: 0.72rem;
}

.preview-ranking span {
  color: rgb(226, 232, 240);
  font-size: 0.8rem;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-ranking em {
  color: rgb(125, 211, 252);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 950;
}

.phone-preview {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.99), rgba(3, 7, 18, 0.99));
  padding: 0.6rem;
  max-width: 250px;
  position: relative;
  width: 100%;
}

.phone-speaker {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 0.55rem;
  width: 48px;
}

.phone-screen {
  background:
    linear-gradient(145deg, rgba(5, 10, 22, 0.98), rgba(8, 18, 26, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.045) 47px, transparent 48px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  min-height: 326px;
  padding: 0.78rem;
}

.mobile-head {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.mobile-head img {
  border-radius: 7px;
  height: 32px;
  width: 32px;
}

.mobile-head span {
  color: rgb(255, 246, 196);
  font-size: 0.78rem;
  font-weight: 950;
}

.mobile-game {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.65rem;
  text-align: left;
  width: 100%;
}

.mobile-more {
  background: rgba(253, 224, 71, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.2);
  border-radius: 8px;
  color: rgb(253, 230, 138);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0.6rem 0 0;
  padding: 0.55rem;
}

.mobile-game.active {
  background: rgba(253, 224, 71, 0.12);
  border-color: rgba(253, 224, 71, 0.34);
}

.mobile-game strong,
.mobile-game span {
  display: block;
}

.mobile-game strong {
  font-size: 0.84rem;
}

.mobile-game span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 0.22rem;
}

.mobile-board {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  
  /* 1. Hacemos que los cuadrados no superen los 210px en total y los centramos */
  max-width: 210px;
  margin: 0.9rem auto 0;
  
  /* 2. ESTA ES LA MAGIA ANTI-BUGS: Obliga a las filas a quedarse pegadas arriba */
  align-content: start;
}

.mobile-board span {
  /* 3. Reforzamos la proporción cuadrada para que el navegador no se cuelgue al redimensionar */
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  
  background:
    linear-gradient(135deg, rgba(253, 224, 71, 0.14), rgba(14, 165, 233, 0.14)),
    url("/assets/padel-ball-real.svg") center / 58% auto no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}

.mobile-board span[data-state="good"] {
  background: linear-gradient(135deg, rgb(16, 185, 129), rgb(34, 197, 94));
}

.mobile-board span[data-state="bad"] {
  background: linear-gradient(135deg, rgb(190, 18, 60), rgb(244, 63, 94));
}

.mobile-board span[data-state="near"] {
  background: linear-gradient(135deg, rgb(245, 158, 11), rgb(253, 224, 71));
}

.mobile-board span[data-state="found"] {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(14, 165, 233, 0.22)),
    url("/assets/padel-ball-real.svg") center / 62% auto no-repeat;
}

.mini-section {
  padding: clamp(1.5rem, 4vw, 3.8rem) 0;
}

.section-heading {
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

.section-heading p,
.mini-card p,
.launch-kicker {
  color: rgb(253, 230, 138);
  font-size: 0.75rem;
  font-weight: 950;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
}

.section-heading h2,
.launch-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 0;
  max-width: 100%;
}

.mini-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  background: var(--panel);
  min-height: 220px;
  padding: 1rem;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.mini-card:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(253, 224, 71, 0.28);
  transform: translateY(-3px);
}

.mini-card-live {
  background:
    linear-gradient(140deg, rgba(253, 224, 71, 0.12), rgba(8, 13, 26, 0.9) 42%),
    var(--panel);
}

.mini-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 48px;
  margin-bottom: 1.1rem;
  position: relative;
  width: 48px;
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.icon-player::before {
  border: 2px solid rgb(125, 211, 252);
  border-radius: 50%;
  height: 15px;
  left: 15px;
  top: 9px;
  width: 15px;
}

.icon-player::after {
  border: 2px solid rgb(125, 211, 252);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  height: 13px;
  left: 10px;
  top: 27px;
  width: 26px;
}

.icon-pair::before,
.icon-pair::after {
  border: 2px solid rgb(134, 239, 172);
  border-radius: 50%;
  height: 18px;
  top: 12px;
  width: 18px;
}

.icon-pair::before {
  left: 8px;
}

.icon-pair::after {
  left: 21px;
}

.icon-cards::before,
.icon-cards::after {
  border: 2px solid rgb(253, 230, 138);
  border-radius: 5px;
  height: 25px;
  width: 17px;
}

.icon-cards::before {
  left: 12px;
  top: 9px;
  transform: rotate(-8deg);
}

.icon-cards::after {
  left: 19px;
  top: 13px;
  transform: rotate(8deg);
}

.mini-card h3 {
  font-size: 1.28rem;
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.mini-card > span:not(.mini-icon) {
  color: var(--muted);
  display: block;
  font-size: 0.96rem;
  line-height: 1.6;
}

.launch-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(253, 224, 71, 0.11), rgba(14, 165, 233, 0.08) 52%, rgba(34, 197, 94, 0.1)),
    var(--panel-strong);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  margin: 0 0 2.4rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.launch-section p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 620px;
}

.notify-form {
  background: rgba(2, 5, 13, 0.38);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.notify-form label {
  color: rgb(226, 232, 240);
  display: block;
  font-size: 0.88rem;
  font-weight: 850;
  margin-bottom: 0.55rem;
}

.notify-form div {
  display: flex;
  gap: 0.55rem;
}

.notify-form input {
  background: rgb(255, 255, 255);
  border: 0;
  border-radius: 8px;
  color: rgb(15, 23, 42);
  min-height: 48px;
  min-width: 0;
  outline: none;
  padding: 0 0.9rem;
  width: 100%;
}

.notify-form input:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.28);
}

.notify-form button {
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.notify-form p {
  color: rgb(187, 247, 208);
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0.7rem 0 0;
  min-height: 1.2rem;
}

#notifyMessage {
  font-size: 0.875rem;
  font-weight: 700; /* Le damos más peso al texto para que resalte en el fondo oscuro */
  margin-top: 0.8rem;
  min-height: 1.2rem;
  text-align: left;
  transition: color 0.2s ease; /* Transición suave de color */
}

/* Color verde brillante para éxito (hace un contraste perfecto con tu fondo azul oscuro/dorado) */
#notifyMessage.is-success {
  color: #4ade80; 
}

/* Color rojo/rosado brillante para errores */
#notifyMessage.is-error {
  color: #f87171;
}
.notify-form-loading {
  opacity: 0.84;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  50% {
    opacity: 0.48;
    transform: scale(0.78);
  }
}

@keyframes courtLineMove {
  from {
    translate: -6vw 0;
  }

  to {
    translate: 6vw 0;
  }
}

@media (max-width: 1020px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    margin: 0 auto;
    max-width: 760px;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  }
}

@media (max-width: 840px) {
  .showcase {
    align-items: stretch;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .phone-preview {
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
  }

  .preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-ranking {
    display: none;
  }

  .mini-grid,
  .launch-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body::after {
    background-position: right -7.5rem top 2rem;
    background-size: 390px auto;
    opacity: 0.22;
  }

  main {
    padding-inline: 0.9rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-brand {
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .launch-badge {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2rem, 14vw, 3.2rem);
  }

  .hero-actions,
  .notify-form div {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .notify-form button {
    width: 100%;
  }

  .desktop-preview {
    display: block;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ─── Rewards / Points section ──────────────────────────────────────── */

.rewards-lead {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  margin: 0 auto 2.4rem;
  max-width: 640px;
  text-align: center;
}

.rewards-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.8rem;
  position: relative;
}

.reward-step {
  background:
    linear-gradient(140deg, rgba(253, 224, 71, 0.07), rgba(8, 13, 26, 0.8) 48%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem 1rem 1.1rem;
  position: relative;
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease;
}

.reward-step:hover {
  border-color: rgba(253, 224, 71, 0.3);
  transform: translateY(-3px);
}

.reward-step-connector {
  bottom: 0;
  height: 2px;
  pointer-events: none;
  position: absolute;
  right: -0.52rem;
  top: 50%;
  width: 1.05rem;
  z-index: 2;
}

.reward-step-connector::before {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.5), rgba(253, 224, 71, 0.15));
  content: "";
  display: block;
  height: 100%;
  width: 100%;
}

.reward-step-connector::after {
  border-right: 2px solid rgba(253, 224, 71, 0.45);
  border-top: 2px solid rgba(253, 224, 71, 0.45);
  content: "";
  height: 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
}

.reward-step-icon {
  align-items: center;
  background: rgba(253, 224, 71, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.22);
  border-radius: 12px;
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  width: 52px;
}

.icon-play::before {
  border-color: transparent transparent transparent var(--gold);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  content: "";
  margin-left: 3px;
}

/* No pseudo-elements needed for icon-level and icon-gift — SVGs are inline */

.reward-step-body strong {
  color: rgb(255, 246, 196);
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.reward-step-body span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.rewards-tiers {
  align-items: stretch;
  background: rgba(2, 5, 13, 0.42);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.tier {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.6rem;
  text-align: center;
  transition: background-color 180ms ease;
}

.tier:last-child {
  border-right: 0;
}

.tier:hover {
  background: rgba(253, 224, 71, 0.05);
}

.tier-badge {
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.65rem;
  text-transform: uppercase;
}

.tier-local {
  background: rgba(185, 196, 213, 0.15);
  color: rgb(185, 196, 213);
}

.tier-regional {
  background: rgba(14, 165, 233, 0.15);
  color: rgb(125, 211, 252);
}

.tier-nacional {
  background: rgba(253, 224, 71, 0.15);
  color: rgb(253, 230, 138);
}

.tier-pro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(253, 224, 71, 0.2));
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.12);
  color: var(--gold);
}

.tier-perk {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (max-width: 840px) {
  .rewards-steps {
    gap: 1.8rem;
    grid-template-columns: 1fr;
  }

  .reward-step-connector {
    bottom: -1.8rem;
    height: 1.8rem;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    width: 2px;
  }

  .reward-step-connector::before {
    background: linear-gradient(180deg, rgba(253, 224, 71, 0.5), rgba(253, 224, 71, 0.2));
    height: 100%;
    width: 100%;
  }

  .reward-step-connector::after {
    border-bottom: 2px solid rgba(253, 224, 71, 0.5);
    border-right: 2px solid rgba(253, 224, 71, 0.5);
    border-top: none;
    border-left: none;
    bottom: 0;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
  }

  .rewards-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier:nth-child(2) {
    border-right: 0;
  }

  .tier:nth-child(1),
  .tier:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .rewards-tiers {
    grid-template-columns: 1fr;
  }

  .tier {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .tier:last-child {
    border-bottom: 0;
  }

  .tier:nth-child(1),
  .tier:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Final responsive guardrails for narrow embeds and mobile browsers. */
html {
  overflow-x: hidden;
}

body,
main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
video,
canvas {
  height: auto;
  max-width: 100%;
}

input,
button {
  max-width: 100%;
}

.desktop-preview,
.phone-preview,
.launch-section,
.mini-card {
  max-width: 100%;
}

@media (max-width: 760px) {
  .preview-rules,
  .guess-grid {
    gap: 0.34rem;
  }

  .preview-rules span,
  .guess-cell {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .hero-logo {
    max-width: 94vw;
  }

  .launch-badge {
    font-size: 0.64rem;
  }

  .launch-badge::before,
  .launch-badge::after {
    width: 20px;
  }

  .phone-screen {
    min-height: auto;
  }

  .mobile-board {
    gap: 0.32rem;
  }

  .mini-card {
    min-height: 0;
  }
}

@media (max-width: 340px) {
  main {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  h1 {
    font-size: 1.82rem;
  }

  .hero-text,
  .mini-card > span:not(.mini-icon),
  .launch-section p {
    font-size: 0.92rem;
  }

  .mobile-game {
    padding: 0.58rem;
  }
}

/* ─── ESTILOS PARA LA PARTE LEGAL DEL FORMULARIO ─── */
.legal-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  text-align: left;
}

.legal-checkbox-container input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
  cursor: pointer;
  accent-color: var(--gold);
}

.legal-checkbox-container label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
}

.legal-checkbox-container label a {
  color: var(--gold);
  text-decoration: underline;
}

/* ─── ESTILOS PARA EL NUEVO FOOTER COMPONENTE GLOBAL (PLUG & PLAY) ─── */
.global-site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.3);
  padding: 2.5rem clamp(1rem, 3vw, 1.5rem) 1.8rem;
  margin-top: 5rem;
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 5;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-bottom: 1.8rem;
}

.footer-brand span {
  color: rgb(255, 246, 196);
  font-weight: 950;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(185, 196, 213, 0.65);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(185, 196, 213, 0.45);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 620px) {
  .footer-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* ─── ESTILOS PARA PÁGINAS LEGALES ─── */
.legal-main {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 1.5rem);
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.legal-container h1 {
  color: var(--gold);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-align: left;
}

.legal-container h2 {
  color: rgb(255, 255, 255);
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
}

.legal-container p, 
.legal-container li {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-container ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-container a {
  color: var(--gold);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.legal-container a:hover {
  opacity: 0.8;
}

/* Botón de volver */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--gold);
}

/* ─── ESTILOS PARA CONFIRMAR BAJA ─── */
.confirm-container {
  max-width: 500px;
  margin: 10vh auto;
  text-align: center;
}

.btn-baja {
  background: #ef4444;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  margin-top: 20px;
  padding: 12px 24px;
  text-decoration: none;
}

.btn-baja:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.status-message {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.status-message.is-error {
  color: #fca5a5;
}

.status-message.is-success {
  color: #86efac;
}

/* ─── CONSENTIMIENTO DE COOKIES ─── */
.cookies-consent-open {
  overflow: hidden;
}

.cookie-consent {
  align-items: flex-end;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.2rem;
  position: fixed;
  z-index: 9999;
}

.cookie-consent-backdrop {
  background: rgba(2, 5, 13, 0.86);
  inset: 0;
  position: absolute;
}

.cookie-consent-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  max-width: 720px;
  padding: 1.4rem 1.5rem;
  position: relative;
  width: min(94vw, 720px);
  z-index: 1;
}

.cookie-consent-panel h2 {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.cookie-consent-panel p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.cookie-consent-panel a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-consent-accept {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0.7rem 1.2rem;
}

.cookie-consent-accept:hover {
  filter: brightness(1.06);
}
