/* =========================================================
   Hero estándar del plugin
   Versión centrada solo con texto y botones
   ========================================================= */

.home-hero--standard {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #fff;
  background: linear-gradient(135deg, #051f43 0%, #08335f 42%, #061733 100%);
}

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

.home-hero--standard::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%),
    linear-gradient(180deg, rgba(3, 14, 34, 0.12) 0%, rgba(3, 14, 34, 0.34) 100%);
  opacity: 1;
}

.home-hero--standard::after {
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(9, 26, 57, 0) 0%, rgba(9, 26, 57, 0.24) 100%);
}

.home-hero--standard > .wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

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: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-standard-scene__halo,
.hero-standard-scene__beam,
.hero-standard-scene__ring,
.hero-standard-scene__grid {
  position: absolute;
  display: block;
}

.hero-standard-scene__halo {
  border-radius: 50%;
  filter: none;
}

.hero-standard-scene__halo--left {
  top: -24%;
  left: -16%;
  width: min(72vw, 1180px);
  height: min(72vw, 1180px);
  background: radial-gradient(circle at 42% 36%, rgba(38, 118, 202, 0.18) 0%, rgba(14, 82, 156, 0.14) 56%, rgba(5, 42, 89, 0.06) 100%);
  box-shadow: none;
}

.hero-standard-scene__halo--right {
  top: 4%;
  right: -18%;
  width: min(76vw, 1280px);
  height: min(76vw, 1280px);
  background: radial-gradient(circle at 44% 38%, rgba(54, 138, 224, 0.2) 0%, rgba(24, 97, 182, 0.14) 58%, rgba(8, 52, 112, 0.06) 100%);
  box-shadow: none;
  opacity: 0.96;
}

.hero-standard-scene__beam {
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, rgba(64, 146, 225, 0.15) 0%, rgba(21, 96, 166, 0.11) 60%, rgba(6, 49, 103, 0.05) 100%);
  box-shadow: none;
  opacity: 0.84;
}

.hero-standard-scene__beam--top {
  bottom: -28%;
  left: 18%;
  width: min(58vw, 980px);
  height: min(58vw, 980px);
  transform: none;
}

.hero-standard-scene__beam--bottom {
  display: none;
  transform: none;
}

.hero-standard-scene__ring {
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  opacity: 0.88;
}

.hero-standard-scene__ring--top-left {
  top: -2%;
  left: -7%;
  width: min(38vw, 540px);
  height: min(38vw, 540px);
}

.hero-standard-scene__ring--top-right {
  top: -4%;
  right: -8%;
  width: min(42vw, 640px);
  height: min(42vw, 640px);
}

.hero-standard-scene__ring--bottom {
  right: 4%;
  bottom: -9%;
  width: min(34vw, 480px);
  height: min(34vw, 480px);
  opacity: 0.82;
}

.hero-standard-scene__grid {
  inset: 0;
  background: none;
  opacity: 0;
}

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

.hero-standard__layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: stretch;
}

.hero-standard__layout--no-media {
  grid-template-columns: 1fr;
}

.hero-standard__content {
  display: grid;
  justify-items: start;
  gap: 1.15rem;
  width: min(100%, 900px);
  text-align: left;
  padding-top: clamp(2rem, 4vw, 3.2rem);
  padding-bottom: clamp(4.4rem, 7.2vw, 7rem);
}

.hero-standard__eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 241, 255, 0.72);
}

.hero-standard__title {
  margin: 0;
  font-family: var(--font-display-light);
  font-size: clamp(2.7rem, 5vw, 4.75rem);
  font-weight: 300;
  line-height: 0.74;
  letter-spacing: -0.035em;
  color: #fff;
}

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

.hero-standard__title-accent-track {
  display: inline-block;
  background: linear-gradient(90deg, #f3fbfd 0%, #a7edf5 22%, #17a2b8 50%, #a7edf5 78%, #f3fbfd 100%);
  background-size: 260% 100%;
  background-position: 0 50%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  padding-inline: 0.02em;
  padding-bottom: 0.08em;
  line-height: 1.12;
}

.hero-standard__title-rule {
  width: min(180px, 24vw);
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 163, 79, 0) 0%, rgba(255, 163, 79, 0.9) 50%, rgba(255, 163, 79, 0) 100%);
  opacity: 0.92;
}

.hero-standard__tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1.9vw, 1.52rem);
  font-weight: 600;
  line-height: 1.18;
  color: rgba(233, 241, 255, 0.98);
}

