/* Concurso Quesos Kraft Chile - Landing */
@font-face {
  font-family: 'LuckiestGuy';
  src: url('assets/font/LuckiestGuy-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Insaniburger';
  src: url('assets/font/Insanibc.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Norwester';
  src: url('assets/font/norwester.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/font/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --red: #E31E24;
  --red2: #c9141a;
  --blue: #0047BA;
  --blue2: #003366;
  /* Official Brand Blue */
  --cyan: #00C2FF;
  --yellow: #FCAF17;
  /* Official Brand Yellow */
  --ink: #0a0e17;
  --paper: #003366;
  --muted: rgba(0, 51, 102, .82);
  --glass: rgba(255, 255, 255, .25);
  --glass-border: rgba(255, 255, 255, .4);
  --stroke: rgba(0, 51, 102, .15);
  --shadow: 0 24px 80px -12px rgba(0, 0, 0, .15);
  --radius: 24px;
  --max: 1140px;
}

* {
  box-sizing: border-box
}

html,
body {
  min-height: 100%
}

body {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  color: var(--paper);
  /* New background setup - Yellow */
  background-color: var(--yellow);
  background-image: none;
  /* Removed dark overlay */
  overflow-x: hidden;
}

/* BG */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grid {
  display: none;
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(-8deg);
  }

  100% {
    transform: translate3d(2%, 2%, 0) rotate(-8deg);
  }
}

.glow {
  display: none;
}

.g1 {
  left: -250px;
  top: -200px;
  background: radial-gradient(circle at 50% 50%, var(--red), transparent 70%);
}

.g2 {
  right: -250px;
  top: -200px;
  background: radial-gradient(circle at 50% 50%, var(--blue), transparent 70%);
  animation-duration: 18s;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(30px, 20px, 0) scale(1.05);
  }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  backdrop-filter: blur(16px);
  background: rgba(252, 175, 23, 0.95);
  border-bottom: 1px solid var(--blue2);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.25);
  /* Brand Blue Shadow */
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center everything since left logo is gone */
  gap: 12px;
}

.logo {
  display: none;
  /* Ensure it's hidden if markup remains, though we removed it */
}

.logo-tapa {
  height: 90px;
  /* Increased from 55px */
  width: auto;
  margin-left: 25px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.logo-tapa:hover {
  transform: scale(1.05) rotate(2deg);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 30px;
  /* Increased gap for better spacing */
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.topbar__nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--blue2);
  font-family: 'LuckiestGuy', cursive;
  letter-spacing: 0.05em;
  font-size: 1.7rem;
  /* Increased size */
  transition: color 0.2s ease, transform 0.2s ease;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
  /* Brand Relief Shadow */
  display: inline-block;
}

.nav-link:hover {
  color: var(--red);
  transform: scale(1.1);
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  user-select: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(227, 30, 36, .55);
  animation: ping 1.4s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, .55)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(227, 30, 36, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(227, 30, 36, 0)
  }
}

.btn {
  border: 0;
  padding: 11px 14px;
  border-radius: 14px;
  font-family: 'LuckiestGuy', cursive;
  /* Replaced Norwester */
  /* Updated font */
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:active {
  transform: translateY(1px)
}

.btn--primary {
  color: var(--blue2);
  /* Dark Blue text */
  background: var(--yellow);
  /* Official Brand Yellow */
  box-shadow: 0 10px 30px -4px rgba(252, 175, 23, .4);
  border: 1px solid rgba(0, 51, 102, 0.1);
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.btn--primary:hover {
  box-shadow: 0 14px 40px -4px rgba(252, 175, 23, .5);
  transform: translateY(-1px);
  background: #e69d12;
  /* Slightly darker hover */
}

.btn--ghost {
  color: var(--blue2);
  background: rgba(255, 255, 255, .4);
  border: 2px solid var(--blue2);
}

.btn--ghost:hover {
  background: var(--blue2);
  color: white;
  border-color: var(--blue2);
}

.btn--lg {
  padding: 13px 20px;
  border-radius: 18px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* HERO */
.hero {
  padding: 48px 0 28px;
  position: relative;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--blue2);
  font-weight: 650;
  font-family: 'LuckiestGuy', cursive;
  /* Replaced Norwester */
  /* Updated font */
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  font-family: 'Insaniburger', cursive;
  /* Updated font */
}

.accent {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--blue2) 10%, var(--blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
  font-family: 'Insaniburger', cursive;
  /* Updated font */
}

.subaccent {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  margin-top: 8px;
  color: var(--blue2);
  font-weight: 700;
  font-family: 'LuckiestGuy', cursive;
  /* Replaced Norwester */
  /* Updated font */
}

.lead {
  margin: 14px 0 0;
  font-size: 1.06rem;
  max-width: 62ch;
  color: var(--blue2);
  opacity: 0.9;
  font-family: 'Montserrat', sans-serif;
  /* Updated font */
}

.hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--blue2);
  font-weight: 650;
  font-size: .92rem;
  font-family: 'LuckiestGuy', cursive;
  /* Replaced Norwester */
  /* Updated font */
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.fine {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--blue2);
  opacity: 0.8;
}

