/* ═══════════════════════════════════════════════════════════
   Foremost — Fanáticos de lo Nuestro
   app.css  ·  Desktop-first · cascada limpia · cero !important de relleno
   ─────────────────────────────────────────────────────────
   ÍNDICE
    1.  @font-face
    2.  :root — variables globales
    3.  Reset / base global
    4.  Home — Shell & header (nav desktop)
    5.  Home — Hero section (base = desktop)
        · .hero-left  .hero-logo  .hero-gana-text
        · .hero-card  (card CSS-only; PNG oculto en todos los viewports)
        · Labels, input, botones — max-width 300px centrado
    6.  Home — Promo, Steps, Premios + animaciones
    7.  Registro
    8.  Usuario
    9.  Empaque
   10.  Validar
   11.  Historial
   12.  Shared / legacy helpers
   13.  @media queries (max-width)
        · 1180px  tablet / desktop angosto
        ·  900px  tablet
        ·  760px  móvil  (hero card: override visual)
        ·  640px  validar columnas
        ·  620px  registro
        ·  600px  empaque / logos
        ·  520px  ganador balón
        ·  480px  general móvil pequeño
        ·  480×700  Safari iPhone compacto
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. FONT-FACE
───────────────────────────────────────────────────────────────── */

/* AmsiProCond-Ultra → Títulos (font-weight: 900) */
@font-face {
  font-family: 'AmsiPro';
  src: url('../fonts/AmsiProCond-Ultra.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* AmsiProCond-Black → Subtítulos (font-weight: 800) */
@font-face {
  font-family: 'AmsiPro';
  src: url('../fonts/AmsiProCond-Black.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

/* AmsiProCond-Bold → Textos (font-weight: 700) */
@font-face {
  font-family: 'AmsiPro';
  src: url('../fonts/AmsiProCond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────
   2. CUSTOM PROPERTIES
───────────────────────────────────────────────────────────────── */

:root {
  --red: #cc3638;
  --red-deep: #a02828;
  --blue: #0A3899;
  --blue-deep: #002570;
  --ink: #08224a;
  --ink-soft: #476287;
  --surface: rgba(255, 255, 255, 0.9);
  --shadow-lg: 0 28px 60px rgba(4, 31, 84, 0.16);
  --shadow-md: 0 18px 34px rgba(4, 31, 84, 0.12);
}

/* ─────────────────────────────────────────────────────────────────
   3. GLOBAL RESET / BASE
───────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Bloquea el scroll del body en la página con scroll-snap (index.html)
   para que solo .site-shell maneje el desplazamiento */
body.snap-body {
  overflow: hidden;
  height: 100vh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'AmsiPro', sans-serif;
}

h1 {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 6px 0 rgba(6, 54, 151, 0.85),
    0 16px 28px rgba(5, 69, 178, 0.18);
  -webkit-text-stroke: 4px rgba(4, 69, 178, 0.9);
  paint-order: stroke fill;
}

/* Global shared image/logo utility */
.site-logo {
  display: block;
  height: auto;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────
   4. HOME / INDEX
───────────────────────────────────────────────────────────────── */

/* Shell */
.site-shell {
  height: 100vh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.hero-container,
.promo-section,
.home-page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Header */
.hero-container {
  position: relative;
  line-height: 0;
  font-size: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  padding: 0;
}

.header-banner {
  width: 100%;
  margin: 0;
  background: var(--red);
  border-radius: 0 0 40px 40px;
  padding: 16px 48px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.campaign-logo-img {
  display: block;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  flex: 1;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.94);
  font-size: calc(1.15rem + 4px);
  font-weight: 800;
  font-family: 'AmsiPro', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff4b0;
}

/* ── Hamburger button (oculto en desktop) ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
}
.hamburger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Mobile nav overlay ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile nav drawer ── */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--red);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 0 40px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  align-self: flex-end;
  padding: 0 20px 20px;
  line-height: 1;
}
.mobile-nav-drawer nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer nav a {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'AmsiPro', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}
.mobile-nav-drawer nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff4b0;
}

/* Home page */
.home-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  background-image: url('../img/fondo1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 130px 5% 5% 6%;
  gap: 40px;
}

/* Hero left column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding-left: 3%;
  transform: translateY(60px);
}

.hero-logo {
  display: block;
  height: 18vw;
  max-height: 180px;
  min-height: 100px;
  max-width: 200px;
  width: auto;
  animation: floatSlow 5s ease-in-out infinite;
}

.hero-gana-text {
  display: block;
  width: auto;
  max-width: 45vw;
  max-height: 500px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeInLeft 0.8s ease both;
  animation-delay: 0.3s;
}

/* Hero card (right column) — base = desktop */
.hero-card {
  position: relative;
  top: 120px;
  flex-shrink: 0;
  width: clamp(380px, 38vw, 560px);
  margin-right: 6vw;
  animation: fadeInRight 0.9s ease both;
  animation-delay: 0.2s;
}

.hero-card-bg {
  display: none;
}

.hero-card-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 44px 40px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(200, 215, 235, 0.95) 100%);
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(4, 31, 84, 0.22);
  backdrop-filter: blur(8px);
}

/* Labels descriptivos — font unificado en el padre; children heredan */
.hero-mobile-label,
.hero-mobile-registrar-label {
  display: block;
  text-align: center;
  font-family: 'AmsiPro', sans-serif;
  color: var(--blue);
  line-height: 1.4;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.hero-mobile-label *,
.hero-mobile-registrar-label * {
  font-size: 22px;
  font-weight: inherit;
  display: block;
}

/* Formulario de login — contenedor unificado a 300px */
.hero-card-login {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-card-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fb;
  border: 2px solid rgba(10, 56, 153, 0.2);
  border-radius: 10px;
  padding: 0 14px;
  height: 52px;
}

.hero-card-input-icon {
  flex-shrink: 0;
  width: clamp(22px, 2vw, 28px);
  height: auto;
  display: block;
}

.hero-card-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #333;
  font-family: inherit;
}

.hero-card-input::placeholder {
  color: #8fa3bf;
  font-size: 16px;
}

.hero-card-btn-link {
  display: flex;
  justify-content: center;
  width: 100%;
}

#heroIngresarBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

#heroIngresarBtn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hero-card-registrarme {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero-card-btn-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}

.hero-login-error {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Promo section */
.promo-section {
  position: relative;
  width: 100%;
  margin-top: 0;
  z-index: 1;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  background-color: #0081f9;
  background-image: url('../img/fondo2-nuevo.png');
  background-size: 105% 100%;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 7% 5% 0;
}

.promo-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3%;
  width: 46%;
}

.promo-title-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-140px);
}

.promo-leche-img {
  display: block;
  width: calc(50% + 95px);
  height: auto;
  margin-top: -150px;
  transform: translateX(100px);
}

.promo-cta {
  position: absolute;
  bottom: calc(3% - 95px);
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-scale 2.4s ease-in-out infinite;
}

.promo-cta-img {
  display: block;
  width: clamp(190px, 28.8vw, 435px);
  height: auto;
  transition: transform 160ms ease;
}

.promo-cta:hover .promo-cta-img {
  transform: translateY(-3px);
}

/* ─── Logos decorativos superpuestos sobre fondo@2x ─────────────── */
.fondo-logos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.fondo-logo-fanaticos {
  position: absolute;
  left: 4%;
  top: 4%;
  width: clamp(230px, 24vw, 320px);
  height: auto;
}

.fondo-logo-foremost {
  position: absolute;
  left: 5.5%;
  top: 22%;
  width: clamp(160px, 16vw, 210px);
  height: auto;
}

.fondo-logo-pelota {
  position: absolute;
  left: -1%;
  bottom: 0;
  width: clamp(210px, 22vw, 290px);
  height: auto;
  opacity: 0.25;
}

/* Logos decorativos dentro del steps3-section */
.steps3-logo-fanaticos,
.steps3-logo-foremost,
.steps3-logo-pelota {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.steps3-logo-fanaticos {
  left: 3%;
  top: 5%;
  width: calc(22% + 75px);
  z-index: 1;
}

.steps3-logo-foremost {
  left: 5%;
  top: calc(15% + 75px);
  width: calc(12% + 75px);
  z-index: 1;
}

.steps3-logo-pelota {
  left: -1%;
  bottom: 0;
  width: auto;
  height: calc(var(--vh, 1vh) * 38);
  z-index: 0;
  opacity: 0.25;
}

/* Steps section */
.steps3-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background-image: url('../img/Materiales/fondo@2x.png');
  background-size: cover;
  background-position: center;
}

.step3-img {
  position: absolute;
  z-index: 2;
  width: 22%;
  height: 28vw;
  object-fit: contain;
  object-position: bottom center;
}

.step3-img--1 {
  left: 22%;
  bottom: calc(5% + 100px);
  top: auto;
}

.step3-img--2 {
  left: 48%;
  bottom: calc(5% + 100px);
  top: auto;
}

.step3-img--3 {
  left: 74%;
  bottom: calc(5% + 100px);
  top: auto;
}

/* Título "Mecánica" — mismo pill que los títulos de la vista Validar */
.steps3-title {
  position: absolute;
  top: clamp(20px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
}

/* ── Premios section ─────────────────────────────────────────── */
.premios-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background-image: url('../img/Materiales/fondo@2x.png');
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
}

.premios-deco {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.premios-deco--fanaticos {
  left: 3%;
  top: 5%;
  width: calc(22% + 75px);
  z-index: 1;
}

.premios-deco--foremost {
  left: 5%;
  top: calc(15% + 75px);
  width: calc(12% + 75px);
  z-index: 1;
}

.premios-deco--pelota {
  left: -1%;
  bottom: 0;
  width: auto;
  height: calc(var(--vh, 1vh) * 38);
  z-index: 0;
  opacity: 0.25;
}

.premios-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3% 3% 3% 26%;
  gap: 4%;
}

.premios-img {
  display: block;
  height: auto;
}

.premios-img--titulo    { width: min(42%, 520px); }
.premios-img--camisolas { width: min(78%, 900px); }
.premios-img--balon     { width: min(62%, 680px); }
.premios-disclaimer-text {
  font-size: calc(0.85rem + 4px);
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-align: center;
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.scroll-top-btn img {
  display: block;
  width: 56px;
  height: 56px;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  animation: float 3s ease-in-out infinite;
}

.scroll-top-btn:hover {
  animation: none;
  transform: translateY(-4px) scale(1.08);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateX(0px) rotate(0deg); }
  50%       { transform: translateX(10px) rotate(1deg); }
}

@keyframes pulse-scale {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.06); }
}