.hero-standard__summary {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.7;
  color: rgba(230, 238, 251, 0.82);
}

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

.hero-standard__media {
  display: grid;
  justify-items: stretch;
  align-self: end;
  margin: 0;
  padding: 0;
  position: relative;
}

.hero-standard__media::before {
  content: "";
  position: absolute;
  inset: -22% -24% -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 76, 0.34) 0%, rgba(255, 176, 76, 0.22) 24%, rgba(29, 60, 113, 0.14) 50%, rgba(29, 60, 113, 0) 78%);
  filter: blur(20px);
  pointer-events: none;
}

html[data-theme="dark"] .hero-standard__media::before {
  background: radial-gradient(circle, rgba(255, 176, 76, 0.22) 0%, rgba(255, 176, 76, 0.14) 22%, rgba(3, 18, 42, 0.12) 50%, rgba(3, 18, 42, 0) 76%);
}

.hero-standard__media > .hero-standard__portrait-image {
  position: relative;
  z-index: 1;
}

.hero-standard__portrait-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.hero-standard__button {
  min-height: 52px;
  padding-inline: 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-standard__button--primary {
  --btn-bg: linear-gradient(135deg, #f59a22 0%, #d96f08 100%);
  --btn-bg-hover: linear-gradient(135deg, #ffb24a 0%, #f58d1b 100%);
  --btn-bg-active: linear-gradient(135deg, #d86f08 0%, #b85a05 100%);
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.08);
  --btn-border-hover: rgba(255, 255, 255, 0.12);
  --btn-border-active: rgba(255, 255, 255, 0.18);
  --btn-ring: rgba(245, 127, 31, 0.28);
  --btn-shadow-hover: 0 18px 34px rgba(245, 127, 31, 0.32);
}

.hero-standard__button--secondary {
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.38);
  --btn-border-hover: rgba(255, 255, 255, 0.56);
  --btn-border-active: rgba(255, 255, 255, 0.62);
  --btn-bg-hover: rgba(255, 255, 255, 0.12);
  --btn-bg-active: rgba(255, 255, 255, 0.18);
  --btn-ring: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .home-hero--standard {
  color: #eff4fb;
  background: linear-gradient(135deg, #031225 0%, #07192f 44%, #040d1c 100%);
}

html[data-theme="dark"] .home-hero--standard::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 28%),
    linear-gradient(180deg, rgba(2, 8, 20, 0.18) 0%, rgba(2, 8, 20, 0.48) 100%);
}

html[data-theme="dark"] .home-hero--standard::after {
  background: linear-gradient(180deg, rgba(3, 12, 27, 0) 0%, rgba(3, 12, 27, 0.38) 100%);
}

html[data-theme="dark"] .hero-standard-scene__halo--left {
  background: radial-gradient(circle at 42% 36%, rgba(27, 78, 151, 0.16) 0%, rgba(13, 52, 108, 0.1) 56%, rgba(3, 18, 42, 0.04) 100%);
  opacity: 0.92;
}

html[data-theme="dark"] .hero-standard-scene__halo--right {
  background: radial-gradient(circle at 44% 38%, rgba(18, 64, 132, 0.18) 0%, rgba(10, 43, 93, 0.12) 58%, rgba(2, 15, 35, 0.04) 100%);
  opacity: 0.88;
}

html[data-theme="dark"] .hero-standard-scene__beam {
  background: radial-gradient(circle at 42% 40%, rgba(27, 78, 151, 0.12) 0%, rgba(12, 49, 102, 0.08) 60%, rgba(2, 14, 33, 0.03) 100%);
  opacity: 0.72;
}

html[data-theme="dark"] .hero-standard-scene__ring {
  border-color: rgba(255, 255, 255, 0.16);
  opacity: 0.64;
}

html[data-theme="dark"] .hero-standard__title-rule {
  background: linear-gradient(90deg, rgba(255, 163, 79, 0) 0%, rgba(255, 163, 79, 0.72) 50%, rgba(255, 163, 79, 0) 100%);
}

html[data-theme="dark"] .hero-standard__title-accent-track {
  background-size: 260% 100%;
}

html[data-theme="dark"] .hero-standard__tagline {
  color: rgba(231, 239, 249, 0.92);
}

html[data-theme="dark"] .hero-standard__summary {
  color: rgba(210, 223, 238, 0.7);
}

html[data-theme="dark"] .hero-standard__eyebrow {
  color: rgba(196, 210, 228, 0.7);
}

html[data-theme="dark"] .hero-standard__portrait {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="dark"] .hero-standard__button--secondary {
  --btn-border: rgba(255, 255, 255, 0.18);
  --btn-border-hover: rgba(255, 255, 255, 0.3);
  --btn-border-active: rgba(255, 255, 255, 0.36);
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
  --btn-bg-active: rgba(255, 255, 255, 0.12);
}

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

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

.hero-standard__button {
  box-shadow: 0 12px 26px rgba(10, 24, 44, 0.18);
}

.hero-standard__button:hover {
  transform: translateY(-1px);
}

.home-portada-modular-section {
  position: relative;
  overflow: clip;
  color: #14304f;
  background: #f4f7fb;
}

.home-portada-modular-section.section-shell {
  padding: 0;
}

.home-portada-modular-section > .wrapper {
  display: grid;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.home-portada-modular-section__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  align-items: center;
  padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(3rem, 4.8vw, 4.4rem);
}

.home-portada-modular-section__copy {
  display: grid;
  gap: 0.7rem;
  max-width: 760px;
}

.home-portada-modular-section__eyebrow {
  color: #4d6a88;
}

.home-portada-modular-section__title {
  font-family: var(--font-display-light);
  color: #15304f;
}

.home-portada-modular-section__text {
  margin: 0;
  max-width: 58ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  color: #486078;
}

.home-portada-modular-section__facts {
  display: grid;
  gap: 0.9rem;
  align-content: center;
}

.home-portada-modular-section__fact-card {
  border-radius: 4px;
  border: 1px solid rgba(45, 79, 112, 0.1);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 34, 58, 0.08);
}

.home-portada-modular-section__fact-card {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  min-height: 5.25rem;
  padding: 1rem 1.05rem;
}

.home-portada-modular-section__fact-body {
  min-width: 0;
}

.home-portada-modular-section__fact-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7f95;
}