kbd {
  padding: .12rem .35rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .24);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .85em;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* Enlarge image to container limit */
}

.poster {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, .06);
}

.poster img {
  width: 100%;
  height: auto;
  display: block;
}

.poster__shine {
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 280px at 10% 0%, rgba(227, 30, 36, .18), transparent 60%),
    radial-gradient(600px 280px at 90% 0%, rgba(11, 58, 130, .18), transparent 60%);
  pointer-events: none;
}

.floaty {
  position: absolute;
  width: 170px;
  height: auto;
  /* Removed white card bg and shadow for better blending */
  animation: bob 7s ease-in-out infinite !important;
  transform-origin: center;
  z-index: 10;
}

.floaty img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  /* Make white bg transparent */
}

.f1 {
  /* Taxi: Bottom right */
  right: -90px;
  left: auto;
  bottom: -70px;
  width: 300px;
  z-index: 20;
  /* Rotate and Drive animation - Entrance only */
  transform: rotate(-3deg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  animation: taxiEntrance 1.8s ease-out forwards delay-500ms !important;
}

@keyframes taxiEntrance {
  0% {
    transform: translateX(120%) rotate(-3deg);
    opacity: 0;
  }

  100% {
    transform: translateX(0) rotate(-3deg);
    opacity: 1;
  }
}

.f2 {
  /* Traffic light: Moved to Top Right but further out, OR let's move it to Top Left to balance */
  left: -80px;
  right: auto;
  top: -40px;
  width: 120px;
  transform: rotate(-5deg);
  z-index: 5;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
}

/* Plane (kept as is) */
.f3 {
  top: 20px;
  left: -20vw;
  width: 220px;
  z-index: 15;
  animation: floatPlane 25s linear infinite !important;
}

.f4 {
  /* Street sign: Moved to bottom left to balance the taxi */
  left: -60px;
  right: auto;
  bottom: 0px;
  width: 130px;
  transform: rotate(6deg);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  z-index: 18;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg))
  }

  50% {
    transform: translateY(-12px) rotate(var(--r, 0deg))
  }
}

@keyframes floatPlane {
  0% {
    transform: translateX(-120vw) translateY(60px) rotate(3deg);
    opacity: 1;
    /* Visible from start */
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(120vw) translateY(-60px) rotate(-3deg);
    opacity: 1;
    /* Stay visible */
  }
}

.scrollCue {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--blue2);
  font-size: .9rem;
}

.mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--blue2);
  position: relative;
}

.mouse:after {
  content: "";
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue2);
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  animation: wheel 1.3s ease-in-out infinite;
}

@keyframes wheel {
  50% {
    transform: translate(-50%, 8px);
    opacity: .35
  }
}

