:root{
  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --orange: #ff8a00;
  --orange-2: #ffb000;
  --navy: #0f1b2d;
  --navy-2: #13233a;
  --text: #0b1220;
  --muted: #5b6473;
  --bg: #ffffff;
  --soft: #f3f5f8;
  --line: rgba(15, 27, 45, .12);

  --radius: 18px;
  --shadow: 0 14px 40px rgba(15, 27, 45, .12);
  --container: 1120px;

  /* Header */
  --header-h: 84px;
  --header-h-scrolled: 66px;

  /* Espacio superior del HERO para que el menú no pise el móvil */
  --hero-top-space: 150px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

/* -------------------------
   Botones
------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border:0;
  border-radius:999px;
  padding:14px 22px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  transition: transform .12s ease, filter .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0); }
.btn--primary{ background: var(--orange); color:#fff; }
.btn--small{ padding:10px 16px; font-size: 13px; }
.btn--block{ width:100%; border-radius: 12px; }

/* -------------------------
   Títulos
------------------------- */
.sectionTitle{
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: .4px;
  text-align:center;
  margin:0 0 18px;
  font-weight: 800;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
}
.sectionTitle::before,
.sectionTitle::after{
  content:"";
  width: 44px;
  height: 3px;
  background: var(--orange);
  border-radius: 999px;
  flex: 0 0 44px;
}
.sectionTitle--dark{ color:#fff; }
.sectionTitle--dark::before,
.sectionTitle--dark::after{ background: var(--orange); }

.sectionSub{
  text-align:center;
  color: #252d43;
  margin:0 auto 26px;
  font-size: 18px;
  max-width: 820px;   /* ✅ en vez de padding 0 320px */
  padding: 0 16px;
}

/* -------------------------
   Header fijo, transparente
------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;

  background: rgba(255,255,255,0); /* transparente arriba */
  border-bottom: 1px solid rgba(255,255,255,0);
  backdrop-filter: none;

  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.header__wrap{
  position: relative; /* para desplegable en móvil */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
  gap: 16px;
  transition: padding .18s ease;
}

/* Logo grande arriba */
.brand{ display:flex; align-items:center; }
.brand__logo{
  width: 300px;
  max-width: 320px;
  height: auto;
  transition: width .18s ease;
}

/* Menú estado scroll */
.site-header.is-scrolled{
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(15,27,45,.10);
}
.site-header.is-scrolled .header__wrap{ padding: 10px 0; }
.site-header.is-scrolled .brand__logo{ width: 220px; }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav__link{
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  opacity:.95;
  transition: opacity .12s ease, background .12s ease;
}

/* arriba (header transparente) */
.site-header:not(.is-scrolled) .nav__link{ color:#fff; }
.site-header:not(.is-scrolled) .nav__link:hover{ opacity: 1; }

/* al hacer scroll */
.site-header.is-scrolled .nav__link{ color: var(--text); opacity:.9; }
.site-header.is-scrolled .nav__link:hover{ opacity: 1; }

/* Activo = pastilla */
.nav__link.nav__pill{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
  color: #111 !important;
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 1;
}

/* Toggle (mobile) */
.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.18);
  cursor:pointer;
  padding:10px;
}
.nav__toggle span{
  display:block;
  height:2px;
  background: #5b5b5b;
  border-radius:2px;
  margin: 5px 0;
}
.site-header.is-scrolled .nav__toggle{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
}
.site-header.is-scrolled .nav__toggle span{ background: var(--text); }

/* Para que los anchors no queden tapados por el header */
section[id]{ scroll-margin-top: 110px; }

/* -------------------------
   HERO (fondo + parallax)
------------------------- */
.hero{
  position:relative;
  overflow:hidden;
  padding-top: var(--hero-top-space);
  padding-bottom: 18px;
}

/* Fondo estático */
.hero__bg{
  position:absolute;
  inset:0;
  z-index:0;
  background: url("../img/fondo.png") center/cover no-repeat;
  pointer-events:none;
}


/* Layout */
.hero__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items:center;
  margin-top: 60px;
  margin-bottom: 70px;
}
span.separador {
    border-bottom: 2px solid var(--orange);
    display: block;
    margin-bottom: 10px !important;
}
.hero h1{
	line-height: 1.15;
	margin:0 0 14px;
	font-weight: 800;
	font-size: 26px;
    font-weight: normal; 
}
.hero__copy {
    max-width: 590px;
}
.lead{
  margin:0 0 18px;
  color: #252d43;
  font-size: 18px;
  max-width: 54ch;
}