.home-portada-modular-section__fact-icon {
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #f57f1f;
  background: rgba(245, 127, 31, 0.12);
}

.home-portada-modular-section__fact-card:nth-child(2) .home-portada-modular-section__fact-icon,
.home-portada-modular-section__fact-card:nth-child(3) .home-portada-modular-section__fact-icon {
  color: #1d69b4;
  background: rgba(29, 105, 180, 0.1);
}

.home-portada-modular-section__fact-card:nth-child(3) .home-portada-modular-section__fact-icon {
  color: #f57f1f;
  background: rgba(245, 127, 31, 0.12);
}

.home-portada-modular-section__fact-value {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #15304f;
}

.home-portada-modular-section__lower {
  width: min(calc(100vw - clamp(2rem, 4vw, 3rem)), calc(var(--wrapper-max) + clamp(12rem, 16vw, 18rem)));
  margin: clamp(1rem, 1.8vw, 1.6rem) auto clamp(2.5rem, 4vw, 4rem);
  padding: clamp(2.2rem, 3.2vw, 3.25rem) 0 clamp(3rem, 4.5vw, 4.25rem);
  border-radius: 4px;
  background: #e1e5ea;
  border: 1px solid rgba(29, 60, 113, 0.08);
  box-shadow: 0 12px 28px rgba(15, 34, 58, 0.05);
  box-sizing: border-box;
  overflow: clip;
  margin-top: 0;
}

.home-portada-modular-section__lower-inner {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  width: min(calc(100% - clamp(2rem, 4vw, 3rem)), var(--wrapper-max));
  margin-inline: auto;
}

.home-portada-modular-section__content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  background-image:
    linear-gradient(rgba(29, 60, 113, 0.14), rgba(29, 60, 113, 0.14)),
    linear-gradient(rgba(29, 60, 113, 0.14), rgba(29, 60, 113, 0.14));
  background-position: 33.333% 0, 66.666% 0;
  background-size: 1px 100%, 1px 100%;
  background-repeat: no-repeat;
}

.home-portada-modular-section__lower-head {
  display: grid;
  gap: 0.4rem;
}

.home-portada-modular-section__lower-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: #15304f;
}

.home-portada-modular-section__list-title {
  margin: 0 0 0.95rem;
  font-family: var(--font-display-light);
  font-size: 1rem;
  font-weight: 700;
  color: #15304f;
}

.home-portada-modular-section__column {
  min-width: 0;
  padding: 0.35rem 1.1rem;
}

.home-portada-modular-section__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  color: #486078;
  list-style: none;
}

