/* ==========================================================
   coico.com.ar — encuesta.css
   Hereda tipografía, colores y grano de site.css.
   Estética editorial sobre papel: renglones abiertos con líneas
   horizontales finas (1px solid var(--linea)), sin "cajitas IA"
   redondeadas para cada opción.
   ========================================================== */

/* ---------- CABECERA FIJA CON LOGO, META Y LOMBRIZ ---------- */
.enc-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-bottom: 0;
}

.enc-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem) 0.45rem;
}

.enc-prop-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bosque);
  margin-right: 0.4rem;
}

.enc-paso-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.enc-paso-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tinta-2);
  font-variant-numeric: tabular-nums;
}

.enc-mail-tag {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--tinta-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.enc-mail-tag:hover {
  color: var(--fucsia);
  text-decoration: underline;
}

.enc-kicker-wrap {
  margin-bottom: 0.9em;
}

.enc-kicker-wrap .kicker {
  margin-bottom: 0.15em;
}

.enc-kicker-mail {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fucsia);
  text-decoration: none;
}

.enc-kicker-mail:hover {
  color: var(--vino);
  text-decoration: underline;
}

/* ---------- HILERA DE TIERRA + LOMBRIZ DE COICO ---------- */
.enc-hilera {
  position: relative;
  width: 100%;
  height: 36px;
  --tierra: 28px;
  background: transparent;
  pointer-events: none;
  overflow: visible;
}

.enc-hilera[hidden] {
  display: none !important;
}

.enc-hilera::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  background: linear-gradient(to bottom, var(--papel), rgba(250, 246, 239, 0));
}

.enc-hilera::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tierra);
  z-index: 1;
  background: url("../assets/marca/tierra-seca.webp") 0 100% / auto 100% repeat-x;
}

.enc-hilera .riego {
  position: absolute;
  left: 0;
  bottom: 0;
  height: var(--tierra);
  width: 0;
  z-index: 2;
  background: url("../assets/marca/tierra-removida.webp") 0 100% / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  transition: width 0.42s var(--ease-out);
}

.enc-hilera .lombriz {
  position: absolute;
  left: 0;
  bottom: calc(var(--tierra) * 0.34);
  width: 112px;
  height: 30px;
  z-index: 3;
  background: url("../assets/marca/lombriz-strip.webp") 0 100% / 600% 100% no-repeat;
  transition: transform 0.42s var(--ease-out);
  filter: drop-shadow(0 1px 1px rgba(56, 52, 48, 0.25));
}

/* ---------- HOJA CENTRAL (EDITORIAL, SIN TARJETAS IA) ---------- */
.enc-hoja {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.6rem) clamp(1.1rem, 4vw, 2.2rem) 2.5rem;
  flex: 1;
}

.enc-pie-global {
  max-width: 680px;
  padding: 1.8rem clamp(1.1rem, 4vw, 2.2rem) 6.5rem;
}

.enc-campo select,
.enc-campo textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--tinta);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--tinta);
  border-radius: 0;
  padding: 0.55rem 0;
  transition: border-color 0.16s;
}

.enc-campo textarea {
  resize: vertical;
  min-height: 82px;
  font-weight: 500;
}

.enc-campo select:focus,
.enc-campo textarea:focus {
  outline: none;
  border-bottom-color: var(--fucsia);
}

.enc- inline-style-clean {
  margin: 0;
}

.enc-campos-sin-borde {
  border-top: 0;
  padding-top: 0;
}

.enc-sub-negrita {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--tinta);
}

.enc-contacto-pie-portada {
  font-size: 0.98rem;
  color: var(--tinta-2);
  margin: 0 0 1.4rem;
}

.enc-lead-cierre {
  margin-bottom: 1rem;
}

