/* ============================================================
   Reserva de reuniones — modoavion
   Reutiliza los tokens y componentes de css/site.css
   ============================================================ */

:root {
  --meeting-soft: rgba(255, 255, 255, 0.025);
  --meeting-field: rgba(255, 255, 255, 0.04);
  --meeting-field-focus: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] {
  --meeting-soft: rgba(15, 17, 20, 0.025);
  --meeting-field: rgba(15, 17, 20, 0.03);
  --meeting-field-focus: rgba(15, 17, 20, 0.05);
}

[hidden] { display: none !important; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-plane {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}

.brand-word {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-dot { color: var(--orange); }

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.foot-brand .brand-plane { width: 16px; height: 16px; }

.foot-brand .brand-word {
  font-size: 0.85rem;
  color: var(--muted);
}

.meeting-main {
  padding-top: 108px;
  padding-bottom: 80px;
  min-height: 70vh;
}

.meeting-main.is-flow {
  padding-top: 92px;
}

.meeting-main.is-flow .meeting-hero {
  display: none;
}

.meeting-main .btn {
  font-family: var(--body);
  appearance: none;
}

.meeting-main .btn-line {
  background: transparent;
}

.meeting-main .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.nav-back {
  margin-left: auto;
  margin-right: 4px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-back:hover { color: var(--orange); border-color: rgba(255, 122, 26, 0.5); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- HERO ---------- */
.meeting-hero {
  position: relative;
  padding-top: 38px;
  padding-bottom: 38px;
}

.meeting-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 4%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.12), transparent 64%);
  pointer-events: none;
}

.meeting-hero .eyebrow { margin-bottom: 16px; }

.meeting-hero h1 {
  position: relative;
  font-family: var(--sans);
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 16ch;
}

.meeting-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0;
}

.meeting-hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 54ch;
  margin-top: 16px;
}

/* ---------- LAYOUT ---------- */
.meeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.meeting-grid.is-done { grid-template-columns: 1fr; }

.meeting-panel {
  min-width: 0;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 96px;
}

html[data-theme="light"] .meeting-panel {
  box-shadow: 0 20px 50px rgba(20, 22, 26, 0.08);
}

/* ---------- PASOS ---------- */
.meeting-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.meeting-steps li {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meeting-steps li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.meeting-steps li span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}

.meeting-steps li.is-active,
.meeting-steps li.is-done { color: var(--ink); }

.meeting-steps li.is-active span,
.meeting-steps li.is-done span {
  border-color: var(--orange);
  color: var(--orange);
}

.meeting-steps li.is-active::after,
.meeting-steps li.is-done::after { background: var(--orange); }

.step-title {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step-title:focus { outline: none; }

.step-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* ---------- TIPOS ---------- */
.type-grid {
  display: grid;
  gap: 10px;
}

.type-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--meeting-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.type-card:hover {
  border-color: rgba(255, 122, 26, 0.4);
  transform: translateY(-1px);
}

.type-card.is-selected {
  border-color: rgba(255, 122, 26, 0.65);
  background: linear-gradient(100deg, rgba(255, 122, 26, 0.1), transparent 65%);
}

.type-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.type-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange);
}

.type-icon svg { width: 20px; height: 20px; display: block; }

.type-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 22px;
}

.type-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.type-top strong {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.type-meta {
  font-size: 0.72rem;
  color: var(--orange-soft);
}

.type-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.type-check {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.type-card.is-selected .type-check { opacity: 1; }

/* ---------- DÍAS Y HORAS ---------- */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.day-btn {
  flex: none;
  min-width: 86px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--meeting-soft);
  color: var(--ink);
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.day-btn strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.day-btn span {
  display: block;
  margin-top: 2px;
  font-size: 0.67rem;
  color: var(--faint);
}

.day-btn:hover { border-color: rgba(255, 122, 26, 0.45); }

.day-btn.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #0b0c0e;
}

.day-btn.is-active span { color: rgba(11, 12, 14, 0.68); }

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.slot-btn {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--meeting-soft);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.slot-btn:hover { border-color: rgba(255, 122, 26, 0.5); color: var(--orange-soft); }

.slot-btn.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #0b0c0e;
}

.slot-msg {
  min-height: 1.2em;
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.slot-msg a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ACCIONES DE PASO ---------- */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.step-actions > span:empty { display: block; }

.step-actions .btn { justify-content: center; }

/* ---------- FORMULARIO ---------- */
.meeting-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--meeting-field);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea { resize: vertical; min-height: 90px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--meeting-field-focus);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--orange);
}