.hero__badges{
  list-style:none;
  padding:0;
  margin: 18px 0 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px 18px;
}
.badge{
  display: block;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color: var(--text);
  width:85px;
  margin-right: 45px;
}
.badge img{ width: 100%; height: auto; }
.badge p {
    display: block;
    text-align: center;
}
.badge span {
}
.how__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(../img/fondo-2.png) left no-repeat;
    pointer-events: none;
}
.download{ margin-top: 18px; }
.download__title2 {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 35px;
    display: flex;
    gap: 22px;
    align-items: center;
}
.download__title2::before {
    content: "";
    width: 44px;
    height: 3px;
    background: var(--orange);
    border-radius: 999px;
    flex: 0 0 44px;
}
.download__title1 {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 35px;
    align-items: center;
}
.download__title1::before {
    content: "";
    width: 44px;
    height: 3px;
    background: var(--orange);
    border-radius: 999px;
    flex: 0 0 44px;
}
.stores, .stores2{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stores2{ justify-content:center; }
.store{
  display:inline-flex;
  overflow:hidden;
  background:#fff;
}
.store img{ height: 44px; width:auto; }

/* Parallax */
.hero__parallax{
  position: relative;
  width: 100%;
  min-height: 660px;
  margin-top: 90px;
}


.hero__layer{
  position:absolute;
  will-change: transform;
  transform: translate3d(var(--tx,0px), var(--ty,0px), 0) rotate(var(--rot, 0deg));
  transition: transform .06s linear;
  pointer-events:none;
}
.hero__phone{
  left: 50%;
  top: 50%;
  width: min(380px, 86%);
  transform: translate3d(var(--tx,0px), var(--ty,0px), 0) translate(-50%, -50%) rotate(var(--rot,0deg));
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.28));
}
.hero__trophy{
  right: -12%;
  top: 52%;
  width: 230px;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.22));
}
.hero__gift{
  left: -14%;
  top: 66%;
  width: 230px;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.22));
}

@media (prefers-reduced-motion: reduce){
  .hero__layer{ transition:none !important; }
}

/* -------------------------
   ABOUT
------------------------- */
.about{
  padding: 22px 0 10px;
  background: #f3d2b9;
}
.about__wrap{
  padding: 25px 0;
  display:grid;
  grid-template-columns: .35fr 1fr .35fr;
  align-items:center;
  gap: 18px;
}
.about__copy p{
  margin:0;
  text-align: justify;
  color: rgba(15,27,45,.85);
  font-size: 20px;
  padding: 0 55px;
}

/* -------------------------
   HOW (¿CÓMO FUNCIONA?)
------------------------- */
.how{
  background: var(--navy);
  color:#fff;
  padding: 56px 0;
  position:relative;
  overflow:hidden;
}
.how::before{
  content:"";
  position:absolute;
  inset: -180px -280px -180px -280px;
  background:
    radial-gradient(closest-side at 18% 70%, rgba(255,138,0,.45), transparent 60%),
    radial-gradient(closest-side at 86% 15%, rgba(255,176,0,.25), transparent 62%);
  z-index:0;
}
.how .container{ position:relative; z-index:1; }

.how__wrap{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
  align-items:center;
}
.how__left{
  min-height: 630px;
  background-image: url("../img/mockup-movil-login.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.35));
}
.how__right{ width:100%; }
.how__title{
  margin: 0 0 26px;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: clamp(22px, 2.4vw, 34px);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align:center;
}
.how__title::before,
.how__title::after{
  content:"";
  width: 44px;
  height: 3px;
  background: var(--orange);
  border-radius: 999px;
  flex: 0 0 44px;
}

.milestones{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0;
}
.milestone{
  position:relative;
  padding-top: 18px;
  overflow: visible;
}
.milestone__head{
  position:absolute;
  top: 12px;
  left: -14px;
  transform: translateY(-50%);
  display:flex;
  align-items:center;
  gap: 10px;
  background: var(--orange);
  color:#1a140c;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.milestone__num{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--navy);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight: 900;
  flex: 0 0 26px;
}
.milestone__ttl{ line-height: 1.2; font-size: 18px; }

.milestone__body{
  background:#fff;
  color: rgba(15, 27, 45, .85);
  border-radius: 16px;
  padding: 40px 16px;
  min-height: 170px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  font-size: 18px;
  line-height: 1.5;
  width: 100%;      /* ✅ sin width fija */
}
.milestone__body--center{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* -------------------------
   WIN (ASÍ SE GANA)
------------------------- */
/* WIN: que el fondo absoluto se ancle a la sección */
.win{
  position: relative;   /* 👈 clave */
  overflow: hidden;     /* opcional: evita que el fondo “se salga” */
  padding: 54px 0; 
  background:#fff;
}

/* Fondo estático dentro de WIN */
.win_bg{
  position:absolute;
  inset:0;
  z-index:0;
  background: url("../img/fondo.png") no-repeat;
  pointer-events:none;
}

/* Contenido por encima del fondo */
.win .container{
  position: relative;
  z-index: 1;
}


.win__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items:stretch;
}

.win .miniCard--win{
  position: relative;
  background: var(--navy);
  border-radius: 16px;
  padding: 18px 0 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: 280px;
}
.win .miniCard--win .miniCard__num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
}
.win .miniCard--win .miniCard__num span{
  color:#000;
  font-weight:900;
  font-size:14px;
}
.win .miniCard--win .miniCard__inner{
  width: 80%;
  margin: 0 auto;
  text-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}
