/* ==========================================================================
   CONGRESO INTERNACIONAL DE CRIMINOLOGÍA, CRIMINALÍSTICA Y JUSTICIA PENAL
   Estilos Principales - San Cristóbal de las Casas 2027
   Tema: Premium Institucional Luminoso & Elegante (Royal Navy & Oro Champán)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Bright & Premium Institutional */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-warm: #fcfbfa;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfefe;
  
  /* Borders */
  --border-subtle: rgba(15, 34, 74, 0.08);
  --border-gold: rgba(197, 148, 48, 0.35);
  --border-gold-strong: #c59430;
  --border-focus: #1e3a8a;

  /* Royal Navy Palette */
  --navy-950: #060e20;
  --navy-900: #0a1936;
  --navy-850: #0f244c;
  --navy-800: #163266;
  --navy-700: #1e40af;
  --navy-600: #2563eb;
  --navy-100: #e0e7ff;
  --navy-50: #eff6ff;

  /* Metallic Gold & Warm Bronze */
  --gold-50: #fffbf0;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #f5cf68;
  --gold-400: #d4a34b;
  --gold-500: #b88628;
  --gold-600: #9c6c18;
  --gold-gradient: linear-gradient(135deg, #d4a34b 0%, #b88628 50%, #90600d 100%);
  --gold-gradient-soft: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  --gold-glow: rgba(184, 134, 40, 0.25);

  /* Forensic Cyan & Accent Colors */
  --cyan-600: #0284c7;
  --cyan-500: #0ea5e9;
  --cyan-50: #f0f9ff;
  --emerald-600: #059669;
  --emerald-50: #ecfdf5;
  --purple-600: #7c3aed;
  --purple-50: #f5f3ff;

  /* Typography Colors */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --text-main: #0f172a;
  --text-heading: #0a1936;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Transitions & Elevation Shadows */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-xs: 0 1px 2px rgba(15, 34, 74, 0.05);
  --shadow-sm: 0 4px 10px rgba(15, 34, 74, 0.06);
  --shadow-md: 0 12px 28px -4px rgba(15, 34, 74, 0.08);
  --shadow-lg: 0 20px 45px -8px rgba(15, 34, 74, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 34, 74, 0.07);
  --shadow-gold: 0 8px 25px rgba(184, 134, 40, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* --- Ambient Lights & Background Patterns --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  max-width: 100vw;
  overflow: hidden;
}

.bg-glow-1 {
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  background: radial-gradient(circle, rgba(212, 163, 75, 0.15) 0%, rgba(224, 231, 255, 0.4) 60%, transparent 80%);
  top: -120px;
  right: -50px;
}

.bg-glow-2 {
  width: min(600px, 85vw);
  height: min(600px, 85vw);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(241, 245, 249, 0.8) 70%, transparent 80%);
  bottom: 5%;
  left: -80px;
}

.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 34, 74, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 34, 74, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}

p, span, li, a {
  overflow-wrap: break-word;
  word-break: normal;
}

.gradient-text {
  background: linear-gradient(135deg, #b88628 0%, #d4a34b 50%, #90600d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold {
  color: var(--gold-500);
}

.text-cyan {
  color: var(--cyan-600);
}

.text-center {
  text-align: center;
}

/* --- Layout Containers --- */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.section-header {
  margin-bottom: 52px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-600);
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  max-width: 100%;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 900;
  color: var(--navy-950);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(184, 134, 40, 0.35);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 40, 0.5);
  filter: brightness(1.08);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: rotate(30deg);
  animation: btnShine 4.5s infinite linear;
}

@keyframes btnShine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--navy-850);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--navy-850);
  color: #ffffff;
  border-color: var(--navy-850);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(15, 34, 74, 0.04);
  color: var(--navy-850);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(15, 34, 74, 0.08);
  color: var(--navy-900);
}

.btn-primary-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold-400);
  color: var(--gold-200);
}

.btn-primary-outline:hover {
  background: var(--gold-400);
  color: var(--navy-950);
  box-shadow: 0 0 15px rgba(212, 163, 75, 0.4);
}

.w-100 {
  width: 100%;
}

