/* ══════════════════════════════════════════════════════════
   MODAL WHATSAPP — Nacional de Carpas
   Archivo: mailFormWhatsApp.css
   Última actualización: 2026
══════════════════════════════════════════════════════════ */

/* ── Contenedor fijo del botón flotante ── */
.ConteBotonWhatsapp {
  position: fixed;
  right: 0;
  bottom: 70px;
  z-index: 200;
}

/* ── Botón circular WhatsApp ── */
.btnWhatsapp {
  position: absolute;
  right: 20px;
  bottom: 0;
  cursor: pointer;
}
.btnWhatsapp img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btnWhatsapp img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}
.btnWhatsapp img:active {
  transform: rotate(180deg);
}

/* ── Checkbox oculto que controla apertura/cierre ── */
#btn-modal {
  display: none;
}

/* ── Overlay del modal (inactivo por defecto) ── */
.container-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
#btn-modal:checked ~ .container-modal {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   PANEL PRINCIPAL DEL MODAL
══════════════════════════════════════════════════════════ */
.content-modal {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 360px;
  background: #111111;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Header del modal ── */
.contactenosSegunPreferencia {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f1f12 100%);
  border-bottom: 1px solid rgba(37, 211, 102, 0.2);
  padding: 1.2rem 1.4rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.contactenosSegunPreferencia::before {
  content: url(imagenes/logo-whatsapp.webp);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 38px;
}
.contactenosSegunPreferencia p {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  color: #fff !important;
}
.contactenosSegunPreferencia p:first-of-type {
  font-weight: 700 !important;
  font-size: 1.80rem !important;
  line-height: 1.2;
}
.contactenosSegunPreferencia p:last-of-type {
  font-size: 1.45rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Cuerpo del modal ── */
.personalWhatsapp {
  padding: 1.2rem 1.4rem 0.8rem;
}

#formularioContactoWhatApp {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   FORMULARIO INTERNO — estructura flex
══════════════════════════════════════════════════════════ */

/* Form como columna con gap uniforme */
#formulario-wa {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Fila Nombre + Email lado a lado */
#formulario-wa .contenedorCampos {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}
#formulario-wa .contenedorCampos .campos-input {
  flex: 1;
  width: auto !important;   /* anula width:24% de contacto.css */
  padding: 0;
  margin: 0;
}

/* ── Inputs de texto y email ── */
#formularioContactoWhatApp input[type="text"],
#formularioContactoWhatApp input[type="email"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.72rem 1rem;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.50rem;
  margin-bottom: 0 !important;
  box-sizing: border-box;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s;
}
#formularioContactoWhatApp input[type="text"]:focus,
#formularioContactoWhatApp input[type="email"]:focus {
  border-color: rgba(201, 169, 110, 0.6);
}
#formularioContactoWhatApp input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.34rem;
}

/* ── Wrapper del textarea ── */
#formulario-wa .campo-textarea {
  width: 100%;
}

/* ── Textarea ── */
#formularioContactoWhatApp textarea {
  width: 100% !important;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.72rem 1rem;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.50rem;
  resize: none;
  outline: none;
  box-sizing: border-box;
  margin: 0 !important;
  display: block;
  transition: border-color 0.2s;
}
#formularioContactoWhatApp textarea:focus {
  border-color: rgba(201, 169, 110, 0.6);
}
#formularioContactoWhatApp textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.34rem;
}

/* ── .campos-input dentro del modal: reset de márgenes ── */
.campos-input {
  padding: 0;
  margin-bottom: 0;
}

/* ── Aviso "completa los campos" ── */
#wa-aviso,
#completaLosCampos {
  margin: 0;
  min-height: 1.3rem;
}
#wa-aviso p,
#completaLosCampos p {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 1.82rem !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   BOTÓN ENVIAR
══════════════════════════════════════════════════════════ */
#formularioContactoWhatApp button[type='button'] {
  width: 100%;
  padding: 0.85rem;
  border-radius: 100px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.47rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transition: all 0.25s;
  margin-bottom: 0 !important;
  letter-spacing: 0.02em;
}

/* Estado activo (campos válidos) — activado por JS con .activoBtnWhatApp */
#formularioContactoWhatApp button[type='button'].activoBtnWhatApp {
  background: #25D366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
#formularioContactoWhatApp button[type='button'].activoBtnWhatApp:hover {
  background: #1fbe59;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   BOTÓN CERRAR (X circular)
══════════════════════════════════════════════════════════ */
.btn-cerrar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0;
  transition: background 0.2s, transform 0.2s;
  z-index: 301;
}
.btn-cerrar::before {
  content: '✕';
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}
.btn-cerrar:hover {
  background: #2a2a2a;
  transform: scale(1.08);
}
.btn-cerrar label {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0;
}

/* ── Fondo semitransparente al abrir el modal ── */
.cerrar-modal {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════════════════════
   MENSAJES DE ESTADO
══════════════════════════════════════════════════════════ */
#contWA1 {
  padding: 1.2rem 1.4rem;
  color: #25D366;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
#contWA2 {
  display: none;
}
#wa-resultado p {
  font-size: 0.85rem;
  margin: 4px 0 0;
  padding: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  .content-modal {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 82px;
  }
  #formulario-wa .contenedorCampos {
    flex-direction: column;
    gap: 0.65rem;
  }
  .contactenosSegunPreferencia::before {
    content: none;
  }
}