/* ===========================================================================
   cliente.css — Estilos del sitio cliente (cotizador, modal habeas data,
   resultados y reserva). Usa los tokens del design system aprobado
   (styles.css: --color-ocean, --color-sand, etc.).
   =========================================================================== */

/* ---------- Modal Habeas Data ---------- */
.hd-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26, 42, 51, 0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.hd-overlay[hidden] { display: none; }
/* Honeypot anti-bot: fuera de pantalla en vez de display:none para que los
   bots que ignoran elementos ocultos sí lo "vean" y caigan en la trampa. */
.hd-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.hd-modal {
  position: relative; background: #fff; width: 100%; max-width: 460px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  padding: 2rem 1.75rem 1.5rem; max-height: 92vh; overflow-y: auto;
  animation: hd-in 0.25s ease;
}
@keyframes hd-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.hd-close {
  position: absolute; top: 0.75rem; right: 1rem; background: none; border: none;
  font-size: 1.75rem; line-height: 1; color: var(--color-gris); cursor: pointer;
}
.hd-close:hover { color: var(--color-ocean); }
.hd-head { text-align: center; margin-bottom: 1.25rem; }
.hd-head i { font-size: 2.25rem; color: var(--color-sand); }
.hd-head h2 { margin: 0.5rem 0 0.35rem; }
.hd-head p { color: var(--color-gris); font-size: 0.9rem; }
.hd-field { margin-bottom: 0.85rem; }
.hd-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--color-ocean); margin-bottom: 0.3rem; }
.hd-field input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-niebla);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
}
.hd-field input:focus { outline: none; border-color: var(--color-celeste); box-shadow: 0 0 0 3px rgba(102,189,196,0.2); }
.hd-check {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0 0.75rem;
  font-size: 0.78rem; color: var(--color-pizarra); line-height: 1.5;
}
.hd-check input { margin-top: 0.2rem; width: 18px; height: 18px; flex-shrink: 0; }
.hd-check a { color: var(--color-ocean); text-decoration: underline; }
.hd-error { color: var(--color-coral); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; }
.hd-submit { width: 100%; }
.hd-legal { font-size: 0.68rem; color: var(--color-gris); margin-top: 0.85rem; text-align: center; }

/* ---------- Cotizador cliente ---------- */
.cot-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.cot-grid { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 880px) { .cot-grid { grid-template-columns: 1fr; } }

.cot-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.cot-card h2 { margin-bottom: 1rem; }
.cot-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.cot-tab {
  flex: 1; padding: 0.65rem; border: 1px solid var(--color-niebla); background: #fff;
  border-radius: var(--radius-sm); font-family: var(--font-title); font-weight: 700;
  color: var(--color-gris); cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 0.4rem;
}
.cot-tab.active { background: var(--color-ocean); color: #fff; border-color: var(--color-ocean); }
.cot-field { margin-bottom: 0.9rem; }
.cot-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--color-ocean); margin-bottom: 0.3rem; }
.cot-field select, .cot-field input {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--color-niebla);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.92rem; background: #fff;
}
.cot-field select:disabled { background: var(--color-nieve); color: var(--color-gris); }
.cot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ---------- Resultados ---------- */
.cot-result { min-height: 300px; }
.cot-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--color-gris); padding: 3rem 1rem; height: 100%;
}
.cot-empty i { font-size: 3rem; color: var(--color-niebla); margin-bottom: 1rem; }

.precio-hero {
  background: var(--grad-tropical); color: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.precio-hero .destino-nombre { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; }
.precio-hero .tarifa-nombre { opacity: 0.9; font-size: 0.85rem; }
.precio-grande { font-size: 2.25rem; font-weight: 900; font-family: var(--font-title); margin-top: 0.5rem; }
.precio-pp { font-size: 0.9rem; opacity: 0.9; }
.precio-badge { display: inline-block; background: var(--color-sand); color: var(--color-carbon); padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; margin-bottom: 0.5rem; }

.desglose { background: var(--color-nieve); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.desglose-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.9rem; }
.desglose-row.total { border-top: 1px solid var(--color-niebla); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 800; color: var(--color-ocean); }

.incluye-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.incluye-list li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.25rem 0; font-size: 0.9rem; }
.incluye-list li i { color: var(--color-celeste); margin-top: 0.15rem; }

.plan-pago { border: 1px dashed var(--color-sand); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.plan-pago h4 { color: var(--color-sand); margin-bottom: 0.5rem; }

.cot-acciones { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cot-acciones .btn { flex: 1; min-width: 160px; }

.otras-opciones { margin-top: 1.5rem; }
.otras-opciones summary { cursor: pointer; font-weight: 700; color: var(--color-ocean); font-family: var(--font-title); }
.opcion-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border: 1px solid var(--color-niebla); border-radius: var(--radius-sm); margin-top: 0.5rem; }
.opcion-item .op-nombre { font-weight: 600; font-size: 0.9rem; }
.opcion-item .op-precio { font-weight: 800; color: var(--color-ocean); }

.cot-aviso { background: #fff6e6; border-left: 4px solid var(--color-sand); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 1rem; }
.cot-aviso.error { background: #fdecea; border-left-color: var(--color-coral); color: #8a2a24; }

/* ---------- Confirmacion de reserva ---------- */
.reserva-ok { text-align: center; padding: 2rem 1rem; }
.reserva-ok .ok-icon { font-size: 4rem; color: var(--color-celeste); }
.reserva-ok h2 { margin: 0.75rem 0; }
.reserva-ok .codigo { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: var(--color-sand); letter-spacing: 0.05em; }

.cot-loader { text-align: center; padding: 3rem 1rem; color: var(--color-gris); }
.cot-spin { width: 42px; height: 42px; border: 4px solid var(--color-niebla); border-top-color: var(--color-sand); border-radius: 50%; animation: cot-spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes cot-spin { to { transform: rotate(360deg); } }