.video-section {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.video-container {
  max-width: 900px;
  /* Restored to match hero main image width */
  width: 100%;
  padding: 0 18px;
}

/* How */
.how {
  padding: 60px 0;
  /* background-color: var(--blue2); Removed solid color */
  background-image: url("assets/fondo/fondocomoparticipar.jfif");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.how__title {
  text-align: center;
  color: var(--yellow);
  font-family: 'LuckiestGuy', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 60px;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.how__title:hover {
  transform: scale(1.05) rotate(-1deg);
}

.steps-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .steps-new {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.step-n {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  cursor: pointer;
}

.step-n:hover {
  transform: translateY(-15px) scale(1.05);
}

.step-n:hover .step-n__num {
  text-shadow: 0 0 25px rgba(252, 175, 23, 0.6), 4px 4px 0px rgba(255, 255, 255, 0.5);
}

.step-n:hover .step-n__bubble {
  filter: brightness(1.1) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

.step-n__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-n__num {
  font-family: 'LuckiestGuy', cursive;
  font-size: 11rem;
  line-height: .8;
  color: var(--yellow);
  text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.4);
}

.step-n__bubble {
  width: 280px;
  /* Increased from 220px */
  height: 280px;
  /* Increased from 220px */
  background-image: url("assets/fondo/hamburguesapasos.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Remove CSS lid effects */
  background-color: transparent;
  border: none;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 55px;
  /* Increased padding to center better in lid */
  /* Added padding to keep text inside the "lid" */
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 1.3rem;
  line-height: 1.2;
}

.step-n__img {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-cheeses {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  animation: floatForm 5s ease-in-out infinite reverse;
}

.img-plane {
  max-width: 90%;
  /* Smaller plane */
  transform: rotate(-5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  position: absolute;
  top: 0px;
  animation: hoverPlane 3s ease-in-out infinite;
}

@keyframes hoverPlane {

  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-5deg) translateY(-15px);
  }
}

/* Celuformulario Icon (Image based) */
.celuformulario-icon {
  width: auto;
  height: 280px;
  /* Increased vertical size */
  max-width: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  animation: floatForm 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatForm {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}

/* Products marquee */
.products {
  padding: 20px 0 22px;
}

.products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

code {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 2px 6px;
  border-radius: 8px;
}

.marquee {
  margin-top: 14px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: transparent;
}

.marquee__track {
  display: flex;
  padding: 12px 0;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 20s linear infinite !important;
  /* Faster speed */
  align-items: center;
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.productCard {
  width: 250px;
  height: 250px;
  margin-right: 20px;
  /* Replaced gap for seamless loop */
  flex-shrink: 0;
  border-radius: 20px;
  /* Rounded corners */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  backdrop-filter: none;
  /* Removed blur */
}

.productCard img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.productCard span {
  color: var(--blue2);
  font-weight: 750;
  letter-spacing: .08em;
  font-size: .82rem;
  text-transform: uppercase;
}

.products__note {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--blue2);
  opacity: 0.8;
}

.pill {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* Participate */
.participate {
  padding: 0;
  background-image: url("assets/formulario/murallabien.jpg");
  background-size: cover;
  background-position: top center;
  position: relative;
}

.participate-bg-top,
.participate-bg-bottom {
  height: 48px;
  width: 100%;
  background-image: url("assets/formulario/barras.jpg");
  background-size: contain;
  background-repeat: repeat-x;
}

.participate-inner {
  padding: 20px 18px;
}

.participate__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: stretch;
  /* Stretch to match height */
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .participate__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.promo-visual-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.promo-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
  /* Center content vertically in the stretched container */
}

.promo-text-main {
  font-family: 'LuckiestGuy', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.9;
  color: white;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 #1a0e0e,
    0 2px 0 #1a0e0e,
    0 3px 0 #1a0e0e,
    0 4px 0 #1a0e0e,
    0 5px 0 #1a0e0e,
    0 6px 0 #1a0e0e,
    0 8px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  margin-bottom: -10px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Removed @supports stroke section as requested */

.promo-text-sub {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* Product Stack/Arch Styles */
.product-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 550px;
  margin-top: 10px;
  position: relative;
}

.p-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0;
  /* Let margins handle overlap */
}

/* Specific separation for the second row */
.p-row:nth-child(2) {
  gap: 25px;
  margin-top: 10px;
  /* Slight separation from top row too */
}

.p-grid-item {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: floatGrid 6s ease-in-out infinite;
  position: relative;
  transition: transform 0.3s;
  margin: 0 -12px;
  /* Restore overlap as it was "super bien" */
}

/* No negative margin for items in the second row to keep them separate */
.p-row:nth-child(2) .p-grid-item {
  margin: 0;
}

/* Proportional adjustments for different product types */
.p-heavy {
  width: 28% !important;
  z-index: 10;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

.p-mid {
  width: 17% !important;
  z-index: 5;
}

.p-small {
  width: 13% !important;
  z-index: 8;
}

/* Vertical overlap is fine as long as items are separated horizontally */
.p-row:nth-child(2) {
  margin-top: -8px;
}

/* Reminder section below products */
.promo-reminder {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.promo-reminder__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  color: #FFDE00;
  text-transform: none;
  text-shadow:
    0 1px 0 #1a0e0e,
    0 2px 0 #1a0e0e,
    0 3px 0 #1a0e0e,
    0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
}

.promo-reminder__img {
  width: 90%;
  max-width: 320px;
  object-fit: contain;
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  /* Sharpness */
}

.promo-reminder__img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.p-grid-item:hover {
  transform: scale(1.15) !important;
  /* Override arch transforms on hover */
  z-index: 20;
  cursor: pointer;
}

@keyframes floatGrid {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Mobile: Just scaling */
@media (max-width: 768px) {
  .product-cluster {
    max-width: 100%;
    gap: 0;
  }

  .p-grid-item {
    width: 31%;
    /* 3 per row approx */
    margin: -5px -2%;
  }

  .p-grid-item:nth-child(n+1) {
    transform: none;
    /* Reset arch on mobile for simplicity */
    margin-bottom: 0;
    margin-top: 0;
  }

  .promo-reminder__img {
    max-width: 240px;
  }

  .promo-reminder__text {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
  }
}

.trust {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.trust__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 18px;
  background: #f0f4f8;
  border: 1px solid rgba(0, 48, 130, .1);
}

.trust__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(255, 255, 255, .12);
  flex: 0 0 auto;
}

.trust__item strong {
  display: block;
}

.trust__item span {
  display: block;
  color: var(--blue2);
  opacity: 0.8;
  margin-top: 2px;
  font-size: .92rem;
}

.how__banner {
  margin-top: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  /* Dark background for video */
  box-shadow: 0 24px 80px -12px rgba(0, 0, 0, .15);
  /* Force a landscape ratio */
  width: 100%;
  height: auto;
  /* Fixed height to be 'not so tall' */
  display: flex;
  align-items: center;
  justify-content: center;
}

.how__video {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Ensure full video is visible without cropping */
}

.refCard {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .18);
}

.refCard__top {
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.refCard img {
  width: 100%;
  height: auto;
  display: block;
}

.bases {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue2);
  opacity: 0.8;
  text-decoration: none;
}

.bases:hover {
  text-decoration: underline;
}

.formPanel {
  border-radius: 12px;
  /* overflow: hidden; Removed for tooltips */
  border: 4px solid white;
  background: var(--blue2);
  /* Official Brand Blue specifically for the form */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.formPanel__head {
  background: transparent;
  padding: 10px 0;
  border-radius: 0;
  border-bottom: none;
  color: white;
  text-align: left;
}

.formTitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  /* Slightly smaller */
  text-transform: uppercase;
  line-height: 1;
}

.formSub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  /* Smaller */
  margin-top: 6px;
  opacity: 0.95;
  line-height: 1.3;
}

.formSub small {
  display: block;
  margin-top: 4px;
  opacity: 0.8;
  font-size: 0.85rem;
}

form {
  padding: 0;
  background: transparent;
}

.field {
  margin-bottom: 6px;
  position: relative;
  /* For absolute tooltip */
}

.field label {
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  display: block;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input,
.field select {
  width: 100%;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid white;
  background: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--blue2);
  /* Dark blue text for readability */
  transition: border-color 0.2s;
  height: 36px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #0047BA;
  background: #fff;
}

.field input::placeholder {
  color: #8daac7;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  /* Reduced from 14px */
}

/* Compact layout for Places */
.row3-compact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.field-narrow {
  margin-bottom: 8px;
}

/* Custom File Input */
.custom-file-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f9ff;
  border: 1px solid #cce0f5;
  border-radius: 6px;
  padding: 4px;
  height: 32px;
}

.custom-file-input input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-txt {
  flex: 1;
  font-size: 0.85rem;
  color: #8daac7;
  /* Placeholder color */
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Montserrat', sans-serif;
}

.btn-upload {
  background: #0047BA;
  color: white;
  border: none;
  padding: 0 16px;
  height: 100%;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  pointer-events: none;
  /* Let input handle click */
}

/* Checkboxes & Terms */
.compact-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
  position: relative;
}

.compact-checks .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
}

.compact-checks .check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--yellow);
}