@keyframes pulse-scale-center {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}


@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}



/* Promo section animations */
@keyframes fadeInUpPromo {
  from { opacity: 0; transform: translateY(-100px); }
  to   { opacity: 1; transform: translateY(-140px); }
}

.promo-title-img.visible {
  animation: fadeInUpPromo 0.7s ease both;
}


/* Step3 reveal animations */
.step3-img--1.visible {
  animation: fadeInRight 0.65s ease both;
}
.step3-img--2.visible {
  animation: fadeInRight 0.65s ease both;
  animation-delay: 0.18s;
}
.step3-img--3.visible {
  animation: fadeInRight 0.65s ease both;
  animation-delay: 0.36s;
}

/* ─────────────────────────────────────────────────────────────────
   5. REGISTRO
───────────────────────────────────────────────────────────────── */

.register-body {
  margin: 0;
  background-image: url('../img/Materiales/fondo@2x.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: calc(var(--vh, 1vh) * 100);
}

.register-page {
  position: relative;
  width: 100%;
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 32px 5% 48px;
  display: flex;
  flex-direction: column;
}


.register-layout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex: 1;
}

.register-brand {
  display: none;
}

.register-panel {
  width: min(100%, 560px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 32px 36px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.register-panel h1 {
  margin: 0 0 10px;
  background: none;
  box-shadow: none;
  text-align: center;
}

.register-title-img {
  display: block;
  width: 100%;
  height: auto;
}

.register-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span:first-child {
  color: var(--blue);
  font-family: 'AmsiPro', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(5, 69, 178, 0.25);
  box-shadow: 0 2px 8px rgba(5,69,178,0.06);
}

.field-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5,69,178,0.12);
}

.field-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.field-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.field-control input::placeholder {
  color: rgba(71, 98, 135, 0.45);
}

/* Dept select */
.dept-select-wrap {
  position: relative;
}

.dept-select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230A3899' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: rgba(71, 98, 135, 0.45);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
}

.dept-select.has-value,
.dept-select:not([value=""]):valid {
  color: var(--ink);
}

.dept-select:focus {
  outline: none;
}

.dept-select-wrap:focus-within {
  box-shadow: inset 0 0 0 2px rgba(5, 69, 178, 0.25);
}


.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 8px 22px;
  color: var(--blue);
  font-family: 'AmsiPro', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.terms-check input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--blue);
}

/* Enlace a Términos y Condiciones — subrayado y resaltado como link */
.terms-check a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
}

.register-submit {
  width: 100%;
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0c58d5 0%, var(--blue) 100%);
  color: #fff;
  cursor: pointer;
  font-family: 'AmsiPro', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.register-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.register-login {
  margin: 2px 0 0;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
}

.register-login a {
  color: var(--blue);
  font-weight: 800;
}

.register-message {
  min-height: 22px;
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.register-message.success {
  color: #1b9250;
}

.register-message.error {
  color: var(--red-deep);
}

/* ─────────────────────────────────────────────────────────────────
   6. USUARIO
───────────────────────────────────────────────────────────────── */

.usuario-body {
  background-image: url('../img/Materiales/fondo@2x.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Shared header / logout across usuario, empaque, validar, historial */
.logout-button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}

.usuario-layout {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  padding: 28px 32px 48px;
}

.usuario-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.usuario-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 540px);
  margin: 0 auto;
  padding-bottom: 32px;
}

.usuario-bienvenida {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(33px, 4.5vw, 43px);
  font-weight: 900;
  color: var(--blue);
  text-align: center;
  margin: 0;
}

.usuario-pill-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

