/* ═══════════════════════════════════════════════════════════
   Foremost — Fanáticos de lo Nuestro
   app.css v12 — clean rewrite: components first, @media at end
   Structure:
     1. Font-face
     2. :root custom properties
     3. Global reset / base
     4. Home / index
     5. Registro
     6. Usuario
     7. Empaque
     8. Validar
     9. Historial
    10. Shared / legacy helpers
    11. ALL @media queries (consolidated, last wins cascade)
    12. MOBILE HERO FIXES (!important block, always last)
═══════════════════════════════════════════════════════════ */

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

@font-face {
  font-family: 'AmsiPro';
  src: url('../fonts/AmsiProCond-Ultra.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'AmsiPro';
  src: url('../fonts/AmsiProCond-Black.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'AmsiProNarrow';
  src: url('../fonts/AmsiProNarw-Black.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}

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

:root {
  --red: #cc3638;
  --red-deep: #a02828;
  --blue: #003899;
  --blue-deep: #002570;
  --blue-bright: #1a6fcc;
  --yellow: #ffd11f;
  --green: #78c446;
  --white: #f7fbff;
  --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);
  --max-width: 1240px;
}

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

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fff;
}

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

h1,
h2,
h3,
.cta-primary,
.cta-pill,
.step-number,
.step-circle {
  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 {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 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: 24px;
  flex: 1;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.15rem;
  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;
}

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

/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1921 / 1378;
  background-image: url('../img/fondo1.png');
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 130px 0 5% 6%;
  gap: 40px;
}

/* Hero left column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.hero-logo {
  display: block;
  height: 22vw;
  max-height: 320px;
  min-height: 160px;
  width: auto;
  animation: floatSlow 5s ease-in-out infinite;
}

.hero-gana-text {
  display: block;
  width: 100%;
  max-width: 52vw;
  height: auto;
  animation: fadeInLeft 0.8s ease both;
  animation-delay: 0.3s;
}

/* Hero card (right column) */
.hero-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(401px, 42.2vw, 668px);
  animation: fadeInRight 0.9s ease both;
  animation-delay: 0.2s;
}

.hero-card-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
}

.hero-card-login {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 0 14px;
  height: clamp(46px, 5.4vw, 62px);
  backdrop-filter: blur(4px);
}

.hero-card-input-icon {
  font-size: clamp(1.2rem, 1.68vw, 1.56rem);
  flex-shrink: 0;
  line-height: 1;
}

.hero-card-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: clamp(0.94rem, 1.14vw, 1.2rem);
  color: #333;
  font-family: inherit;
}

.hero-card-input::placeholder {
  color: #888;
}

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

.hero-card-btn-img {
  display: block;
  width: 90%;
  height: auto;
}

.hero-card-registrarme {
  position: absolute;
  top: 83%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  display: flex;
  justify-content: center;
}

.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;
}

/* Mobile-only card labels (hidden on desktop) */
.hero-mobile-label,
.hero-mobile-registrar-label {
  display: none;
}

/* Hero submit button */
#heroIngresarBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
#heroIngresarBtn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Promo section */
.promo-section {
  position: relative;
  width: 100%;
  margin-top: -70px;
  z-index: 1;
  aspect-ratio: 1921 / 1438;
  background-image: url('../img/fondo2.png');
  background-size: 100% 100%;
  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;
}

.promo-packshot {
  display: block;
  width: clamp(80px, 13vw, 190px);
  height: auto;
}

.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(230px, 28.8vw, 475px);
  height: auto;
  transition: transform 160ms ease;
}

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

/* Steps section */
.steps3-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1923 / 1404;
  background-image: url('../img/fondo3.png');
  background-size: 100% 100%;
}

.step3-img {
  position: absolute;
  height: auto;
}

.step3-img--1 {
  width: 27.5%;
  left: 33%;
  top: 18%;
}

.step3-img--2 {
  width: 25.3%;
  left: 38%;
  top: 45%;
}

.step3-img--3 {
  width: 31.9%;
  left: 48%;
  top: 63%;
}

/* 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: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@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); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal: hidden until IntersectionObserver triggers .visible */
.reveal {
  opacity: 0;
}
.reveal.visible {
  opacity: 1;
}

/* Promo section animations */
.promo-title-img.visible {
  animation: fadeInUp 0.7s ease both;
}

.promo-packshot:nth-child(1) { animation-delay: 0.1s; }
.promo-packshot:nth-child(2) { animation-delay: 0.25s; }
.promo-packshot:nth-child(3) { animation-delay: 0.4s; }
.promo-packshot.visible {
  animation: zoomIn 0.6s ease both;
}

/* Continuous float on promo packshots */
.promo-right .promo-packshot:nth-child(1) {
  animation: float 4s ease-in-out infinite;
}
.promo-right .promo-packshot:nth-child(2) {
  animation: float 4.6s ease-in-out infinite 0.4s;
}
.promo-right .promo-packshot:nth-child(3) {
  animation: float 5s ease-in-out infinite 0.8s;
}

