/* ══════════════════════════════════════════
   COTIZADOR — panel lateral
   Versión mejorada: más grande y notoria
══════════════════════════════════════════ */

.lp-cotizador {
  margin-top: 6px;
}

.lp-cotizador.hidden {
  display: none !important;
}

.cotizador-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue, #0055a5);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--yellow, #f5c518);
}

.cotizador-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 18px;
  background: var(--yellow, #f5c518);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -3px;
}

.cot-fase-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark, #003d73);
  background: var(--blue-light, #e6f0fa);
  border: 1.5px solid rgba(0, 85, 165, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.cot-fase-badge--especial {
  background: rgba(245, 197, 24, 0.18);
  color: #b8860b;
  border-color: rgba(245, 197, 24, 0.35);
}

/* ══════════════════════════════════════════
   MODO PAGO — TOGGLE
══════════════════════════════════════════ */

.cot-modo-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--blue, #0055a5);
  background: #fff;
}

.cot-modo-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: var(--blue, #0055a5);
}

.cot-modo-btn.active {
  background: var(--blue, #0055a5);
  color: #fff;
}

.cot-modo-btn:not(.active):hover {
  background: rgba(0, 85, 165, 0.08);
}

/* Precios cuotas en fila compacta */
.cot-row-cuotas-precio {
  margin-top: 10px;
}

.cot-divider-sm {
  height: 1px;
  background: rgba(0, 85, 165, 0.12);
  margin: 12px 0;
}

/* Highlight modo activo */
.cot-contado-box.modo-active {
  border-color: var(--blue, #0055a5);
  box-shadow: 0 3px 16px rgba(0, 85, 165, 0.18);
}

.cot-cuotas-section.modo-active .cot-cuotas-title {
  color: var(--blue, #0055a5);
}

/* ══════════════════════════════════════════
   PRECIO AL CONTADO — CARD GRANDE
══════════════════════════════════════════ */

.cot-contado-box {
  background: linear-gradient(145deg, rgba(0, 85, 165, 0.08), rgba(245, 197, 24, 0.10));
  border: 2px solid rgba(0, 85, 165, 0.25);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 6px;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 85, 165, 0.10);
}

.cot-contado-header {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue, #0055a5);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 85, 165, 0.15);
}

.cot-contado-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed rgba(0, 85, 165, 0.12);
}

.cot-contado-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700, #334155);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cot-contado-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue, #0055a5);
  font-family: 'DM Mono', ui-monospace, monospace;
  text-shadow: 0 1px 2px rgba(0, 85, 165, 0.12);
}

/* ══════════════════════════════════════════
   PRECIO POR CUOTAS — sección
══════════════════════════════════════════ */

.cot-divider-lg {
  height: 2px;
  background: linear-gradient(90deg, rgba(0,85,165,0.20), rgba(245,197,24,0.25), rgba(0,85,165,0.20));
  border-radius: 2px;
  margin: 16px 0;
}

.cot-cuotas-section {
  padding: 2px 0;
}

.cot-cuotas-section.hidden {
  display: none !important;
}

.cot-cuotas-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-700, #334155);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow, #f5c518);
}

.cot-inicial-block {
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(0, 85, 165, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(0, 85, 165, 0.10);
}

/* ══════════════════════════════════════════
   ROWS Y VALORES
══════════════════════════════════════════ */

.cot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.cot-row-lg {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 85, 165, 0.10);
}

