
/* =========================
MODAL DE CONTACTO - PREMIUM
========================= */

.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Asegurar que está por encima */
  display: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex; /* Cambiar a flex para mejor control */
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Fondo con blur elegante */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.7); /* 70% opacity, no 85% */
  backdrop-filter: blur(5px); /* Reducir blur para más transparencia */
  -webkit-backdrop-filter: blur(5px);
  z-index: 1; /* Debajo del contenido */
}

/* Contenedor principal */
.modal-container {
  position: relative; /* Cambiar a relative para flexbox */
  transform: translateY(30px) scale(0.95); /* Cambiar transform */
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: linear-gradient(135deg, #faf8f6 0%, #f5f2ee 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2; /* POR ENCIMA del backdrop */
}

.contact-modal.active .modal-container {
   transform: translateY(0) scale(1);
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 20, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10; /* Alto para estar por encima de todo */
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: white;
  border-color: rgba(20, 20, 20, 0.2);
  transform: rotate(90deg);
}

.modal-close svg {
  color: rgba(20, 20, 20, 0.7);
}

/* Contenido */
.modal-content {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

/* Header */
.modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
  margin-bottom: 15px;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: rgba(20, 20, 20, 0.9);
  margin-bottom: 10px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(20, 20, 20, 0.6);
  font-family: sans-serif;
}

/* Formulario */
.contact-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
  margin-bottom: 8px;
  font-family: sans-serif;
  font-weight: 500;
}

/* Inputs */
.form-input-wrapper, .form-textarea-wrapper {
  position: relative;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: rgba(20, 20, 20, 0.9);
  font-family: sans-serif;
  outline: none;
  resize: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(20, 20, 20, 0.4);
  font-style: italic;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(20, 20, 20, 0.2);
  transition: all 0.3s ease;
}

.form-input:focus + .form-line,
.form-textarea:focus + .form-line {
  height: 2px;
  background: #b8860b;
}

/* Select personalizado */
.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 12px 40px 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.2);
  font-size: 1rem;
  color: rgba(20, 20, 20, 0.9);
  font-family: sans-serif;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  border-bottom-color: #b8860b;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(20, 20, 20, 0.5);
}

/* Checkbox personalizado */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #b8860b;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(20, 20, 20, 0.7);
  cursor: pointer;
}

/* Botón enviar */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #b8860b, #daa520);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
  gap: 15px;
}

.form-submit:hover .submit-arrow {
  transform: translateX(3px);
}

.submit-arrow {
  transition: transform 0.3s ease;
}

/* Contacto alternativo */
.contact-alternative {
  text-align: center;
}

.alternative-divider {
  position: relative;
  margin: 30px 0;
}

.alternative-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(20, 20, 20, 0.1);
}

.alternative-divider span {
  position: relative;
  background: #faf8f6;
  padding: 0 15px;
  font-size: 0.85rem;
  color: rgba(20, 20, 20, 0.5);
}

.alternative-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.alternative-email a {
  font-size: 0.9rem;
  color: rgba(20, 20, 20, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.alternative-email:hover a {
  color: #b8860b;
}

/* Footer del modal */
.modal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.modal-note {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.5);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    border-radius: 15px;
  }
  
  .modal-content {
    padding: 30px 25px;
  }
  
  .modal-title {
    font-size: 1.6rem;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}