/* ==========================================================================
   INMOBILIARIA JD - Landing Page Sorteo Casa Propia
   Colores basados en el logo oficial: Azul Marino (#0B2E66) & Rojo (#C81922)
   ========================================================================== */

:root {
  --navy: #0b2e66;
  --navy-dark: #071e44;
  --navy-light: #164794;
  --red: #c81922;
  --red-hover: #a8131b;
  --red-glow: rgba(200, 25, 34, 0.35);
  --cream: #f8f6f2;
  --surface: #ffffff;
  --text: #141c2b;
  --text-muted: #526075;
  --border: #e4e9f1;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(11, 46, 102, 0.06);
  --shadow-md: 0 12px 36px rgba(11, 46, 102, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 30, 68, 0.2);
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--surface);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--red));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 25, 34, 0.45);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 0.82rem 1.4rem;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 46, 102, 0.08);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-name strong {
  color: var(--red);
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 3.5rem) 0 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: -6% 0;
  z-index: -1;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 30, 68, 0.78) 0%,
    rgba(7, 30, 68, 0.62) 48%,
    rgba(7, 30, 68, 0.88) 100%
  );
}

.hero-content {
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b46;
  box-shadow: 0 0 0 0 rgba(255, 59, 70, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 70, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 70, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 800;
}

.text-accent {
  color: #ffd166;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 630px;
}

/* Countdown */
.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(7, 30, 68, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
}

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

.countdown-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.6;
  margin-top: -12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

/* Ticket Progress */
.ticket-progress-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

.ticket-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d57, #ffd166);
  border-radius: 999px;
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   SCROLL-DRIVEN HOUSE SHOWCASE
   ========================================================================== */
.house-scroll-section {
  position: relative;
  height: 360vh;
  background: var(--navy-dark);
}

.house-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.house-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  will-change: transform, border-radius;
}

.house-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  will-change: transform;
  transition: filter 0.3s ease;
}

.house-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 30, 68, 0.22) 0%,
    rgba(7, 30, 68, 0.12) 45%,
    rgba(7, 30, 68, 0.82) 100%
  );
  pointer-events: none;
}

/* Hotspot Pin */
.house-hotspot {
  position: absolute;
  left: 52%;
  top: 48%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease;
}

.house-hotspot.visible {
  opacity: 1;
}

.hotspot-core {
  position: absolute;
  inset: 5px;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(200, 25, 34, 0.8);
}

.hotspot-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: hotspotPulse 1.8s infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Story Cards */
.story-cards-container {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90%);
  z-index: 10;
}

.story-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 30, 68, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 1.55rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-card.active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.story-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffd166;
  margin-bottom: 0.45rem;
}

.story-card h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.story-card p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
}

.story-cta {
  margin-top: 1rem;
}

/* Stage Dots */
.stage-indicators {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 12;
}

.stage-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.stage-dot.active {
  height: 30px;
  background: var(--red);
  border-color: #fff;
}

/* ==========================================================================
   Generic Sections
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Features Grid */
.features-section {
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(11, 46, 102, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.feature-card:hover .feature-icon {
  background: var(--navy);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  text-align: center;
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 46, 102, 0.25);
}

.step-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ==========================================================================
   3D Scroll-Rotating Phone Showcase
   ========================================================================== */
.phone-3d-section {
  position: relative;
  height: 220vh;
  background: radial-gradient(circle at 75% 45%, #163e80 0%, var(--navy-dark) 70%);
  color: #fff;
}

.phone-3d-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.phone-3d-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.phone-3d-copy .eyebrow {
  color: #ffd166;
}

.phone-3d-copy h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  color: #fff;
  margin-bottom: 1rem;
}

.phone-3d-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
  margin-bottom: 1.5rem;
}

.phone-3d-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.phone-3d-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.94);
}

.phone-3d-list svg {
  color: #ffd166;
  flex-shrink: 0;
}