@keyframes entradaSuave {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enc-vista {
  animation: entradaSuave 0.28s var(--ease-out) both;
}

/* ---------- PORTADA DE LA ENCUESTA (MISMA JERARQUÍA QUE HERO DE INDEX.HTML) ---------- */
.enc-portada-fig {
  margin: 0 0 1.1rem;
}

.enc-portada-fig img {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.enc-vista h1 {
  font-size: clamp(2rem, 6.2vw, 3.1rem);
  line-height: 1.06;
  margin-bottom: 0.45em;
}

.enc-vista .lead {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  margin-bottom: 1.4rem;
}

/* Bloque editorial con línea superior/inferior de cuaderno (sin bordes redondeados) */
.enc-seccion-papel {
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: 1.25rem 0;
  margin: 1.35rem 0;
}

.enc-seccion-papel h2 {
  font-size: clamp(1.3rem, 3.8vw, 1.65rem);
  margin-bottom: 0.45em;
}

.enc-seccion-papel .lista {
  margin: 0.6rem 0 0;
}

.enc-seccion-papel .lista li {
  font-size: 1rem;
  margin: 0.45em 0;
}

/* Dato de vecino para quien tiene más de una propiedad (mismo estilo que .dato pero con trazo lateral editorial) */
.enc-dato-vecino {
  border-left: 2.5px solid var(--bosque);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.35rem 0 1.75rem;
  font-size: 0.98rem;
  color: var(--tinta);
}

.enc-dato-vecino strong {
  color: var(--bosque);
}

.enc-acciones-inicio {
  margin-top: 1.4rem;
}

/* ---------- PREGUNTA INDIVIDUAL (1 SOLA EN PANTALLA) ---------- */
.enc-pregunta-titulo {
  font-size: clamp(1.5rem, 5.2vw, 2.2rem);
  line-height: 1.12;
  margin-bottom: 0.35em;
}

.enc-pregunta-sub {
  font-size: 0.98rem;
  color: var(--tinta-2);
  margin-bottom: 1.35rem;
}

.enc-pregunta-sub strong {
  color: var(--tinta);
}

/* ---------- LISTA DE OPCIONES TIPO RENGLÓN DE CUADERNO (CERO CAJITAS REDONDEADAS) ---------- */
.enc-renglones {
  border-top: 1px solid var(--linea);
  display: flex;
  flex-direction: column;
}

.enc-renglon {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  padding: 1.05rem 0.25rem;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.85rem;
  align-items: start;
  cursor: pointer;
  font-family: inherit;
  color: var(--tinta);
  transition: background-color 0.16s ease, padding-left 0.18s var(--ease-out);
}

.enc-renglon:hover {
  background: rgba(243, 237, 225, 0.55);
}

.enc-renglon.activo {
  background: rgba(233, 240, 235, 0.65);
  padding-left: 0.65rem;
  padding-right: 0.5rem;
}

.enc-renglon.atenuado:not(.activo) {
  opacity: 0.42;
}

/* Marca botánica: punto o tilde de tinta */
.enc-marca {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  margin-top: 0.18rem;
  display: grid;
  place-items: center;
  transition: border-color 0.16s, background-color 0.16s;
}

.enc-renglon[data-multi="true"] .enc-marca {
  border-radius: 2px;
}

.enc-renglon.activo .enc-marca {
  border-color: var(--bosque);
  background: var(--bosque);
}

.enc-marca::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--papel);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.14s, transform 0.18s var(--ease-out);
}

.enc-renglon[data-multi="true"] .enc-marca::after {
  width: 10px;
  height: 5px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid var(--papel);
  border-bottom: 2px solid var(--papel);
  transform: rotate(-45deg) translate(1px, -1px) scale(0.8);
}

.enc-renglon.activo .enc-marca::after {
  opacity: 1;
  transform: scale(1);
}

.enc-renglon[data-multi="true"].activo .enc-marca::after {
  opacity: 1;
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.enc-renglon-cuerpo {
  min-width: 0;
}

.enc-renglon-titulo {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tinta);
}

.enc-renglon.activo .enc-renglon-titulo {
  color: var(--bosque);
}

.enc-renglon-desc {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--tinta-2);
  line-height: 1.42;
  margin-top: 0.22rem;
}

.enc-renglon.activo .enc-renglon-desc {
  color: var(--tinta);
}

/* ---------- CAMPOS DE TEXTO EN PAPEL (LÍNEA INFERIOR DE CUADERNO, SIN CAJA REDONDEADA) ---------- */
.enc-campos-cuaderno {
  border-top: 1px solid var(--linea);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.enc-campo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.enc-campo label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.enc-campo label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.enc-campo input {
  width: 100%;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--tinta);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--tinta);
  border-radius: 0;
  padding: 0.55rem 0;
  transition: border-color 0.16s;
}

.enc-campo input::placeholder {
  color: rgba(107, 101, 93, 0.52);
  font-weight: 400;
}

.enc-campo input:focus {
  outline: none;
  border-bottom-color: var(--fucsia);
}

/* ---------- CIERRE EDITORIAL ---------- */
.enc-cierre-fig {
  margin: 0 0 1rem;
}

.enc-cierre-fig img {
  display: block;
  width: 160px;
  height: auto;
  mix-blend-mode: multiply;
}

.enc-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* ---------- BARRA INFERIOR ---------- */
.enc-pie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linea);
  padding: 0.7rem clamp(1.1rem, 4vw, 2.2rem) calc(0.7rem + env(safe-area-inset-bottom, 0px));
}

.enc-pie-in {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.enc-volver {
  text-decoration: none;
  color: var(--tinta);
  font-weight: 700;
  font-size: 0.98rem;
}

.enc-volver:hover {
  color: var(--fucsia);
}

.enc-contador {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bosque);
  font-variant-numeric: tabular-nums;
}

.enc-siguiente:disabled {
  background: rgba(56, 52, 48, 0.15);
  color: rgba(56, 52, 48, 0.42);
  cursor: not-allowed;
  transform: none;
}

.enc-aviso {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tinta);
  color: var(--papel);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  z-index: 60;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 640px) {
  .enc-nav-top {
    padding: 0.5rem 1rem 0.35rem;
  }
  .enc-hilera {
    height: 32px;
    --tierra: 24px;
  }
  .enc-hilera .lombriz {
    width: 96px;
    height: 26px;
  }
  .enc-portada-fig img {
    max-width: 260px;
  }
  .enc-cta-stack .btn {
    width: 100%;
    justify-content: center;
  }
}
