:root {
  --paper-bg: #f4f1ea;
  --paper-card: #fffdf9;
  --paper-subtle: #ebe6db;
  --ink: #181816;
  --ink-soft: #57544e;
  --airport-yellow: #ffd026;
  --stamp-red: #df3b2f;
  --stamp-green: #181816;
  --pen-blue: #1d4ed8;
  --border-ink: 2px solid #181816;
  --shadow-hard: 4px 4px 0px #181816;
  --shadow-sm: 2px 2px 0px #181816;
}

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

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background-color: var(--paper-bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: var(--border-ink);
  background: var(--paper-bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--airport-yellow);
  border: var(--border-ink);
  border-radius: 9px;
  box-shadow: 2px 2px 0px var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.12s;
}

.brand:hover .brand-logo-mark {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

.brand-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.35rem;
  display: block;
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #ebe6db;
  border: 1px solid var(--ink);
  padding: 4px 9px;
  border-radius: 99px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.saved-pill-btn {
  background: var(--paper-card);
  border: var(--border-ink);
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s;
}

.saved-pill-btn:hover {
  background: var(--airport-yellow);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}

.saved-star {
  color: #d97706;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  padding: 36px 0 26px;
  max-width: 820px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff9db;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  padding: 4px 12px;
  border-radius: 99px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-pill-icon {
  font-size: 0.82rem;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-subline {
  font-size: clamp(0.96rem, 1.8vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 660px;
}

/* Buscador */
.boarding-search {
  background: var(--paper-card);
  border: var(--border-ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  margin-bottom: 32px;
  overflow: visible;
}

.boarding-body {
  display: grid;
  grid-template-columns: 1fr 1.38fr 0.95fr;
  border-bottom: 2px dashed var(--ink);
}

.boarding-col {
  padding: 20px;
}

.days-col {
  border-left: 2px dashed var(--ink);
  border-right: 2px dashed var(--ink);
  background: #faf7f0;
}

.field-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.label-row .field-label {
  margin-bottom: 0;
}

/* Airport Autocomplete */
.airport-autocomplete {
  position: relative;
}

.airport-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-card);
  border: var(--border-ink);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  padding: 8px 10px;
}

.airport-input-wrap:focus-within {
  background: #fffbeb;
}

.selected-flag {
  font-size: 1.2rem;
}

.airport-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

.iata-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--airport-yellow);
  padding: 2px 6px;
  border-radius: 4px;
}

.clear-airport-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
}

.clear-airport-btn:hover {
  color: var(--stamp-red);
}

.airport-subname {
  font-size: 0.73rem;
  color: var(--ink-soft);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.airport-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--paper-card);
  border: var(--border-ink);
  box-shadow: 6px 6px 0px var(--ink);
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  z-index: 90;
}

.airport-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--paper-subtle);
  cursor: pointer;
}

.airport-option:last-child {
  border-bottom: none;
}

.airport-option:hover {
  background: var(--airport-yellow);
}

.airport-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.airport-opt-city {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.airport-opt-name {
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: block;
}

.airport-opt-iata {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper-card);
  padding: 3px 7px;
  border-radius: 4px;
}

/* Personas */
.pax-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pax-card {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 7px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: inherit;
}

.pax-card.active {
  background: var(--airport-yellow);
  box-shadow: var(--shadow-sm);
}

.pax-icon {
  font-size: 1.1rem;
}

.pax-card strong {
  font-size: 0.86rem;
}

.pax-card small {
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.hand-note-below {
  font-family: 'Caveat', cursive;
  font-size: 1.22rem;
  color: var(--pen-blue);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
}

.pax-mini-face {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Selector de Fechas */
.saving-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--airport-yellow);
  border: 1px solid var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
}