/* 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/fondo3.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

.register-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 32px 5% 48px;
  display: flex;
  flex-direction: column;
}

.register-page::before {
  display: none;
}

.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 {
  min-width: 26px;
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 800;
}

.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;
  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: 8px;
}

.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);
}

.dept-chevron {
  pointer-events: none;
  color: var(--blue);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.dept-select:focus ~ .dept-chevron {
  transform: rotate(180deg);
}

.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);
}

.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/fondo3.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

/* 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: 100vh;
  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(26px, 4.5vw, 36px);
  font-weight: 900;
  color: #0A3899;
  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: #0A3899;
  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(19px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.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;
}

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

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

.empaque-layout {
  min-height: 100vh;
  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(160px, 22%, 276px);
}

.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: #0A3899;
  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: #0A3899;
  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: #0A3899;
  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-img {
  display: block;
  width: 126%;
  height: auto;
  align-self: center;
}

.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;
}

.empaque-red-pill-btn {
  background: #ff4d42;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  padding: 12px 60px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #cc1717;
  transition: transform 0.1s;
}

.empaque-red-pill-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #cc1717;
}

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

.validar-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  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;
  transition: transform 140ms ease;
}

.validar-btn-label:hover {
  transform: translateY(-2px);
}

.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;
  justify-content: flex-end;
  padding: 18px 3%;
  background-image: url('../img/validar-tecnologia.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 50px;
  min-height: 90px;
  box-sizing: border-box;
}

.validar-tecnologia-img {
  display: none;
}

.validar-enviar-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 140ms ease;
}

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

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

.validar-enviar-img {
  display: block;
  width: 200px;
  height: auto;
}

/* 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: #0c58d5;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 4px 10px rgba(12, 88, 213, 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: #0A3899;
  stroke-width: 2;
}

.codigo-valido-check-mark {
  fill: none;
  stroke: #0A3899;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.codigo-valido-pill {
  background: #0A3899;
  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: #0A3899;
  line-height: 1.5;
  margin: 0;
}

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

.codigo-valido-ver-premio-btn {
  background: #0A3899;
  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: 100vh;
  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: #0A3899;
  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;
}

/* 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-blue-card {
  background: #0A3899;
  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: #0A3899;
  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: #0A3899;
  letter-spacing: 0.12em;
  margin: 0;
}

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

.gpp-btn-inicio {
  width: 100%;
  background: #0A3899;
  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: #0A3899;
  stroke-width: 2;
}

.gb-check-mark {
  fill: none;
  stroke: #0A3899;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gb-title-pill {
  background: #0A3899;
  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: #0A3899;
  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: #0A3899;
  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: #0A3899;
  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: #0A3899;
  line-height: 1.4;
  font-weight: 600;
}

.gb-link {
  color: #0A3899;
  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: #0A3899;
  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: #0A3899;
  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: 100vh;
  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 #0A3899;
  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: #0A3899;
}

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

.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: #0A3899;
  text-align: right;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   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; }
}

/* ─────────────────────────────────────────────────────────────────
   11. ALL RESPONSIVE @MEDIA QUERIES (consolidated, last wins)
───────────────────────────────────────────────────────────────── */

/* ── 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: 100svh;
    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%;
  }

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

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

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

  .promo-section {
    aspect-ratio: auto;
    min-height: 60vw;
    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: 80vw;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3%;
    padding: 5% 10%;
  }

  .step3-img {
    position: static;
    width: min(100%, 480px);
  }
}

/* ── 900px — tablet ── */
@media (max-width: 900px) {
  .register-campaign-mark {
    margin-left: 0;
  }

  .register-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .register-brand {
    min-height: auto;
    padding-top: 0;
  }

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

/* ── 800px ── */
@media (max-width: 800px) {
  .historial-layout {
    padding: 20px 16px 40px;
  }
}

/* ── 760px — mobile ── */
@media (max-width: 760px) {
  /* Header */
  .site-header {
    width: 100%;
    padding: 0;
  }

  .header-banner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 28px 28px;
    padding: 12px 20px;
    gap: 0;
  }


  .main-nav {
    display: none;
  }

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


  .hero-logo {
    height: clamp(80px, 20vw, 120px);
    min-height: unset;
    max-height: none;
    width: auto;
  }

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

  .hero-card {
    max-width: min(100%, 400px);
    width: 100%;
  }

  /* 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);
  }

  /* Validating state */
  .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: 20px;
    padding-top: 24px;
  }
}

