/* Botón flotante «Contactez-nous» y modal «Formulaire de contact» (#popup-dd56), compartidos por todas las páginas.
   El envío vive en js/emailjs-config.js. */

/* ===== BOTÓN FLOTANTE DE CONTACTO ===== */
.cta-flotante {
  position: fixed;
  right: 20px;
  bottom: 90px; /* encima del botón "volver arriba" */
  z-index: 9999; /* por debajo del popup de Nicepage (100000) */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background-color: #00a2c3;
  color: #ffffff !important;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
  animation: cta-pulso 2.5s ease-in-out 3s 3;
}

.cta-flotante:hover,
.cta-flotante:focus-visible {
  background-color: #018daa;
  transform: translateY(-2px);
}

.cta-flotante:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 3px;
}

@keyframes cta-pulso {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(0, 162, 195, 0.6); }
  50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(0, 162, 195, 0); }
}

/* En móvil: solo el ícono, para no tapar contenido */
@media (max-width: 575px) {
  .cta-flotante {
    right: 16px;
    padding: 16px;
  }
  .cta-flotante-texto {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-flotante {
    animation: none;
    transition: none;
  }
}

/* ===== MODAL "FORMULAIRE DE CONTACT" (#popup-dd56) ===== */
.contacto-modal {
  background-color: rgba(0, 0, 0, 0.6);
}

.contacto-modal .contacto-dialog {
  position: relative;
  width: 880px;
  max-width: calc(100% - 32px);
  margin: 40px auto;
  padding: 0;
  min-height: 0;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: Montserrat, sans-serif;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

/* Panel lateral con foto */
.contacto-aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.75) 100%),
    url("/images/contacto-salento.webp") center / cover no-repeat;
}

.contacto-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffcc00;
}

.contacto-aside-titulo {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.contacto-garantias {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacto-garantias li {
  position: relative;
  margin: 8px 0 0;
  padding-left: 24px;
  font-size: 0.9rem;
}

.contacto-garantias li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  transform: rotate(-45deg);
}

/* Cuerpo del formulario */
.contacto-cuerpo {
  padding: 44px 40px 36px;
}

#popup-dd56 .contacto-titulo {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #00a2c3;
}

.contacto-subtitulo {
  margin: 10px 0 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

.contacto-campo {
  margin-bottom: 16px;
}

.contacto-campo label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
}

.contacto-campo label .contacto-opcional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7280;
}

.contacto-campo input,
.contacto-campo textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: #111111;
  background-color: #f5f7f8;
  border: 1px solid #d9dee1;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contacto-campo textarea {
  resize: vertical;
  min-height: 110px;
}

.contacto-campo input::placeholder,
.contacto-campo textarea::placeholder {
  color: #8a9398;
}

.contacto-campo input:focus,
.contacto-campo textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #00a2c3;
  box-shadow: 0 0 0 3px rgba(0, 162, 195, 0.2);
}

.contacto-enviar {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #00a2c3;
  border: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.contacto-enviar:hover,
.contacto-enviar:focus-visible {
  background-color: #018daa;
}

.contacto-enviar:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

.contacto-enviar:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* id para ganar a los estilos de mensaje de Nicepage (posición absoluta, texto blanco) */
#popup-dd56 .contacto-form .u-form-send-message {
  display: none;
  position: static;
  width: auto;
  height: auto;
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 0.9rem;
  border-radius: 6px;
}

#popup-dd56 .contacto-form .u-form-send-success {
  color: #0b5c46;
  background-color: #e3f6ef;
}

#popup-dd56 .contacto-form .u-form-send-error {
  color: #9d0025;
  background-color: #fbe7eb;
}

.contacto-modal .contacto-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #555555;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contacto-modal .contacto-cerrar:hover {
  color: #ffffff;
  background-color: #00a2c3;
}

/* Móvil: sin foto lateral, una franja de color arriba */
@media (max-width: 767px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .contacto-aside {
    display: none;
  }
  .contacto-cuerpo {
    padding: 36px 20px 24px;
    border-top: 6px solid #00a2c3;
  }
  #popup-dd56 .contacto-titulo {
    font-size: 1.6rem;
    padding-right: 32px;
  }
}
