/* ==========================================================================
   Generador de tarjetas de embarque y billetes de viaje sorpresa para regalo
   Estilos CSS canónicos fijate.com
   ========================================================================== */

:root {
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores UI generales (Dark Mode por defecto) */
  --bg-app: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #1a243d;
  --bg-input: #0f1626;
  --border-color: #232f48;
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #d4af37;
  --accent-hover: #e6ca65;
  --accent-rgb: 212, 175, 55;
  --accent-contrast: #0b0f19;

  --color-success: #10b981;
  --color-info: #0ea5e9;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(var(--accent-rgb), 0.2);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-input: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Layout canónico */
.tool-layout {
  max-width: 1280px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
}

.tool-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1536px) {
  .tool-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.tool-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

/* Barra lateral publicidad canónica */
.tool-ad-sidebar {
  display: none;
}

@media (min-width: 1536px) {
  .tool-ad-sidebar {
    display: block;
  }
  .ad-sticky-box {
    position: sticky;
    top: 2rem;
  }
}

/* ==========================================================================
   Cabecera de la herramienta (Banner introductorio)
   ========================================================================== */
.tool-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title-main {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}

.hero-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 900px;
}

.hero-quick-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.badge-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-feature svg {
  color: var(--accent);
}

/* ==========================================================================
   Contenedor de Previsualización en Vivo de la Tarjeta
   ========================================================================== */
.ticket-preview-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ticket-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-title-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.ticket-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-base);
}

.btn-action-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.btn-action-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-action-secondary {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-action-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.btn-action-magic {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-action-magic:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Área de zoom / encuadre del billete para móvil */
.ticket-viewport {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   ESTRUCTURA DEL BILLETE DE EMBARQUE FOTORREALISTA (SCREEN RENDERING)
   ========================================================================== */
.boarding-pass-card {
  width: 920px;
  min-width: 920px;
  height: 320px;
  border-radius: 20px;
  display: flex;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  user-select: none;
  transition: var(--transition-normal);
}

/* Escala responsive en pantallas pequeñas */
@media (max-width: 980px) {
  .ticket-viewport {
    justify-content: flex-start;
  }
}

/* Franja superior */
.pass-strip-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 4;
}

.airline-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cabin-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Cuerpo principal (Izquierda) */
.pass-main-body {
  flex: 1;
  padding: 50px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 2px dashed rgba(255, 255, 255, 0.25);
}

/* Muescas semicirculares de corte (Tear Notches) */
.pass-notch-top {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-app);
  z-index: 5;
}

.pass-notch-bottom {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-app);
  z-index: 5;
}

/* Encabezado de ruta IATA */
.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-point {
  display: flex;
  flex-direction: column;
}

.iata-code {
  font-family: var(--font-mono);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
}

.city-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
}

.flight-decor-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flight-decor-plane {
  font-size: 1.4rem;
  line-height: 1;
}

.flight-decor-line {
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  position: relative;
}

.flight-type-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.75;
}

.surprise-reason-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

/* Rejilla de datos de vuelo */
.flight-specs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.75;
  text-transform: uppercase;
}