.phone-3d-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-3d-scene {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-3d-device {
  position: relative;
  width: 280px;
  height: 560px;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-face {
  position: absolute;
  inset: 0;
  border-radius: 38px;
  backface-visibility: hidden;
  overflow: hidden;
}

.phone-front {
  transform: translateZ(9px);
  background: #111;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.phone-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.24) 48%,
    rgba(255, 255, 255, 0) 75%
  );
  pointer-events: none;
  opacity: 0.5;
  will-change: transform, opacity;
}

.phone-back {
  transform: rotateY(180deg) translateZ(9px);
  background: linear-gradient(155deg, #0f2f64 0%, #071836 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.phone-back-camera {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 8px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-back-camera span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4f7a, #080d18 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.phone-back-logo {
  width: 92px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.phone-back-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}

.phone-side {
  position: absolute;
  top: 34px;
  bottom: 34px;
  width: 18px;
  background: linear-gradient(180deg, #3c4b64 0%, #1c2638 50%, #3c4b64 100%);
}

.phone-side-left {
  left: 0;
  transform: rotateY(-90deg) translateZ(9px);
}

.phone-side-right {
  right: 0;
  transform: rotateY(90deg) translateZ(9px);
}

.phone-3d-shadow {
  width: 220px;
  height: 26px;
  margin-top: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 72%);
  will-change: transform, opacity;
}

/* Tickets Grid */
.tickets-section {
  background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.ticket-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ticket-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ticket-featured {
  border-color: var(--red);
  box-shadow: 0 16px 40px rgba(200, 25, 34, 0.14);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.combo-letter {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: rgba(11, 46, 102, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.ticket-qty {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}

.gift-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f6b3a;
  background: #e7f8ef;
  border: 1px solid #b9ebd0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.gift-pill-red {
  color: var(--red);
  background: rgba(200, 25, 34, 0.08);
  border-color: rgba(200, 25, 34, 0.25);
}

.ticket-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.65rem 0 0.45rem;
}

.ticket-price .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ticket-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.ticket-custom {
  background: linear-gradient(180deg, #f8fafd 0%, #eef3fa 100%);
  border-style: dashed;
  border-color: var(--navy-light);
}

/* FAQ */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.4rem;
}

.faq-item summary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--red);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 76px;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #fff;
  padding: 6px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: #ffd166;
}

.footer-contact p {
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1rem max(0.7rem, env(safe-area-inset-bottom));
  z-index: 850;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 -6px 24px rgba(11, 46, 102, 0.1);
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mobile-sticky-info strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  font-size: 1.05rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 68, 0.72);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  width: min(460px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.modal-logo {
  height: 58px;
  margin: 0 auto 0.75rem;
}

.modal-header h3 {
  color: var(--navy);
  font-size: 1.4rem;
}

.modal-header p {
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input {
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--navy);
}

.modal-success {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-success p {
  color: var(--text-muted);
  margin: 0.6rem 0 1.5rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .tickets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  body {
    padding-bottom: 72px;
  }

  .container {
    width: min(1160px, 90%);
  }

  .brand-logo {
    height: 44px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-slogan {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.45rem 0;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    padding: 0.8rem 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 2rem) 0 3rem;
  }

  .hero-content {
    gap: 1.1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .countdown-wrapper {
    width: 100%;
    max-width: 340px;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    gap: 0.25rem;
  }

  .countdown-item {
    min-width: 44px;
  }

  .countdown-num {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 0.64rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  .ticket-progress-card {
    padding: 0.8rem 1rem;
  }

  .ticket-progress-top {
    font-size: 0.76rem;
    gap: 0.5rem;
  }

  .scroll-hint {
    display: none;
  }

  /* Mobile 3D Phone Section */
  .phone-3d-section {
    height: 175vh;
  }

  .phone-3d-sticky {
    padding-top: calc(var(--nav-height) + 0.5rem);
    padding-bottom: 72px;
  }

  .phone-3d-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .phone-3d-copy p,
  .phone-3d-list {
    display: none;
  }

  .phone-3d-copy h2 {
    font-size: 1.38rem;
    margin-bottom: 0.65rem;
  }

  .phone-3d-copy .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .phone-3d-device {
    width: min(196px, 50vw);
    height: min(392px, 52svh);
  }

  .phone-face {
    border-radius: 28px;
  }

  .phone-side {
    top: 24px;
    bottom: 24px;
  }

  .phone-3d-shadow {
    width: 150px;
    margin-top: 12px;
  }

  /* Grids on Tablet/Mobile */
  .features-grid,
  .steps-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tickets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .ticket-card {
    padding: 1.35rem 1rem;
  }

  .ticket-qty {
    font-size: 1.05rem;
  }

  .ticket-price {
    font-size: 1.45rem;
  }

  .ticket-desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .ticket-card .btn {
    padding: 0.7rem 0.75rem;
    font-size: 0.82rem;
    min-height: 44px;
  }

  .popular-badge {
    font-size: 0.62rem;
    padding: 0.24rem 0.65rem;
    white-space: nowrap;
  }

  .feature-card,
  .step-card {
    padding: 1.4rem 1.25rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .faq-item {
    padding: 1rem 1.1rem;
  }

  .faq-item summary {
    font-size: 0.95rem;
    min-height: 44px;
  }

  .modal-card {
    padding: 1.5rem 1.25rem;
  }

  .mobile-sticky-bar {
    display: flex;
  }
}

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

  .ticket-price {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   NUEVAS SECCIONES: UBICACIÓN EN TIEMPO REAL, COMPRA WEB & RULETA VIRTUAL
   ========================================================================== */

/* Nav Spin Badge & Hero Roulette Pill */
.nav-link-roulette {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-spin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  animation: pulse 1.8s infinite;
}

.nav-spin-badge[hidden] {
  display: none !important;
}

.hero-roulette-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 209, 102, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-roulette-pill:hover {
  background: rgba(255, 209, 102, 0.26);
  transform: translateY(-2px);
}

.hero-roulette-pill strong {
  color: #ffd166;
}

.roulette-pill-icon {
  font-size: 1.15rem;
}

/* Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  color: #071e44;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.38);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.52);
  filter: brightness(1.04);
}

.btn-gold:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   Ubicación en Tiempo Real (Google Maps)
   ========================================================================== */
.location-section {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fc 100%);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.75rem;
  align-items: stretch;
}

.location-map-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: var(--navy-dark);
  color: #fff;
}

.map-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.live-gps-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: gpsPulse 1.8s infinite;
}

@keyframes gpsPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.map-view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px;
  border-radius: 999px;
}

.map-toggle-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-toggle-btn.active {
  background: #fff;
  color: var(--navy-dark);
}

.map-iframe-wrap {
  position: relative;
  flex-grow: 1;
  min-height: 400px;
  background: #e9eef6;
}

.map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.2rem;
  background: #f8fafd;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.map-coords {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-weight: 600;
}

.btn-copy-coords {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-coords:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.location-info-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.location-house-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.location-house-preview img {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(11, 46, 102, 0.12);
}

.location-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f6b3a;
  background: #e7f8ef;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.location-house-preview h3 {
  font-size: 1.15rem;
  color: var(--navy);
}

.location-house-preview p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.realtime-gps-box {
  background: #f5f8fd;
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.realtime-gps-box.active-tracking {
  background: #effcf4;
  border-color: #a7f3d0;
}

.gps-box-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.gps-radar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.realtime-gps-box.active-tracking .gps-radar-icon {
  background: #16a34a;
}

.gps-box-header h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.gps-box-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.gps-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gps-metrics[hidden] {
  display: none !important;
}

.gps-metric-item {
  background: #fff;
  border: 1px solid rgba(11, 46, 102, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.gps-metric-value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.gps-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.location-visit-link {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  padding-top: 0.25rem;
  transition: color 0.2s ease;
}

.location-visit-link:hover {
  color: var(--red);
}

/* ==========================================================================
   Mejoras en Sección Compra Web de Boletas
   ========================================================================== */
.roulette-promo-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 209, 102, 0.32);
}

.promo-banner-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.promo-wheel-badge {
  font-size: 2.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.promo-banner-left strong {
  color: #ffd166;
}

.promo-banner-left p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.2rem;
}

/* Wallet Mis Boletas */
.my-tickets-wallet {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.my-tickets-wallet[hidden] {
  display: none !important;
}

.wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f6b3a;
  background: #e7f8ef;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.wallet-header h3 {
  font-size: 1.18rem;
  color: var(--navy);
}

.wallet-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.wallet-numbers-drawer {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.wallet-numbers-drawer[hidden] {
  display: none !important;
}

.wallet-numbers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ticket-chip {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  background: #f1f5fb;
  color: var(--navy);
  border: 1px solid #cbd7eb;
  padding: 0.3rem 0.68rem;
  border-radius: 8px;
}

.ticket-chip.bonus-chip {
  background: #fff8e6;
  color: #92400e;
  border-color: #fcd34d;
}

.wallet-prizes-summary {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--navy);
  background: #f8fafd;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
}

.ticket-roulette-ready {
  border-color: var(--navy);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.roulette-unlock-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #ffd166;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.roulette-mini-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ==========================================================================
   Sección Ruleta Virtual de Premios
   ========================================================================== */
.roulette-section {
  background: radial-gradient(circle at 75% 45%, #173f82 0%, #061838 72%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.eyebrow-gold {
  color: #ffd166;
}

.roulette-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.roulette-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  color: #fff;
  margin-bottom: 0.9rem;
}

.roulette-copy > p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  margin-bottom: 1.35rem;
}

.roulette-prizes-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.prize-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.prize-chip-gold {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.55);
  color: #ffd166;
  font-weight: 700;
}

.roulette-status-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
}

.roulette-status-card.unlocked {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
}

.roulette-spins-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.spins-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.spins-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffd166;
  line-height: 1.1;
}

.spins-lock-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.roulette-status-card.unlocked .spins-lock-pill {
  background: #22c55e;
  color: #fff;
}

.roulette-helper-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.15rem;
}