.cot-row-label {
  color: var(--gray-600, #475569);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cot-row-value {
  font-weight: 700;
  color: var(--gray-900, #0f172a);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 1.05rem;
}

.cot-row-value--blue {
  color: var(--blue, #0055a5);
}

.cot-row-value--accent {
  color: #d97706;
  font-size: 1.15rem;
}

.cot-row-value--highlight {
  font-size: 1.25rem;
  color: var(--blue, #0055a5);
}

/* ══════════════════════════════════════════
   SLIDERS
══════════════════════════════════════════ */

.cot-slider-block {
  margin-top: 14px;
}

.cot-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.cot-slider-head label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600, #475569);
}

.cot-slider-value {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--blue, #0055a5);
  font-family: 'DM Mono', ui-monospace, monospace;
}

.cot-range {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200, #e2e8f0);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.cot-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue, #0055a5);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 85, 165, 0.35);
}

.cot-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue, #0055a5);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 85, 165, 0.35);
}

.cot-range-hint {
  font-size: 0.68rem;
  color: var(--gray-500, #64748b);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   RESULTADO — cuota mensual
══════════════════════════════════════════ */

.cot-result-card {
  margin-top: 16px;
  padding: 16px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0,85,165,0.07), rgba(245,197,24,0.08));
  border: 2px solid rgba(0,85,165,0.20);
}

.cot-result-card .cot-row-label {
  color: var(--gray-600, #475569);
}

.cot-result-card .cot-row-value {
  color: var(--gray-900, #0f172a);
}

.cot-cuota-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid rgba(0, 85, 165, 0.15);
}

.cot-cuota-label {
  font-size: 0.85rem !important;
  color: var(--blue, #0055a5) !important;
}

.cot-cuota-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue, #0055a5);
  font-family: 'DM Mono', ui-monospace, monospace;
  text-shadow: 0 1px 2px rgba(0, 85, 165, 0.12);
}

#cot-content.hidden {
  display: none !important;
}

.cot-unavailable {
  font-size: 0.85rem;
  color: var(--gray-500, #64748b);
  font-style: italic;
  padding: 10px 0;
}

.cot-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cot-wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.cot-wa-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#cot-phase-selector {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Panel scroll — mantiene diagrama visible al desplazarse */
#lp-body {
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#lp-diagram {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lot-panel {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    left: 8px !important;
    top: auto !important;
    bottom: 8px !important;
    max-height: calc(100dvh - 56px);
  }

  #lp-body {
    max-height: calc(100dvh - 140px);
  }

  .cot-admin-grid {
    grid-template-columns: 1fr;
  }

  #wa-float-btn {
    bottom: calc(8px + min(72vh, 520px));
  }

  .cot-contado-value {
    font-size: 1.4rem;
  }

  .cot-cuota-value {
    font-size: 1.35rem;
  }
}

/* ══════════════════════════════════════════
   COTIZADOR — Opciones Admin (visible solo para admin)
═══════════════════════════════════════════ */
.cot-admin-options {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,85,165,0.05);
  border: 1.5px dashed rgba(0,85,165,0.30);
}
.cot-admin-options.hidden {
  display: none !important;
}
.cot-opt-group {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cot-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.cot-opt-label {
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--gray-600, #475569);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cot-opt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--bg-card, #fff);
  border: 1.5px solid rgba(0,85,165,0.20);
  color: var(--text, #0f172a);
  outline: none;
  transition: border-color 0.15s;
}
.cot-opt-input:focus {
  border-color: var(--blue, #0055a5);
}
.cot-opt-save {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  background: var(--blue, #0055a5);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cot-opt-save:hover {
  background: #003d73;
}

/* ══════════════════════════════════════════
   COTIZADOR — tarjeta de estado (Comprado / Bloqueado)
═══════════════════════════════════════════ */
.cot-status-card {
  text-align: center;
  padding: 18px 14px;
  margin: 12px 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0,85,165,0.06), rgba(245,197,24,0.07));
  border: 1.5px solid rgba(0,85,165,0.18);
}

.cot-status-card.hidden {
  display: none !important;
}

.cot-status-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.cot-status-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue, #0055a5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cot-status-desc {
  font-size: 0.85rem;
  color: var(--gray-600, #475569);
  line-height: 1.5;
  margin-bottom: 10px;
}

.cot-status-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow, #f5c518);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  body:not(.dashboard-mode) .lot-panel {
    width: calc(100vw - 24px) !important;
    left: 12px !important;
    right: auto !important;
  }
  
  .cot-opt-group {
    grid-template-columns: 1fr;
  }
}