.win .miniCard--win .miniCard__img{
  width:100%;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  aspect-ratio: 16/9;
}
.win .miniCard--win .miniCard__img img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.win .miniCard--win .miniCard__line{
  width:100%;
  height:2px;
  background: var(--orange);
  border-radius: 999px;
}
.win .miniCard--win .miniCard__text{
  margin:0;
  width:100%;
  color: rgba(255,255,255,.90);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap:anywhere;
}

.downloadTile{
  background: var(--navy);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  padding: 22px 18px 20px;
  text-align: center;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap: 14px;

  min-height: 280px;
}
.downloadTile__title{
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  line-height: 1.05;
  font-size: 22px;
}
.downloadTile__arrow{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid var(--orange);
  display:grid;
  place-items:center;
  margin: 22px 0;
}
.downloadTile__arrow svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.downloadTile__stores{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
  width: 100%;
}
.downloadTile__store{
  display:inline-flex;
  border-radius: 12px;
  overflow:hidden;
  text-decoration:none;
}
.downloadTile__store img{ height: 44px; width:auto; }

/* -------------------------
   RULES
------------------------- */
.rules{
  background: var(--navy);
  color:#fff;
  padding: 56px 0;              /* ✅ sin el ¡ */
  position: relative;
  overflow: hidden;
}

.rules__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* ✅ mejor shorthand (incluye size) */
  background: url("../img/fondo-2.png") left center / contain no-repeat;
  /* si lo quieres más grande: cambia contain por cover */
  /* background: url("../img/fondo-2.png") left center / cover no-repeat; */

  /* opcional: para que no “cante” demasiado */
  /* opacity: .9; */
}

/* Contenido por encima del fondo */
.rules .container{
  position: relative;
  z-index: 1;
}
.rules__mascot {
    margin-top: 100px;
}
.rules__grid{
  display:grid;
  grid-template-columns: .45fr 1fr;
  gap: 22px;
  align-items:start;
}

/* -------------------------
   PRIZES
------------------------- */
.prizes{ padding: 54px 0; background:#fff; }

.prizes__grid--mock{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.prize{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: transparent;
}
.prize__top{
  background: var(--navy);
  color: #fff;
  padding: 18px 18px 16px;
  text-align: center;
}
.prize__title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 16px;
  text-transform: uppercase;
}
.prize__line{
  display:block;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
  margin: 0 auto 10px;
}
.prize__sub{
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,.88);
}
.prize__media{
  background: #fff;
  overflow:hidden;
}
.prize__media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display:block;
}
.download--center{
  text-align:center;
  margin-top: 26px;
}
.download--center .stores{ justify-content:center; }

/* =========================
   FAQ con ondas arriba/abajo
   ========================= */
/* =========================
   FAQ — Ondas arriba/abajo (versión final)
   Pegar AL FINAL del CSS
   ========================= */

:root{
  --faq-wave-h: 240px;   /* 👈 sube/baja esta altura */
  --faq-bg: #D8DCE2;
  --faq-wave-fill: #ffffff;
}

.faq{
  position: relative;
  overflow: hidden;
  background: var(--faq-bg);
  padding: calc(var(--faq-wave-h) - 40px) 0; /* aire para ondas sin tapar contenido */
}

/* Ondas */
.faq::before,
.faq::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height: var(--faq-wave-h);
  z-index: 0;
  pointer-events:none;

  /* ✅ relleno blanco “debajo” del PNG (para que haga transición) */
  background-color: var(--faq-wave-fill);

  background-repeat: no-repeat;
  background-size: 100% 100%; /* ✅ encaja a ancho completo (sin depender de cover) */
}

.faq::before{
  top: -1px;
  background-image: url("../img/ondas_arriba.png");
  background-position: center top;
}