.roulette-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.won-prizes-box {
  margin-top: 1.25rem;
  background: rgba(7, 30, 68, 0.65);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 14px;
  padding: 1.05rem 1.25rem;
}

.won-prizes-box[hidden] {
  display: none !important;
}

.won-prizes-box h4 {
  font-size: 0.95rem;
  color: #ffd166;
  margin-bottom: 0.6rem;
}

.won-prizes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
}

.won-prizes-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

/* Wheel Stage */
.roulette-wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel-outer-frame {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 0deg, #ffd166, #b45309, #fde68a, #b45309, #ffd166);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-outer-frame canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 46px;
  background: var(--red);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 5;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 15%;
  transition: transform 0.08s ease;
}

.wheel-pointer.tick {
  transform: translateX(-50%) rotate(-16deg);
}

.wheel-center-cap {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #ffd166;
  background: radial-gradient(circle at 35% 30%, #164794, #071e44);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  z-index: 6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wheel-center-cap:hover {
  transform: scale(1.06);
}

.cap-top {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffd166;
}

.cap-sub {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ==========================================================================
   Modal Checkout Web & Comprobante & Modal Premio
   ========================================================================== */
.modal-checkout-card {
  width: min(560px, 100%);
  padding: 1.75rem 1.85rem;
}

.checkout-qty-box {
  background: #f5f8fd;
  border: 1.5px solid #dbe5f5;
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
}

.checkout-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-qty-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-step-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #eef3fa;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}

.qty-step-btn:hover {
  background: var(--navy);
  color: #fff;
}

.qty-stepper input {
  width: 62px;
  height: 36px;
  border: none !important;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  padding: 0 !important;
}

.checkout-bonus-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #cbd7eb;
  font-size: 0.86rem;
}

.checkout-total-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  color: var(--red);
}