.terms-text {
  font-size: 0.78rem;
  color: white;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  text-transform: none;
}

.terms-text--small {
  /* No longer smaller, keeping class for compatibility */
  opacity: 1;
}

/* Terms Modal - PDF Viewer */
.modal-content--terms {
  max-width: 520px;
  text-align: left;
}

.modal-content--pdf {
  max-width: 960px;
  width: 96%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.terms-pdf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  padding-right: 50px;
  border-bottom: 1px solid #dde6f0;
  background: linear-gradient(135deg, #f0f4fa 0%, #e4ecf6 100%);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.terms-pdf-header>svg {
  color: var(--blue);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.terms-pdf-header h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.terms-pdf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-pdf-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 71, 186, 0.2);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pdf-action:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-pdf-action svg {
  width: 14px;
  height: 14px;
}

.terms-pdf-viewer {
  flex: 1;
  min-height: 0;
  padding: 12px;
  background: #eef1f6;
  display: flex;
  flex-direction: column;
}

.terms-pdf-iframe {
  width: 100%;
  flex: 1;
  min-height: 65vh;
  border: none;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.terms-pdf-fallback {
  text-align: center;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #888;
  flex-shrink: 0;
}

.terms-pdf-fallback a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.terms-pdf-bottom {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e8eef5;
  flex-shrink: 0;
}

.terms-accept-btn {
  border-radius: 12px !important;
  font-size: 1rem !important;
  padding: 13px 20px !important;
  gap: 8px;
  width: 100%;
}

/* PDF modal close button override */
.modal-content--pdf .modal-close {
  top: 10px;
  right: 12px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.modal-content--pdf .modal-close:hover {
  background: var(--red);
  color: white;
}

@media (max-width: 600px) {
  .modal-content--pdf {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }

  .terms-pdf-iframe {
    min-height: 55vh;
  }

  .terms-pdf-header h3 {
    font-size: 0.75rem;
  }

  .btn-pdf-action span {
    display: none;
  }

  .btn-pdf-action {
    padding: 6px 8px;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-content h3 {
  margin-top: 0;
  color: #0047BA;
  font-family: 'LuckiestGuy', cursive;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.modal-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.modal-text {
  font-size: 0.95rem;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
}

/* PRIZES SECTION */
.prizes-section {
  padding: 60px 0;
  position: relative;
}

.prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .prizes-grid {
    grid-template-columns: 1fr;
  }
}

.prize-card {
  /* background-color: #005eb8; Removed solid color */
  background-image: url("assets/fondo/fondocomoparticipar.jfif");
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  /* Slightly squared like image or keep rounded? Image looks squared border */
  border: 3px solid #003082;
  padding: 30px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main and Detail prize cards have specific styles handled by child elements and video backgrounds */

/* LEFT CARD STYLES */
/* LEFT CARD STYLES */
.prize-title-badge {
  background-color: var(--yellow);
  /* Official Brand Yellow */
  padding: 10px 40px;
  transform: skew(-5deg);
  margin-bottom: 40px;
  /* Increased space */
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  border: none;
  /* Removed border to cleaner look */
  animation: badgeBeat 2s infinite ease-in-out;
}

@keyframes badgeBeat {

  0%,
  100% {
    transform: skew(-5deg) scale(1);
  }

  50% {
    transform: skew(-5deg) scale(1.05);
  }
}

.prize-title-badge h2 {
  font-family: 'LuckiestGuy', cursive;
  font-size: 3.5rem;
  /* Larger title */
  color: var(--blue2);
  /* Official Brand Blue */
  margin: 0;
  transform: skew(5deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
  /* Subtle white shadow for depth */
}

.prize-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  /* Larger text */
  line-height: 1.8;
  /* More breathing room */
  max-width: 85%;
}

.prize-lead {
  margin-bottom: 35px;
  /* More space between paragraphs */
}

.highlight {
  color: #FFDE00;
  /* Kraft Yellow */
  font-weight: 800;
}

.btn-participa-lg {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--blue2);
  font-family: 'LuckiestGuy', cursive;
  font-size: 2rem;
  padding: 18px 50px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  /* Removed teal border */
  box-shadow: 0 6px 0 #e09b15;
  /* Orange-ish shadow */
  margin-top: 30px;
  transition: transform 0.2s;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
  /* Matching Prize Shadow */
}

.btn-participa-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #e09b15;
}

/* RIGHT CARD STYLES */
.prize-card--details {
  text-align: center;
  /* Center everything by default */
}

.detail-header {
  background-color: var(--yellow);
  /* Official Brand Yellow */
  width: 100%;
  max-width: none;
  padding: 12px 15px;
  /* Reduced padding */
  font-family: 'LuckiestGuy', cursive;
  font-weight: 400;
  color: var(--blue2);
  /* Official Brand Blue */
  text-transform: uppercase;
  font-size: 1.6rem;
  /* Slightly smaller */
  margin-bottom: 20px;
  /* Reduced margin */
  border-radius: 8px;
  text-align: center;
  line-height: 1.1;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
  /* Subtle shadow for depth */

  /* Dynamic USA Style */
  border: 3px solid #E31E24;
  box-shadow: 6px 6px 0 var(--blue2);
  transform: skew(-3deg);
  animation: badgeBeat 3s infinite ease-in-out;
  letter-spacing: 1px;
}

.detail-subHeader {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
  /* Reduced margin */
  color: white;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  /* Reduced margin */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  /* Slightly smaller text */
  line-height: 1.5;
  text-align: left;
  display: inline-block;
}

.detail-list li {
  margin-bottom: 8px;
  /* Reduced margin */
  position: relative;
  padding-left: 35px;
  color: white;
  text-align: left;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  /* Slightly smaller icon */
  height: 22px;
  background-image: url('assets/cheese_icon.svg');
  /* New SVG icon */
  background-size: contain;
  background-repeat: no-repeat;
}

.detail-highlight-box {
  background-color: var(--yellow);
  color: var(--blue2);
  font-family: 'LuckiestGuy', cursive;
  font-weight: 400;
  padding: 10px 15px;
  /* Reduced padding */
  border-radius: 8px;
  font-size: 1.3rem;
  /* Slightly smaller */
  display: inline-block;
  margin-top: 15px;
  /* Reduced margin */
  width: 100%;
  max-width: 380px;
  text-transform: uppercase;

  /* USA Style Pop */
  border: 3px solid #E31E24;
  box-shadow: 5px 5px 0 #003082;
  transform: skew(-2deg);
  animation: badgeBeat 3s infinite ease-in-out reverse;
}

@keyframes boxWiggle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.05) rotate(-2deg);
  }

  75% {
    transform: scale(1.05) rotate(2deg);
  }
}

.detail-note {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 5px 0 15px;
}

.legal-footer {
  text-align: center;
  margin-top: 20px;
}

.legal-link {
  color: var(--blue2);
  text-decoration: underline;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  opacity: 0.8;
}

.formSub small {
  opacity: .9;
}

form {
  padding: 14px;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 48, 130, .2);
  outline: none;
  background: #f5f7fa;
  color: var(--blue2);
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder {
  color: rgba(0, 48, 130, .5)
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, .15);
}

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

