/* ============================================================
   contacto.css — Compuerta (¿empresa o comunidad?) + encuestas.
   Hoja propia de las páginas:  body.pg-contacto  y  body.pg-contacto-empresa
   Usa las variables y la tipografía Poppins de estilo.css.
   ============================================================ */

/* ── Lienzo común ─────────────────────────────────────────── */
.pg-contacto main,
.pg-contacto-empresa main,
.pg-contacto-comunidad main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 4rem;
}

.pg-contacto .kicker,
.pg-contacto-empresa .kicker,
.pg-contacto-comunidad .kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: .8rem;
}

.pg-contacto h1,
.pg-contacto-empresa h1,
.pg-contacto-comunidad h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.pg-contacto .bajada,
.pg-contacto-empresa .bajada,
.pg-contacto-comunidad .bajada {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 54ch;
}

/* ============================================================
   COMPUERTA → movida a conversemos.css (partial reutilizable
   partes/conversemos.php; la usan esta página y los cierres de
   Quiénes Somos). Aquí quedan solo las encuestas.
   ============================================================ */

/* ============================================================
   ENCUESTA
   ============================================================ */
.volver {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--body);
  font-size: .9rem;
  text-decoration: none;
}
.volver:hover { color: var(--azul); }

.encuesta-intro { margin-bottom: 2.4rem; }

.form-encuesta { display: flex; flex-direction: column; gap: 2rem; }
.form-encuesta .paso { display: flex; flex-direction: column; gap: 2rem; }
.form-encuesta .paso-2 { margin-top: 1rem; padding-top: 2.4rem; border-top: 1px solid #e4e8ec; }

/* Invitación a la encuesta opcional (paso 2) */
.invitacion {
  background: rgba(31, 111, 235, .06);
  border: 1px solid rgba(31, 111, 235, .18);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
}
.invitacion h2 { color: var(--navy); font-size: 1.2rem; margin-bottom: .35rem; }
.invitacion p { color: var(--body); font-size: .95rem; line-height: 1.55; }

/* Botón secundario "No, gracias" */
.btn-omitir {
  background: none;
  border: 0;
  padding: .9rem .6rem;
  color: var(--body);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: underline;
}
.btn-omitir:hover { color: var(--azul); }

/* Honeypot: fuera de la vista, sin display:none (algunos bots lo detectan) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.campo { border: 0; padding: 0; margin: 0; }
.campo legend,
.etiqueta {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: .9rem;
  line-height: 1.4;
}
.etiqueta { font-size: .95rem; }
.req { color: var(--azul); }
.opt { font-weight: 400; color: var(--body); font-size: .85rem; }

/* Opciones (radio / checkbox) como pastillas */
.opciones { display: flex; flex-direction: column; gap: .6rem; }
.opciones.en-linea { flex-direction: row; flex-wrap: wrap; }

.opcion {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem 1rem;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.opciones.en-linea .opcion { flex: 1 1 auto; }
.opcion:hover { border-color: var(--azul); }
.opcion input { margin-top: .15rem; accent-color: var(--azul); flex: none; }
.opcion:has(input:checked) {
  border-color: var(--azul);
  background: rgba(31, 111, 235, .06);
}

/* Campo abierto "Otras": oculto hasta elegir esa opción */
.campo-otras { display: none; margin-top: .7rem; }
.campo:has(input[value="Otras"]:checked) .campo-otras { display: block; }

/* Inputs de texto */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1px solid #d8dde2;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .14);
}
textarea { resize: vertical; }

/* Grupo de datos en dos columnas */
.grid-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.grid-datos .etiqueta { font-weight: 500; }
.grid-datos .etiqueta input { margin-top: .4rem; }
@media (max-width: 560px) { .grid-datos { grid-template-columns: 1fr; } }

/* Consentimiento */
.consentimiento {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--body);
}
.consentimiento input { margin-top: .2rem; accent-color: var(--azul); flex: none; }

/* Acciones */
.acciones { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.btn-enviar {
  background: var(--azul);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  padding: .9rem 2.4rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-enviar:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 111, 235, .3); }
.btn-enviar:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

.estado { font-size: .92rem; }
.estado.es-cargando { color: var(--body); }
.estado.es-error { color: #c0392b; }

/* Pantalla de éxito */
.encuesta-ok { text-align: center; padding: 2rem 0; }
.ok-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: rgba(31, 111, 235, .12);
  color: var(--azul);
  font-size: 2rem;
  font-weight: 700;
}
.encuesta-ok h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: .7rem; }
.encuesta-ok p { color: var(--body); line-height: 1.6; }
.encuesta-ok a { color: var(--azul); font-weight: 600; text-decoration: none; }
.encuesta-ok a:hover { text-decoration: underline; }