.checkout-roulette-alert {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.38;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #92400e;
}

.checkout-roulette-alert.unlocked {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.alert-wheel-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.alert-wheel-text {
  flex-grow: 1;
}

.btn-upgrade-five {
  border: none;
  background: var(--navy);
  color: #ffd166;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-upgrade-five[hidden] {
  display: none !important;
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-methods-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.payment-block-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.payment-tab {
  border: 1.5px solid var(--border);
  background: #f8fafd;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.payment-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.payment-panel {
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.payment-panel[hidden] {
  display: none !important;
}

.qr-payment-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qr-svg-wrap {
  width: 92px;
  height: 92px;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-instructions strong {
  font-size: 0.85rem;
  color: var(--navy);
  display: block;
}

.qr-instructions p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.35rem;
}

.qr-instant-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #15803d;
}

.bank-info-box p {
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.bank-info-box code {
  background: #e8eef8;
  color: var(--navy);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

.btn-mini-copy {
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 0.35rem;
}

/* Receipt / Success */
.receipt-subtitle {
  font-size: 0.9rem;
  margin: 0.35rem 0 1rem !important;
}

.issued-tickets-box {
  background: #f5f8fd;
  border: 1.5px solid #dbe5f5;
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
}

.issued-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.issued-tickets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 120px;
  overflow-y: auto;
}

.success-roulette-cta {
  background: linear-gradient(135deg, #0b2e66 0%, #164794 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  border: 2px solid #ffd166;
}

.success-roulette-cta[hidden] {
  display: none !important;
}

.success-roulette-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #071e44;
  background: #ffd166;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.success-roulette-cta p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.86rem;
  margin: 0.25rem 0 0.85rem !important;
}

.receipt-secondary-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Prize Modal */
.prize-modal-card {
  text-align: center;
  width: min(440px, 100%);
}

.prize-celebration-icon {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.prize-modal-card h3 {
  font-size: 1.65rem;
  color: var(--navy);
  margin: 0.25rem 0 0.5rem;
}

.prize-modal-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.prize-code-box {
  background: #f5f8fd;
  border: 1.5px dashed var(--navy);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
}

.prize-code-box span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.prize-code-box strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--red);
}

.prize-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1250;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 1024px) {
  .location-grid,
  .roulette-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .map-iframe-wrap {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .hero-roulette-pill {
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
    text-align: left;
  }

  .roulette-promo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
    gap: 1rem;
  }

  .roulette-promo-banner .btn {
    width: 100%;
  }

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

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

  .qr-payment-box {
    flex-direction: column;
    text-align: center;
  }

  .map-top-bar,
  .map-bottom-bar {
    flex-wrap: wrap;
  }

  .wheel-center-cap {
    width: 70px;
    height: 70px;
  }
}

/* ==========================================================================
   Verificador Público de Comprobantes (sorteo_bot)
   ========================================================================== */
.receipt-verifier-card {
  background: #ffffff;
  border: 1.5px solid #cbd7eb;
  border-radius: var(--radius-md);
  padding: 1.45rem 1.7rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.verifier-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.verifier-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: #e8f0fe;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.verifier-top h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.verifier-top p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.verifier-form input {
  flex-grow: 1;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.94rem;
  outline: none;
}

.verifier-form input:focus {
  border-color: var(--navy);
}

.verifier-result {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.verifier-result[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .verifier-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .verifier-form {
    flex-direction: column;
  }
  .verifier-form .btn {
    width: 100%;
  }
}