.faq::after{
  bottom: -1px;
  background-image: url("../img/ondas_abajo.png");
  background-position: center bottom;
}

/* Contenido encima */
.faq .container{
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 640px){
  :root{ --faq-wave-h: 160px; }
  .faq{ padding: calc(var(--faq-wave-h) - 20px) 0; }
}

.faq__list{ margin-top: 14px; display:grid; gap: 10px; }
.faqItem{
  background:#fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 10px 26px rgba(15,27,45,.08);
  overflow:hidden;
}
.faqItem summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 16px;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 18px;
}
.faqItem summary::-webkit-details-marker{ display:none; }
.faqItem summary::after{
  content:"+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(15,27,45,.06);
  font-weight: 900;
}
.faqItem[open] summary::after{ content:"–"; }
.faqItem__content{
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 18px;
  line-height:1.6;
}

h3.downloadTile__title2 {
    color: #ff8a00;
    font-size: 30px;
    margin: 0;
}


/* -------------------------
   CONTACT
------------------------- */
/* CONTACT: fondo inferior con footer.png */
.contact{
  position: relative;
  overflow: hidden;
  padding-bottom: 140px; /* deja espacio para que se vea bien la ola inferior */
  padding-top: 54px; 
  background:#fff;
}

.contact__bg{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px; /* ajusta según tu footer.png */
  z-index: 0;
  pointer-events: none;
  background: url("../img/footer.png") center bottom / cover no-repeat;
}

/* Contenido por encima del fondo */
.contact .container{
  position: relative;
  z-index: 1;
}