.icon-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.icon-svg-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(197, 148, 48, 0.25);
  box-shadow: 0 4px 20px rgba(15, 34, 74, 0.04);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 34, 74, 0.15));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--navy-900);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-link {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-900);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-mobile-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: rgba(15, 34, 74, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: var(--gold-50);
  border-color: var(--border-gold);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-850);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 120px;
  padding-bottom: 70px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(197, 148, 48, 0.12);
  max-width: 100%;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-850);
  line-height: 1.35;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.85rem, 4.8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--navy-950);
  margin-bottom: 18px;
  line-height: 1.16;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 620px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Countdown Timer */
.countdown-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 520px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

.countdown-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-600);
  margin-bottom: 8px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy-900);
  border: 1px solid rgba(212, 163, 75, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
  box-shadow: 0 4px 10px rgba(10, 25, 54, 0.2);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.countdown-unit {
  font-size: clamp(0.55rem, 1.8vw, 0.68rem);
  font-weight: 700;
  color: var(--gold-300);
  text-transform: uppercase;
  margin-top: 4px;
}

.countdown-separator {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-500);
  padding: 0 2px;
}

/* Hero Emblem Visual */
.hero-visual-col {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.emblem-card-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(15, 34, 74, 0.2)) drop-shadow(0 0 35px rgba(212, 163, 75, 0.35));
  animation: floatEmblem 6s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.emblem-ambient-halo {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212, 163, 75, 0.25) 0%, rgba(224, 231, 255, 0.5) 60%, transparent 80%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(25px);
  pointer-events: none;
}

.emblem-ring-rotate {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1.5px dashed rgba(184, 134, 40, 0.4);
  border-radius: 50%;
  z-index: 1;
  animation: rotateRing 45s linear infinite;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.emblem-floating-tag {
  position: absolute;
  z-index: 3;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.tag-top {
  top: 0;
  right: -5px;
  border-color: var(--gold-400);
}

.tag-bottom {
  bottom: 0;
  left: -5px;
  border-color: var(--cyan-500);
}

/* Stats Strip */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-top: 52px;
  box-shadow: var(--shadow-card);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 200px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(197, 148, 48, 0.35), transparent);
}

/* ==========================================================================
   THEMATIC TRACKS
   ========================================================================== */
.tracks-section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.track-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.track-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.track-card:hover::before {
  background: var(--gold-gradient);
}

.track-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  margin-bottom: 20px;
}

.track-icon {
  width: 28px;
  height: 28px;
}

.track-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy-900);
}

.track-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ==========================================================================
   PANELISTAS SECTION (3D FLIP CARDS)
   ========================================================================== */
.panelistas-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.7) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

.interactive-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  animation: pulsePill 3s infinite ease-in-out;
}

@keyframes pulsePill {
  0%, 100% { border-color: var(--border-gold); }
  50% { border-color: var(--gold-500); box-shadow: 0 0 15px rgba(197, 148, 48, 0.25); }
}

.panelistas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 3D FLIP CARD ARCHITECTURE */
.flip-card {
  background-color: transparent;
  height: 520px;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.85s var(--ease-spring);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Hover on Desktop & Click/Active on Mobile */
.flip-card.is-flipped .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
  transform: rotateY(180deg);
}

/* El giro por hover solo en dispositivos con mouse (evita tarjetas "pegadas" al tocar) */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* FRONT FACE (CLEAN LIGHT EXECUTIVE) */
.flip-card-front {
  background: #ffffff;
  border: 1.5px solid rgba(15, 34, 74, 0.1);
  display: flex;
  flex-direction: column;
}

.panelist-img-container {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: var(--bg-surface-alt);
}

.panelist-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.flip-card:hover .panelist-img {
  transform: scale(1.05);
}

.panelist-country-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10, 25, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.card-flip-prompt {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-gold);
  color: var(--navy-900);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.panelist-info {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
  border-top: 1px solid rgba(15, 34, 74, 0.06);
}

.panelist-specialty-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-600);
  margin-bottom: 4px;
}

.panelist-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
  line-height: 1.25;
}

.panelist-role {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.4;
}

/* BACK FACE (DEEP NAVY LUXURY WITH GOLD DETAILS) */
.flip-card-back {
  background: radial-gradient(circle at 50% 0%, #162b55 0%, #0a1936 100%);
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--gold-400);
  box-shadow: inset 0 0 30px rgba(212, 163, 75, 0.15);
  color: #ffffff;
}