.consent a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  min-height: 1.2em;
  margin: 0;
  color: #ff8a80;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-msg.ok { color: #7ee0a3; }

/* ---------- RESUMEN ---------- */
.meeting-summary {
  position: sticky;
  top: 100px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.summary-kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 12px;
}

.summary-ticket {
  padding: 15px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.summary-row span { color: var(--faint); }

.summary-row strong {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

.summary-note {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.summary-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-soft);
  font-size: 0.77rem;
  font-weight: 600;
}

.summary-wa:hover { color: var(--orange); }

/* ---------- CONFIRMACIÓN ---------- */
.boarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
}

.boarding-main { padding: 30px; min-width: 0; }
.boarding-main .eyebrow { margin-bottom: 10px; }

.boarding h2 {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 18px;
}

.boarding h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

.boarding-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.boarding-rows div { display: flex; flex-direction: column; gap: 2px; }

.boarding-rows span {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.boarding-rows strong {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.boarding-place {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.boarding-place a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

.boarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boarding-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px 18px;
  background: #101215;
  color: #f4f2ed;
  border-left: 1px dashed rgba(255, 255, 255, 0.22);
  text-align: center;
}

.boarding-stub::before,
.boarding-stub::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
}

.boarding-stub::before { top: -7px; }
.boarding-stub::after { bottom: -7px; }

.boarding-plane {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 18px rgba(255, 122, 26, 0.28));
}

.stub-brand {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.55);
}

.boarding-stub strong {
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#done-stub-date {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.stub-code {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(244, 242, 237, 0.35);
}

.boarding.is-cancelled { opacity: 0.6; }

.done-hint {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---------- PIE ---------- */
.meeting-foot {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 34px;
}

.meeting-foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.75rem;
}

.foot-brand img { height: 24px; width: auto; display: block; }
.meeting-foot a { color: var(--faint); }
.meeting-foot a:hover { color: var(--orange-soft); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .meeting-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .meeting-summary {
    position: static;
    order: 2;
  }

  .meeting-panel { order: 1; }

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

  .boarding-stub {
    flex-direction: row;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
    padding: 16px 22px;
  }

  .boarding-stub::before,
  .boarding-stub::after { display: none; }

  .boarding-plane { margin: 0; width: 28px; height: 28px; }
  .stub-code { margin-top: 0; }
}

@media (max-width: 600px) {
  .nav-in { padding: 12px 16px; gap: 10px; }
  .brand img { height: 24px; }

  .nav-back {
    margin-right: 0;
    padding: 7px 10px;
    font-size: 0;
    line-height: 1;
  }

  .nav-back::before { content: "←"; font-size: 15px; }
  .nav-actions .theme-toggle { width: 34px; height: 34px; }
  .nav-actions .theme-toggle svg { width: 15px; height: 15px; }

  .meeting-panel { scroll-margin-top: 74px; }
  .meeting-main.is-flow { padding-top: 76px; }
  .stub-code { display: none; }

  .meeting-main { padding-top: 92px; padding-bottom: 50px; }
  .meeting-hero { padding-top: 24px; padding-bottom: 26px; }
  .meeting-hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .meeting-hero .lede { font-size: 0.95rem; }
  .meeting-panel { padding: 22px 18px; border-radius: 22px; }
  .meeting-steps li { font-size: 10.5px; gap: 6px; }
  .meeting-steps li span { width: 23px; height: 23px; }
  .type-card { padding: 15px; gap: 12px; }
  .type-icon { width: 38px; height: 38px; }
  .type-copy { padding-right: 16px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meeting-form { grid-template-columns: 1fr; }
  .step-actions { flex-direction: column-reverse; align-items: stretch; }
  .step-actions > span:empty { display: none; }
  .step-actions .btn { width: 100%; }
  .boarding-main { padding: 22px 18px; }
  .boarding-rows { gap: 8px; }
  .boarding-rows strong { font-size: 0.82rem; }
  .boarding-actions { flex-direction: column; align-items: stretch; }
  .boarding-actions .btn { width: 100%; }
  .boarding-stub { padding: 14px 18px; }
  .boarding-stub strong { font-size: 1.25rem; }
  .meeting-foot-in { flex-direction: column; align-items: flex-start; }
}