.usuario-pill-circle {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: clamp(72px, 10vw, 100px);
  height: clamp(72px, 10vw, 100px);
  background: #C42B2B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usuario-pill-circle span {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.usuario-pill-bar {
  flex: 1;
  background: var(--blue);
  border-radius: 0 100px 100px 0;
  margin-left: -18px;
  padding: 16px 28px 16px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.usuario-pill-label {
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.usuario-card-img {
  display: block;
  width: 145%;
  height: auto;
  border-radius: 12px;
  align-self: center;
  margin-top: 50px;
}

.usuario-img-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 150ms ease;
}

.usuario-img-btn:hover {
  transform: translateY(-3px);
}

.usuario-historial-btn {
  display: flex;
  align-items: center;
  gap: 14px;
}

.usuario-historial-icon {
  display: block;
  width: clamp(36px, 5vw, 56px);
  height: auto;
  flex-shrink: 0;
}

.usuario-historial-img {
  display: block;
  width: 71%;
  flex: none;
  height: auto;
}

@keyframes empaque-pulse {
  0%   { transform: scale(1) translateY(0px); }
  30%  { transform: scale(1.06) translateY(-6px); }
  60%  { transform: scale(1.03) translateY(-3px); }
  100% { transform: scale(1) translateY(0px); }
}

@keyframes empaque-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 56, 153, 0.35); }
  50%       { box-shadow: 0 6px 32px rgba(0, 56, 153, 0.7), 0 0 24px rgba(255, 200, 0, 0.45); }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  30%       { transform: translateX(8px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(5px); }
}

.empaque-arrow {
  display: inline-block;
  animation: arrow-bounce 1.4s ease-in-out infinite;
  margin-left: 6px;
}

.usuario-empaque-btn {
  display: block;
  width: 100%;
  padding: 20px 32px;
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  animation: empaque-pulse 2s ease-in-out infinite,
             empaque-glow 2s ease-in-out infinite;
  transition: background 150ms ease;
}

.usuario-empaque-btn:hover {
  background: #0c45c2;
}

/* Botón flotante de Preguntas frecuentes (home usuario) */
.faq-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(10, 56, 153, 0.30);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.faq-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 56, 153, 0.40);
}

.faq-fab-q {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}

.faq-fab-label {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  color: var(--blue);
  text-align: left;
  padding-right: 6px;
}

/* ─────────────────────────────────────────────────────────────────
   7. EMPAQUE
───────────────────────────────────────────────────────────────── */

.empaque-layout {
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 32px 48px;
}

.empaque-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 900px);
  margin: 0 auto;
  padding-bottom: 32px;
}

.empaque-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 24px;
}

.empaque-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.empaque-carton-wrap {
  flex-shrink: 0;
  position: relative;
  width: clamp(210px, 22%, 326px);
}

.empaque-carton-img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes empaque-cta-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

@keyframes code-wrap-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.09); }
}

.empaque-write-cta {
  position: absolute;
  left: 105%;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  transform-origin: left center;
  animation: empaque-cta-pulse 2s ease-in-out infinite;
}

.empaque-write-cta-text {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.4vw, 15px);
  font-weight: 900;
  color: #C42B2B;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.empaque-write-arrow {
  width: clamp(36px, 5vw, 56px);
  height: 3px;
  background: #C42B2B;
  border-radius: 2px;
  position: relative;
  align-self: flex-start;
}

.empaque-write-arrow::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 9px solid #C42B2B;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.empaque-title-pill {
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(23px, 3.6vw, 42px);
  font-weight: 900;
  padding: 12px 24px;
  border-radius: 10px;
  line-height: 1.1;
}

.empaque-subtitle {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* Code wrap with background image */
.empaque-code-wrap {
  position: relative;
  width: 100%;
  margin-right: auto;
  margin-left: -4%;
  transform-origin: right center;
  animation: code-wrap-pulse 2s ease-in-out infinite;
}

.empaque-codigo-bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Code letters overlay (also used in validar) */
.empaque-code-letters {
  position: absolute;
  bottom: 6%;
  left: 0;
  width: 100%;
  padding: 0 1% 0 6%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.empaque-code-letter {
  flex: 1;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(30px, 5.25vw, 60px);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: clamp(2px, 0.4vw, 4px);
}

.empaque-code-wrap .empaque-code-letter::after,
.validar-code-wrap .empaque-code-letter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #C42B2B;
  border-radius: 2px;
}

.empaque-guia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 130%;
  margin: 0 auto;
  transform: translateX(-145px);
}

.empaque-guia-step {
  width: 100%;
  height: auto;
  display: block;
}

.empaque-img-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: min(100%, 420px);
  transition: transform 150ms ease;
}

.empaque-img-btn:hover {
  transform: translateY(-2px);
}

.empaque-yaescribi-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared action center (used in validar too) */
.empaque-action-center {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin: 0 auto;
}

.mat-img-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 120ms ease, filter 120ms ease;
}

.mat-img-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.mat-img-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mat-img-btn:active {
  transform: translateY(0);
}


/* ─────────────────────────────────────────────────────────────────
   8. VALIDAR
───────────────────────────────────────────────────────────────── */

.validar-layout {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 28px 32px 48px;
}

/* Upload state */
.validar-upload {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 32px;
}

.validar-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.validar-titulo-img {
  display: block;
  width: clamp(260px, 55vw, 503px);
  height: auto;
}

.validar-cols {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

/* Left column */
.validar-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.validar-capture-wrap {
  position: relative;
  width: 100%;
}

.validar-captura-img {
  display: block;
  width: 100%;
  height: auto;
}

.validar-btns-overlay {
  position: absolute;
  bottom: calc(10% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: 67%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.validar-preview-outer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.validar-preview-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f8;
}

.validar-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.validar-btn-label {
  display: block;
  cursor: pointer;
  animation: btn-float-subtle 3.2s ease-in-out infinite;
  transition: filter 140ms ease;
}

.validar-btn-label:nth-child(2) {
  animation-delay: 0.9s;
}

.validar-btn-label:hover {
  filter: brightness(1.08);
}

@keyframes btn-float-subtle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

.validar-action-btn-img {
  display: block;
  width: 100%;
  height: auto;
}

.clear-img-btn {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: #ff4d42;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

/* Right column */
.validar-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: calc(19.5% - 115px);
}

.validar-code-wrap {
  position: relative;
  width: 100%;
  transform-origin: center center;
  animation: code-wrap-pulse 2s ease-in-out infinite;
}

.validar-codigo-bg {
  display: block;
  width: 100%;
  height: auto;
}

.validar-code-wrap .empaque-code-letter {
  position: relative;
  padding-bottom: clamp(2px, 0.4vw, 4px);
  font-size: clamp(19px, 3.37vw, 39px);
}

.validar-code-wrap .empaque-code-letters {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  padding: 0 3%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.validar-instrucciones-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom bar */
.validar-bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--blue);
  border-radius: 50px;
  box-sizing: border-box;
}


.validar-tecnologia-html {
  flex: 1;
  min-width: 0;
}

.validar-tec-title {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(19px, 1.5vw, 22px);
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.validar-tec-body {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1vw, 17px);
  color: #fff;
  margin: 0;
  line-height: 1.45;
}

.validar-enviar-btn {
  flex-shrink: 0;
  background: #C42B2B;
  border: none;
  border-radius: 50px;
  padding: 13px 26px;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
  white-space: nowrap;
}

.validar-enviar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.validar-enviar-btn:not(:disabled):hover {
  transform: translateY(-2px);
}


#step3PostActions {
  width: min(100%, 560px);
  margin: 12px auto 0;
}