.contact__grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items:start;
}
.contact__lead{ margin:0 0 10px; color: #252d43;font-size: 18px; }
.contact__meta{ margin:0; color: rgba(15,27,45,.85); font-size: 18px; }
.contact__mascot{ margin-top: 70px; }
.contact__mascot img{ width: min(280px, 80%); }

.formNotice{
  display:none;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
}
.formNotice.is-success{ display:block; background: #e9fff1; border: 1px solid #baf3cd; color:#0b5b2c; }
.formNotice.is-error{ display:block; background: #fff1f1; border: 1px solid #f2bcbc; color:#7a1d1d; }

.form{ display:grid; gap: 12px; }
.form__row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field span{
  display:block;
  font-size: 18px;
  color: rgba(15,27,45,.8);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input,
.field textarea{
  width:100%;
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  padding: 12px 12px;
  font-family: var(--font);
  font-size: 14px;
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus{
  border-color: rgba(255,138,0,.55);
  box-shadow: 0 0 0 4px rgba(255,138,0,.18);
}
.check{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  font-size: 18px;
  color: rgba(15,27,45,.8);
}
.check input{ margin-top: 3px; }
.check a{ color: var(--navy); font-weight: 700; text-decoration: none; }
.check a:hover{ text-decoration: underline; }

/* -------------------------
   FOOTER
------------------------- */
.site-footer{
  background: var(--navy);
  color:#fff;
  padding: 34px 0;
}
.footer__wrap{
  display:grid;
  gap: 10px;
  justify-items:center;
  text-align:center;
}
.footer__brand img{ height: 48px; width:auto; }
.footer__links{ font-size: 18px; opacity:.9; }
.footer__links a{ color:#fff; text-decoration:none; font-weight: 600; }
.footer__links a:hover{ text-decoration:underline; }
.footer__copy{ font-size: 18px; opacity:.8; }

/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 980px){
  :root{ --hero-top-space: 110px; }

  .container{ width: calc(100% - 36px); }

  /* HERO */
  .hero__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .hero__copy{ text-align:center; max-width: 100%;margin-top: 70px;}
  .lead{ margin-inline:auto; }
  .download{ text-align:center; }
  .stores{ justify-content:center; }

  .hero__badges{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items:center;
    gap: 12px 12px;
  }
  .badge{ justify-content:center; }
	.badge img {
		width: 50%;
		height: auto;
        margin: 0 auto;
	}
	.hero__media {
		margin-top: 55px;
	}
  .hero__parallax{ min-height: 420px; }
  .hero__trophy{ width: 145px; top: 56%; right: 2%; }
  .hero__gift{ width: 120px; top: 70%; left: 2%; }

  /* ABOUT */
  .about__wrap{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .about__copy p{
    padding: 0 10px;
    text-align: center;
    font-size: 16px;
  }
  .about__mascot img,
  .about__trophy img{
    margin-inline:auto;
    width: min(110px, 80%);
  }

  /* HOW */
  .how__wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .how__left{
    min-height: 320px;
    background-position: center;
  }
  .milestones{ grid-template-columns: 1fr; }
  .milestone__head{ left: 0; }

  /* WIN */
  .win__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .downloadTile{
    grid-column: 1 / -1;
    min-height: auto;
  }

  /* RULES */
  .rules__grid{ grid-template-columns: 1fr; gap: 18px; }
  .rules__mascot img{ width: min(280px, 80%); }

  /* PRIZES */
  .prizes__grid--mock{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .prize__media img{ height: 200px; }

  /* CONTACT */
  .contact__grid{ grid-template-columns: 1fr; gap: 18px; }
}

/* Menú móvil */
@media (max-width: 860px){
  .nav__toggle{ display:block; }

  .nav{
    position:absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15,27,45,.12);
    padding: 12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    min-width: 260px;
    gap: 10px;
    z-index: 1000;
  }
  .nav.is-open{ display:flex; }
  .nav .btn{ width:100%; justify-content:center; }

  /* En el desplegable, links en oscuro */
  .nav__link{ color: var(--text) !important; }
}

/* Móvil */
@media (max-width: 640px){
  :root{ --hero-top-space: 92px; }

  .container{ width: calc(100% - 28px); }

  .brand__logo{
    width: 210px;
    max-width: 70vw;
    margin-top: 60px;
  }
  nav#mainNav {
    text-align: center;
}
  .site-header.is-scrolled .brand__logo{ width: 170px; }

  .sectionTitle::before,
  .sectionTitle::after{
    width: 30px;
    flex: 0 0 30px;
  }

  /* HERO */
  .hero h1{ font-size: 28px; line-height: 1.08; }
  .lead{ font-size: 14px; }
	.hero__media {
		margin-top: 80px;
	}
  .hero__parallax{ min-height: 360px; }
  .hero__trophy{ width: 120px; top: 60%; right: 1%; }
  .hero__gift{ width: 105px; top: 74%; left: 1%; }

  /* WIN */
  .win__grid{ grid-template-columns: 1fr; }
  .win .miniCard--win .miniCard__inner{ width: 86%; }

  /* PRIZES */
  .prizes__grid--mock{ grid-template-columns: 1fr; }
  .prize__media img{ height: 220px; }

  /* FORM */
  .form__row{ grid-template-columns: 1fr; }

  /* FOOTER */
  .footer__links{ line-height: 1.8; }
}

@media (max-width: 420px){
  .store img{ height: 40px; }
  .downloadTile__title{ font-size: 20px; }
  
	.hero__bg {
		background-image: none;
	}
}

/* ============================
   FIX: header fijo y contenido debajo (móvil/tablet)
   ============================ */

:root{
  --mobile-header-h: 78px;   /* ajusta si quieres más/menos alto */
  --tablet-header-h: 86px;
}

/* El header siempre fijo */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
.rules__bg {
    background-image: none;
}


/* En tablet */
@media (max-width: 1118px){
	.brand__logo {
		width: 230px !important;
		margin-top: 150px;
	}
}
/* En tablet */
@media (max-width: 980px){
  body{
    padding-top: var(--tablet-header-h);
  }
  .site-header .header__wrap{
    height: var(--tablet-header-h);
    padding: 0;
  }
  .header__wrap{
    display:flex;
    align-items:center;
  }

  /* para que el hero no meta padding adicional raro */
  .hero{
    padding-top: 24px; /* aire interno del hero */
  }
  .hero__badges{
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero__badges .badge{
    width: 100% !important;
  }
}

/* En móvil */
@media (max-width: 640px){
  body{
    padding-top: var(--mobile-header-h);
  }

  .site-header .header__wrap{
    height: var(--mobile-header-h);
    padding: 0;
  }

  /* Alineación vertical perfecta */
  .header__wrap{
    display:flex;
    align-items:center;
  }

  /* El hero empieza limpio justo debajo del header */
  .hero{
    padding-top: 18px;
  }

  /* Ajuste del logo para que no coma espacio */
  .brand__logo{
    width: 200px;
    max-width: 62vw;
  }
  .hero__badges{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero__badges .badge{
    width: 100% !important;
    font-size: 18px;
  }
}

/* =========================
   FIX HEADER + TOP (móvil/tablet)
   ========================= */

/* 1) Fuerza que el header NO dependa del tamaño del logo */
.site-header{
  position: fixed !important;
  top: 0 !important; left: 0; right: 0;
  z-index: 999 !important;
  height: var(--header-h) !important;
}

/* Header encogido */
.site-header.is-scrolled{
  height: var(--header-h-scrolled) !important;
}

/* La fila interna del header ocupa el 100% de esa altura */
.header__wrap{
  height: 100% !important;
  padding: 0 0 !important;            /* sin padding vertical que desborde */
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;                   /* evita que el logo “asome” */
}

/* 2) Logo: ancho grande pero SIEMPRE contenido dentro del alto del header */
.brand__logo{
  width: 300px !important;
  max-width: 320px !important;
  height: auto !important;
  max-height: calc(var(--header-h) - 14px) !important;  /* ✅ no se sale */
  object-fit: contain;
}

/* Logo cuando haces scroll */
.site-header.is-scrolled .brand__logo{
  width: 220px !important;
  max-height: calc(var(--header-h-scrolled) - 12px) !important;
}

/* 3) Muy importante: el hero NO debe tener padding-top gigantes ni body padding-top */
body{ padding-top: 0 !important; }

/* El fondo del hero debe empezar desde arriba (debajo del header visualmente),
   pero el CONTENIDO debe arrancar bajo el header */
.hero{
  padding-top: calc(var(--header-h) + 14px) !important;
}

/* 4) En móvil ajustamos alturas del header y tamaños para que quede perfecto */
@media (max-width: 640px){
  :root{
    --header-h: 78px;
    --header-h-scrolled: 62px;
  }

  .brand__logo{
    width: 200px !important;
    max-width: 70vw !important;
    max-height: calc(var(--header-h) - 12px) !important;
  }
  .site-header.is-scrolled .brand__logo{
    width: 170px !important;
    max-height: calc(var(--header-h-scrolled) - 10px) !important;
  }

  /* el hero vuelve a ajustarse al alto real del header móvil */
  .hero{
    padding-top: calc(var(--header-h) + 10px) !important;
  }
}

/* 5) En tablet */
@media (max-width: 980px){
  :root{
    --header-h: 86px;
    --header-h-scrolled: 68px;
  }
  .hero{
    padding-top: calc(var(--header-h) + 12px) !important;
  }
}

/* 6) Scroll a anchors: que no queden tapados */
section[id]{
  scroll-margin-top: calc(var(--header-h) + 18px);
}

/* =========================
   FIX: menú móvil recortado por overflow
   ========================= */

/* No recortes el header entero (si no, el dropdown no se ve) */
.header__wrap{
  overflow: visible !important;
  position: relative !important;
}

/* Contén el logo SIN recortar el menú */
.brand{
  max-height: calc(var(--header-h) - 12px);
  display:flex;
  align-items:center;
}
.site-header.is-scrolled .brand{
  max-height: calc(var(--header-h-scrolled) - 10px);
}
.brand__logo{
  max-height: 100% !important;
  object-fit: contain;
}

/* Asegura que el botón hamburguesa y el menú queden por encima */
.nav__toggle{
  position: relative;
  z-index: 1002;
}

@media (max-width: 860px){
  /* Fuerza el comportamiento de desplegable */
  .nav{
    display: none !important;
    position: absolute !important;
    right: 12px;
    top: calc(100% + 10px);
    z-index: 1001;

    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15,27,45,.12);
    padding: 12px;

    flex-direction: column;
    align-items: stretch;
    min-width: 260px;
    gap: 10px;
  }

  .nav.is-open{
    display: flex !important;
  }
}



/* =========================
   FIX logo cortado (arriba del todo)
   ========================= */

/* el header ya tiene height fija por tus variables */
.site-header{ overflow: visible !important; }

/* NO recortar el contenedor del logo */
.brand{
  height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  padding: 6px 0; /* da aire arriba/abajo */
}

/* el logo se adapta SIEMPRE a la altura disponible */
.brand__logo{
  height: 100% !important;
  max-height: calc(var(--header-h) - 12px) !important;
  width: 300px !important;
  max-width: 320px !important;
  object-fit: contain;
}

/* en scroll */
.site-header.is-scrolled .brand__logo{
  max-height: calc(var(--header-h-scrolled) - 10px) !important;
  width: 220px !important;
}

/* móvil */
@media (max-width: 640px){
  .brand__logo{
    width: 200px !important;
    max-width: 70vw !important;
    max-height: calc(var(--header-h) - 10px) !important;
  }
  .site-header.is-scrolled .brand__logo{
    width: 170px !important;
    max-height: calc(var(--header-h-scrolled) - 8px) !important;
  }
  a.nav__link.nav__pill {
    padding: 0 !important;
  }
  .milestone__body {
    width: 80%;
    margin-left: 33px;
  }
  .win .miniCard--win .miniCard__img img {
    object-fit: initial;
  }
}



/* =========================
   Página de Gracias (simple, centrada)
   ========================= */

.thanksPage{ background:#fff; }

.thanks{
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h-scrolled) + 20px);
  padding-bottom: 50px; /* ✅ margen final mínimo */
  overflow: hidden;
}

.thanks--center{
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks__bg{
  position:absolute;
  inset:0;
  background: url("../img/fondo.png") center/cover no-repeat;
  opacity: .95;
  z-index: 0;
  pointer-events: none;
}

.thanksCard{
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  padding: 30px 22px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.thanksTitle{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  color: var(--navy);
}

.thanksText{
  margin: 0 auto 18px;
  color: rgba(15,27,45,.80);
  font-size: 18px;
  line-height: 1.5;
  max-width: 52ch;
}

.thanksActions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thanksBtnGhost{
  background: rgba(15,27,45,.06);
  color: var(--navy);
}

.thanksNote{
  margin-top: 16px;
  font-size: 12px;
  color: rgba(15,27,45,.65);
}

.thanksNav{ gap: 0; }

@media (max-width: 640px){
  .thanks{
    padding-top: calc(var(--header-h-scrolled) + 14px);
    padding-bottom: 50px;
  }
  .thanksCard{
    padding: 22px 16px;
  }
}

.hero__media{ overflow: visible; }
.hero__parallax{ overflow: visible; }

/* Parallax: blinda transform por si algo lo pisa más abajo */
.hero__layer{
  transform: translate3d(var(--tx,0px), var(--ty,0px), 0) rotate(var(--rot,0deg)) !important;
}
.hero__phone{
  transform: translate3d(var(--tx,0px), var(--ty,0px), 0) translate(-50%, -50%) rotate(var(--rot,0deg)) !important;
}

/* evita recortes */
.hero__media{ overflow: visible; }
.hero__parallax{ overflow: visible; }

/* =========================
   LOGO HEADER: más grande en escritorio
   ========================= */

/* Desktop (por defecto) */
.brand__logo {
    width: 310px !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 250px;
}

/* Cuando haces scroll, se reduce (mantén algo grande igualmente) */
.site-header.is-scrolled .brand__logo{
  width: 280px !important;
  max-width: 300px !important;
  height: auto !important;
  margin-top: auto;
}

/* Tablet: vuelve a tamaños razonables */
@media (max-width: 980px){
  .brand__logo{
    width: 280px !important;
    max-width: 320px !important;
  }
  .site-header.is-scrolled .brand__logo{
    width: 220px !important;
    max-width: 260px !important;
  }
}

/* Móvil */
@media (max-width: 640px){
  .brand__logo{
    width: 200px !important;
    max-width: 70vw !important;
    margin-top: 70px;
  }
  .site-header.is-scrolled .brand__logo{
    width: 170px !important;
    max-width: 62vw !important;
  }
  .badge img {
    width: 30%;
    text-align: center;
    margin: 0 auto;
}
}

/* Menú baja arriba del todo, y sube al hacer scroll (sin margin-top fijo) */
@media (min-width: 861px){
  .nav{
    margin-top: 0 !important;
    transform: translateY(22px); /* ajusta: 18-28px según lo que necesites */
    transition: transform .18s ease;
  }

  .site-header.is-scrolled .nav{
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 1117px){
	.brand__logo {
        width: 230px !important;
        margin-top: 150px !important;
    }
}
/* =========================
   PÁGINAS LEGALES
   Header visible arriba + shrink al hacer scroll
   ========================= */

body.legalPage{
  padding-top: 0 !important;
}

/* Header visible desde arriba */
body.legalPage .site-header{
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 10px 28px rgba(15,27,45,.08);
}

/* En legal no queremos el logo “bajado” como en la landing */
body.legalPage .brand{
  max-height: calc(var(--header-h) - 12px);
  display: flex;
  align-items: center;
}

body.legalPage .brand__logo{
  margin-top: 0 !important;
  width: 240px !important;
  max-width: 280px !important;
  max-height: calc(var(--header-h) - 14px) !important;
  height: auto !important;
  object-fit: contain;
}

/* Menú visible arriba del todo */
body.legalPage .nav__link{
  color: var(--text) !important;
  opacity: .92;
}

body.legalPage .nav__link:hover{
  opacity: 1;
}

/* Botón toggle visible arriba del todo */
body.legalPage .nav__toggle{
  border-color: rgba(0,0,0,.10) !important;
  background: rgba(255,255,255,.92) !important;
}

body.legalPage .nav__toggle span{
  background: var(--text) !important;
}

/* CTA del menú */
body.legalPage .nav .btn.btn--primary{
  color: #fff !important;
}

/* Sigue reduciéndose al hacer scroll, como en landing */
body.legalPage .site-header.is-scrolled .header__wrap{
  padding: 10px 0 !important;
}

body.legalPage .site-header.is-scrolled .brand__logo{
  width: 200px !important;
  max-width: 220px !important;
  max-height: calc(var(--header-h-scrolled) - 10px) !important;
}

/* El contenido legal ya no necesita ese margin-top gigante */
body.legalPage .legal-page,
body.legalPage .legal-page__content,
body.legalPage .legal-page__container{
  margin-top: 0 !important;
}

/* Dale separación real según altura del header */
body.legalPage .legal-page{
  padding-top: calc(var(--header-h) + 30px) !important;
}

/* Si tienes hero interno en legales */
body.legalPage .legal-page__hero{
  padding-top: 20px;
}

/* Tablet */
@media (max-width: 980px){
  body.legalPage .brand__logo{
    width: 210px !important;
    max-width: 240px !important;
    margin-top: 0 !important;
  }

  body.legalPage .site-header.is-scrolled .brand__logo{
    width: 180px !important;
    max-width: 210px !important;
  }

  body.legalPage .legal-page{
    padding-top: calc(var(--header-h) + 24px) !important;
  }
}

/* Móvil */
@media (max-width: 640px){
  body.legalPage .brand__logo{
    width: 180px !important;
    max-width: 65vw !important;
    margin-top: 0 !important;
    max-height: calc(var(--header-h) - 12px) !important;
  }

  body.legalPage .site-header.is-scrolled .brand__logo{
    width: 160px !important;
    max-width: 58vw !important;
    max-height: calc(var(--header-h-scrolled) - 10px) !important;
  }

  body.legalPage .legal-page{
    padding-top: calc(var(--header-h) + 18px) !important;
  }
}
/* =========================
   COOKIES BANNER / MODAL
   ========================= */

.cookieBanner{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: none;
}

.cookieBanner.is-visible{
  display: block;
}

.cookieBanner__inner{
  background: rgba(14, 19, 34, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}

.cookieBanner__content{
  max-width: 900px;
}

.cookieBanner__title{
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.cookieBanner__text{
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}

.cookieBanner__text a{
  color: #ffb347;
  text-decoration: underline;
}

.cookieBanner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: max-content;
}

.cookieBanner__btn{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #ff8a00;
  color: #fff;
  transition: transform .18s ease, opacity .18s ease;
}

.cookieBanner__btn:hover{
  transform: translateY(-1px);
  opacity: .95;
}

/* Modal */
.cookieModal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.cookieModal.is-visible{
  display: block;
}

.cookieModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.48);
}

.cookieModal__dialog{
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 32px));
  margin: 8vh auto 0;
  background: #fff;
  color: #101828;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.cookieModal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.cookieModal__title{
  margin: 0 0 10px;
}

.cookieModal__text{
  margin: 0 0 22px;
  color: #475467;
  line-height: 1.6;
}

.cookieModal__group{
  border: 1px solid #eaecf0;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cookieModal__row{
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.cookieModal__row p{
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.5;
}

.cookieSwitch{
  position: relative;
  min-width: 54px;
  width: 54px;
  height: 32px;
  display: inline-block;
}

.cookieSwitch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.cookieSwitch span{
  position: absolute;
  inset: 0;
  background: #d0d5dd;
  border-radius: 999px;
  transition: .2s;
}

.cookieSwitch span::before{
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.cookieSwitch input:checked + span{
  background: #ff8a00;
}

.cookieSwitch input:checked + span::before{
  transform: translateX(22px);
}

.cookieSwitch--disabled{
  opacity: .7;
}

.cookieModal__footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cookieModal__link{
  color: #ff8a00;
  font-weight: 600;
  text-decoration: underline;
}

/* Botón flotante para reconfigurar */
.cookieSettingsBtn{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  cursor: pointer;
  display: none;
}

.cookieSettingsBtn.is-visible{
  display: inline-flex;
}

@media (max-width: 900px){
  .cookieBanner__inner{
    flex-direction: column;
    align-items: stretch;
  }

  .cookieBanner__actions{
    min-width: 0;
  }
}

@media (max-width: 640px){
  .cookieBanner{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookieBanner__inner{
    padding: 18px;
    border-radius: 18px;
  }

  .cookieBanner__actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookieModal__dialog{
    width: calc(100vw - 20px);
    padding: 22px 18px;
    margin-top: 4vh;
    border-radius: 18px;
  }

  .cookieModal__row{
    align-items: flex-start;
  }
}