/* =========================================================
   Hero electoral del plugin
   ========================================================= */

.home-hero--standard {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(70, 146, 255, 0.28) 0%, transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(32, 193, 230, 0.18) 0%, transparent 18%),
    linear-gradient(135deg, #071937 0%, #0b3567 42%, #061225 100%);
}

.home-hero--standard::before,
.home-hero--standard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.home-hero--standard::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.03) 0%, transparent 18%),
    radial-gradient(circle at 14% 78%, rgba(32, 193, 230, 0.1) 0%, transparent 22%),
    radial-gradient(circle at 88% 28%, rgba(120, 171, 255, 0.14) 0%, transparent 26%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 32px
    );
}

.home-hero--standard::after {
  inset: auto 0 0;
  height: 210px;
  background: linear-gradient(180deg, rgba(6, 18, 37, 0) 0%, rgba(6, 18, 37, 0.5) 100%);
}

.hero-standard-scene::before,
.hero-standard-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-standard-scene::before {
  inset: 10% -8% auto;
  height: 78%;
  background:
    linear-gradient(140deg, rgba(60, 137, 255, 0.24) 0%, rgba(60, 137, 255, 0.06) 34%, transparent 35%),
    linear-gradient(320deg, rgba(18, 94, 173, 0.22) 0%, rgba(18, 94, 173, 0.06) 38%, transparent 39%);
  clip-path: polygon(0 18%, 42% 0, 100% 18%, 100% 58%, 54% 100%, 0 82%);
  opacity: 0.9;
  filter: blur(0.3px);
}

.hero-standard-scene::after {
  inset: auto -6% -8% auto;
  width: min(54vw, 42rem);
  height: min(54vw, 42rem);
  background:
    radial-gradient(circle at 38% 30%, rgba(142, 220, 255, 0.18) 0%, rgba(142, 220, 255, 0.03) 36%, transparent 58%),
    conic-gradient(from 220deg, rgba(29, 90, 178, 0.42) 0deg, rgba(29, 90, 178, 0.06) 68deg, transparent 69deg, transparent 180deg, rgba(32, 193, 230, 0.18) 220deg, transparent 360deg);
  clip-path: polygon(18% 0, 100% 12%, 86% 100%, 0 88%);
  opacity: 0.72;
  filter: blur(1px);
}

.home-hero--standard > .wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 0;
  padding-top: clamp(2.75rem, 4vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 4vw, 4.25rem);
}

html.js .home .home-hero--standard > .wrapper {
  opacity: 0;
  visibility: hidden;
}

html.js .home .home-hero--standard > .wrapper.is-ready {
  opacity: 1;
  visibility: visible;
}

.hero-standard-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-standard-scene__orb,
.hero-standard-scene__ring {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.hero-standard-scene__orb,
.hero-standard-scene__ring {
  display: none;
}

.hero-standard {
  position: relative;
  display: grid;
  z-index: 1;
  justify-items: stretch;
}

.hero-standard::before {
  content: "";
  position: absolute;
  inset: 10% 50% auto auto;
  z-index: -1;
  width: min(34vw, 26rem);
  height: min(34vw, 26rem);
  border-radius: 30% 70% 55% 45% / 40% 35% 65% 60%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 68%);
  transform: translateX(44%) rotate(12deg);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.hero-standard__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
}

.hero-standard__content {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  width: min(100%, 900px);
  text-align: center;
}

.hero-standard__content,
.hero-standard__title,
.hero-standard__tagline,
.hero-standard__summary,
.hero-standard__actions {
  position: relative;
  z-index: 2;
}

.hero-standard__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(228, 239, 255, 0.72);
}

.hero-standard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 6.4vw, 6.4rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.hero-standard__title .hero-line {
  display: block;
}

.hero-standard__title-line--strong {
  display: inline-block;
}

.hero-standard__title-accent-track {
  display: inline-block;
  color: var(--brand-primary-accent, #17a2b8);
  text-shadow: 0 0 26px rgba(23, 162, 184, 0.12);
}

.hero-standard__title-rule {
  display: block;
  width: min(100%, 56rem);
  height: 4px;
  margin: 0.2rem 0 0.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 72, 152, 0.08) 0%, rgba(29, 72, 152, 0.98) 52%, rgba(29, 72, 152, 0.08) 100%);
  box-shadow: 0 0 18px rgba(29, 72, 152, 0.18);
}