.error {
  margin-top: 6px;
  font-size: .86rem;
  color: #ffd2d4;
  display: none;
}

.invalid input,
.invalid select {
  border-color: rgba(227, 30, 36, .95);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, .22);
}

.checks {
  margin: 8px 0 10px;
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--blue2);
  font-size: .9rem;
  line-height: 1.25;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.files {
  margin-top: 6px;
  padding: 8px;
  border-radius: 10px;
  background: #f0f4f8;
  border: 1px solid rgba(0, 48, 130, .1);
}

.fileField {
  margin-bottom: 4px;
  position: relative;
}

.fileField:last-child {
  margin-bottom: 0;
}

.fileField input {
  padding: 5px;
}

.uploadInstructions {
  margin-top: 10px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
}

.instrText {
  margin: 0 0 10px;
  font-size: .9rem;
  color: var(--blue2);
  line-height: 1.4;
}

.instrImage img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  display: block;
}


.sep {
  opacity: .6
}

.actions {
  margin-top: 12px;
}

.secureLine {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue2);
  font-size: .9rem;
}

.success {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(46, 204, 113, .14);
  border: 1px solid rgba(46, 204, 113, .30);
  color: rgba(255, 255, 255, .92);
}

.success span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .9);
}

/* Bases section */
.basesSection {
  padding: 10px 0 32px;
}

