/* ============================================================ */
/* CONTACT MODAL — Iframe del formulario de contacto            */
/* ProSilicones64 - Carga la página de contacto existente       */
/* ============================================================ */

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(100, 116, 139, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  height: 85vh;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.active .contact-modal {
  transform: translateY(0);
}

.contact-modal__header {
  background: #fafbfc;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.contact-modal__title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.contact-modal__close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.contact-modal__close:hover {
  background: #f1f5f9;
  color: #475569;
}

.contact-modal__close svg {
  width: 20px;
  height: 20px;
}

.contact-modal__body {
  flex: 1;
  overflow: hidden;
}

.contact-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 860px) {
  .contact-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .contact-modal {
    max-width: 100%;
    height: 92vh;
    max-height: none;
    border-radius: 16px 16px 0 0;
  }
}
