.encuestas-page {
  padding: 2.4rem 0 4.5rem;
  background: #ffffff;
}

.encuestas-page__crumb {
  margin: 0 0 2rem;
  color: #8d9097;
  font-size: 0.95rem;
}

.encuestas-page__crumb a {
  color: #1d5aa8;
  text-decoration: none;
}

.encuestas-page__crumb span {
  margin: 0 0.2rem;
}

.encuestas-page__header {
  margin-bottom: 2rem;
}

.encuestas-page__header h1 {
  margin: 0;
  color: #243d7d;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
}

.encuestas-page__header span {
  display: inline-block;
  width: 70px;
  height: 4px;
  margin-top: 0.7rem;
  background: rgba(66, 76, 96, 0.4);
}

.encuestas-page__filters {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2.4rem;
  max-width: 100%;
}

.encuestas-page__filters--advanced {
  gap: 1rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.encuestas-page__filter-field {
  flex: 1;
}

.encuestas-page__filter-field select,
.encuestas-page__filter-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #363c46;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(26, 41, 76, 0.12);
  outline: none;
}

.encuestas-page__filter-field input {
  text-overflow: ellipsis;
}

.encuestas-page__filter-field input::placeholder {
  color: #7b8090;
}

.encuestas-page__filters--advanced .encuestas-page__filter-field {
  min-width: 260px;
}

.encuestas-page__filters--advanced .encuestas-page__filter-field select,
.encuestas-page__filters--advanced .encuestas-page__filter-field input {
  border-right: 1px solid #cfd4dc;
  border-radius: 0.35rem;
}

.encuestas-page__filter-field select:focus,
.encuestas-page__filter-field input:focus {
  border-color: #2c57a6;
  box-shadow: 0 8px 22px rgba(44, 87, 166, 0.18);
}

.encuestas-page__filter-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.encuestas-page__submit {
  min-width: 110px;
  border: 0;
  border-radius: 0.35rem;
  background: #1457a8;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(26, 41, 76, 0.12);
}

.encuestas-page__filters--advanced .encuestas-page__submit {
  border-radius: 0.35rem;
}

.encuestas-page__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 56px;
  padding: 0 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 0.35rem;
  background: #f1f2f4;
  color: #4d6289;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(26, 41, 76, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.encuestas-page__clear:hover,
.encuestas-page__clear:focus-visible {
  background: #e7ebf1;
  color: #2c57a6;
  box-shadow: 0 10px 22px rgba(26, 41, 76, 0.16);
  transform: translateY(-1px);
}

.encuestas-page__results {
  margin: 0 0 1.3rem;
  text-align: right;
  color: #555b65;
  font-size: 0.95rem;
}

.encuestas-page__results strong {
  color: #1457a8;
  font-weight: 500;
}

.encuestas-page__list,
.encuestas-page__history-list {
  display: grid;
  gap: 0.8rem;
}

.encuestas-page__item,
.encuestas-page__history-item {
  display: block;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  background: #f0f1f3;
  text-decoration: none;
  transition: background-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.encuestas-page__item:nth-child(even),
.encuestas-page__history-item:nth-child(even) {
  background: #ffffff;
}

.encuestas-page__item small,
.encuestas-page__history-item small {
  display: block;
  margin-bottom: 0.2rem;
  color: #777c84;
  font-size: 0.86rem;
}

.encuestas-page__item strong,
.encuestas-page__history-item a {
  display: block;
  color: #2f3137;
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.encuestas-page__item:hover,
.encuestas-page__item:focus-visible,
.encuestas-page__history-item:hover,
.encuestas-page__history-item:focus-within {
  background: #e8edf4;
  box-shadow: 0 12px 24px rgba(24, 42, 73, 0.08);
  transform: translateY(-1px);
}

.encuestas-page__history-item a:hover,
.encuestas-page__history-item a:focus-visible {
  color: #1457a8;
}

.encuestas-page__empty {
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  background: #f0f1f3;
}

.encuestas-page__empty p {
  margin: 0;
  color: #666d78;
}

.encuestas-detail-card {
  display: flex;
  overflow: hidden;
  border: 1px solid #c9ced9;
  border-radius: 1.3rem;
  background: #fbfbfc;
  box-shadow: 0 10px 24px rgba(24, 42, 73, 0.08);
}

.encuestas-detail-card__accent {
  width: 26px;
  flex-shrink: 0;
  background: #2456aa;
}

.encuestas-detail-card__content {
  flex: 1;
  padding: 2rem 2.4rem 2.1rem;
}

.encuestas-detail-card__content h2 {
  margin: 0 0 1.3rem;
  color: #2c57a6;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: justify;
}

.encuestas-detail-card__content p {
  margin: 0;
  color: #3f434b;
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
}

.encuestas-detail-card__actions {
  display: flex;
  align-items: end;
  gap: 2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.encuestas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 44px;
  border-radius: 0.45rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.encuestas-btn--primary {
  background: #2c57a6;
  color: #fff;
  box-shadow: 0 10px 20px rgba(44, 87, 166, 0.18);
}

.encuestas-btn--ghost {
  min-width: 98px;
  border: 1px solid #4a7bd3;
  background: #ffffff;
  color: #2c57a6;
}

.encuestas-btn:hover,
.encuestas-btn:focus-visible {
  transform: translateY(-1px);
}

.encuestas-btn--primary:hover,
.encuestas-btn--primary:focus-visible {
  background: #214a92;
  color: #fff;
  box-shadow: 0 14px 28px rgba(33, 74, 146, 0.24);
}

.encuestas-btn--ghost:hover,
.encuestas-btn--ghost:focus-visible {
  border-color: #2c57a6;
  background: #eef4ff;
  color: #214a92;
  box-shadow: 0 10px 22px rgba(44, 87, 166, 0.14);
}

.encuestas-detail-card__downloads span {
  display: block;
  margin-bottom: 0.7rem;
  color: #2c57a6;
  font-size: 1rem;
  font-weight: 500;
}

.encuestas-detail-card__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.encuestas-page__history {
  margin-top: 2rem;
}

.encuestas-page__history h2 {
  margin: 0 0 1rem;
  color: #2c57a6;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

@media (max-width: 767px) {
  .encuestas-page {
    padding: 1.6rem 0 3rem;
  }

  .encuestas-page__filters {
    flex-direction: column;
    gap: 0.7rem;
  }

  .encuestas-page__filters--advanced .encuestas-page__filter-field {
    min-width: 100%;
  }

  .encuestas-page__filter-actions {
    flex-direction: column;
  }

  .encuestas-page__filter-field select,
  .encuestas-page__filter-field input,
  .encuestas-page__submit,
  .encuestas-page__clear {
    border-radius: 0.5rem;
  }

  .encuestas-page__results {
    text-align: left;
  }

  .encuestas-detail-card__accent {
    width: 14px;
  }

  .encuestas-detail-card__content {
    padding: 1.2rem 1rem 1.3rem;
  }

  .encuestas-detail-card__actions {
    gap: 1rem;
  }

  .encuestas-btn,
  .encuestas-btn--ghost {
    min-width: 88px;
  }
}