.basesCard {
  border-radius: 18px;
  padding: 16px 16px;
  background: #f0f4f8;
  border: 1px solid rgba(0, 48, 130, .1);
}

.basesActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  padding: 14px 0 24px;
  color: var(--blue2);
  border-top: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social {
  text-align: center;
  margin-bottom: 20px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue2, #003082);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--blue2, #003082);
}

.ig-link:hover {
  background: var(--blue2, #003082);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 48, 130, 0.3);
}

.ig-icon {
  width: 24px;
  height: 24px;
}

.astronet-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.astronet-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.muted {
  opacity: .85
}

/* Neon mode */
.neon .grid {
  opacity: .85
}

.neon .poster,
.neon .formPanel,
.neon .step,
.neon .trust__item,
.neon .basesCard {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 60px rgba(227, 30, 36, .18), 0 0 70px rgba(11, 58, 130, .16);
}

/* TOOLTIP ERRORS */
/* TOOLTIP ERRORS */
.error {
  display: none;
  font-size: 0.75rem;
  color: white;
  background: #E31E24;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  top: 100%;
  /* Move below */
  left: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  margin-top: 8px;
  /* Space from input */
  width: auto;
  min-width: 140px;
  max-width: 100%;
  pointer-events: none;
}

.error::before {
  content: "";
  position: absolute;
  top: -5px;
  /* Point up */
  left: 12px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #E31E24;
  /* Arrow color */
  border-top: none;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.85);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #FCAF17;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  color: white;
  animation: fadeIn 0.5s ease;
}