.back-header {
  border-bottom: 1px solid rgba(212, 163, 75, 0.3);
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.back-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-300);
  letter-spacing: 1px;
}

.back-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
}

.back-role-short {
  font-size: 0.78rem;
  color: var(--gold-100);
}

.back-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-description {
  font-size: 0.81rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.back-highlights {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.highlight-bullet {
  color: var(--gold-300);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.back-lecture {
  background: rgba(10, 25, 54, 0.7);
  border: 1px solid rgba(212, 163, 75, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.lecture-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--gold-300);
  text-transform: uppercase;
}

.lecture-title {
  font-size: 0.74rem;
  font-style: italic;
  color: #ffffff;
  line-height: 1.3;
}

.back-footer {
  margin-top: 10px;
}

/* ==========================================================================
   ITINERARIO SECTION
   ========================================================================== */
.itinerario-section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.itinerary-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.itinerary-tab {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.itinerary-tab:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.itinerary-tab.active {
  background: var(--navy-900);
  border-color: var(--gold-400);
  box-shadow: 0 10px 25px rgba(10, 25, 54, 0.2), 0 0 15px rgba(184, 134, 40, 0.2);
}

.tab-day-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: 1px;
}

.itinerary-tab.active .tab-day-number {
  color: var(--gold-300);
}

.tab-day-theme {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.itinerary-tab.active .tab-day-theme {
  color: #ffffff;
}

.tab-day-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.itinerary-tab.active .tab-day-date {
  color: var(--text-light);
}

.itinerary-day-panel {
  display: none;
}

.itinerary-day-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.timeline-item:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-item.featured-session {
  border-left: 5px solid var(--gold-500);
  background: #fdfbf7;
}

.timeline-time {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.time-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-magistral {
  background: var(--gold-50);
  color: var(--gold-600);
  border: 1px solid var(--border-gold);
}

.badge-workshop {
  background: var(--cyan-50);
  color: var(--cyan-600);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-panel {
  background: var(--purple-50);
  color: var(--purple-600);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-inauguration, .badge-clausura {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.badge-admin {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}

.timeline-header {
  margin-bottom: 8px;
}

.timeline-session-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.timeline-speaker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-600);
}

.timeline-room {
  font-size: 0.85rem;
  color: var(--navy-700);
  font-weight: 600;
}

.timeline-text {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 12px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-tag {
  background: var(--bg-surface-alt);
  border: 1px solid rgba(15, 34, 74, 0.08);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
}

/* ==========================================================================
   VENUE SECTION (SAN CRISTÓBAL DE LAS CASAS)
   ========================================================================== */
.sede-section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.sede-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.sede-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.sede-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sede-image-wrapper:hover .sede-hero-img {
  transform: scale(1.04);
}

.sede-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(10, 25, 54, 0.9);
  border: 1px solid rgba(212, 163, 75, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text-group strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.badge-text-group small {
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
}

.sede-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}

.sede-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.sede-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sede-feature-item strong {
  color: var(--navy-900);
  font-size: 0.95rem;
  display: block;
}

.sede-feature-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ==========================================================================
   PRICING & TICKETS SECTION ("COMPRAR ACCESO")
   ========================================================================== */
.precios-section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured-pricing {
  background: #ffffff;
  border: 2px solid var(--gold-500);
  box-shadow: 0 15px 40px rgba(184, 134, 40, 0.15), 0 0 25px rgba(184, 134, 40, 0.12);
  transform: scale(1.03);
}

.pricing-card.featured-pricing:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.pricing-header {
  border-bottom: 1px solid rgba(15, 34, 74, 0.08);
  padding-bottom: 22px;
  margin-bottom: 22px;
  text-align: center;
}

.pricing-tier-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  display: block;
}

.pricing-tier-target {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 6px 0 16px;
  min-height: 40px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-600);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--navy-950);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-note {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-600);
  font-weight: 700;
  margin-top: 6px;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 28px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  font-size: 0.88rem;
  line-height: 1.45;
}

.feature-active {
  color: var(--text-body);
}

.feature-active strong {
  color: var(--navy-900);
}

.feature-disabled {
  color: var(--text-light);
  text-decoration: line-through;
  opacity: 0.7;
}

.guarantee-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-850);
}

.guarantee-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.faq-accordion-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  font-size: 1.4rem;
  color: var(--gold-600);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  border-top: 2px solid var(--gold-500);
  padding: 70px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-location-tag {
  font-size: 0.8rem;
  color: var(--gold-300);
  font-weight: 600;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-contact-list li {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-subtext {
  margin-top: 4px;
  color: var(--gold-400);
}

/* ==========================================================================
   MODAL DIALOG & DIGITAL BADGE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 54, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(184, 134, 40, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fdfbf7;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-600);
  letter-spacing: 1px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--navy-900);
}

.modal-body {
  padding: 24px 28px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.custom-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1.5px solid transparent;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-body);
  transition: all 0.2s;
}

.radio-card:hover, .radio-card:has(input:checked) {
  border-color: var(--gold-500);
  background: var(--gold-50);
  color: var(--navy-900);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-method-card {
  background: var(--bg-surface-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method-card:has(input:checked) {
  border-color: var(--navy-850);
  background: var(--navy-50);
  color: var(--navy-900);
}

.payment-method-card input {
  display: none;
}

/* Order Summary */
.order-summary-box {
  background: #fdfbf7;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.summary-discount {
  color: var(--gold-600);
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

.summary-total {
  font-size: 1.05rem;
  color: var(--navy-950);
}

.total-highlight {
  color: var(--gold-600);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Digital Pass / Badge Result */
.hidden {
  display: none !important;
}

.ticket-success-message {
  text-align: center;
  margin-bottom: 24px;
}

.success-icon-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.ticket-success-message h3 {
  font-size: 1.3rem;
  color: var(--navy-900);
}

.digital-badge-card {
  background: radial-gradient(circle at 50% 0%, #162b55 0%, #0a1936 100%);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 163, 75, 0.2);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.digital-badge-card::before {
  content: 'CONGRESO OFICIAL 2027';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
}

.badge-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(212, 163, 75, 0.3);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.badge-card-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.badge-event-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 0.5px;
}

.badge-event-theme {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-event-loc {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

.badge-card-body {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  align-items: center;
}

.badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 1.5px;
}

.badge-attendee-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px;
}

.badge-attendee-inst {
  font-size: 0.825rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.badge-tier-pill {
  display: inline-block;
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-box {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border: 1.5px solid var(--gold-400);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.badge-folio-number {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.badge-card-footer {
  border-top: 1px dashed rgba(212, 163, 75, 0.3);
  margin-top: 16px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
}

.ticket-actions-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0 16px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1200px) {
  .panelistas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-gold);
    padding: 20px 24px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    box-shadow: 0 15px 35px rgba(15, 34, 74, 0.15);
    z-index: 99;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(15, 34, 74, 0.05);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 14px;
  }

  .header-buy-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 980px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .countdown-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual-col {
    margin-top: 20px;
  }

  .sede-grid {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 28px;
  }

  .pricing-card.featured-pricing {
    transform: none !important;
  }

  .pricing-card.featured-pricing:hover {
    transform: translateY(-6px) !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 88px;
    padding-bottom: 45px;
  }

  .tracks-section, 
  .panelistas-section, 
  .itinerario-section, 
  .sede-section, 
  .precios-section, 
  .faq-section {
    padding: 50px 0;
  }

  .section-container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .section-subtitle {
    font-size: 0.76rem;
    padding: 5px 14px;
    margin-bottom: 10px;
  }

  .brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.2px;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.1px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.2vw, 2.5rem);
    margin-bottom: 14px;
  }

  .hero-badge {
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .badge-text {
    font-size: 0.76rem;
  }

  .emblem-card-frame {
    max-width: 300px;
    margin: 0 auto;
    padding: 36px 0;
  }

  .hero-emblem-img {
    max-width: 220px;
  }

  .emblem-ring-rotate {
    width: 260px;
    height: 260px;
  }

  .emblem-ambient-halo {
    width: 220px;
    height: 220px;
  }

  .emblem-floating-tag {
    font-size: 0.7rem;
    padding: 5px 10px;
    max-width: 190px;
    line-height: 1.25;
  }

  .tag-top {
    top: 0;
    right: 0;
  }

  .tag-bottom {
    bottom: 0;
    left: 0;
  }

  .stats-strip {
    flex-direction: column;
    gap: 18px;
    padding: 22px 16px;
    margin-top: 32px;
    border-radius: var(--radius-lg);
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.82rem;
    max-width: 100%;
  }

  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .track-card {
    padding: 22px 18px;
  }

  .panelistas-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .flip-card {
    height: 490px;
  }

  .panelist-img-container {
    height: 290px;
  }

  .interactive-hint-pill {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .itinerary-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }

  .itinerary-tab {
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  .timeline-time {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .sede-grid {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    gap: 24px;
  }

  .sede-hero-img {
    height: 220px;
  }

  .sede-overlay-badge {
    padding: 8px 12px;
    gap: 8px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .pricing-card {
    padding: 26px 18px;
    border-radius: var(--radius-lg);
  }

  .price-amount {
    font-size: 2.6rem;
  }

  .guarantee-box {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
    gap: 10px;
    margin-top: 28px;
  }

  .guarantee-item {
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 16px;
  }

  .modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-lg);
    max-width: 95vw;
    margin: 10px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title {
    font-size: 1.18rem;
  }

  .modal-body {
    padding: 16px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .custom-radio-group {
    grid-template-columns: 1fr;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .digital-badge-card {
    padding: 16px 12px;
  }

  .badge-card-header {
    flex-direction: row;
    gap: 10px;
  }

  .badge-card-body {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }

  .badge-attendee-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .badge-card-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .ticket-actions-group {
    flex-direction: column;
    gap: 10px;
  }

  .ticket-actions-group .btn {
    width: 100%;
  }

  .main-footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .countdown-wrapper {
    padding: 12px 8px;
    width: 100%;
  }

  .countdown-grid {
    gap: 4px;
  }

  .countdown-card {
    padding: 6px 4px;
  }

  .countdown-number {
    font-size: 1.3rem;
  }

  .countdown-unit {
    font-size: 0.58rem;
  }

  .countdown-separator {
    font-size: 1.05rem;
  }

  .emblem-floating-tag {
    display: none;
  }

  .hero-badge {
    padding: 6px 10px;
  }

  .badge-text {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none;
  }

  .brand-title {
    font-size: 0.76rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .countdown-card {
    padding: 5px 2px;
  }

  .countdown-number {
    font-size: 1.15rem;
  }

  .countdown-unit {
    font-size: 0.52rem;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .section-container {
    padding: 0 12px;
  }
}

/* ==========================================================================
   CONTENIDO OFICIAL 2027 — Ajustes (alianza CIIEIC, 5 especialistas,
   2 días de itinerario, precios por periodo)
   ========================================================================== */

/* Hero: sin etiquetas flotantes */
.emblem-card-frame { padding: 16px 0; }

/* Alliance bar */
.alliance-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}
.alliance-logo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 163, 75, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.alliance-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alliance-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-300);
}
.alliance-name {
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}
.alliance-countries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.countries-label { font-size: 0.8rem; font-weight: 600; color: #cbd5e1; }
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}
.flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Stats: icono en lugar de número */
.stat-icon { color: var(--gold-500); line-height: 0; }
.stat-icon svg { width: 42px; height: 42px; margin: 4px 0; }

/* Especialistas: 5 tarjetas (3 + 2 centradas) */
.panelistas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.panelistas-grid .flip-card {
  flex: 0 1 calc((100% - 48px) / 3);
  max-width: 380px;
  height: 540px;
}
.panelist-img-container { height: 320px; }
.panelist-specialty-tag { font-size: 0.68rem; line-height: 1.35; margin-bottom: 6px; }
.panelist-role { font-style: italic; }
.back-description { font-size: 0.84rem; line-height: 1.5; }

/* Itinerario: 2 días */
.itinerary-tabs { grid-template-columns: repeat(2, 1fr); }
.timeline-item { padding: 18px 24px; align-items: center; }
.timeline-session-title { margin-bottom: 0; }
.timeline-break { background: var(--bg-surface-alt); box-shadow: none; }
.itinerary-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Precios */
.guarantee-top { margin-top: 0; margin-bottom: 22px; }
.sale-periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 40px;
}
.sale-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px dashed var(--border-gold);
  border-radius: var(--radius-md);
  text-align: center;
}
.sale-period.is-current {
  border-style: solid;
  border-color: var(--gold-500);
  background: var(--gold-50);
}
.sale-period-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-600);
}
.sale-period.is-current .sale-period-label::after {
  content: ' · vigente';
  color: var(--emerald-600);
}
.sale-period-dates { font-size: 0.95rem; font-weight: 700; color: var(--navy-900); }

.pricing-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.price-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}
.price-row-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-row-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-muted);
}
.price-row-amount small { font-size: 0.75rem; font-weight: 700; }
.price-row.is-current {
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
}
.price-row.is-current .price-row-label { color: var(--gold-600); }
.price-row.is-current .price-row-amount { font-size: 2.3rem; font-weight: 900; color: var(--navy-950); }
.price-row:not(.is-current) .price-row-amount { text-decoration: line-through; text-decoration-thickness: 1px; }
.price-row[data-period="normal"]:not(.is-current) .price-row-amount { text-decoration: none; }

/* Modal: 4 métodos de pago */
.payment-methods-4 { grid-template-columns: repeat(4, 1fr); }

/* Footer */
.footer-alliance {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.footer-alliance-logo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.pending-data { color: var(--gold-300); font-style: italic; }

/* Responsive */
@media (max-width: 1100px) {
  .panelistas-grid .flip-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 768px) {
  .alliance-bar {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    margin-top: 32px;
    padding: 22px 18px;
  }
  .alliance-countries { justify-content: center; }
  .countries-label { width: 100%; }
  .panelistas-grid .flip-card { flex-basis: 100%; max-width: 360px; height: 560px; }
  .panelist-img-container { height: 300px; }
  .itinerary-tabs { grid-template-columns: 1fr; }
  .sale-periods { grid-template-columns: 1fr; margin-bottom: 28px; }
  .payment-methods-4 { grid-template-columns: repeat(2, 1fr); }
  .emblem-card-frame { padding: 12px 0; }
}

/* Botones sin tamaño explícito */
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 24px; font-size: 0.95rem; }
.panelist-img-container { height: 370px; }
@media (max-width: 768px) {
  .panelist-img-container { height: 340px; }
}

/* Alianzas: varios aliados */
.alliance-bar { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.alliance-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}
.alliance-partner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 0;
  max-width: 470px;
  text-align: left;
}
.alliance-partner .alliance-name { font-size: clamp(0.98rem, 1.6vw, 1.12rem); }
.alliance-acronym { color: var(--gold-300); }
.alliance-divider { width: 1px; align-self: stretch; background: rgba(212, 163, 75, 0.4); }
.alliance-countries { justify-content: center; margin-top: 2px; }
.footer-alliance { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-alliance-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-300); }
.footer-alliance-item { display: flex; align-items: center; gap: 12px; }
@media (max-width: 768px) {
  .alliance-partners { flex-direction: column; gap: 16px; }
  .alliance-partner { flex-direction: column; text-align: center; gap: 10px; }
  .alliance-divider { width: 60%; height: 1px; align-self: center; }
}