/* ── 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: 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) {
  .historial-stats {
    gap: 10px;
  }

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

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

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

  .empaque-carton-wrap {
    width: 55%;
    align-self: center;
  }

  .empaque-write-cta {
    display: none;
  }
}

/* ── 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 {
    height: clamp(70px, 18vw, 100px);
    min-height: unset;
    max-height: none;
    width: auto;
  }

  .hero-gana-text {
    max-width: 90vw;
  }

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

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

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

  .promo-section {
    min-height: 150vw;
    justify-content: space-between;
    padding-bottom: 0%;
  }

  .promo-right {
    width: 90%;
  }

  .promo-cta {
    align-self: center;
    margin-top: 0;
    margin-bottom: -60px;
    margin-left: 220px;
  }

  .promo-cta-img {
    width: clamp(180px, 55vw, 280px);
  }

  .steps3-section {
    min-height: 100vw;
    padding: 5% 8%;
    gap: 4%;
  }
}

/* ═══════════════════════════════════════════════════════════
   12. MOBILE HERO FIXES — must be at end of file to win cascade
   These override base rules that appear after the early
   @media blocks (original lines ~655-795).
═══════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* Compact header: just the logo, no nav */
  .header-banner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    border-radius: 0 0 24px 24px !important;
  }

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

  .main-nav {
    display: none !important;
  }

  /* Hero section: auto height, flex-start so logo shows at top */
  .hero-section {
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
    padding: 100px 16px 96px !important;
    gap: 18px !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Hero left column: centered on mobile */
  .hero-left {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 12px !important;
  }

  /* Foremost logo: proper size, no bleed from 1180px block */
  .hero-logo {
    height: auto !important;
    width: min(40%, 140px) !important;
    min-height: unset !important;
    max-height: none !important;
  }

  /* Gana-text image */
  .hero-gana-text {
    max-width: min(100%, 300px) !important;
    width: 100% !important;
  }

  /* Card: hide background image, show form elements directly */
  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .hero-card-overlay {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .hero-card-login {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    gap: 14px !important;
  }

  .hero-card-registrarme {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-card-input-wrap {
    height: 52px !important;
    font-size: 1rem !important;
  }

  .hero-card-input {
    font-size: 1rem !important;
  }

  .hero-card-btn-img {
    width: 100% !important;
  }

  /* Card overlay: frosted glass backdrop for mobile form */
  .hero-card-overlay {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    padding: 20px 16px !important;
  }

  /* Show mobile text labels */
  .hero-mobile-label {
    display: block !important;
    font-family: 'AmsiPro', sans-serif;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 700;
    color: #0A3899;
    text-align: center;
    margin: 0;
    line-height: 1.4;
  }

  .hero-mobile-registrar-label {
    display: block !important;
    font-family: 'AmsiPro', sans-serif;
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 700;
    color: #0A3899;
    text-align: center;
    margin: 0;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {


  .hero-logo {
    width: min(38%, 120px) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   GANADOR CAMISOLA SCREEN
═══════════════════════════════════════════════════════════ */
/* ── Ganador Camisola ── */
.gc-section {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px 56px;
  box-sizing: border-box;
  overflow-y: auto;
}

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

.gc-check-wrap {
  width: clamp(52px, 6vw, 70px);
  height: clamp(52px, 6vw, 70px);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10,56,153,0.18);
  padding: 6px;
  box-sizing: border-box;
}
.gc-check-svg { width: 100%; height: 100%; }
.gc-check-circle { fill: none; stroke: #0A3899; stroke-width: 2; }
.gc-check-mark   { fill: none; stroke: #0A3899; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.gc-title-pill {
  background: #0A3899;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: 900;
  padding: 10px 36px;
  border-radius: 999px;
  text-align: center;
}

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

/* ── Formulario de entrega ── */
.gc-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 24px 28px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.gc-form-title {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 800;
  color: #0A3899;
  text-align: left;
  margin: 0 0 18px;
  line-height: 1.4;
}

.gc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-label {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  color: #0A3899;
}

/* Input con ícono */
.gc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.gc-input-wrap--textarea {
  align-items: flex-start;
}
.gc-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  flex-shrink: 0;
}
.gc-input-icon--top {
  top: 14px;
  transform: none;
}

.gc-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #c8d4f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: clamp(14px, 1.7vw, 16px);
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 150ms;
}
.gc-input--icon { padding-left: 42px; }
.gc-input:focus { border-color: #0A3899; }

.gc-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.gc-form-error {
  font-family: 'AmsiPro', sans-serif;
  font-size: 13px;
  color: #C42B2B;
  text-align: center;
  margin: 0;
}

.gc-submit-btn {
  width: 100%;
  background: #0A3899;
  color: #fff;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 150ms;
  margin-top: 4px;
}
.gc-submit-btn:hover { background: #0c47bb; }
.gc-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── Estado de éxito tras envío ── */
.gc-success-card {
  background: linear-gradient(135deg, #e8f0ff 0%, #f0fff4 100%);
  border: 2px solid #0A3899;
  border-radius: 18px;
  padding: 28px 22px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.gc-success-icon {
  font-size: 40px;
  color: #0A3899;
  line-height: 1;
}

.gc-success-title {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 900;
  color: #0A3899;
  margin: 0;
}

.gc-success-body {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(13px, 1.8vw, 16px);
  color: #333;
  margin: 0;
  line-height: 1.5;
}

.gc-footer {
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  color: #fff;
  font-style: italic;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.gc-btns {
  display: flex;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.gc-btn-inicio {
  flex: 1;
  background: #0A3899;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 150ms;
}
.gc-btn-inicio:hover { background: #0c47bb; }

.gc-btn-historial {
  flex: 1;
  background: rgba(255,255,255,0.88);
  color: #333;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: 'AmsiPro', sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 150ms;
}
.gc-btn-historial:hover { background: #fff; }

@media (max-width: 760px) {
  .gc-section { padding: 20px 14px 48px; }
}
