html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2D2D2D;
  transition: color .25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.footer-link:hover {
  color: #5A2D82;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  background: #E75480;
  transition: width .25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-link,
.footer-link {
  font-weight: 600;
  transition: color .25s ease;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #E75480;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  color: #2D2D2D;
}

.section-copy {
  margin-top: 1rem;
  max-width: 46rem;
  color: rgba(45,45,45,.8);
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose-copy p {
  margin-top: 1rem;
  color: rgba(45,45,45,.85);
  line-height: 1.95;
}

.mini-card {
  border-radius: 22px;
  background: #F5F3F8;
  padding: 1.1rem 1rem;
  box-shadow: 0 18px 40px rgba(90, 45, 130, 0.08);
}

.mini-card h3 {
  color: #5A2D82;
  font-size: 0.95rem;
  font-weight: 700;
}

.mini-card p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(45,45,45,.78);
}

.image-card {
  width: 100%;
  max-width: 540px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #F9D8E2, #F5F3F8);
  box-shadow: 0 18px 40px rgba(90, 45, 130, 0.12);
  border: 1px solid rgba(90,45,130,.08);
}

.fallback-image,
.fallback-image-mobile {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #5A2D82;
  background: linear-gradient(135deg, rgba(249,216,226,.9), rgba(245,243,248,.95));
  font-weight: 700;
}

.fallback-image {
  min-height: 560px;
}

.fallback-logo,
.fallback-logo-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fallback-logo {
  background: #5A2D82;
  color: #fff;
}

.fallback-logo-white {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.hero-fallback,
.canal-fallback {
  background: radial-gradient(circle at top left, rgba(231,84,128,.18), transparent 36%),
              linear-gradient(120deg, #452164 0%, #5A2D82 100%);
}

.candidate-wrap {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(100%, 620px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.candidate-image {
  max-height: 760px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.18));
}

.candidate-fallback {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.18));
  border: 1px solid rgba(255,255,255,.12);
}

.candidate-fallback-label {
  margin-bottom: 5rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: white;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.flip-card {
  perspective: 1200px;
  min-height: 280px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform .7s ease;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 26px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(90,45,130,.12);
}

.flip-front {
  background: white;
  border: 1px solid rgba(90,45,130,.08);
}

.flip-front h3,
.proposal-card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 800;
  color: #2D2D2D;
}

.flip-front p,
.proposal-card p {
  margin-top: 0.85rem;
  color: rgba(45,45,45,.76);
  line-height: 1.7;
}

.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #5A2D82, #452164);
  color: white;
  border: 1px solid rgba(255,255,255,.08);
}

.flip-back p {
  line-height: 1.9;
  color: rgba(255,255,255,.92);
}

.icon-badge,
.proposal-number,
.modal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(231,84,128,.12);
  color: #E75480;
  font-size: .9rem;
  font-weight: 800;
}

.proposal-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  border: 1px solid rgba(90,45,130,.08);
  background: white;
  padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(90,45,130,.09);
}

.proposal-trigger {
  margin-top: 1.5rem;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #5A2D82;
  color: white;
  padding: .9rem 1.2rem;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.proposal-trigger:hover {
  transform: translateY(-2px);
  background: #452164;
  box-shadow: 0 18px 32px rgba(90,45,130,.18);
}

.info-row {
  border-left: 3px solid #E75480;
  padding-left: 1rem;
  line-height: 1.8;
}

.form-label {
  display: inline-block;
  margin-bottom: .65rem;
  font-size: .92rem;
  font-weight: 700;
  color: #2D2D2D;
}

.form-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(90,45,130,.14);
  background: #fff;
  padding: 1rem 1rem;
  font-size: .95rem;
  color: #2D2D2D;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(90,45,130,.45);
  box-shadow: 0 0 0 4px rgba(90,45,130,.08);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 21, .65);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  background: white;
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: 0 28px 48px rgba(0,0,0,.2);
}

.modal-panel h3 {
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #2D2D2D;
}

.modal-panel p,
.modal-panel li {
  margin-top: 1rem;
  color: rgba(45,45,45,.82);
  line-height: 1.9;
}

.modal-panel ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(90,45,130,.1);
  background: #F5F3F8;
  color: #5A2D82;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}

.modal-close:hover {
  background: #F9D8E2;
  transform: scale(1.03);
}

@media (max-width: 1023px) {
  .candidate-wrap {
    position: static;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }

  .image-card {
    min-height: 420px;
  }

  .flip-card,
  .flip-card-inner {
    min-height: 250px;
  }

  .modal-panel {
    padding: 1.6rem 1.1rem 1.3rem;
  }
}