.combos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.combo-btn {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.combo-btn.active {
  background: var(--airport-yellow);
  box-shadow: var(--shadow-sm);
}

.combo-btn strong {
  display: block;
  font-size: 0.8rem;
}

.combo-btn span {
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.week-picker-box {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 9px 10px;
  position: relative;
}

.week-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.week-range-btn {
  background: #fff9db;
  border: 1.5px dashed var(--ink);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.12s;
}

.week-range-btn:hover {
  background: var(--airport-yellow);
  border-style: solid;
  box-shadow: 2px 2px 0px var(--ink);
}

.week-range-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.week-nav-btn {
  background: var(--paper-bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.week-nav-btn:hover {
  background: var(--airport-yellow);
}

/* Calendario Mensual Popover */
.month-calendar-popover {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: var(--paper-card);
  border: var(--border-ink);
  box-shadow: 6px 6px 0px var(--ink);
  border-radius: 10px;
  padding: 12px;
  z-index: 95;
}

.cal-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-month-label {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 900;
}

.cal-step-hint {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  background: var(--paper-bg);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.cal-weekdays-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  height: 32px;
  border: 1px solid rgba(24, 24, 22, 0.2);
  background: var(--paper-bg);
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cal-day-cell:hover:not(:disabled) {
  background: var(--airport-yellow);
  border-color: var(--ink);
}

.cal-day-cell:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-day-cell.in-range {
  background: #fff3b0;
  border-color: var(--ink);
}

.cal-day-cell.range-edge {
  background: var(--ink);
  color: var(--airport-yellow);
  border-color: var(--ink);
}

.cal-day-empty {
  height: 32px;
}

.cal-popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--ink);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.cheap-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stamp-green);
  margin-right: 4px;
}

.cal-done-btn {
  background: var(--ink);
  color: var(--paper-card);
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

/* Tira de la semana */
.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.day-stamp {
  background: var(--paper-bg);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.day-stamp .d-letter {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.76rem;
}

.day-stamp .d-num {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.day-stamp.selected {
  background: var(--ink);
  color: var(--airport-yellow);
}

.day-stamp.selected .d-num {
  color: var(--paper-card);
}

.cheap-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stamp-green);
  margin-top: 2px;
}

.exact-dates-banner {
  background: #fff9db;
  border: 1px dashed var(--ink);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.76rem;
  text-align: center;
}

/* Presupuesto */
.paper-switch {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.switch-opt {
  background: var(--paper-card);
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.switch-opt.active {
  background: var(--ink);
  color: var(--airport-yellow);
}

.price-display-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 8px;
}

.big-price-counter #budget-value {
  font-family: 'Fraunces', serif;
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1;
}

.euro-sign {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.big-price-counter small {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.bote-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  background: var(--paper-bg);
  border: 1px solid var(--ink);
  padding: 4px 8px;
  border-radius: 6px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: var(--paper-bg);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  margin: 10px 0 6px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--stamp-red);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

/* Pie del buscador */
.boarding-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vibe-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vibe-tag {
  background: var(--paper-bg);
  border: 1.5px solid var(--ink);
  padding: 6px 12px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.vibe-tag.active {
  background: var(--ink);
  color: var(--airport-yellow);
}

.btn-lever {
  background: var(--stamp-red);
  color: white;
  border: var(--border-ink);
  box-shadow: var(--shadow-sm);
  padding: 11px 20px;
  border-radius: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.btn-lever:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}

/* Solari Shuffle Board */
.hidden {
  display: none !important;
}

.solari-stage {
  margin-bottom: 28px;
}

.solari-board {
  background: var(--ink);
  color: var(--paper-card);
  border: var(--border-ink);
  border-radius: 14px;
  padding: 20px;
}

.solari-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--airport-yellow);
  margin-bottom: 14px;
}

.solari-close {
  background: transparent;
  color: white;
  border: 1px solid #555;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.solari-spinning {
  text-align: center;
  padding: 20px;
}

.flap-box {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--airport-yellow);
}

/* Resultados */
.results-section {
  padding-bottom: 40px;
}

.manifest-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.manifest-bar h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
}

.manifest-dates-sub {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.paper-select-sm {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  padding: 7px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 20px;
}

/* Tarjeta Limpia de Billete */
.boarding-card {
  background: var(--paper-card);
  border: var(--border-ink);
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}

.boarding-card:hover {
  transform: translateY(-3px);
}

.card-photo-box {
  height: 150px;
  position: relative;
  border-bottom: var(--border-ink);
}

.card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-dates-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.card-verified-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24, 24, 22, 0.85);
  color: var(--airport-yellow);
  border: 1px solid var(--airport-yellow);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
}

.btn-pin-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-pin-fav.saved {
  background: var(--airport-yellow);
}

.card-main-info {
  padding: 14px 16px;
}

