/* ================================================================
   PAQUETES — Interfaz unificada de tarifas y cotizador
   ================================================================ */

/* ── Controles fijos (fecha + personas) ─────────────────────────── */
/* ── Título sección ─────────────────────────────────────────────── */
.pq-section-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #892b28;
  border-left: 3px solid #892b28;
  padding: 2px 0 2px 10px;
  margin: 0 0 12px;
}

.pq-unified { margin-top: 16px; }

.pq-sticky-controls {
  background: #fff;
  border: 1px solid #f0dada;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(137,43,40,.08);
  position: sticky; top: 60px; z-index: 10;
}

.pq-controls-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
}
.pq-control-group  { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 110px; }
.pq-ctrl-label     {
  font-size: 0.68rem; color: #892b28; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.pq-ctrl-input     { width: 100%; }
.pq-aviso-inline   {
  font-size: 0.75rem; margin-top: 8px; padding: 6px 10px; border-radius: 5px;
  background: #fff3cd; color: #856404; border: 1px solid #ffc107;
}
.pq-hint-text {
  text-align: center; font-size: 0.78rem; color: #bbb;
  padding: 14px 0 8px; letter-spacing: .02em;
}

/* ── Select de personas ─────────────────────────────────────────── */
#pq-pax-select { cursor: pointer; }

/* ── Sección de temporada ───────────────────────────────────────── */
.pq-temp-section {
  margin-bottom: 4px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0dada;
  transition: opacity .2s;
}

.pq-temp-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #892b28, #b55049);
  color: #fff;
}
.pq-temp-nombre { font-weight: 700; font-size: 0.88rem; flex: 1; }
.pq-temp-rango  { font-size: 0.72rem; opacity: .82; white-space: nowrap; }
.pq-temp-badge-estado {
  font-size: 0.7rem; font-weight: 600; padding: 2px 9px;
  border-radius: 10px; background: rgba(255,255,255,.2); white-space: nowrap;
}

/* Temporada bloqueada por fecha */
.pq-temp-section.temp-bloqueada { opacity: .45; pointer-events: none; }
.pq-temp-section.temp-bloqueada .pq-temp-head {
  background: #888 !important;
}

/* ── Tabla seleccionable ────────────────────────────────────────── */
.pq-tabla-wrap  { overflow-x: auto; }
.pq-tabla-sel   { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; }

