/* ── Cotizador tucasafinca ── */
.cotizador-wrap {
  font-family: inherit;
  max-width: 560px;
  margin: 0 auto;
}

/* Form */
.cotizador-form {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px 24px;
}

.cotizador-form h3 {
  margin: 0 0 20px;
  font-size: 1.15rem;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cotizador-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cotizador-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cotizador-field label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cotizador-field input {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}

.cotizador-field input:focus {
  outline: none;
  border-color: #0f766e;
}

.cotizador-personas {
  grid-column: span 2;
}

.cotizador-btn-calcular {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cotizador-btn-calcular:hover { background: #0d9488; }
.cotizador-btn-calcular:disabled { opacity: .6; cursor: not-allowed; }

/* Result */
.cotizador-result {
  margin-top: 20px;
  background: #fff;
  border: 1.5px solid #0f766e;
  border-radius: 12px;
  overflow: hidden;
  display: none;
}

.cotizador-result.visible { display: block; }

.cotizador-result-header {
  background: #0f766e;
  color: #fff;
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 700;
}

.cotizador-result-body {
  padding: 18px 20px;
}

.cotizador-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: .92rem;
  color: #374151;
}

.cotizador-line:last-child { border-bottom: none; }
.cotizador-line .val { font-weight: 600; }
.cotizador-line.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f766e;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px solid #0f766e;
  border-bottom: none;
}

.cotizador-deposito-note {
  font-size: .78rem;
  color: #6b7280;
  margin-top: 6px;
}

.cotizador-detalle {
  margin-top: 12px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 14px;
}

.cotizador-detalle summary {
  font-size: .82rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.cotizador-detalle ul {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  font-size: .8rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Warning */
.cotizador-warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  margin-top: 12px;
}

/* WhatsApp button */
.cotizador-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}

.cotizador-btn-wa:hover { background: #1ebe5d; color: #fff; }
.cotizador-btn-wa svg { flex-shrink: 0; }

/* Error */
.cotizador-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .9rem;
  margin-top: 16px;
  display: none;
}

.cotizador-error.visible { display: block; }

/* Spinner */
.cotizador-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cot-spin .7s linear infinite;
  display: none;
}

.cotizador-btn-calcular.loading .cotizador-spinner { display: block; }
.cotizador-btn-calcular.loading .cotizador-btn-text { display: none; }

@keyframes cot-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .cotizador-wrap {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    clear: both;
  }
}

@media (max-width: 480px) {
  .cotizador-row { grid-template-columns: 1fr; }
  .cotizador-personas { grid-column: span 1; }
}
