/* ==========================================================================
   BOGGY MEDIA — Cotizador en Línea v2
   ========================================================================== */

/* ---------- Hero ---------- */
#cotizador-hero {
  background: #0a0a0a;
  text-align: center;
  padding: 4rem 0 3rem;
}

#cotizador-hero h2 {
  font-weight: 800;
  color: #fff;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

#cotizador-hero h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #f6ee54;
  margin: 1rem auto 0;
}

#cotizador-hero .lead {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#cotizador-hero .disclaimer {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* ---------- Service Cards ---------- */
#cotizador-services {
  background: #111;
  padding: 3rem 0;
}

.cotizador-card {
  background: #1a1a1a;
  border: 2px solid #222;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  user-select: none;
}

.cotizador-card:hover {
  border-color: #333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cotizador-card.selected {
  border-color: #f6ee54;
  box-shadow: 0 0 0 3px rgba(246, 238, 84, 0.15), 0 8px 30px rgba(0, 0, 0, 0.3);
  cursor: default;
}

/* Card header row: icon | info | price */
.card-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cotizador-card .card-icon {
  font-size: 1.8rem;
  color: #f6ee54;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-info h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.card-desc {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.card-base-price {
  text-align: right;
  flex-shrink: 0;
}

.price-desde {
  display: block;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-price {
  color: #f6ee54;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Options Panel (inside card, rendered by JS) ---------- */
.card-options-container {
  display: none;
}

.service-options {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #333;
}

.option-group {
  margin-bottom: 1rem;
}

.option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.5rem;
}

/* Radio options */
.option-choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.option-radio,
.option-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease;
  margin-bottom: 0;
}

.option-radio:hover,
.option-check:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Hide native inputs */
.option-radio input,
.option-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Custom radio mark */
.option-radio-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #555;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.option-radio input:checked ~ .option-radio-mark {
  border-color: #f6ee54;
}

.option-radio input:checked ~ .option-radio-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6ee54;
}

/* Custom checkbox mark */
.option-check-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #555;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.option-check input:checked ~ .option-check-mark {
  border-color: #f6ee54;
  background: #f6ee54;
}

.option-check input:checked ~ .option-check-mark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 6px;
  height: 10px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Option text and price */
.option-text {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.3;
}

.option-price {
  color: #f6ee54;
  font-weight: 600;
  font-size: 0.85rem;
}

.option-included {
  color: #5a9e5a;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Service subtotal inside card */
.option-service-total {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #333;
  text-align: right;
  color: #aaa;
  font-size: 0.9rem;
}

.service-total-amount {
  color: #f6ee54;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Summary Panel ---------- */
#cotizador-summary {
  background: #0a0a0a;
  padding: 3rem 0;
  border-top: 1px solid #222;
}

.summary-panel {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.summary-items {
  color: #888;
  font-size: 0.95rem;
}

.summary-numbers {
  color: #aaa;
  font-size: 0.95rem;
  text-align: right;
}

.summary-numbers > div {
  margin-bottom: 0.3rem;
}

.summary-total {
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.summary-total span {
  color: #f6ee54;
}

#btn-request-quote {
  padding: 1rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  font-size: 0.95rem;
  background: #f6ee54;
  color: #111;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#btn-request-quote:hover:not(:disabled) {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#btn-request-quote:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #666;
  color: #333;
}

/* ---------- Quote Modal ---------- */
#quoteModal .modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  color: #ccc;
}

#quoteModal .modal-header {
  border-bottom-color: #333;
}

#quoteModal .modal-header .close {
  color: #fff;
  text-shadow: none;
  opacity: 0.6;
}

#quoteModal .modal-title {
  color: #fff;
  font-weight: 700;
}

#quoteModal .modal-body label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
}

#quoteModal .form-control {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #111;
  color: #eee;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#quoteModal .form-control:focus {
  border-color: #f6ee54;
  box-shadow: 0 0 0 3px rgba(246, 238, 84, 0.15);
  background: #111;
  color: #fff;
}

#quoteModal .form-control::placeholder {
  color: #555;
}

#quoteModal .modal-footer {
  border-top-color: #333;
}

.quote-summary-preview {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #aaa;
  white-space: pre-line;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  font-family: monospace;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  #cotizador-hero {
    padding: 3rem 1rem 2rem;
  }

  #cotizador-hero h2 {
    font-size: 2rem;
  }

  #cotizador-services {
    padding: 2rem 0;
  }

  .card-header-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .card-base-price {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: calc(50px + 1rem);
  }

  .price-desde {
    display: inline;
  }

  .summary-row {
    flex-direction: column;
    text-align: center;
  }

  .summary-numbers {
    text-align: center;
  }

  #btn-request-quote {
    width: 100%;
  }
}