.pq-tabla-sel thead th {
  padding: 8px 12px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  background: #fafafa; border-bottom: 2px solid #f0dada;
  text-align: center; white-space: nowrap; color: #888;
}
.pq-tabla-sel thead th.th-hab { text-align: left; min-width: 140px; color: #555; }

/* Columna activa (pax seleccionado) */
.pq-tabla-sel thead th.pq-col-active { background: #fdf0ee; color: #892b28; }

/* Filas clicables */
.pq-precio-row {
  border-bottom: 1px solid #f8f0f0;
  cursor: pointer;
  transition: background .1s;
}
.pq-precio-row:last-child { border-bottom: none; }
.pq-precio-row:hover { background: #fdf6f6; }
.pq-precio-row td { padding: 11px 12px; vertical-align: middle; }

/* Indicator de selección */
.pq-sel-indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #e0d0d0; color: transparent; font-size: .65rem;
  margin-right: 8px; flex-shrink: 0; transition: all .15s;
  vertical-align: middle;
}
.pq-hab-icon { vertical-align: middle; margin-right: 4px; }

/* Fila seleccionada */
.pq-precio-row.pq-row-selected {
  background: #fff8f7 !important;
}
.pq-precio-row.pq-row-selected .pq-sel-indicator {
  border-color: #892b28; background: #892b28; color: #fff;
}
.pq-precio-row.pq-row-selected td { color: #892b28; }

/* Estado init (antes de seleccionar fecha+pax) */
.pq-precio-row.pq-card-init { opacity: .55; cursor: default; }
.pq-precio-row.pq-card-init:hover { background: transparent; }

/* Fila deshabilitada */
.pq-precio-row.pq-card-disabled {
  opacity: .35; cursor: not-allowed; background: #f9f9f9 !important;
}
.pq-card-why {
  font-size: 0.62rem; color: #c62828; margin-left: 4px;
}

/* Precios en celdas */
.td-price       { text-align: center; }
.pq-price-clp   { font-weight: 700; color: #892b28; font-size: 0.88rem; display: block; }
.pq-price-usd   { font-size: 0.65rem; color: #aaa; display: block; margin-top: 1px; }
.td-zero .pq-price-clp { color: #e0d8d8; font-weight: 400; }

/* Columna destacada al seleccionar pax */
.pq-col-pax.pq-col-active { background: #fff5f4; }
.pq-tabla-sel thead th.pq-col-active { background: #fdf0ee; color: #892b28; }

/* ── Barra de resultado ─────────────────────────────────────────── */
.pq-resultado-bar {
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fdf0ee, #fff8f7);
  border: 1.5px solid #f1948a; border-radius: 10px;
  padding: 14px 18px; margin-top: 14px;
  animation: pqFadeIn .22s ease;
}
.pq-resultado-bar.visible { display: flex; }
.pq-resultado-bar-left    { flex: 1; min-width: 0; }

@keyframes pqFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.pq-res-precio-clp { font-size: 1.8rem; font-weight: 800; color: #892b28; line-height: 1; }
.pq-res-precio-usd { font-size: 0.9rem; color: #555; font-weight: 600; margin-top: 2px; }
.pq-res-detalle    { font-size: 0.78rem; color: #888; margin-top: 4px; }

/* Botón cotizar */
.pq-btn-cotizar {
  width: 100%; margin-top: 12px; padding: 11px;
  background: linear-gradient(135deg, #892b28, #b55049);
  color: #fff; border: none; border-radius: 8px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s; font-family: inherit;
  box-shadow: 0 3px 12px rgba(137,43,40,.28);
}
.pq-btn-cotizar:hover    { opacity: .9; transform: translateY(-1px); }
.pq-btn-cotizar:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.pq-btn-inline {
  width: auto !important; margin: 0 !important;
  padding: 10px 22px !important; font-size: 0.88rem !important;
  white-space: nowrap; flex-shrink: 0;
}

/* Flatpickr input */
.pq-cot-select {
  padding: 8px 10px; border: 1.5px solid #e0d0d0;
  border-radius: 6px; font-size: 0.88rem; background: #fff;
  font-family: inherit; transition: border-color .15s; width: 100%;
}
.pq-cot-select:focus { border-color: #892b28; outline: none; }

/* ── Inputs de pasajeros — sin flechas spin ─────────────────────── */
.pq-pax-input { -moz-appearance: textfield; }
.pq-pax-input::-webkit-outer-spin-button,
.pq-pax-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Botón submit del form */
.pq-btn-submit {
  width: 100%; padding: .9rem 2rem;
  background: linear-gradient(135deg, #892b28, #b55049);
  color: #fff; border: none; border-radius: .5rem;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: opacity .15s; font-family: inherit;
  box-shadow: 0 3px 12px rgba(137,43,40,.25);
}
.pq-btn-submit:hover { opacity: .88; }

/* ── Responsive mobile ──────────────────────────────────────────── */
@media (max-width: 576px) {
  .pq-sticky-controls { position: static; padding: 12px; }
  .pq-controls-row    { gap: 8px; }
  .pq-control-group   { min-width: 100px; }
  .pq-temp-rango      { display: none; }
  .pq-tabla-sel thead th,
  .pq-precio-row td   { padding: 9px 8px; }
  .pq-resultado-bar   { flex-direction: column; align-items: stretch; }
  .pq-btn-inline      { width: 100% !important; text-align: center; }
  .pq-res-precio-clp  { font-size: 1.4rem; }
}