/* Reverso sin botón individual */
.flip-card-back { justify-content: flex-start; }
.back-body { flex-grow: 0; }
.speakers-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  text-align: center;
}
.speakers-cta p { font-size: 1.05rem; color: var(--text-body); }
.speakers-cta strong { color: var(--navy-900); }

/* ==========================================================================
   USEPS — INSTITUCIÓN ALIADA PRINCIPAL (bloque destacado)
   ========================================================================== */
.featured-partner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin: 10px auto 18px;
  padding: 32px 34px 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(212, 163, 75, 0.18);
  text-align: left;
}
.featured-partner-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px var(--gold-glow);
  white-space: nowrap;
}
.featured-partner-logo-box { width: 100%; }
.featured-partner-logo {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.featured-partner-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 28px;
  border-left: 2px solid rgba(212, 163, 75, 0.45);
}
.featured-partner-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-600);
}
.featured-partner-name {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy-950);
}
.featured-partner-acronym { color: var(--gold-500); }
.featured-partner-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* Footer: logo USEPS */
.footer-useps-logo {
  width: 170px;
  height: auto;
  flex-shrink: 0;
}
.footer-alliance-featured { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
.footer-alliance-featured span { color: #ffffff; font-weight: 700; }

/* Aviso de tarjetas según tipo de dispositivo */
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-desktop { display: none; }
  .hint-touch { display: inline; }
}

/* ==========================================================================
   AJUSTES RESPONSIVOS GLOBALES (computadora · tableta · celular)
   ========================================================================== */

/* Tarjetas: la foto ocupa el espacio libre y el texto nunca se corta */
.flip-card-front .panelist-img-container {
  flex: 1 1 auto;
  height: auto !important;
  min-height: 180px;
}
.flip-card-front .panelist-img { position: absolute; inset: 0; }
.flip-card-front .panelist-info { flex: 0 0 auto; }
.flip-card-back { overflow-y: auto; }

/* Modal y menú: altura real de pantalla en móviles */
@supports (height: 100dvh) {
  .modal-dialog { max-height: 90dvh; }
  @media (max-width: 1100px) {
    .nav-menu { max-height: calc(100dvh - 70px); }
  }
}
.modal-header { position: sticky; top: 0; z-index: 2; }

/* Tableta */
@media (min-width: 769px) and (max-width: 980px) {
  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .stat-divider { display: none; }
  .hero-emblem-img { max-width: 300px; }
  .emblem-ring-rotate { width: 340px; height: 340px; }
  .emblem-ambient-halo { width: 290px; height: 290px; }
}

@media (max-width: 900px) {
  .alliance-partners { flex-direction: column; gap: 16px; }
  .alliance-partner { flex-direction: column; text-align: center; gap: 10px; max-width: 520px; }
  .alliance-divider { width: 60%; height: 1px; align-self: center; }
  .featured-partner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 32px 24px 22px;
  }
  .featured-partner-text {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 2px solid rgba(212, 163, 75, 0.45);
    align-items: center;
  }
  .featured-partner-logo { max-width: 440px; }
}

