/* ============================================================
   INVERSIONES — DISEÑO CORPORATIVO GRUPO ENERGY
============================================================ */

/* ============================================================
   NAVBAR FLOTANTE (mismo mecanismo que Inicio/Soluciones/Contacto):
   glass sobre el hero, sólido + pegado arriba al pasar el hero
   (.hero-cleared, togglea vía IntersectionObserver en js/inversiones.js).
============================================================ */
body.page-inversiones .header-reformular {
  background: rgba(2, 23, 28, 0.32) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

body.page-inversiones .header-reformular .logo img {
  filter: brightness(0) invert(1) !important;
  transition: filter 0.4s ease;
}

body.page-inversiones .header-reformular .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.page-inversiones .header-reformular .nav-link i {
  opacity: 0.65;
}

body.page-inversiones .header-reformular .hamburger-btn span {
  background: #fff;
}

body.page-inversiones .header-reformular:not(.hero-cleared) .nav-link:hover {
  background: rgba(76, 183, 155, 0.45);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

body.page-inversiones .header-reformular:not(.hero-cleared) .nav-link--netbilling:hover {
  background: rgba(191, 147, 94, 0.5);
}

body.page-inversiones .header-reformular.hero-cleared {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.page-inversiones .header-reformular.hero-cleared .logo img {
  filter: none !important;
}

body.page-inversiones .header-reformular.hero-cleared .nav-link {
  color: var(--abyss) !important;
}

body.page-inversiones .header-reformular.hero-cleared .hamburger-btn span {
  background: var(--abyss);
}

body.page-inversiones #main-content {
  margin-top: 0 !important;
}

/* ============================================================
   HERO — min-height (no height fijo como en otras páginas): lleva la
   cifra y su aviso de riesgo, que nunca deben quedar recortados.
============================================================ */
.hero-corp {
  position: relative;
  min-height: 100vh;
  min-height: max(600px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-corp__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-corp__bg.active {
  animation: heroZoomOut 8s ease-out forwards;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.hero-corp__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 23, 28, 0.4) 0%, transparent 22%),
    linear-gradient(to top,
      rgba(2, 23, 28, 0.94) 0%,
      rgba(2, 23, 28, 0.65) 45%,
      rgba(2, 23, 28, 0.15) 80%),
    linear-gradient(100deg,
      rgba(2, 23, 28, 0.78) 0%,
      rgba(2, 23, 28, 0.45) 40%,
      transparent 66%);
  z-index: 1;
}

.hero-corp .hero-corp__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4rem;
  text-align: left;
}

.hero-corp .hero-corp__content .container {
  width: 100%;
}

.hero-corp .hero-corp__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 20ch;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-corp__title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-corp .hero-corp__sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 50ch;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.inv-rate {
  max-width: 34rem;
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}

.inv-rate__figure {
  margin: 0 0 0.5rem;
}

.inv-rate__label {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.inv-rate__num {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold-light);
}

.inv-rate__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-image-note {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   TÍTULOS
============================================================ */
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.section-title-corp {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--abyss);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.section-desc-corp {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 55ch;
  line-height: 1.65;
}

.js-word-reveal .wr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.js-word-reveal .wr-word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-word-reveal.wr-revealed .wr-word-inner {
  transform: translateY(0);
}

/* ============================================================
   SECTORES
============================================================ */
.section-sectors {
  padding: 7rem 0;
  background: var(--page);
  scroll-margin-top: 5rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}


.sector-card {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 20px;
  background: var(--abyss);
}

.sector-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sector-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(2, 23, 28, 0.94) 0%,
    rgba(2, 23, 28, 0.6) 45%,
    rgba(2, 23, 28, 0.08) 85%);
}

.sector-card__body {
  position: relative;
  padding: 2rem;
  color: #fff;
}

.sector-card__body h3 {
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.sector-card__body p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.sector-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
  font-weight: 700;
}

.sector-card__cta i {
  transition: transform 0.3s ease;
}

.sector-card:hover .sector-card__img {
  transform: scale(1.05);
}

.sector-card:hover .sector-card__cta i {
  transform: translateX(4px);
}

.sector-card:focus-visible,
.meeting-copy-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   SOLICITUD DE REUNIÓN
============================================================ */
.section-meeting {
  padding: 7rem 0 4rem;
  background: var(--abyss);
  scroll-margin-top: 4rem;
}

.meeting-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.meeting-title {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

.meeting-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 45ch;
}

.meeting-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  color: #fff;
  font-weight: 600;
}

.meeting-points i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.meeting-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.meeting-form .full-width {
  grid-column: 1 / -1;
}

.meeting-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.meeting-form input,
.meeting-form select,
.meeting-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.meeting-form input::placeholder,
.meeting-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.meeting-form select option {
  color: var(--text);
  background-color: #fff;
}

.meeting-form textarea {
  resize: vertical;
}

.meeting-form input:focus,
.meeting-form select:focus,
.meeting-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(191, 147, 94, 0.25);
}

.meeting-submit {
  width: 100%;
}

.meeting-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.meeting-fallback {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meeting-fallback p {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.meeting-copy-btn {
  margin-bottom: 1rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.meeting-legal {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1023px) {
  .hero-corp .hero-corp__content {
    padding: 7rem 0 3rem;
  }

  .meeting-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-sectors,
  .section-meeting {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 700px) {
  .sectors-grid,
  .meeting-form {
    grid-template-columns: 1fr;
  }

  .sector-card {
    min-height: 18rem;
  }

  .meeting-form {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-inversiones .header-reformular {
    transition: none;
  }

  .hero-corp__bg.active {
    animation: none;
  }

  .js-word-reveal .wr-word-inner {
    transform: none;
    transition: none;
  }

  .sector-card__img,
  .sector-card__cta i {
    transition: none;
  }
}