.success-message h3 {
  font-family: 'LuckiestGuy', cursive;
  font-size: 2rem;
  color: #FCAF17;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.success-message p {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.success-message small {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== Success Airplane Animation ===== */
.success-plane-container {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: 10px;
  overflow: hidden;
}

.success-plane {
  position: absolute;
  width: 100px;
  height: auto;
  animation: flyPlane 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.success-plane-trail {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(252, 175, 23, 0.6), rgba(252, 175, 23, 0));
  border-radius: 2px;
  animation: trailGrow 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  z-index: 1;
}

@keyframes flyPlane {
  0% {
    left: -120px;
    top: 80%;
    transform: rotate(-15deg) scale(0.5);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    left: 40%;
    top: 20%;
    transform: rotate(-5deg) scale(1);
  }

  100% {
    left: calc(50% - 50px);
    top: 10px;
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes trailGrow {
  0% {
    width: 0;
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    width: 45%;
    left: 5%;
    opacity: 0.7;
  }

  100% {
    width: 0;
    left: 50%;
    opacity: 0;
  }
}

/* After landing, subtle float */
.success-plane-container .success-plane {
  animation: flyPlane 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards,
    floatPlaneSuccess 3s ease-in-out 2.5s infinite;
}

@keyframes floatPlaneSuccess {

  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(-8px);
  }
}

/* ===== Participar de Nuevo Button ===== */
.btn-participar-nuevo {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 36px;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn-participar-nuevo:hover {
  background: rgba(252, 175, 23, 0.15);
  border-color: #FCAF17;
  color: #FCAF17;
  letter-spacing: 0.35em;
  box-shadow: 0 0 20px rgba(252, 175, 23, 0.2);
}


.neon .btn--ghost {
  border-color: rgba(255, 255, 255, .28)
}

.neon .badge {
  border-color: rgba(255, 255, 255, .28)
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .floaty {
    display: none;
  }

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

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

@media (max-width: 520px) {
  .logo {
    height: 40px
  }

  .badge {
    padding: 9px 12px
  }

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
}

.lightbox__content {
  position: relative;
  z-index: 210;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}

.lightbox__close:hover {
  opacity: 1;
}

/* Video Background in Prize Card */
.prize-card--main {
  position: relative;
  overflow: hidden;
  background: none !important;
  /* Override image from .prize-card */
  /* Ensure text is readable/visible */
}

.prize-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.prize-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.7);
  /* Official Brand Blue overlay to match theme and readability */
  z-index: 1;
}

.prize-card--main .prize-title-badge,
.prize-card--main .prize-content {
  position: relative;
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {

  .participate-bg-top,
  .participate-bg-bottom {
    height: 20px;
    /* Reduced from 48px */
  }
}

/* ========================================
   MOBILE BOTTOM APP BAR
   ======================================== */

/* Hidden on desktop */
.mobile-appbar {
  display: none;
}

@media (max-width: 768px) {

  /* --- TOPBAR: Only show logo centered --- */
  .topbar__nav {
    display: none !important;
  }

  .topbar__inner {
    justify-content: center;
    padding: 8px 12px;
  }

  .topbar__right {
    justify-content: center;
    width: auto;
    gap: 0;
  }

  .logo-tapa {
    height: 60px;
    margin-left: 0;
  }

  /* --- BOTTOM APP BAR --- */
  .mobile-appbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: rgba(0, 51, 102, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--yellow);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    padding: 10px 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
  }

  .appbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .appbar-item:active {
    transform: scale(0.92);
    background: rgba(252, 175, 23, 0.15);
  }

  .appbar-item.active,
  .appbar-item:hover {
    color: var(--yellow);
  }

  .appbar-item.active .appbar-icon {
    filter: drop-shadow(0 0 6px rgba(252, 175, 23, 0.5));
  }

  .appbar-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .appbar-item span {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Add bottom padding to body so footer isn't hidden behind app bar */
  body {
    padding-bottom: 80px;
  }

  /* Footer should have some extra bottom margin */
  .footer {
    margin-bottom: 0;
    padding-bottom: 10px;
  }
}

/* ═══════════════════════════════════════════ */
/* COUNTDOWN TIMER                             */
/* ═══════════════════════════════════════════ */
.countdown-section {
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.countdown-wrapper {
  background: linear-gradient(135deg, #001a3a 0%, #003082 50%, #0047BA 100%);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 48, 130, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(252, 175, 23, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 194, 255, 0.08) 0%, transparent 50%);
  animation: countdownGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes countdownGlow {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(2%, -2%) rotate(1deg);
  }

  66% {
    transform: translate(-2%, 1%) rotate(-1deg);
  }
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--blue2);
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(252, 175, 23, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(252, 175, 23, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(252, 175, 23, 0.7), 0 0 40px rgba(252, 175, 23, 0.2);
  }
}

.countdown-badge svg {
  animation: clockTick 1s steps(12) infinite;
}

@keyframes clockTick {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.countdown-title {
  font-family: 'LuckiestGuy', cursive;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: white;
  margin: 8px 0 20px;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-family: 'LuckiestGuy', cursive;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 3px 15px rgba(252, 175, 23, 0.4), 0 0 40px rgba(252, 175, 23, 0.15);
  letter-spacing: 2px;
  transition: transform 0.3s ease;
}

.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown-separator {
  font-family: 'LuckiestGuy', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(255, 255, 255, 0.4);
  padding-bottom: 20px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.countdown-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.countdown-subtitle strong {
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 600px) {
  .countdown-wrapper {
    padding: 30px 16px;
    border-radius: 18px;
  }

  .countdown-unit {
    min-width: 60px;
  }

  .countdown-badge {
    font-size: 0.75rem;
    padding: 8px 18px;
  }
}

/* ═══════════════════════════════════════════ */
/* VIGENCIA SECTION                            */
/* ═══════════════════════════════════════════ */
.vigencia-section {
  padding: 30px 0;
  text-align: center;
}

.vigencia-text {
  font-family: 'LuckiestGuy', cursive;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--blue2);
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  margin: 0;
  opacity: 0.9;
}