.home-portada-modular-section__list-item {
  display: flex;
  gap: 0.72rem;
  align-items: flex-start;
  line-height: 1.55;
}

.home-portada-modular-section__list-icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: #1d69b4;
  font-size: 1.1rem;
}

.home-portada-modular-section__title-accent {
  color: var(--brand-accent);
}

html[data-theme="dark"] .home-portada-modular-section {
  color: #d9e4f2;
  background: #0b1626;
}

html[data-theme="dark"] .home-portada-modular-section__eyebrow {
  color: rgba(196, 210, 228, 0.72);
}

html[data-theme="dark"] .home-portada-modular-section__title,
html[data-theme="dark"] .home-portada-modular-section__lower-title,
html[data-theme="dark"] .home-portada-modular-section__list-title,
html[data-theme="dark"] .home-portada-modular-section__fact-value {
  color: #eef3f8;
}

html[data-theme="dark"] .home-portada-modular-section__text,
html[data-theme="dark"] .home-portada-modular-section__list {
  color: rgba(214, 226, 240, 0.78);
}

html[data-theme="dark"] .home-portada-modular-section__fact-card {
  background: #122036;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .home-portada-modular-section__fact-label {
  color: rgba(196, 210, 228, 0.64);
}

html[data-theme="dark"] .home-portada-modular-section__fact-icon {
  background: rgba(245, 127, 31, 0.12);
  color: #ff9c47;
}

html[data-theme="dark"] .home-portada-modular-section__fact-card:nth-child(2) .home-portada-modular-section__fact-icon,
html[data-theme="dark"] .home-portada-modular-section__fact-card:nth-child(3) .home-portada-modular-section__fact-icon {
  background: rgba(24, 86, 154, 0.14);
  color: #6ca3da;
}

html[data-theme="dark"] .home-portada-modular-section__lower {
  background: #0f1c30;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .home-portada-modular-section__content-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.075)),
    linear-gradient(rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.075));
}

html[data-theme="dark"] .home-portada-modular-section__column + .home-portada-modular-section__column {
  border-top-color: rgba(255, 255, 255, 0.075);
}

html[data-theme="dark"] .home-portada-modular-section__list-icon {
  color: #6ca3da;
}

html[data-theme="dark"] .home-portada-modular-section__title-accent {
  color: var(--brand-accent);
}

@media (max-width: 991.98px) {
  .home-hero--standard > .wrapper {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-standard__content {
    width: min(100%, 760px);
    padding-top: 1.6rem;
    padding-bottom: 3rem;
  }

  .hero-standard__layout {
    grid-template-columns: 1fr;
  }

  .hero-standard__content {
    justify-items: center;
    text-align: center;
  }

  .hero-standard__actions {
    justify-content: center;
  }

  .hero-standard__title-rule {
    margin-inline: auto;
  }

  .hero-standard__media {
    display: none;
  }

  .home-portada-modular-section__top,
  .home-portada-modular-section__content-grid {
    grid-template-columns: 1fr;
  }

  .home-portada-modular-section__column + .home-portada-modular-section__column {
    border-left: 0;
    border-top: 1px solid rgba(29, 60, 113, 0.14);
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .home-portada-modular-section__content-grid {
    background-image: none;
  }
}

@media (max-width: 767.98px) {
  .hero-standard-scene__halo--left {
    width: 520px;
    height: 520px;
  }

  .hero-standard-scene__halo--right {
    width: 560px;
    height: 560px;
  }

  .hero-standard-scene__beam--top {
    width: 420px;
    height: 420px;
  }

  .hero-standard-scene__beam--bottom {
    display: none;
  }

  .hero-standard-scene__ring--top-left {
    width: 320px;
    height: 320px;
  }

  .hero-standard-scene__ring--top-right {
    width: 380px;
    height: 380px;
  }

  .hero-standard-scene__ring--bottom {
    width: 300px;
    height: 300px;
  }

  .hero-standard__title {
    font-size: clamp(2.35rem, 10vw, 3.55rem);
    line-height: 0.96;
  }

  .hero-standard__title-rule {
    width: min(140px, 34vw);
    margin-top: 0.22rem;
    margin-bottom: 0.1rem;
  }

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

  .hero-standard__summary {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-standard__actions {
    flex-direction: column;
    width: min(100%, 420px);
  }

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

  .home-portada-modular-section > .wrapper {
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-portada-modular-section__fact-card { border-radius: 4px; }
}

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