/* ============================================================
   CONTACTO.CSS — Estilos específicos de contacto.html
   ============================================================ */

/* Override del color de cuerpo (contacto usa #302e54 en lugar del global #1b2d58) */
body {
  color: #302e54;
}

/* Evita el scroll horizontal: la imagen decorativa a ancho completo usa 100vw,
   que en algunos navegadores excede el ancho visible al incluir la barra de scroll */
html,
body {
  overflow-x: hidden;
}

/* Override de la textura: desactivada para que el fondo sea blanco puro */
body::after {
  display: none;
}

/* Override de h3 para usar la misma tipografía de titulares que el resto del sitio */
h3 {
  font-family: 'BricolageGrotesque', sans-serif;
}

/* === ICONO DE CONTACTO === */
.contact-icon {
  width: 3.8rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === TARJETA DEL FORMULARIO === */
.form-card {
  background: #ded7f6;
  border-radius: 1.65rem;
  padding: clamp(2.2rem, 4vw, 3.3rem);
}

/* === ETIQUETA DEL FORMULARIO === */
.form-label {
  display: block;
  font-family: 'BricolageGrotesque', sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  color: #453a7a;
  opacity: 1;
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}

/* === INPUT DEL FORMULARIO === */
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ded7f6;
  border-radius: 0.55rem;
  padding: 0.88rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.01rem;
  font-weight: 300;
  color: #302e54;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: #302e54;
  opacity: 0.35;
}

select.form-input option[disabled] {
  color: #302e54;
  opacity: 0.35;
}

select.form-input option {
  color: #302e54;
}

.form-input:focus {
  background: #ffffff;
  border-color: #9787f4;
}

/* Neutraliza el fondo azul del autocompletado del navegador */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #302e54;
  transition: background-color 5000s ease-in-out 0s;
}

/* === TOGGLE RGPD === */
.toggle-rgpd {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #9787f4;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.toggle-rgpd::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #9787f4;
  transition: left 0.2s, background-color 0.2s;
}

.toggle-rgpd:checked {
  background-color: #9787f4;
  border-color: #9787f4;
}

.toggle-rgpd:checked::after {
  left: calc(100% - 0.2rem - 0.95rem);
  background: #ffffff;
}

/* === TEXTAREA === */
.form-textarea {
  resize: none;
  line-height: 1.65;
}

/* === BOTÓN ENVIAR === */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.935rem;
  background-color: #9787f4;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: calc(0.935rem - 1px) calc(1.76rem - 1px);
  font-family: 'Inter', sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.btn-submit:hover,
.btn-submit:disabled {
  background-color: #ded7f6;
  color: #453a7a;
  border-color: #453a7a;
}

.btn-submit:disabled {
  cursor: not-allowed;
}

.btn-submit-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === TARJETA OSCURA === */
.dark-card {
  color: #ffffff;
}

/* === ENLACE VERIFICAR === */
.link-verificar {
  color: #9787f4;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 1;
  transition: color 0.2s;
}

.link-verificar:hover {
  color: #ded7f6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .name-row {
    grid-template-columns: 1fr !important;
  }
}