.card-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.city-name {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.route-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.price-stamp-big {
  background: var(--airport-yellow);
  border: 1.5px solid var(--ink);
  padding: 3px 9px;
  border-radius: 6px;
  text-align: right;
}

.price-stamp-big strong {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  display: block;
  line-height: 1;
}

.price-stamp-big small {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
}

.city-pitch {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.weekend-receipt-stub {
  background: #faf7f0;
  border-top: 2px dashed var(--ink);
  padding: 12px 16px 14px;
  margin-top: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.receipt-total-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  padding-top: 6px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--ink);
}

.btn-tear-ticket {
  margin-top: 10px;
  width: 100%;
  background: var(--ink);
  color: var(--paper-card);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.btn-tear-ticket:hover {
  background: var(--stamp-red);
}

/* Empty State */
.broke-state {
  background: var(--paper-card);
  border: var(--border-ink);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

.broke-illustration {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.btn-lever-small {
  margin-top: 14px;
  background: var(--airport-yellow);
  border: var(--border-ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.receipt-modal {
  background: var(--paper-card);
  border: var(--border-ink);
  box-shadow: 8px 8px 0px var(--ink);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  font-family: 'Space Mono', monospace;
}

.receipt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--paper-bg);
  border: 1.5px solid var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
}

/* Footer Profesional */
.site-footer {
  border-top: var(--border-ink);
  background: #ebe6db;
  padding: 36px 0 24px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--ink);
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 380px;
  margin-bottom: 10px;
}


.footer-partners-inline {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.footer-col-title {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-links-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-links-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

/* Acciones de tarjeta */
.card-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}
.card-actions a,
.winner-actions a {
  display: block;
  text-align: center;
  text-decoration: none;
}
.card-actions .btn-tear-ticket { margin-top: 0; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 10px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--airport-yellow); }
.card-group-line {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.winner-card {
  background: var(--paper-card);
  color: var(--ink);
  padding: 18px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.winner-card h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; }
.winner-card p { color: var(--ink-soft); font-size: 0.9rem; }
.winner-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.winner-actions .btn-lever { text-decoration: none; }

/* Publicidad */
.ad-slot {
  margin: 28px auto;
  max-width: 728px;
  text-align: center;
}
.ad-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.ad-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
}
.price-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================================
   RESPONSIVE DESIGN (Móvil y Tablets)
   ========================================= */

@media (max-width: 920px) {
  .boarding-body {
    grid-template-columns: 1fr;
  }
  .days-col {
    border-left: none;
    border-right: none;
    border-top: 2px dashed var(--ink);
    border-bottom: 2px dashed var(--ink);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  /* Header */
  .header-inner {
    height: 58px;
  }
  .brand-sub {
    display: none; /* Oculta subtítulo en móvil para que el logo y el botón queden limpios */
  }
  .brand-title {
    font-size: 1.12rem;
  }
  .luggage-tag-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  /* Hero */
  .hero-compact {
    padding: 16px 0 14px;
    gap: 14px;
  }
  .hero-copy h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }
  .hero-copy p {
    font-size: 0.86rem;
  }
  .mascot-box {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }
  .mascot-svg-wrap {
    width: 50px;
    height: 50px;
  }
  .mascot-comment {
    font-size: 1.1rem;
  }

  /* Buscador */
  .boarding-search {
    border-radius: 12px;
    margin-bottom: 22px;
  }
  .boarding-col {
    padding: 16px 14px;
  }

  /* Pasajeros */
  .pax-card {
    padding: 6px 2px;
  }
  .pax-icon {
    font-size: 1rem;
  }
  .pax-card strong {
    font-size: 0.8rem;
  }
  .hand-note-below {
    font-size: 1.1rem;
  }

  /* Combos rápidos */
  .combos-grid {
    gap: 6px;
  }
  .combo-btn {
    padding: 6px 8px;
  }
  .combo-btn strong {
    font-size: 0.76rem;
  }
  .combo-btn span {
    font-size: 0.64rem;
  }

  /* Tira de la semana */
  .week-days {
    gap: 4px;
  }
  .day-stamp {
    padding: 5px 1px;
  }
  .day-stamp .d-letter {
    font-size: 0.72rem;
  }
  .day-stamp .d-num {
    font-size: 0.58rem;
  }
  .week-range-btn {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  .week-range-title {
    font-size: 0.7rem;
  }

  /* Presupuesto */
  .big-price-counter #budget-value {
    font-size: 2.4rem;
  }
  .euro-sign {
    font-size: 1.4rem;
  }
  input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px; /* Táctil grande para dedos */
  }

  /* Pie del buscador: filtros táctiles con scroll horizontal suave */
  .boarding-footer {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .vibe-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
    scrollbar-width: none;
  }
  .vibe-buttons::-webkit-scrollbar {
    display: none;
  }
  .vibe-tag {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .btn-lever {
    width: 100%;
    text-align: center;
    padding: 13px;
    font-size: 1.1rem;
    box-sizing: border-box;
  }

  /* Cuadrícula de tarjetas sin desbordes laterales */
  .manifest-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .manifest-controls {
    width: 100%;
  }
  .paper-select-sm {
    width: 100%;
    box-sizing: border-box;
  }
  .tickets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Tarjeta de billete */
  .card-photo-box {
    height: 160px;
  }
  .city-name {
    font-size: 1.25rem;
  }
  .price-stamp-big strong {
    font-size: 1.35rem;
  }
  .card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .card-actions .btn-tear-ticket,
  .card-actions .btn-ghost {
    padding: 10px 4px;
    font-size: 0.8rem;
  }

  /* Tarjeta ganadora del shuffle */
  .winner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }
  .winner-card h3 {
    font-size: 1.35rem;
  }
  .winner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .winner-actions a,
  .winner-actions button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Modal de información legal */
  .receipt-modal {
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Banners publicitarios en móvil */
  .ad-slot {
    margin: 18px auto;
  }
  .ad-box {
    min-height: 60px;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .combos-grid {
    grid-template-columns: 1fr;
  }
  .pax-grid {
    gap: 4px;
  }
  .pax-card small {
    display: none;
  }
}
