/* ================= ESTILOS PARA MODAL DE FIRMA ================= */

/* Estilos base del modal de firma */
.firma-modal.menu-modal {
  display: none;
  z-index: 3000;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  overflow-y: auto;
}

.firma-modal.menu-modal.active {
  display: flex;
}

.firma-modal-content.menu-modal-content {
  background: #d58b8b; /* Color rosa para este modal */
  width: 76vw;
  max-width: 1035px;
  min-width: 320px;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Stara', sans-serif;
  color: #fff;
  /* Asegurar que el contenido del modal no sea más alto que la ventana */
  max-height: 90vh;
  overflow-y: auto;
}

.firma-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 30px 18px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: transparent;
}

.firma-modal .modal-titles {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 333px;
}

.firma-modal .modal-title-about,
.firma-modal .modal-title-beyond,
.firma-modal .modal-title-35 {
  text-transform: uppercase;
  font-family: 'Stara', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  font-style: normal;
  letter-spacing: 0.12em;
  margin: 0 18px;
}

.firma-modal .modal-close {
  position: absolute;
  right: 32px;
  top: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 0;
  margin: 0;
  color: #fff;
}

.firma-modal .modal-body {
  padding: 48px 60px 36px 60px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.firma-main-title {
  color: #fff;
  font-family: 'Stara', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  margin-top: 18px;
  text-align: left;
}

.firma-main-paragraph {
  color: #fff;
  font-family: 'Stara', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 480px;
  text-align: left;
  line-height: 1.3;
}

.firma-secondary-paragraph {
  color: #fff;
  font-family: 'Stara', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 480px;
  text-align: left;
  line-height: 1.3;
}

.firma-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.firma-form label {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.firma-success-message {
  display: none;
  color: #fff;
  background-color: rgba(255,255,255,0.2);
  padding: 15px;
  margin-top: 20px;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.4);
}

.firma-counter {
  margin-top: 30px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
}

.counter-number {
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .firma-modal-content.menu-modal-content {
    width: 85vw;
    max-width: 650px;
  }
  
  .firma-modal .modal-body {
    padding: 36px 40px 30px 40px;
  }
}

@media (max-width: 992px) {
  .firma-modal-content.menu-modal-content {
    width: 90vw;
    max-width: 90vw;
  }
  
  .firma-modal .modal-header {
    padding: 20px 15px 15px 15px;
  }
  
  .firma-modal .modal-titles {
    gap: 60px;
  }
  
  .firma-modal .modal-title-about,
  .firma-modal .modal-title-beyond,
  .firma-modal .modal-title-35 {
    font-size: 16px;
    margin: 0 10px;
  }
  
  .firma-modal .modal-body {
    padding: 30px 25px 25px 25px;
  }
}

@media (max-width: 576px) {
  .firma-modal-content.menu-modal-content {
    width: 95vw;
    min-width: 0;
    max-width: 95vw;
  }
  
  .firma-modal .modal-header {
    padding: 15px 10px 10px 10px;
  }
  
  .firma-modal .modal-titles {
    gap: 20px;
  }
  
  .firma-modal .modal-title-about,
  .firma-modal .modal-title-beyond,
  .firma-modal .modal-title-35 {
    font-size: 14px;
    margin: 0 5px;
  }
  
  .firma-modal .modal-close {
    right: 15px;
    top: 15px;
  }
  
  .firma-modal .modal-body {
    padding: 20px 15px 15px 15px;
  }
  
  .firma-main-title {
    font-size: 1rem;
  }
  
  .firma-main-paragraph,
  .firma-secondary-paragraph {
    font-size: 0.9rem;
  }
  
  .firma-form label {
    font-size: 0.95rem;
  }
  
  .firma-form {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .firma-modal .modal-titles {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
  
  .firma-modal .modal-title-about,
  .firma-modal .modal-title-beyond,
  .firma-modal .modal-title-35 {
    margin: 0;
    font-size: 13px;
  }
}

/* Evitar scrollbars dobles cuando el modal está abierto */
body.modal-open {
  overflow: hidden !important;
}

/* Estilos para los campos del formulario firma */
.firma-form .gallery-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
}

.firma-form .gallery-form-field label {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.firma-form .gallery-form-field input {
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff !important;
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Stara', sans-serif;
  padding: 14px 8px 10px 0;
  margin-bottom: 8px;
  outline: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Estilo para los placeholders */
.firma-form .gallery-form-field input::placeholder {
  color: #fff;
  opacity: 0.7;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* Estilo para el foco */
.firma-form .gallery-form-field input:focus {
  border-bottom-color: #fff !important;
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 1px 0 0 #fff;
}

/* Cross-browser placeholder styles */
.firma-form .gallery-form-field input::-webkit-input-placeholder {
  color: #fff;
  opacity: 0.7;
}
.firma-form .gallery-form-field input::-moz-placeholder {
  color: #fff;
  opacity: 0.7;
}
.firma-form .gallery-form-field input:-ms-input-placeholder {
  color: #fff;
  opacity: 0.7;
}
.firma-form .gallery-form-field input:-moz-placeholder {
  color: #fff;
  opacity: 0.7;
}

/* Botón de envío */
.firma-send-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  font-family: 'Stara', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 0;
  border-radius: 0;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  width: 100%;
  display: block;
}

.firma-send-btn:hover,
.firma-send-btn:focus {
  background: #fff;
  color: #d58b8b; /* Color rosa que coincide con el fondo */
}