/* ============================================================
   Modal de cotizacion — copiado y adaptado de cronostec-chile-ok
   (servicios-quote-modal.css + contacto-modelo-brasil.css, bajo
   #cotizar), con la paleta Titan y reutilizando la estructura del
   formulario real de contactenos.php. Prefijo propio .titan-qm-*.
   ============================================================ */
.titan-qm-overlay {
  position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(2,31,92,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.titan-qm-overlay.is-open { opacity: 1; pointer-events: auto; }

.titan-qm-box {
  position: relative; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  background: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 60px rgba(2,31,92,.35);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.22,1,.36,1);
  padding: 2.25rem 1.75rem;
}
.titan-qm-overlay.is-open .titan-qm-box { transform: none; }

.titan-qm-close {
  position: absolute; right: 1rem; top: 1rem; z-index: 1; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(4,52,156,.08); border: none; color: #04349C;
  font-size: .95rem; cursor: pointer; transition: background .2s, color .2s;
}
.titan-qm-close:hover { background: #4177E6; color: #FFFFFF; }

.titan-qm-tag { display: block; font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4177E6; margin-bottom: .5rem; }
.titan-qm-title { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #04349C; line-height: 1.2; margin: 0 0 1.5rem; }

.titan-qm-form { display: flex; flex-direction: column; gap: 16px; }
.titan-qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .titan-qm-row { grid-template-columns: 1fr; } }
.titan-qm-group { display: flex; flex-direction: column; gap: 6px; }
.titan-qm-group label { font-size: 13px; font-weight: 600; color: #1F2937; }
.titan-qm-group .req { color: #E11D48; }
.titan-qm-group .opt { font-weight: 400; color: #6B7280; }
.titan-qm-group input,
.titan-qm-group select,
.titan-qm-group textarea {
  padding: 11px 14px; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: 14px;
  font-family: 'Roboto', Arial, sans-serif; color: #1F2937; transition: border-color .2s;
}
.titan-qm-group input:focus,
.titan-qm-group select:focus,
.titan-qm-group textarea:focus { outline: none; border-color: #4177E6; }
.titan-qm-group textarea { resize: vertical; min-height: 90px; }

.titan-qm-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
  padding: 13px; background: #4177E6; color: #FFFFFF; border: none; border-radius: 999px; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.titan-qm-submit:hover { background: #04349C; transform: translateY(-1px); }
.titan-qm-msg { margin-top: 10px; font-size: 13px; color: #04349C; text-align: center; }

@media (max-width: 640px) {
  .titan-qm-box { padding: 1.75rem 1.25rem; }
  .titan-qm-title { font-size: 1.2rem; }
}