.spec-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-val-mono {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Caja de dedicatoria sorpresa */
.pass-message-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-text {
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.message-sender {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Código de barras principal */
.pass-barcode-container {
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pass-barcode-svg {
  width: 100%;
  height: 32px;
}

.pass-etkt-footer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  opacity: 0.6;
  text-align: center;
  margin-top: 2px;
  letter-spacing: 1px;
}

/* Talón desmontable (Derecha / Stub) */
.pass-stub {
  width: 270px;
  min-width: 270px;
  padding: 50px 20px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.stub-route {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stub-route .iata-code {
  font-size: 1.8rem;
}

.stub-flight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.stub-qr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.stub-qr-canvas {
  width: 74px;
  height: 74px;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stub-qr-canvas canvas, .stub-qr-canvas img {
  width: 100%;
  height: 100%;
  display: block;
}

.stub-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stub-qr-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stub-qr-sub {
  font-size: 0.66rem;
  opacity: 0.75;
  line-height: 1.2;
}

.stub-barcode-mini {
  height: 24px;
  margin-top: 4px;
}

/* ==========================================================================
   TEMAS VISUALES DEL BILLETE (5 VARIANTES FOTORREALISTAS)
   ========================================================================== */

/* 1. Royal Gold & Navy */
.theme-royal-gold {
  background: linear-gradient(135deg, #0a172a 0%, #112240 100%);
  color: #f8fafc;
}
.theme-royal-gold .pass-strip-top {
  background: #d4af37;
  color: #0b1528;
}
.theme-royal-gold .iata-code {
  color: #ffffff;
}
.theme-royal-gold .city-name, .theme-royal-gold .spec-label {
  color: #94a3b8;
}
.theme-royal-gold .flight-decor-path, .theme-royal-gold .spec-val-mono, .theme-royal-gold .surprise-reason-pill {
  color: #e6ca65;
}
.theme-royal-gold .surprise-reason-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #d4af37;
}
.theme-royal-gold .pass-message-box {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
}
.theme-royal-gold .message-sender {
  color: #e6ca65;
}

/* 2. Modern Jetsetter */
.theme-modern-jet {
  background: linear-gradient(135deg, #081b29 0%, #0d2840 100%);
  color: #ffffff;
}
.theme-modern-jet .pass-strip-top {
  background: #0284c7;
  color: #ffffff;
}
.theme-modern-jet .flight-decor-path, .theme-modern-jet .spec-val-mono, .theme-modern-jet .surprise-reason-pill {
  color: #38bdf8;
}
.theme-modern-jet .surprise-reason-pill {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid #0284c7;
}
.theme-modern-jet .pass-message-box {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}
.theme-modern-jet .message-sender {
  color: #38bdf8;
}

/* 3. Sunset Romance */
.theme-sunset-romance {
  background: linear-gradient(135deg, #2e1065 0%, #581c87 100%);
  color: #ffffff;
}
.theme-sunset-romance .pass-strip-top {
  background: #be185d;
  color: #ffffff;
}
.theme-sunset-romance .flight-decor-path, .theme-sunset-romance .spec-val-mono, .theme-sunset-romance .surprise-reason-pill {
  color: #f472b6;
}
.theme-sunset-romance .surprise-reason-pill {
  background: rgba(190, 24, 93, 0.2);
  border: 1px solid #ec4899;
}
.theme-sunset-romance .pass-message-box {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
}
.theme-sunset-romance .message-sender {
  color: #f472b6;
}

/* 4. Vintage Aviator Retro */
.theme-vintage-retro {
  background: linear-gradient(135deg, #f5efe0 0%, #e8dcbe 100%);
  color: #292524;
}
.theme-vintage-retro .pass-strip-top {
  background: #78350f;
  color: #fef3c7;
}
.theme-vintage-retro .iata-code {
  color: #1c1917;
}
.theme-vintage-retro .city-name, .theme-vintage-retro .spec-label {
  color: #57534e;
}
.theme-vintage-retro .flight-decor-path, .theme-vintage-retro .spec-val-mono, .theme-vintage-retro .surprise-reason-pill {
  color: #9a3412;
}
.theme-vintage-retro .surprise-reason-pill {
  background: rgba(120, 53, 15, 0.12);
  border: 1px solid #9a3412;
}
.theme-vintage-retro .pass-message-box {
  border-color: #d6c7a1;
  background: rgba(120, 53, 15, 0.05);
}
.theme-vintage-retro .message-sender {
  color: #78350f;
}
.theme-vintage-retro .pass-main-body {
  border-right-color: rgba(41, 37, 36, 0.3);
}

/* 5. Festive Holiday Magic */
.theme-festive-magic {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: #ffffff;
}
.theme-festive-magic .pass-strip-top {
  background: #991b1b;
  color: #ffffff;
}
.theme-festive-magic .flight-decor-path, .theme-festive-magic .spec-val-mono, .theme-festive-magic .surprise-reason-pill {
  color: #fbbf24;
}
.theme-festive-magic .surprise-reason-pill {
  background: rgba(153, 27, 27, 0.25);
  border: 1px solid #fbbf24;
}
.theme-festive-magic .pass-message-box {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}
.theme-festive-magic .message-sender {
  color: #fbbf24;
}

/* ==========================================================================
   FORMULARIO DE EDICIÓN REACTIVO (TABS Y CAMPOS CANÓNICOS)
   ========================================================================== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pestañas de secciones del formulario */
.form-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-base);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 42px;
}

.tab-btn.active {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn:hover:not(.active) {
  background: var(--border-color);
  color: var(--text-main);
}

.step-content {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.step-content.active {
  display: flex;
}

/* Grillas de campos */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Grupos y controles de entrada (Estándares canónicos móviles) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  min-width: 0;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input, .form-textarea {
  width: 100%;
  min-height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-base);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.4;
}

/* Desplegables <select> conforme a regla canónica */
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  min-height: 42px;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 2.5rem 0.6rem 0.85rem;
  font-family: var(--font-base);
  font-size: 0.92rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.form-select option, .form-select optgroup {
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 0.5rem;
}

/* Wrapper flexbox de inputs según estándar */
.input-flex-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.input-flex-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.input-flex-wrapper .form-input {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  border: none;
  background: transparent;
}

.input-suffix-badge {
  padding: 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 1px solid var(--border-color);
  user-select: none;
}

/* Desplegable de autocompletado de aeropuertos */
.airport-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.airport-dropdown.open {
  display: block;
}

.airport-option {
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.airport-option:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.airport-option-left {
  display: flex;
  flex-direction: column;
}

.airport-option-city {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
}

.airport-option-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.airport-option-iata {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
}

/* Selector de temas visuales */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .theme-selector-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.theme-card-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.theme-card-option.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.theme-swatch {
  width: 100%;
  height: 26px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-swatch.swatch-royal { background: linear-gradient(90deg, #0a172a, #d4af37); }
.theme-swatch.swatch-modern { background: linear-gradient(90deg, #081b29, #0284c7); }
.theme-swatch.swatch-sunset { background: linear-gradient(90deg, #2e1065, #ec4899); }
.theme-swatch.swatch-vintage { background: linear-gradient(90deg, #f5efe0, #78350f); }
.theme-swatch.swatch-festive { background: linear-gradient(90deg, #064e3b, #991b1b); }

.theme-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Presets rápidos de sorpresas */
.presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL INTERACTIVO «MODO SOBRE DE REGALO» (UNBOXING EXPERIENCE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-gift-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 100%;
  padding: 2rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.gift-envelope-box {
  position: relative;
  width: 320px;
  height: 220px;
  background: #7c2d12;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gift-envelope-box:hover {
  transform: scale(1.02);
}

.envelope-seal {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.5rem;
  border: 2px solid #fef3c7;
}

.envelope-revealed-card {
  width: 100%;
  display: none;
  animation: slide-up-ticket 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up-ticket {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal estándar de avisos / confirmaciones (Sin alerts) */
.modal-box-notice {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.notice-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.notice-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.notice-icon.info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-info);
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN CANÓNICOS (@media print)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .form-card,
  .ticket-actions-bar,
  .fijate-footer,
  .modal-overlay,
  .seo-guide-section,
  .tool-hero-card {
    display: none !important;
  }

  .tool-layout, .tool-main-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ticket-preview-wrapper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .ticket-viewport {
    background: transparent !important;
    padding: 20mm 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .boarding-pass-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