/* Celular */
@media (max-width: 768px) {
  .bg-glow { filter: blur(80px); opacity: 0.45; }
  .alliance-bar { padding: 26px 14px 20px; border-radius: var(--radius-lg); }
  .alliance-logo { width: 80px; height: 80px; }
  .featured-partner { padding: 30px 14px 18px; margin-top: 6px; }
  .featured-partner-ribbon { font-size: 0.64rem; letter-spacing: 1px; padding: 4px 12px; }
  .featured-partner-desc { font-size: 0.86rem; }

  /* Evita el zoom automático de iOS al escribir */
  .form-input, .form-select { font-size: 16px; }

  .modal-backdrop { padding: 10px; }
  .modal-dialog { margin: 0; max-width: 100%; }
  @supports (height: 100dvh) {
    .modal-dialog { max-height: 94dvh; }
  }

  .footer-useps-logo { width: 150px; }
  .timeline-item:hover, .pricing-card:hover { transform: none; }
}

@media (max-width: 540px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .sede-cta .btn { width: 100%; }
  .payment-methods-4 { grid-template-columns: 1fr 1fr; }
  .sale-period-dates { font-size: 0.88rem; }
  .price-row.is-current .price-row-amount { font-size: 1.9rem; }
  .country-chip { font-size: 0.74rem; }
  .featured-partner-ribbon { white-space: normal; width: max-content; max-width: 88%; text-align: center; }
}

