:root {
  --survey-blue: #0b3974;
  --survey-blue-2: #145ca8;
  --survey-blue-dark: #051a36;
  --survey-cyan: #0284c7;
  --survey-ink: #0f1e33;
  --survey-muted: #576982;
  --survey-line: #dbe4ef;
  --survey-soft: #f4f8fc;
  --survey-green: #0b8f6a;
  --survey-green-dark: #065f46;
}

.survey-page {
  background: #f5f8fc;
  color: var(--survey-ink);
  min-height: 70vh;
  padding-bottom: 5rem;
}

/* ==========================================================================
   HERO PREMIUM - MATCHING /PROFESIONALES HEIGHT & LUXURY GLASS
   ========================================================================== */
.survey-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: clamp(245px, 24vw, 280px);
  min-height: clamp(245px, 24vw, 280px);
  overflow: hidden;
  background: var(--survey-blue-dark);
  color: #fff;
  box-shadow: 0 16px 34px rgba(3, 18, 38, .18);
}

.survey-hero-image,
.survey-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.survey-hero-image {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.survey-hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(3, 14, 31, .94) 0%, rgba(3, 14, 31, .80) 38%, rgba(3, 14, 31, .28) 72%, rgba(3, 14, 31, .12) 100%);
}

.survey-hero-inner {
  display: flex;
  align-items: center;
  padding-block: 1.25rem 1.5rem;
  width: min(var(--container, 1180px), calc(100% - 40px));
}

.survey-hero-glass {
  width: min(630px, 70%);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(5, 21, 44, .60);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px) saturate(112%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
}

.survey-hero-kicker {
  display: block;
  margin-bottom: .35rem;
  color: #8bd9b9;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.survey-hero h1 {
  max-width: 100%;
  margin: 0 0 .45rem;
  color: #fff;
  font: 800 clamp(2rem, 4vw, 3.2rem)/1 var(--serif, "Libre Franklin", serif);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.survey-hero-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.survey-hero-action-row p {
  max-width: 440px;
  margin: 0;
  color: #d9e5ef;
  font-size: clamp(.82rem, 1.2vw, .94rem);
  line-height: 1.45;
}

.survey-hero-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.survey-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0968c8 0%, #0b8f6a 100%);
  color: #ffffff !important;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 6px 20px rgba(11, 143, 106, .35);
  transition: all .2s cubic-bezier(.2, .8, .2, 1);
  white-space: nowrap;
}

.survey-hero-cta:hover,
.survey-hero-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1279e2 0%, #0ea67c 100%);
  box-shadow: 0 10px 26px rgba(11, 143, 106, .5);
  color: #ffffff !important;
}

.survey-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: .65rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 255, 255, .17);
}

.survey-hero-stats div {
  padding-inline: .75rem;
}

.survey-hero-stats div:first-child {
  padding-left: 0;
}

.survey-hero-stats strong,
.survey-hero-stats span {
  display: block;
  line-height: 1.1;
}

.survey-hero-stats strong {
  color: #fff;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 850;
}

.survey-hero-stats span {
  margin-top: .2rem;
  color: #a4c4e0;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.survey-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  display: grid;
  grid-template-columns: 34% 25% 33% 8%;
  z-index: 10;
}

.survey-hero-accent span:nth-child(1) { background: #0875d1; }
.survey-hero-accent span:nth-child(2) { background: #128257; }
.survey-hero-accent span:nth-child(3) { background: #ca3346; }
.survey-hero-accent span:nth-child(4) { background: #b89043; }

/* ==========================================================================
   SURVEY LISTING & PREMIUM BUTTON AUDIT
   ========================================================================== */
.survey-listing {
  padding: 3rem 1rem;
  width: min(var(--container, 1180px), calc(100% - 40px));
  margin: 0 auto;
}

.survey-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--survey-line);
  padding-bottom: .9rem;
  margin-bottom: 1.75rem;
}

.survey-section-heading span {
  font-size: .74rem;
  letter-spacing: .14em;
  font-weight: 850;
  color: var(--survey-blue-2);
  text-transform: uppercase;
}

.survey-section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -.03em;
  margin: .25rem 0 0;
  color: var(--survey-ink);
  font-weight: 850;
}

.survey-section-heading > strong {
  display: grid;
  place-items: center;
  background: var(--survey-blue);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 850;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(11, 57, 116, .25);
}

.survey-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.survey-card {
  background: #fff;
  border: 1px solid var(--survey-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(15, 30, 51, .06);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.survey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 30, 51, .12);
  border-color: #bad3ed;
}

.survey-card.is-featured {
  border-color: #88b7e8;
  box-shadow: 0 16px 42px rgba(14, 76, 142, .13);
  background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
}

.survey-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #dbe6f1;
  display: block;
}