/* flow-result (shown in validar after old flow) */
.flow-result {
  width: min(100%, 620px);
  margin-top: 20px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.flow-result.success {
  border: 2px solid rgba(27, 146, 80, 0.28);
}

.flow-result.error {
  border: 2px solid rgba(205, 19, 40, 0.28);
}

.flow-result strong {
  color: var(--blue);
  font-size: 1.25rem;
}

/* Validating state */
.flujo-custom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.validating-header-centered {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.validating-header-centered .left-logo {
  position: absolute;
  top: 0;
  left: 0;
}

.validating-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.validating-title-pill {
  background: var(--blue);
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 4px 10px rgba(10, 56, 153, 0.3);
}

.validating-pill-text {
  margin: 0;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-align: center;
}

.validating-subtitle {
  text-align: center;
  color: #0c58d5;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 30px;
}

.validating-layout-centered {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.validating-image-col {
  flex: 0 0 auto;
}

.validating-image-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 2px dashed #4a5568;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.validating-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.validating-status-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 320px;
  justify-content: center;
}

/* Code detected card (dark blue) */
.validating-code-card.dark {
  background: #0c3fa0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.validating-code-label {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.validating-code-value {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.16em;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  margin-bottom: 12px;
  border-bottom: 4px solid #fff;
  padding-bottom: 4px;
}

.validating-progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.validating-progress-fill {
  background: #ff4d42;
  height: 100%;
  width: 50%;
  border-radius: 3px;
}

.validating-progress-label {
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

/* Status card (white) */
.validating-status-card {
  background: #fff;
  border: 2px solid #0c58d5;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  color: #0c58d5;
}

.validating-status-tag-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.validating-doc-icon {
  font-size: 1.2rem;
}

.validating-status-tag {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0;
  color: #0c58d5;
}

.validating-status-card strong {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.validating-status-card p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9rem;
}

/* Spinner */
.validating-spinner {
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Secure button */
.validating-secure-btn {
  background: #0c58d5;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

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

.secure-icon {
  font-size: 1.3rem;
}

/* Código válido screen */
.codigo-valido-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px 34px;
}

.codigo-valido-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  width: min(100%, 688px);
  text-align: center;
}

.codigo-valido-check {
  width: clamp(119px, 14vw, 169px);
  height: clamp(119px, 14vw, 169px);
}

.codigo-valido-check-svg {
  width: 100%;
  height: 100%;
}

.codigo-valido-check-circle {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.codigo-valido-check-mark {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.codigo-valido-pill {
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(25px, 3.8vw, 45px);
  font-weight: 900;
  padding: 15px 40px;
  border-radius: 50px;
  line-height: 1.2;
}

.codigo-valido-subtitle {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(15px, 2vw, 25px);
  color: var(--blue);
  line-height: 1.5;
  margin: 0;
}

.codigo-valido-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--blue);
  border-radius: 50px;
  padding: 11px 28px;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.6);
}

.codigo-valido-ver-premio-btn {
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(20px, 2.7vw, 34px);
  font-weight: 900;
  border: none;
  border-radius: 50px;
  padding: 18px 68px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 140ms ease, background 140ms ease;
  width: min(100%, 506px);
}

.codigo-valido-ver-premio-btn:hover {
  background: #0c47bb;
  transform: translateY(-2px);
}

/* Final state (resultado) */
.final-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.final-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.final-title-pill {
  background: #0c58d5;
  border-radius: 999px;
  padding: 12px 30px;
  box-shadow: 0 4px 10px rgba(12, 88, 213, 0.3);
  margin-top: 16px;
}

.final-title-pill h1 {
  margin: 0;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
}

.final-title-pill.error {
  background: #ff4d42;
  box-shadow: 0 4px 10px rgba(255, 77, 66, 0.3);
}

.final-title-pill.win {
  background: linear-gradient(135deg, #ffcb24, #ff9e10);
  color: #1a1a2e;
}

.final-content-box {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.final-content-box h2 {
  color: #0c58d5;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.final-content-box p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.final-content-box .log-details {
  background: #f4f7f6;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #555;
  text-align: left;
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
}

/* Result images */
.result-prize-img {
  display: block;
  max-width: 640px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

.result-no-salio-img {
  display: block;
  max-width: 440px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

.result-no-recibe-img {
  display: block;
  max-width: 640px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

/* Prize modal */
.prize-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 33, 92, 0.58);
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.prize-modal-card {
  width: min(100%, 480px);
  padding: 36px 32px;
  border-radius: 36px;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
  box-shadow:
    0 0 0 4px rgba(255, 207, 36, 0.6),
    0 32px 64px rgba(4, 39, 108, 0.26);
  text-align: center;
  animation: cardPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.prize-modal-confetti {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.prize-modal-title {
  margin: 0 0 4px;
  font-family: 'AmsiPro', sans-serif;
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 0.92;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.prize-modal-subtitle {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.05rem;
}

.prize-modal-name {
  margin: 0 0 8px;
  padding: 14px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0c58d5, var(--blue));
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: var(--shadow-md);
}

.prize-modal-desc {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prize-modal-image {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 18px;
}

.prize-modal-close {
  background: linear-gradient(180deg, #ffcb24, #ff9e10) !important;
  color: var(--blue-deep) !important;
  box-shadow:
    0 8px 0 rgba(90, 57, 3, 0.18),
    0 20px 28px rgba(90, 57, 3, 0.12);
}

/* Contact modal */
.contact-modal .prize-modal-card {
  width: min(96vw, 520px);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(5,69,178,0.18) transparent;
  padding: 36px 32px 28px;
}

.contact-modal .prize-modal-title {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin-bottom: 4px;
}

.contact-modal .prize-modal-subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-field {
  display: grid;
  gap: 5px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field > span {
  font-family: 'AmsiPro', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 14px;
}

.contact-field input {
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  box-shadow: inset 0 0 0 2px rgba(5, 69, 178, 0.1);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.18s, background 0.18s;
}

.contact-field input::placeholder {
  color: rgba(71, 98, 135, 0.4);
  font-weight: 500;
}

.contact-field input:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: #fff;
}

.contact-field input[readonly] {
  background: rgba(5, 69, 178, 0.06);
  color: rgba(71, 98, 135, 0.65);
  cursor: default;
  box-shadow: none;
}

.contact-divider {
  height: 1px;
  background: rgba(5, 69, 178, 0.08);
  margin: 4px 0;
  grid-column: 1 / -1;
}

.contact-form-error {
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 18px;
  background: rgba(192, 57, 43, 0.07);
  border-radius: 14px;
  border: 1.5px solid rgba(192,57,43,0.15);
}

.contact-submit-btn {
  margin-top: 6px;
  font-size: 1.1rem;
}

/* Código inválido screen */
.ci-section {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 52px;
  box-sizing: border-box;
  margin-top: -50px;
}

.ci-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
}

.ci-noSalio-img {
  display: block;
  width: 100%;
  height: auto;
}

.ci-btns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  margin-top: 18px;
}

.ci-btn-retry {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 2.2vw, 20px);
  cursor: pointer;
  transition: background 150ms ease, transform 120ms ease;
}

.ci-btn-retry:hover {
  background: #0c47bb;
  transform: translateY(-1px);
}

.ci-btn-soporte {
  width: 100%;
  background: #d4d4d4;
  color: #555;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms ease;
}

.ci-btn-soporte:hover {
  background: #bebebe;
}

.ci-btn-soporte-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #777;
  color: #777;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ─── Botones con imagen propia en móvil (desktop conserva su estilo) ─────
   - "Ver historial" usa <picture> (imagen distinta por breakpoint).
   - "Intentar de nuevo" / "Contactar a soporte" conservan su botón de texto
     en desktop y muestran la imagen del recurso en móvil. */
.mat-img-btn picture { display: block; width: 100%; }
.btn-mobile-img { display: none; }

@media (max-width: 760px) {
  .ci-btn-retry.has-mobile-img,
  .ci-btn-soporte.has-mobile-img {
    background: none;
    padding: 0;
    border-radius: 0;
  }
  .ci-btn-retry.has-mobile-img:hover,
  .ci-btn-soporte.has-mobile-img:hover {
    background: none;
    transform: none;
  }
  .has-mobile-img .btn-desktop-label { display: none; }
  .has-mobile-img .btn-mobile-img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Gracias por participar screen */
.gpp-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
}

.gpp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 560px);
}

.gpp-heart-wrap {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
  margin-bottom: -48px;
}

.gpp-heart-svg {
  width: 40px;
  height: 40px;
}

.gpp-heart-img {
  width: 48px;
  height: auto;
}

.gpp-blue-card {
  background: var(--blue);
  border-radius: 22px;
  padding: 60px 36px 28px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.gpp-title {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
}

.gpp-near {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.gpp-body {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.5;
}

.gpp-code-box {
  background: #fff;
  border: 2px solid #d0daf0;
  border-radius: 16px;
  padding: 18px 32px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.gpp-code-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.gpp-code-value {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin: 0;
}

.gpp-btns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.gpp-btn-inicio {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 2vw, 20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms ease, transform 120ms ease;
}

.gpp-btn-inicio:hover {
  background: #0c47bb;
  transform: translateY(-1px);
}

.gpp-btn-historial {
  width: 100%;
  background: #d4d4d4;
  color: #555;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 18px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms ease;
}

.gpp-btn-historial:hover {
  background: #bebebe;
}

/* Ganador balón screen */
.gb-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 20px 48px;
  margin-top: -25px;
  box-sizing: border-box;
}

.gb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 680px);
}

.gb-check-wrap {
  width: clamp(56px, 7vw, 80px);
  height: clamp(56px, 7vw, 80px);
}

.gb-check-svg { width: 100%; height: 100%; }

.gb-check-circle {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.gb-check-mark {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gb-title-pill {
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 900;
  padding: 12px 36px;
  border-radius: 999px;
}

.gb-resultado-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.gb-code-box {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.85) 35%, #fff 100%);
  border: 2px solid rgba(208,218,240,0.6);
  border-radius: 14px;
  padding: 18px 24px 18px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gb-code-label {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 3.2vw, 22px);
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.gb-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gb-code-value {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  color: #C42B2B;
  letter-spacing: 0.12em;
}

.gb-copy-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 16px);
  cursor: pointer;
  transition: background 150ms ease;
  white-space: nowrap;
}

.gb-copy-btn:hover { background: #0c47bb; }
.gb-copy-btn.copied { background: #1a7a3c; }

.gb-instructions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  padding: 4px 0;
  box-sizing: border-box;
}


.gb-instr-title {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  padding: 5px 14px;
  margin: 0 0 10px;
  display: inline-block;
}

.gb-instr-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-instr-list li {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--blue);
  line-height: 1.4;
  font-weight: 600;
}

.gb-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

.gb-link:hover { color: #0c47bb; }

.gb-footer {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  color: var(--blue);
  text-align: center;
  font-style: italic;
  margin: 0;
}

.gb-btns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.gb-btn-inicio {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 19px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms ease;
}

.gb-btn-inicio:hover { background: #0c47bb; }

.gb-btn-historial {
  width: 100%;
  background: #d4d4d4;
  color: #555;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.8vw, 17px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms ease;
}

.gb-btn-historial:hover { background: #bebebe; }

/* ─────────────────────────────────────────────────────────────────
   9. HISTORIAL
───────────────────────────────────────────────────────────────── */

.historial-layout {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  padding: 28px 32px 48px;
}

.historial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 600px);
  margin: 0 auto;
  padding-bottom: 32px;
}

.historial-titulo-img {
  display: block;
  width: min(100%, 480px);
  height: auto;
}

.historial-subtitulo-img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.historial-stats {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.historial-stat-wrap {
  position: relative;
  flex: 1;
  max-width: 220px;
}

.historial-stat-img {
  display: block;
  width: 100%;
  height: auto;
}

.historial-stat-count {
  position: absolute;
  left: 20.4%;
  top: 63.5%;
  transform: translate(-50%, -50%);
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

.historial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

/* Participación card (dynamically created in historial.js) */
.historial-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.92) 100%);
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 14px 20px;
  min-height: 80px;
  gap: 12px;
}

.historial-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.historial-card-date {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 700;
  color: var(--blue);
}

.historial-card-code {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 900;
  color: var(--blue);
}

.historial-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.historial-badge-img {
  display: block;
  height: clamp(20px, 2.5vw, 32px);
  width: auto;
}

.historial-status-img {
  display: block;
  height: clamp(18px, 2.2vw, 28px);
  width: auto;
}

.historial-badge-premio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FF6B00, #FFD200);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.35);
}

.historial-prize-name {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 900;
  color: #E05A00;
  text-align: right;
}

.historial-codigo-canje {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  color: var(--blue);
  text-align: right;
  margin-top: 4px;
}

/* Badges de estado por participación (pill + descripción) */
.historial-badge {
  display: inline-block;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 5px 14px;
  border-radius: 6px;
}

.historial-badge--reject  { background: #cc3638; box-shadow: 0 3px 10px rgba(204, 54, 56, 0.32); }
.historial-badge--valid   { background: var(--blue); box-shadow: 0 3px 10px rgba(10, 56, 153, 0.30); }
.historial-badge--warn    { background: #E8890C; box-shadow: 0 3px 10px rgba(232, 137, 12, 0.32); }
.historial-badge--pending { background: #8A93A6; box-shadow: 0 3px 10px rgba(138, 147, 166, 0.30); }

.historial-status-text {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 900;
  text-align: right;
}

.historial-status-text--reject  { color: #cc3638; }
.historial-status-text--valid   { color: var(--blue); }
.historial-status-text--warn    { color: #B26A00; }
.historial-status-text--pending { color: #5A6478; }

/* Card de premio: clicleable para abrir el popup */
.historial-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.historial-card--clickable:hover,
.historial-card--clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 56, 153, 0.28);
  outline: none;
}
.historial-ver-premio {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 700;
  color: #E05A00;
  text-align: right;
  margin-top: 2px;
}

/* Instrucciones de canje (balón) + CTA a Anais */
.historial-canje {
  margin-top: 6px;
  text-align: right;
}
.historial-canje-txt {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 6px;
  line-height: 1.3;
}
.historial-anais-btn {
  display: inline-block;
  background: #cc3638;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(12px, 1.4vw, 15px);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(204, 54, 56, 0.3);
}
.historial-anais-btn:hover { background: #b32e30; }

/* Dirección de entrega registrada (camisola) — solo lectura */
.historial-envio {
  margin-top: 6px;
  text-align: right;
  background: rgba(10, 56, 153, 0.06);
  border: 1px solid rgba(10, 56, 153, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
}
.historial-envio-lbl {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 900;
  color: var(--blue);
  margin: 0 0 3px;
}
.historial-envio-dir,
.historial-envio-tel {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 700;
  color: #18306b;
  margin: 0;
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────
   GANADOR CAMISOLA — layout base (check · pill · imagen · formulario)
───────────────────────────────────────────────────────────────── */

.gc-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 20px 48px;
  margin-top: -25px;
  box-sizing: border-box;
}

.gc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 720px);
}

.gc-check-wrap {
  width: clamp(56px, 7vw, 80px);
  height: clamp(56px, 7vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gc-check-svg { width: 100%; height: 100%; }

.gc-check-circle {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.gc-check-mark {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gc-title-pill {
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 900;
  padding: 12px 36px;
  border-radius: 999px;
  text-align: center;
}

.gc-resultado-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Formulario de datos de entrega */
.gc-form-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.gc-form-title {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--blue);
  line-height: 1.2;
  margin: 0;
}

.gc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(10, 56, 153, 0.30);
  border-radius: 24px;
  padding: 22px 22px 24px;
}

.gc-field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gc-label {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--blue);
}

.gc-input-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(4, 31, 84, 0.06);
}

.gc-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.gc-input-icon--top {
  top: 18px;
  transform: none;
}

.gc-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--blue);
  padding: 16px 18px;
}

.gc-input--icon { padding-left: 48px; }

.gc-input::placeholder { color: #9aa7c4; font-weight: 500; }

.gc-textarea {
  resize: none;
  min-height: 96px;
  line-height: 1.4;
}

.gc-form-error {
  color: #C42B2B;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 16px);
  text-align: center;
  margin: 0;
}

.gc-submit-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  cursor: pointer;
  transition: background 150ms ease;
  margin-top: 4px;
}

.gc-submit-btn:hover { background: #0c47bb; }

.gc-footer {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  color: var(--blue);
  text-align: center;
  font-style: italic;
  margin: 0;
}

.gc-btns {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

/* Camisola: card de confirmación / dirección registrada (bloqueada) */
.gc-success-card {
  width: 100%;
  max-width: 440px;
  margin: 14px auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(10, 56, 153, 0.18);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(4, 31, 84, 0.12);
}
.gc-success-icon { font-size: 38px; line-height: 1; }
.gc-success-title {
  font-family: 'AmsiPro', sans-serif; font-weight: 900;
  font-size: clamp(18px, 5vw, 24px); color: var(--blue); margin: 8px 0 4px;
}
.gc-success-body {
  font-family: 'AmsiPro', sans-serif; font-weight: 700;
  font-size: clamp(13px, 3.6vw, 16px); color: var(--blue); margin: 6px 0 0; line-height: 1.35;
}
.gc-locked-dir {
  font-family: 'AmsiPro', sans-serif; font-weight: 900;
  font-size: clamp(15px, 4vw, 19px); color: #18306b; margin: 8px 0 2px;
}
.gc-locked-tel {
  font-family: 'AmsiPro', sans-serif; font-weight: 700;
  font-size: clamp(13px, 3.4vw, 16px); color: #18306b; margin: 0 0 6px;
}

/* ─── Popup de premio (imagen grande balón / camisola) ─────────────── */
.premio-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.premio-popup[hidden] { display: none; }

.premio-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 60, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.premio-popup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 560px);
  animation: premioPopIn 0.25s ease;
}

@keyframes premioPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.premio-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.premio-popup-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.premio-popup-close:hover { background: #f0f0f0; }

@media (max-width: 420px) {
  .premio-popup-close { top: -10px; right: -10px; width: 38px; height: 38px; font-size: 24px; }
}

/* ─────────────────────────────────────────────────────────────────
   10. SHARED / LEGACY HELPERS
   (classes used by legacy app.js flow — the internal debug tool)
───────────────────────────────────────────────────────────────── */

/* app.js (internal debug tool) renders these dynamically */
.result-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.result-banner.match {
  background: rgba(34, 211, 165, 0.1);
  border: 1.5px solid rgba(34, 211, 165, 0.4);
}

.result-banner.no-match {
  background: rgba(247, 90, 90, 0.08);
  border: 1.5px solid rgba(247, 90, 90, 0.28);
}

.result-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.result-body { flex: 1; }

.result-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.result-sub {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.code-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.compare-cell { display: flex; flex-direction: column; gap: 4px; }

.compare-key {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.compare-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.compare-val.blue { color: var(--blue); }
.compare-val.success { color: #22d3a5; }
.compare-val.err { color: #f75a5a; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.meta-cell {
  padding: 12px;
  border-radius: 14px;
  background: rgba(5, 69, 178, 0.05);
}

.meta-key {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.fraud-section {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(5, 69, 178, 0.14);
}

.fraud-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(5, 69, 178, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fraud-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
}

.fraud-body.autentico { background: rgba(34, 211, 165, 0.07); }
.fraud-body.fraude    { background: rgba(247, 90, 90, 0.07); }
.fraud-body.disabled  { background: rgba(5, 69, 178, 0.03); }

.fraud-icon-wrap { flex-shrink: 0; }

.fraud-text { flex: 1; }

.fraud-verdict {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.fraud-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Progress animation for old flow */
@keyframes progressPulse {
  0%   { width: 20%; opacity: 1; }
  50%  { width: 75%; opacity: 0.9; }
  100% { width: 20%; opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────
   NUEVA VISTA UNIFICADA (EMPAQUE + VALIDAR)
───────────────────────────────────────────────────────────────── */
.unificado-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.unificado-content img:not(.uni-arrow-img) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Pills de título — antes imágenes Recurso 175 y Recurso 184 (ahora en CSS) */
.uni-title-pill {
  background: var(--blue);
  border-radius: 22px;
  padding: 12px 36px;
  margin: 0;
  max-width: 94%;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7.6vw, 44px);
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(10, 56, 153, 0.28);
}

.uni-title-pill--val { margin-top: 24px; }

/* Pill con texto largo (ej. "Escribe el código en el área señalada del empaque") */
.uni-title-pill--long {
  font-size: clamp(20px, 5.2vw, 30px);
  padding: 14px 28px;
  line-height: 1.12;
}

/* Icono de ayuda flotante + popup con el tip de escritura */
.uni-help {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.uni-help-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 56, 153, 0.42);
  transition: transform 0.15s ease;
}
.uni-help-btn:hover { transform: scale(1.06); }
.uni-help-pop {
  width: min(80vw, 300px);
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 13px 16px;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(4, 31, 84, 0.28);
  animation: uniHelpIn 0.18s ease;
}
.uni-help-pop[hidden] { display: none; }
.uni-help-pop strong { font-weight: 900; }
@keyframes uniHelpIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtítulo de texto (reemplaza Recurso 176 / 185) */
.uni-subtitle {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(20px, 5.4vw, 30px);
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  line-height: 1.1;
  max-width: 460px;
  margin: 0 0 6px;
}

/* Separación extra antes del subtítulo de la sección "Validar" (ya sin pill) */
.uni-subtitle--val { margin-top: 18px; }

.uni-prep-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.uni-carton-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  container-type: inline-size;
}

/* Código del usuario superpuesto en el área en blanco del empaque (ejemplo).
   Coordenadas en % calibradas sobre Recurso 1932x.png; escala con el ancho del cartón (cqw). */
.uni-carton-code {
  position: absolute;
  left: 12.5%;
  right: 31.5%;
  top: 59.3%;
  bottom: 35.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.uni-carton-code-letter {
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: 6.6cqw;
  line-height: 1;
  color: var(--blue);
  text-transform: uppercase;
  /* el padding horizontal alarga el subrayado y junta un poco los caracteres */
  padding: 0 1.1cqw 0.5cqw;
  border-bottom: 0.45cqw solid #cc3638;
}

.uni-carton-bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Box amarillo con el código dinámico */
.uni-code-display {
  width: 100%;
  background: #FFE01B;
  border-radius: 20px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(200, 150, 0, 0.3);
}

.uni-code-label {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 900;
  color: var(--blue);
  margin: 0;
  text-align: center;
  letter-spacing: 0.06em;
}

/* Solo las flechas ↓ se animan hacia abajo */
.uni-code-arrow {
  display: inline-block;
  animation: uniArrowDown 1s ease-in-out infinite;
}

@keyframes uniArrowDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .uni-code-arrow { animation: none; }
}

.uni-code-display .empaque-code-letters {
  position: static;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.uni-code-display .empaque-code-letter {
  flex: none;
  font-size: clamp(34px, 9vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 46px;
  justify-content: center;
  color: var(--blue);
}

.uni-code-display .empaque-code-letter::after {
  display: none;
}

/* Indicador amarillo "ESCRIBÍ TU CÓDIGO AQUÍ" — a la par del cartón (Recurso 181) */
.uni-prep-indicator {
  flex: 0 0 37%;
  background: #FFE01B;
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(200, 150, 0, 0.3);
  animation: uniNudgeX 1.1s ease-in-out infinite;
  will-change: transform;
}

/* Movimiento horizontal para llamar la atención hacia el cartón (izquierda) */
@keyframes uniNudgeX {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-8px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .uni-prep-indicator { animation: none; }
}

/* Flecha sólida (CSS) apuntando a la izquierda, al cartón */
.uni-prep-arrow {
  flex: none;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 16px solid var(--blue);
}

.uni-prep-indicator-label {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(15px, 3.8vw, 21px);
  font-weight: 900;
  color: var(--blue);
  margin: 0;
  text-align: left;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.uni-capture-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 10px auto;
}

.uni-capture-bg {
  display: block;
  width: 100%;
  height: auto;
}

.uni-capture-btns {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 65%;
}

.uni-action-btn {
  display: block;
  width: 100%;
  height: auto;
}

.uni-preview-wrap {
  width: 100%;
  max-width: 480px;
}

/* Botón "Enviar para validación" — antes Recurso 191 (ahora en CSS).
   Mismo lenguaje que el pill de título pero ROJO y muy redondo (forma de botón). */
.uni-submit-btn {
  background: #CD3639;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 900;
  font-size: clamp(19px, 4.8vw, 28px);
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(205, 54, 57, 0.38);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.uni-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.uni-submit-btn:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 26px rgba(205, 54, 57, 0.45);
}

/* ─────────────────────────────────────────────────────────────────
   11. ALL RESPONSIVE @MEDIA QUERIES
   Breakpoints: 1180px | 900px | 760px | 640px | 620px | 600px | 520px | 480px | 480×700px
───────────────────────────────────────────────────────────────── */

/* ── 1180px — large tablet / narrow desktop ── */
@media (max-width: 1180px) {
  .header-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-section {
    aspect-ratio: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    gap: 24px;
    background-size: cover;
    background-position: center center;
  }

  .hero-left {
    align-items: center;
    text-align: center;
    width: 100%;
    padding-left: 0;
  }

  .hero-logo {
    height: auto;
    max-height: 200px;
    min-height: 100px;
    width: min(45%, 220px);
    max-width: 220px;
  }

  .hero-gana-text {
    max-width: min(100%, 720px);
  }

  .hero-card {
    width: 100%;
    max-width: 380px;
  }

  .premios-content {
    padding: 5% 5% 5% 5%;
  }

  .premios-deco--fanaticos,
  .premios-deco--foremost,
  .premios-deco--pelota {
    display: none;
  }

  .premios-img--titulo    { width: min(30%, 240px); }
  .premios-img--camisolas { width: min(90%, 600px); }
  .premios-img--balon     { width: min(70%, 440px); }
  .premios-img--disclaimer{ width: min(40%, 280px); }

  .promo-section {
    aspect-ratio: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 6% 5% 8%;
    align-items: center;
  }

  .promo-right {
    width: min(100%, 520px);
  }

  .promo-cta {
    position: static;
    transform: none;
    margin-top: 4%;
  }

  .steps3-section {
    aspect-ratio: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4%;
    padding: 80px 5% 5%;
  }

  .step3-img {
    position: static;
    width: min(88%, 560px);
    height: auto;
    object-fit: contain;
    object-position: center;
    bottom: auto;
    top: auto;
  }

  .steps3-title {
    position: static;
    transform: none;
    left: auto;
    top: auto;
  }
}

/* ── 900px — tablet ── */
@media (max-width: 900px) {
  .register-layout {
    gap: 20px;
  }

  .register-panel {
    width: 100%;
  }
}

/* ── 760px — mobile ── */
@media (max-width: 760px) {
  .site-shell {
    scroll-snap-type: y proximity;
  }

  /* Header */
  .site-header {
    width: 100%;
    padding: 0;
  }

  .header-banner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 0 0 24px 24px;
    position: relative;
  }

  .campaign-logo-img {
    height: 50px;
    width: auto;
  }

  .main-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Home layout */
  .home-page {
    margin: 0;
    padding: 0;
  }

  .hero-container,
  .promo-section,
  .home-page {
    margin: 0;
    flex-shrink: 0;
  }

  /* Hero section */
  .hero-container {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .hero-section {
    flex-direction: column;
    height: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    justify-content: flex-start;
    padding: 70px 16px 20px;
    gap: 10px;
    background-size: cover;
    background-position: center center;
  }

  .hero-left {
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 4px;
    transform: none;
  }

  .hero-logo {
    width: auto;
    height: auto;
    max-width: none;
    max-height: 70px;
    min-height: unset;
    margin-block: 12px;
  }

  .hero-gana-text {
    width: auto;
    max-width: 82%;
    max-height: calc(var(--vh, 1vh) * 22);
    height: auto;
    transform: none;
    margin: 0 auto 4px;
  }

  .hero-card {
    position: static;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    margin-top: auto;
  }

  /* Hero card — overrides visuales para móvil */
  .hero-card-overlay {
    gap: 8px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(240,244,248,0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  }

  .hero-card-login {
    max-width: none;
    margin: 0;
    gap: 8px;
  }

  .hero-card-registrarme {
    max-width: none;
    margin: 0;
  }

  .hero-card-input-wrap {
    height: 52px;
  }

  .hero-card-btn-img {
    width: 78%;
    max-width: none;
    max-height: 46px;
  }

  .hero-mobile-label,
  .hero-mobile-registrar-label,
  .hml-primary,
  .hml-secondary,
  .hero-mobile-label *,
  .hero-mobile-registrar-label * {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    display: block;
  }

  /* Promo section */
  .promo-section {
    height: calc(var(--vh, 1vh) * 100);
    min-height: unset;
    justify-content: flex-start;
    align-items: center;
    padding: 160px 20px 16px;
    gap: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .promo-right {
    width: min(100%, 420px);
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }

  .promo-title-img {
    transform: none;
    margin-top: 0;
    width: min(95%, 360px);
    flex-shrink: 0;
  }

  .promo-leche-img {
    margin-top: auto;
    width: min(67%, 266px);
    flex-shrink: 0;
    transform: none;
    align-self: center;
  }

  .promo-cta {
    display: none;   /* móvil: el botón tapa la ilustración, se oculta */
  }

  .promo-cta-img {
    width: min(70vw, 288px);
  }

  .promo-section {
    background-image: url('../img/FRONT-FOREMOST.png');
    background-size: cover;
    background-position: center top;
  }

  .promo-leche-img {
    display: none;
  }

  /* Premios section mobile */
  .premios-content {
    padding: 0 16px;
    gap: 16px;
    justify-content: center;
  }

  .premios-img--titulo {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 320px);
  }

  /* Pill de título "Premios" — mismo anclado que tenía la imagen del título */
  .premios-title {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
  }

  .premios-img--camisolas { width: 95%; transform: translateY(150px); align-self: center; }
  .premios-img--balon     { width: 95%; transform: translateY(150px); align-self: center; }
  .premios-disclaimer-text { margin-top: 225px; font-size: calc(0.8rem + 3px); }

  /* Steps section */
  .steps3-section {
    min-height: calc(var(--vh, 1vh) * 100);
    background-size: cover;
    background-position: center;
    gap: 5%;
    padding: 70px 5% 5%;
  }

  .step3-img {
    width: min(88%, 520px);
    height: auto;
    object-fit: contain;
    object-position: center;
    bottom: auto;
    top: auto;
  }

  /* Historial */
  .historial-layout {
    padding: 20px 16px 40px;
  }

  .historial-stats {
    gap: 10px;
  }

  .historial-grid {
    grid-template-columns: 1fr;
  }

  /* Usuario */
  .usuario-layout {
    padding: 20px 16px 40px;
  }

  .usuario-content {
    gap: 14px;
  }

  .usuario-card-img {
    width: 100%;
    border-radius: 16px;
  }

  .usuario-pill-circle {
    width: clamp(72px, 18vw, 100px);
    height: clamp(72px, 18vw, 100px);
  }

  .usuario-empaque-btn {
    margin-top: 75px;
    font-size: clamp(18px, 5vw, 22px);
    padding: 16px 24px;
  }

  .fondo-logo-pelota {
    display: none;
  }

  .usuario-body {
    background-image: none;
  }

  .usuario-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../img/Materiales/fondo@2x.png');
    background-size: cover;
    background-position: center top;
    z-index: -2;
    pointer-events: none;
  }

  /* Empaque */
  .empaque-title-pill {
    font-size: clamp(33px, 3.6vw, 52px);
  }

  .empaque-subtitle {
    font-size: clamp(27px, 2.1vw, 32px);
  }

  .empaque-code-wrap {
    width: calc(100% - 30px);
  }

  .empaque-code-letter {
    font-size: clamp(15px, 5.25vw, 45px);
  }

  /* Validar */
  .validar-titulo-img {
    width: clamp(385px, 55vw, 628px);
  }

  .validating-layout-centered {
    flex-direction: column;
    align-items: center;
  }

  .validating-header-centered .left-logo {
    position: static;
    margin-bottom: 10px;
  }

  .validating-title-pill {
    border-radius: 22px;
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .validating-pill-text {
    font-size: 1.3rem;
  }

  /* Prize modal */
  .prize-modal-card {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .prize-modal-title {
    font-size: 2.8rem;
  }

  /* GB section */
  .gb-section {
    margin-top: -30px;
    padding-top: 0;
  }

  /* GC (Ganador Camisola) section */
  .gc-section {
    padding: 0px 14px 48px;
    margin-top: -30px;
  }

  .gc-check-wrap {
    width: 84px;
    height: 84px;
    position: relative;
    z-index: 2;
    margin-bottom: -42px;
    background: #fff;
    border-radius: 50%;
    padding: 7px;
    box-shadow: 0 6px 24px rgba(10,56,153,0.28);
  }

  .gc-title-pill {
    font-size: clamp(26px, 2.4vw, 36px);
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 12px;
    width: 85%;
    align-self: center;
  }

  .gc-resultado-img {
    width: 110%;
    margin-left: -5%;
  }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .validar-cols {
    flex-direction: column;
  }

  .validar-left-col,
  .validar-right-col {
    width: 100%;
  }

  .validar-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
    padding: 16px 20px;
  }

  .validar-enviar-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── 620px ── */
@media (max-width: 620px) {
  .register-page {
    padding: 30px 16px 46px;
  }

  .register-panel h1 {
    min-height: 64px;
    font-size: 2.6rem;
  }

  .field-control {
    padding: 0 16px;
  }

  .terms-check {
    margin-left: 0;
  }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .fondo-logo-fanaticos,
  .fondo-logo-foremost {
    display: none;
  }

  .empaque-layout {
    padding: 20px 16px 40px;
  }

  .empaque-top-row {
    flex-direction: column;
  }

  .empaque-carton-wrap {
    width: calc(55% + 50px);
    align-self: flex-start;
    margin-left: 40px;
  }

  .empaque-write-cta {
    display: flex;
    left: 102%;
  }

  .empaque-write-cta-text {
    font-size: clamp(9px, 3.5vw, 13px);
  }

  .empaque-guia-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    transform: none;
  }

  .empaque-code-wrap {
    margin-left: calc(20% - 55px);
  }
}

/* ── 520px ── */
@media (max-width: 520px) {
  .gb-instructions {
    grid-template-columns: 1fr;
  }

  .gb-code-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .header-banner {
    padding: 10px 16px;
  }

  .hero-logo {
    width: auto;
    max-width: min(38%, 108px);
    max-height: 88px;
    min-height: unset;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-card-login {
    gap: 8px;
  }

  .hero-card-input-wrap {
    height: 46px;
  }

  .promo-section {
    background-size: cover;
  }

  .promo-cta {
    position: static;
    transform: none;
    align-self: center;
    margin: -38px auto 0;
    animation: pulse-scale-center 2.4s ease-in-out infinite;
  }

  .promo-cta-img {
    width: min(70vw, 288px);
  }

  .steps3-section {
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 5% 8%;
    gap: 4%;
  }

  .steps3-logo-fanaticos,
  .steps3-logo-foremost {
    display: none;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }
}

/* ── 375×667 y pantallas de poca altura — comprimir sin scroll interno ── */
@media (max-width: 480px) and (max-height: 700px) {

  /* Sección 1 */
  .hero-container {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .hero-section {
    height: auto;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: 100px 14px 16px;
    gap: 7px;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
  }

  .hero-left {
    gap: 5px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-card {
    margin-top: auto;
    margin-bottom: 0;
  }

  .hero-logo {
    max-height: 100px;
    width: auto;
    min-height: unset;
  }

  .hero-gana-text {
    max-height: 165px;
    max-width: 92%;
    width: auto;
  }

  .hero-card-overlay {
    gap: 8px;
    padding: 12px 14px;
  }

  .hero-card-input-wrap {
    height: 53px;
  }

  .hero-mobile-label,
  .hero-mobile-registrar-label {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Sección 2 */
  .promo-section {
    height: calc(var(--vh, 1vh) * 100);
    min-height: unset;
    overflow: hidden;
    padding: calc(var(--vh, 1vh) * 20) 16px 80px;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .promo-right {
    width: 100%;
    flex: 1;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
  }

  .promo-title-img {
    margin-top: 0;
    transform: translateY(0);
    animation: none;
    max-height: 180px;
    width: auto;
  }

  .promo-leche-img {
    margin-top: 25px;
    max-height: 200px;
    width: auto;
  }

  .promo-cta {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    animation: none;
  }

  .promo-cta-img {
    width: clamp(192px, 66vw, 336px);
  }

  /* Layouts interiores */
  .usuario-layout,
  .empaque-layout,
  .validar-layout,
  .historial-layout {
    padding: 16px 20px 32px;
  }

  .codigo-valido-container {
    justify-content: flex-start;
    padding-top: 16px;
  }

  .usuario-empaque-btn {
    margin-top: 40px;
  }
}