.hero-standard__tagline {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: clamp(1.24rem, 2.1vw, 1.68rem);
  font-weight: 600;
  line-height: 1.18;
  color: rgba(238, 244, 252, 0.98);
}

.hero-standard__summary {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: clamp(1.06rem, 1.18vw, 1.18rem);
  line-height: 1.68;
  color: rgba(217, 228, 241, 0.82);
}

.hero-standard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-standard__button {
  min-height: 58px;
  padding-inline: 24px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(10, 24, 44, 0.18);
  opacity: 1;
  background-clip: padding-box;
}

.hero-standard__button--primary {
  --btn-bg: #fff;
  --btn-bg-hover: rgba(255, 255, 255, 0.92);
  --btn-bg-active: rgba(255, 255, 255, 0.84);
  --btn-color: var(--brand-primary-strong);
  --btn-border: rgba(255, 255, 255, 0.88);
  --btn-border-hover: rgba(255, 255, 255, 0.96);
  --btn-border-active: rgba(255, 255, 255, 1);
  --btn-ring: rgba(255, 255, 255, 0.28);
  --btn-shadow-hover: 0 18px 34px rgba(255, 255, 255, 0.16);
}

.hero-standard__button--secondary {
  --btn-bg: #17a2b8;
  --btn-bg-hover: #1ab0c7;
  --btn-bg-active: #128798;
  --btn-color: #fff;
  --btn-border: rgba(23, 162, 184, 0.18);
  --btn-border-hover: rgba(23, 162, 184, 0.28);
  --btn-border-active: rgba(23, 162, 184, 0.34);
  --btn-ring: rgba(23, 162, 184, 0.24);
  --btn-shadow-hover: 0 18px 34px rgba(23, 162, 184, 0.28);
}

.hero-standard__button--secondary:hover,
.hero-standard__button--secondary:focus-visible,
.hero-standard__button--secondary:hover i,
.hero-standard__button--secondary:focus-visible i {
  color: #fff;
}

html[data-theme="dark"] .home-hero--standard {
  background:
    radial-gradient(circle at 20% 16%, rgba(60, 137, 255, 0.2) 0%, transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(32, 193, 230, 0.14) 0%, transparent 16%),
    linear-gradient(135deg, #020b18 0%, #061634 44%, #02070f 100%);
}

html[data-theme="dark"] .home-hero--standard::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.015) 0%, transparent 18%),
    radial-gradient(circle at 12% 76%, rgba(32, 193, 230, 0.08) 0%, transparent 22%),
    radial-gradient(circle at 86% 26%, rgba(120, 171, 255, 0.1) 0%, transparent 24%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.01) 0,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 34px
    );
}

html[data-theme="dark"] .hero-standard__eyebrow {
  color: rgba(211, 223, 241, 0.72);
}

html[data-theme="dark"] .hero-standard__summary {
  color: rgba(212, 224, 239, 0.74);
}

html[data-theme="dark"] .hero-standard__button--primary {
  --btn-bg-hover: rgba(255, 255, 255, 0.92);
  --btn-bg-active: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .hero-standard__button--secondary {
  --btn-bg: #17a2b8;
  --btn-bg-hover: #1ab0c7;
  --btn-bg-active: #128798;
  --btn-color: #fff;
  --btn-border: rgba(23, 162, 184, 0.18);
  --btn-border-hover: rgba(23, 162, 184, 0.28);
  --btn-border-active: rgba(23, 162, 184, 0.34);
  --btn-ring: rgba(23, 162, 184, 0.24);
}

@media (max-width: 767.98px) {
  .hero-standard::before {
    inset: 8% 42% auto auto;
    width: min(48vw, 18rem);
    height: min(48vw, 18rem);
    opacity: 0.4;
  }

  .hero-standard-scene::before {
    inset: 12% -14% auto;
    height: 72%;
  }

  .hero-standard-scene::after {
    inset: auto -18% -12% auto;
    width: min(76vw, 22rem);
    height: min(76vw, 22rem);
  }

  .hero-standard__title {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
    line-height: 0.9;
  }

  .hero-standard__title-rule {
    width: 100%;
  }

  .hero-standard__tagline {
    font-size: 1.08rem;
  }

  .hero-standard__summary {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-standard__actions {
    flex-direction: column;
  }

  .hero-standard__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-standard-scene__orb,
  .hero-standard-scene__ring {
    transform: none !important;
    transition: none !important;
  }
}