.survey-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.survey-card:hover .survey-card__image img {
  transform: scale(1.04);
}

.survey-card__body {
  padding: 1.35rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.survey-card__badges {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .72rem;
}

.survey-status,
.survey-featured {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .32rem .68rem;
  font-size: .68rem;
  letter-spacing: .06em;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-status--active {
  background: #e6f9f2;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.survey-status--active i {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .2);
}

.survey-status--closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.survey-featured {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.survey-card h3 {
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -.025em;
  margin: .9rem 0 .55rem;
  font-weight: 800;
}

.survey-card h3 a {
  color: var(--survey-ink);
  text-decoration: none;
  transition: color .2s;
}

.survey-card h3 a:hover {
  color: var(--survey-blue-2);
}

.survey-card p {
  color: var(--survey-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  font-size: .88rem;
}

.survey-card__question {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .85rem;
  margin: 0 0 1rem;
}

.survey-card__question > strong {
  display: block;
  font-size: .82rem;
  color: var(--survey-ink);
  font-weight: 800;
}

.survey-card__question > div {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.survey-card__question span {
  font-size: .72rem;
  color: #475569;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: .22rem .55rem;
  font-weight: 600;
}

.survey-card__meta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: .76rem;
  margin: auto 0 1.15rem;
  width: 100%;
}

.survey-card__meta span {
  background: var(--survey-soft);
  border: 1px solid var(--survey-line);
  border-radius: 6px;
  padding: .3rem .55rem;
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS: HIGH CONTRAST & PREMIUM STYLING
   ========================================================================== */
.survey-card__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: .4rem;
}

.survey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 999px;
  padding: .68rem 1.25rem;
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.survey-btn:hover {
  transform: translateY(-2px);
}

.survey-btn--primary {
  background: linear-gradient(135deg, #073a72 0%, #0d5aa7 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(7, 58, 114, .25);
  border: 1px solid rgba(255, 255, 255, .25);
}

.survey-btn--primary:hover,
.survey-btn--primary:focus-visible {
  background: linear-gradient(135deg, #0a4d96 0%, #116cc6 100%);
  box-shadow: 0 10px 24px rgba(7, 58, 114, .38);
  color: #ffffff !important;
}

.survey-card__share-btn {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .64rem 1.05rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d !important;
  border: 1.5px solid #86efac;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, .08);
}

.survey-card__share-btn svg {
  flex-shrink: 0;
}

.survey-card__share-btn:hover,
.survey-card__share-btn:focus-visible {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}

/* Closed surveys section */
.survey-closed-section {
  margin-top: 4.5rem;
}

.survey-closed-list {
  display: grid;
  gap: 1rem;
}

.survey-closed-list article {
  background: #fff;
  border: 1px solid var(--survey-line);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 30, 51, .04);
  transition: border-color .2s, box-shadow .2s;
}

.survey-closed-list article:hover {
  border-color: #bad3ed;
  box-shadow: 0 10px 28px rgba(15, 30, 51, .08);
}

.survey-closed-list__copy {
  flex: 1;
}

.survey-closed-list h3 {
  margin: .65rem 0 .25rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.survey-closed-list h3 a {
  color: var(--survey-ink);
  text-decoration: none;
  transition: color .2s;
}

.survey-closed-list h3 a:hover {
  color: var(--survey-blue-2);
}

.survey-closed-list time {
  font-size: .8rem;
  color: var(--survey-muted);
  font-weight: 600;
}

.survey-card-results {
  display: grid;
  gap: .45rem;
  margin-top: .9rem;
  max-width: 650px;
}

.survey-card-results > div {
  display: grid;
  grid-template-columns: minmax(110px, 190px) 1fr 54px;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
}

.survey-card-results span {
  font-weight: 600;
  color: var(--survey-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.survey-card-results i {
  display: block;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.survey-card-results i b {
  display: block;
  width: var(--survey-result);
  height: 100%;
  background: linear-gradient(90deg, #073a72, #0284c7);
  border-radius: inherit;
}

.survey-card-results strong {
  font-weight: 800;
  color: var(--survey-blue);
  text-align: right;
}

.survey-closed-list__copy > small {
  display: block;
  color: var(--survey-muted);
  font-weight: 600;
  margin-top: .65rem;
}

.survey-closed-list__actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-shrink: 0;
  align-items: stretch;
}

.survey-btn-closed-results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  background: #f0f7ff;
  color: #0369a1 !important;
  border: 1.5px solid #bae6fd;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.survey-btn-closed-results:hover,
.survey-btn-closed-results:focus-visible {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, .3);
}

.survey-btn-closed-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d !important;
  border: 1.5px solid #86efac;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.survey-btn-closed-share:hover,
.survey-btn-closed-share:focus-visible {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, .25);
}

.survey-empty {
  background: #fff;
  border: 1px dashed #aec5dd;
  border-radius: 22px;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.survey-empty > span {
  display: grid;
  place-items: center;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e7f2ff;
  color: var(--survey-blue);
  font-size: 1.5rem;
}

.survey-quiet-empty {
  color: var(--survey-muted);
  padding: 1.5rem 0;
  font-size: .95rem;
}

/* ==========================================================================
   DETAIL VIEW & CREATION FORM
   ========================================================================== */
.survey-detail-shell { padding: 2rem 1rem; }
.survey-breadcrumb { display: flex; gap: .55rem; align-items: center; font-size: .82rem; color: var(--survey-muted); margin-bottom: 1rem; }
.survey-breadcrumb a { color: var(--survey-blue); text-decoration: none; font-weight: 700; }
.survey-feedback { border-radius: 13px; padding: 1rem 1.2rem; margin: 0 0 1rem; font-weight: 700; }
.survey-feedback.is-success { background: #e5f8f1; color: #076c51; border: 1px solid #9cdfc7; }
.survey-feedback.is-error { background: #fff0f0; color: #9f3030; border: 1px solid #efb9b9; }
.survey-detail-card { max-width: 980px; margin: auto; background: #fff; border: 1px solid var(--survey-line); border-radius: 28px; overflow: hidden; box-shadow: 0 25px 70px rgba(20, 45, 80, .1); }
.survey-detail-cover { margin: 0; max-height: 460px; overflow: hidden; }
.survey-detail-cover img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.survey-detail-header { padding: clamp(1.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--survey-line); }
.survey-detail-header h1 { font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.05em; line-height: 1.02; margin: 1.1rem 0; font-weight: 850; color: var(--survey-ink); }
.survey-detail-header > p { font-size: 1.08rem; color: var(--survey-muted); line-height: 1.65; max-width: 760px; }
.survey-detail-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; color: #51647a; font-size: .83rem; }
.survey-detail-meta span { background: var(--survey-soft); padding: .5rem .7rem; border-radius: 8px; font-weight: 600; }
.survey-results, .survey-vote-form { padding: clamp(1.4rem, 5vw, 3.5rem); }
.survey-results__heading span { color: var(--survey-green); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.survey-results__heading h2, .survey-vote-intro h2 { font-size: 2rem; margin: .4rem 0; font-weight: 850; color: var(--survey-ink); }
.survey-results__heading p, .survey-vote-intro p { color: var(--survey-muted); }
.survey-result-question { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--survey-line); }
.survey-result-question:first-of-type { margin-top: 1.7rem; }
.survey-question-number, .survey-question legend > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e7f1fc; color: var(--survey-blue); font-weight: 900; }
.survey-result-question h3 { font-size: 1.15rem; margin: .35rem 0 1.2rem; font-weight: 800; }
.survey-help { font-size: .82rem; color: var(--survey-muted); }
.survey-result-row { margin: .85rem 0; }
.survey-result-row > div:first-child { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.survey-result-row > div:first-child b { color: var(--survey-blue); font-weight: 800; }
.survey-result-bar { height: 10px; background: #e7edf4; border-radius: 999px; overflow: hidden; margin: .45rem 0; }
.survey-result-bar span { display: block; height: 100%; width: var(--survey-result); background: linear-gradient(90deg, #0b3974, #2d87d2); border-radius: inherit; animation: survey-bar 1s ease both; }
.survey-result-row small { color: #78879a; font-weight: 600; }
.survey-question { border: 0; padding: 1.8rem 0; margin: 0; border-top: 1px solid var(--survey-line); }
.survey-question legend { font-size: 1.13rem; font-weight: 800; display: flex; gap: .8rem; align-items: center; width: 100%; color: var(--survey-ink); }
.survey-question legend em { font-size: .68rem; font-style: normal; color: #8b5d00; background: #fff4d8; padding: .3rem .55rem; border-radius: 999px; margin-left: auto; font-weight: 800; }
.survey-options { display: grid; gap: .7rem; margin: 1.2rem 0; }
.survey-options label { position: relative; cursor: pointer; }
.survey-options input { position: absolute; opacity: 0; }
.survey-options label span { display: block; border: 1.5px solid #ccd9e7; border-radius: 12px; padding: 1rem 1.1rem; font-weight: 700; transition: .2s; background: #fff; }
.survey-options input:checked + span { background: #eaf3fd; border-color: #2e77bd; color: #0b3974; box-shadow: inset 4px 0 #1767ae; }
.survey-options input:focus-visible + span { outline: 3px solid #8fc5f3; outline-offset: 2px; }
.survey-comment-label { display: block; font-weight: 800; margin-top: 1rem; color: var(--survey-ink); }
.survey-comment-label small { font-weight: 500; color: var(--survey-muted); }
.survey-comment-label textarea, .survey-form-grid input, .survey-form-grid textarea, .survey-form-grid select, .survey-builder-question input, .survey-builder-question select { display: block; width: 100%; border: 1.5px solid #c8d6e5; border-radius: 10px; padding: .8rem; margin-top: .4rem; background: #fff; color: var(--survey-ink); font: inherit; }
.survey-comment-label textarea:focus, .survey-form-grid input:focus, .survey-form-grid textarea:focus, .survey-form-grid select:focus, .survey-builder-question input:focus, .survey-builder-question select:focus { border-color: #0b3974; outline: 3px solid rgba(11, 57, 116, .15); }
.survey-login-callout { padding: 2rem clamp(1.5rem, 5vw, 3.5rem); display: flex; align-items: center; gap: 1rem; }
.survey-login-callout > span { font-size: 2rem; }
.survey-login-callout div { flex: 1; }
.survey-login-callout h2 { margin: 0; font-weight: 800; color: var(--survey-ink); }
.survey-login-callout p { color: var(--survey-muted); margin: .4rem 0; }
.survey-btn--vote { font-size: 1rem; padding: 1rem 1.75rem; background: linear-gradient(135deg, #073a72 0%, #0d5aa7 100%); color: #fff !important; box-shadow: 0 8px 24px rgba(7, 58, 114, .3); font-weight: 850; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .25); }
.survey-btn--vote:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(7, 58, 114, .42); }
.survey-share-footer { padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem); background: #071e3d; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.survey-share-footer h2 { font-size: 1.2rem; margin: .25rem 0; font-weight: 800; }
.survey-btn--share { background: #fff; color: var(--survey-blue) !important; font-weight: 850; padding: .65rem 1.2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.survey-btn--share:hover { background: #f0f7ff; transform: translateY(-2px); }

/* Dialog and creation styles */
.survey-share-dialog { width: min(680px, calc(100% - 2rem)); border: 0; border-radius: 25px; padding: 0; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); color: var(--survey-ink); }
.survey-share-dialog::backdrop { background: rgba(2, 15, 33, .75); backdrop-filter: blur(4px); }
.survey-dialog-close { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf3f8; font-size: 1.4rem; cursor: pointer; }
.survey-share-dialog__head { padding: 2rem 2rem 1rem; }
.survey-share-dialog__head > span { color: var(--survey-blue-2); font-weight: 850; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.survey-share-dialog__head h2 { font-size: 2rem; margin: .35rem 0; font-weight: 850; }
.survey-share-links { padding: 1rem 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.survey-share-links a, .survey-share-links button { border: 1.5px solid var(--survey-line); border-radius: 10px; padding: .8rem; background: #fff; text-decoration: none; color: var(--survey-blue); font-weight: 800; text-align: center; cursor: pointer; transition: all .2s; }
.survey-share-links a:hover, .survey-share-links button:hover { background: #f0f7ff; border-color: var(--survey-blue-2); transform: translateY(-1px); }
.survey-qr-card { margin: 1rem 2rem 2rem; border-radius: 18px; background: var(--survey-soft); padding: 1.3rem; display: flex; align-items: center; gap: 1.2rem; }
.survey-qr-card img { width: 150px; height: 150px; border-radius: 12px; }
.survey-copy-feedback { text-align: center; color: var(--survey-green); font-weight: 800; min-height: 1.5rem; }

/* Survey builder creation view */
.survey-hero--compact .survey-hero-inner { padding: 2rem 1rem; }
.survey-hero--compact h1 { font-size: 2.6rem; }
.survey-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.4rem; padding: 2rem 1rem; width: min(var(--container, 1180px), calc(100% - 40px)); margin: 0 auto; }
.survey-builder-card, .survey-my-list { background: #fff; border: 1px solid var(--survey-line); border-radius: 22px; padding: 1.5rem; box-shadow: 0 14px 40px rgba(25, 54, 90, .07); }
.survey-builder-heading h2, .survey-my-list h2 { font-size: 1.8rem; margin: .3rem 0; font-weight: 850; }
.survey-builder-heading p { color: var(--survey-muted); }
.survey-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.survey-form-grid .is-wide { grid-column: 1 / -1; }
.survey-form-grid label, .survey-builder-question > label { font-weight: 750; font-size: .86rem; }
.survey-form-grid small { display: block; color: var(--survey-muted); font-weight: 500; }
.survey-builder-questions { margin-top: 2rem; }
.survey-builder-questions__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--survey-line); padding-bottom: 1rem; }
.survey-builder-questions__head h3 { margin: .2rem 0; font-weight: 800; }
.survey-builder-questions__head button, .survey-builder-question button { border: 1.5px solid #c9d7e5; background: #fff; color: var(--survey-blue); border-radius: 8px; padding: .55rem .75rem; font-weight: 800; cursor: pointer; transition: all .2s; }
.survey-builder-questions__head button:hover, .survey-builder-question button:hover { background: #f0f7ff; border-color: var(--survey-blue-2); }
.survey-builder-question { border: 1px solid #d3dfeb; border-radius: 16px; padding: 1.2rem; margin: 1rem 0; background: #fafdff; }
.survey-builder-question__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.survey-builder-question__top > span { font-weight: 900; color: var(--survey-blue); }
.survey-builder-question__top > div { display: flex; gap: .35rem; }
.survey-switch { display: flex; align-items: center; gap: .55rem; margin-top: 1.5rem; }
.survey-switch input { width: auto; margin: 0; }
.survey-options-builder { display: grid; gap: .5rem; margin: 1rem 0; }
.survey-option-builder-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.survey-option-builder-row input { margin: 0; }
.survey-option-builder-row button { font-size: 1.2rem; }
.survey-submit-panel { border-radius: 15px; background: #eaf3fd; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.survey-submit-panel p { margin: .25rem 0; color: var(--survey-muted); }
.survey-my-list { align-self: start; position: sticky; top: 1rem; }
.survey-my-list article { border-top: 1px solid var(--survey-line); padding: 1rem 0; }
.survey-my-list article > div { display: flex; flex-direction: column; gap: .25rem; }
.survey-my-list time { font-size: .75rem; color: var(--survey-muted); }
.survey-my-list .survey-status { margin-top: .65rem; }
.survey-my-list article > p { font-size: .82rem; color: #8f3737; }

/* Comunidad Surveys Banner */
.comunidad-surveys-banner {
  margin: 1.2rem 0 2rem;
  background: radial-gradient(circle at 85% 0, rgba(95, 174, 255, .28), transparent 40%), linear-gradient(120deg, #071d3b, #0d4a8a);
  color: #fff;
  border-radius: 20px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 16px 38px rgba(8, 45, 87, .18);
}

.comunidad-surveys-banner__icon {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  font-size: 1.5rem;
}

.comunidad-surveys-banner__copy { flex: 1; }
.comunidad-surveys-banner__copy span { font-size: .67rem; letter-spacing: .15em; color: #b8daf9; font-weight: 850; text-transform: uppercase; }
.comunidad-surveys-banner__copy h2 { margin: .15rem 0; font-size: 1.5rem; font-weight: 850; }
.comunidad-surveys-banner__copy p { margin: 0; color: #d4e7f8; }
.comunidad-surveys-banner__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.comunidad-surveys-banner__actions strong { font-size: .8rem; color: #cce4fb; }
.comunidad-surveys-banner__actions a { background: #fff; color: #0b3974 !important; padding: .65rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 850; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: transform .2s; }
.comunidad-surveys-banner__actions a:hover { transform: translateY(-2px); background: #f0f7ff; }

@keyframes survey-bar { from { width: 0; } }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .survey-card-grid { grid-template-columns: repeat(2, 1fr); }
  .survey-create-layout { grid-template-columns: 1fr; }
  .survey-my-list { position: static; }
  .survey-share-links { grid-template-columns: repeat(2, 1fr); }
  .survey-hero-glass { width: min(680px, 85%); }
}

@media (max-width: 768px) {
  .survey-hero {
    height: auto;
    min-height: clamp(230px, 40vw, 280px);
  }
  .survey-hero-image {
    object-position: 65% center;
  }
  .survey-hero-glass {
    width: 100%;
    padding: 1rem;
  }
  .survey-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .survey-hero-action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .survey-hero-actions {
    width: 100%;
  }
  .survey-hero-cta {
    width: 100%;
    justify-content: center;
  }
  .survey-hero-stats div {
    padding-inline: .5rem;
  }
}

@media (max-width: 640px) {
  .survey-card-grid, .survey-form-grid { grid-template-columns: 1fr; }
  .survey-share-footer, .survey-login-callout, .survey-qr-card, .survey-submit-panel, .comunidad-surveys-banner { flex-direction: column; align-items: stretch; }
  .survey-closed-list article { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .survey-closed-list__actions { width: 100%; flex-direction: row; justify-content: space-between; }
  .survey-card-results > div { grid-template-columns: 100px 1fr 48px; }
  .survey-result-question { grid-template-columns: 1fr; }
  .survey-share-links { grid-template-columns: 1fr; }
  .survey-qr-card img { width: min(100%, 220px); height: auto; align-self: center; }
  .survey-builder-question__top { align-items: flex-start; gap: .5rem; }
  .survey-builder-question__top > div { flex-wrap: wrap; justify-content: flex-end; }
  .comunidad-surveys-banner__actions { align-items: stretch; }
  .comunidad-surveys-banner__actions a { text-align: center; }
  .survey-question legend { align-items: flex-start; }
  .survey-question legend em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .survey-result-bar span { animation: none; }
  .survey-btn, .survey-card__image img, .survey-hero-cta, .survey-card__share-btn { transition: none; }
}