@media (max-width: 380px) {
  .back-description { font-size: 0.8rem; }
  .badge-card-header { flex-direction: column; text-align: center; }
}

/* Pantallas grandes */
@media (min-width: 1600px) {
  .section-container, .hero-container { max-width: 1360px; }
}

/* Impresión: solo la credencial */
@media print {
  body * { visibility: hidden; }
  #digital-badge-print, #digital-badge-print * { visibility: visible; }
  #digital-badge-print {
    position: fixed; top: 0; left: 0; width: 100%; max-width: 640px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .modal-backdrop, .modal-dialog { background: none !important; backdrop-filter: none !important; box-shadow: none !important; transform: none !important; }
}

/* Portada en computadora: título y botones más equilibrados */
.hero-title { text-wrap: balance; }
@media (min-width: 981px) {
  .hero-title { font-size: clamp(1.85rem, 3.4vw, 3.15rem); }
}
.hero-content-grid { grid-template-columns: 1.3fr 0.7fr; }
.hero-emblem-img { max-width: 340px; }
.section-title, .featured-partner-name { text-wrap: balance; }
@media (max-width: 1100px) and (min-width: 981px) {
  .hero-cta-group .btn-lg { padding: 12px 20px; font-size: 0.98rem; }
}
@media (max-width: 980px) {
  .hero-content-grid { grid-template-columns: 1fr; }
}
