/* ============================================================
   NET BILLING — DISEÑO CORPORATIVO GRUPO ENERGY
============================================================ */

/* ============================================================
   NAVBAR FLOTANTE (mismo mecanismo que Inicio/Soluciones): glass
   sobre el hero, sólido + pegado arriba al pasar el hero
   (.hero-cleared, togglea vía IntersectionObserver en js/net-billing.js).
============================================================ */
body.page-net-billing .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-net-billing .header-reformular .logo img {
  filter: brightness(0) invert(1) !important;
  transition: filter 0.4s ease;
}

body.page-net-billing .header-reformular .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.page-net-billing .header-reformular .nav-link i {
  opacity: 0.65;
}

body.page-net-billing .header-reformular .hamburger-btn span {
  background: #fff;
}

body.page-net-billing .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-net-billing
  .header-reformular:not(.hero-cleared)
  .nav-link--netbilling:hover {
  background: rgba(191, 147, 94, 0.5);
  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-net-billing .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-net-billing .header-reformular.hero-cleared .logo img {
  filter: none !important;
}

body.page-net-billing .header-reformular.hero-cleared .nav-link {
  color: var(--abyss) !important;
}

body.page-net-billing .header-reformular.hero-cleared .hamburger-btn span {
  background: var(--abyss);
}

body.page-net-billing #main-content {
  margin-top: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  body.page-net-billing .header-reformular {
    transition: none;
  }
}

/* AJUSTES HERO (ADN INICIO) — pantalla completa */
.hero-corp {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

.hero-corp__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom;
  z-index: 0;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: transform, opacity;
  transform: scale(1);
  backface-visibility: hidden;
}

.hero-corp__bg.active {
  opacity: 1;
  animation: heroZoomOut 8s ease-out forwards;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

/* Overlay direccional (mismo criterio que Inicio/Soluciones): oscuro solo
   donde vive el texto (abajo-izquierda), el resto de la foto queda más
   despejado. */
.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.92) 0%,
      rgba(2, 23, 28, 0.55) 32%,
      transparent 62%
    ),
    linear-gradient(
      100deg,
      rgba(2, 23, 28, 0.72) 0%,
      rgba(2, 23, 28, 0.38) 34%,
      transparent 58%
    );
  z-index: 1;
}

@media (max-width: 1023px) {
  .hero-corp__overlay {
    background:
      linear-gradient(to bottom, rgba(2, 23, 28, 0.45) 0%, transparent 22%),
      linear-gradient(
        to top,
        rgba(2, 23, 28, 0.95) 0%,
        rgba(2, 23, 28, 0.65) 40%,
        transparent 68%
      );
  }
}

.hero-corp .hero-corp__content {
  position: relative;
  z-index: 2;
  padding: 0 0 4rem;
  text-align: left;
  /* Alineación a la izquierda en escritorio */
}

@media (max-width: 1023px) {
  .hero-corp .hero-corp__content {
    text-align: center;
    padding: 0 1rem 4rem;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-corp .hero-corp__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-corp__actions {
    justify-content: center !important;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #4cb79b78;
  border: 1px solid rgb(76 183 155);
  color: #f3f3fbf0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.75rem;
}

.hero-corp .hero-corp__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 30ch;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-corp__title em {
  font-style: normal;
  color: var(--gold);
}

.hero-corp .hero-corp__sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 50ch;
  margin-left: 0;
  margin-right: 0;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-corp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  /* Botones alineados a la izquierda */
}

/* ============================================================
   UTILITIES: HEADERS CORPORATIVOS (ADN CONTACTO)
============================================================ */
.section-head {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.5rem;
  gap: 0.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
  display: block;
}

.section-title-corp {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--abyss);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 auto 1rem;
  position: relative;
  display: inline-block;
}

.section-desc-corp {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 55ch;
  line-height: 1.65;
}

/* ============================================================
   REVEAL DE TÍTULOS POR PALABRA (js-word-reveal, ver js/net-billing.js)
   Mismo mecanismo que Inicio/Soluciones.
============================================================ */
.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);
}

@media (prefers-reduced-motion: reduce) {
  .js-word-reveal .wr-word-inner {
    transform: none;
    transition: none;
  }
}

/* ============================================================
   SECCIÓN: ¿QUÉ ES EL NET BILLING?
============================================================ */
.section-what-is-net-billing {
  padding: 8rem 0;
  background: var(--page);
}

.net-billing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .net-billing-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
  }
}

.net-billing-intro-col {
  height: 100%;
}

.net-billing-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-current-bottom, 80px) + 3rem);
  align-self: start;
  height: fit-content;
  z-index: 20;
}

.net-billing-intro-col .section-head {
  text-align: left;
  align-items: flex-start;
  margin-bottom: 0;
}

.net-billing-intro-col .section-label {
  justify-content: flex-start;
}

.net-billing-intro-col .section-title-corp {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.net-billing-intro-col .section-desc-corp {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--abyss);
}

/* Callout del objetivo — separado del párrafo para que la frase clave
   ("que tu consumo e inyecciones se aproximen a cero") se lea como el
   remate de la explicación, no como una oración más dentro del texto. */
.net-billing-goal {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-radius: 1rem;
  border-left: 3px solid var(--brand-green-primary);
  box-shadow: var(--shmd);
}

.net-billing-goal__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green-primary);
  margin-bottom: 0.6rem;
}

.net-billing-goal__text {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--abyss);
  line-height: 1.35;
}

.net-billing-goal__text strong {
  color: var(--brand-green-primary);
}

/* ============================================================
   FICHA TÉCNICA DE BENEFICIOS (spec-row) — reemplaza las 4 tarjetas
   icono-en-círculo por una lista de filas con dato destacado, más
   cercana a una hoja de especificaciones que a un grid de "features"
   genérico. Cada fila trae un valor real (plazo, cifra, ambiental).
============================================================ */
.benefits-spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.75rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--border2);
  transition:
    padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.benefits-spec-list .spec-row:last-child {
  border-bottom: 1px solid var(--border2);
}

.spec-row:hover {
  padding-left: 1rem;
  border-color: var(--brand);
}

.spec-row__index {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--border2);
  line-height: 1.6;
  transition: color 0.35s ease;
}

.spec-row:hover .spec-row__index {
  color: var(--brand);
}

.spec-row__main {
  min-width: 0;
}

.spec-row__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--abyss);
  margin-bottom: 0.5rem;
}

.spec-row__desc {
  font-size: 1.08rem;
  color: var(--text2);
  line-height: 1.65;
  max-width: 50ch;
}

.spec-row__value {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.spec-row__value strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.spec-row__value span {
  font-size: 0.92rem;
  color: var(--text3);
}

@media (min-width: 640px) {
  .spec-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .spec-row__value {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
    flex-shrink: 0;
  }
}

/* ============================================================
   SECCIÓN QUICK CALC (MINI SIMULADOR)
============================================================ */
.section-quick-calc {
  position: relative;
  padding: 7rem 0;
  margin: 4rem 0 !important;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.quick-calc-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1023px) {
  .quick-calc-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quick-calc-info .section-label {
    justify-content: center;
    width: 100%;
  }

  .quick-calc-info .section-title-corp {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .quick-calc-info .section-desc-corp {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .quick-calc-cta-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .calc-disclaimer {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .quick-calc-layout {
    grid-template-columns: 4.5fr 7.5fr;
    gap: 6rem;
  }
}

.quick-calc-info {
  text-align: left;
}

.quick-calc-info .section-title-corp,
.quick-calc-info .section-desc-corp {
  color: var(--abyss) !important;
}

.quick-calc-info .section-label::before {
  background: var(--gold);
}

.quick-calc-cta-wrap {
  margin-top: 2rem;
}

.calc-disclaimer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text3);
  font-style: italic;
  line-height: 1.6;
  max-width: 45ch;
}

.calc-input-group--light {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 1.5rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.calc-controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .calc-controls-row {
    flex-direction: row;
  }
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.quick-calc-tool-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 3rem 2.5rem;
  box-shadow: var(--shlg);
}

.boleta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border2);
}

.boleta-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--abyss);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boleta-logo {
  height: 1.75rem;
  width: auto;
}

.boleta-header span {
  font-size: 0.9rem;
  color: var(--text3);
  font-weight: 500;
}

.calc-input-group label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  color: var(--white) !important;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-align: left;
}

/* Corrección para el texto dentro del contenedor claro */
.calc-input-group--light label,
.calc-input-group--light .input-hint,
.calc-input-group--light .range-labels {
  color: var(--abyss) !important;
}

.slider-container {
  flex: 1;
  width: 100%;
}

.input-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bill-display {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
  border-radius: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .bill-display {
    width: 220px;
    flex-shrink: 0;
  }
}

.bill-display:focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 30px -10px rgba(191, 147, 94, 0.2);
}

.bill-display .currency {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-green-primary);
  margin-right: 0.5rem;
  user-select: none;
}

.bill-display input {
  background: transparent;
  border: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-green-primary);
  width: 100%;
  outline: none;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2cb490 0%, #008d6f5c 0%);
  outline: none;
  margin-top: 0;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text3);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 4px solid var(--brand-green-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  border-color: var(--gold);
}

.boleta-results {
  margin-top: 3rem;
}

.boleta-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .boleta-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.highlight-item {
  background: var(--green-bg);
  padding: 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  display: block;
}

.highlight-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
  margin-top: 0.25rem;
}

#kit-recommendation {
  font-size: 1.2rem;
  color: var(--abyss);
}

.boleta-main-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px dashed var(--border2);
  border-top: 1px dashed var(--border2);
}

@media (min-width: 768px) {
  .boleta-main-display {
    grid-template-columns: 2fr 1fr;
  }
}

.new-bill-summary {
  text-align: center;
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .new-bill-summary {
    border-left: 1px dashed var(--border2);
  }
}

.new-bill-summary .new-bill-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  display: block;
}

.new-bill-summary .new-bill-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.boleta-history-chart {
  margin-top: 0;
}

.history-chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

.history-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  /* Aumentamos el gap para hacer las barras más delgadas */
  align-items: flex-end;
  height: 120px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border2);
}

.history-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.history-bar {
  width: 50%;
  /* Hacemos la barra más delgada dentro de su celda */
  background-color: var(--border2);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
  position: relative;
  cursor: pointer;
}

.history-bar:hover {
  background-color: var(--brand);
}

.history-bar .tooltip {
  display: none;
  /* Se maneja con JS o hover */
}

.history-bar-month {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text3);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.bar {
  width: 80%;
  background-color: var(--border2);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

.bar--new {
  background-color: var(--brand);
}

.bar-value {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--abyss);
}

.boleta-summary {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--border2);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .boleta-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--green-bg);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.summary-item i {
  font-size: 1.75rem;
  color: var(--brand);
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
}

.summary-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--abyss);
}

.summary-item:first-child .summary-value {
  color: var(--brand);
}

.boleta-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}

.boleta-disclaimer {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

.boleta-disclaimer strong {
  color: var(--gold);
}

/* ============================================================
   SECCIÓN: PROYECTOS REALES — NET BILLING (CARRUSEL)
============================================================ */
.section-real-projects {
  /* Changed to light background */
  padding: 100px 0;
  background: var(--page);
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.real-projects-swiper {
  width: 100%;
  padding: 40px 0 80px !important;
  overflow: visible !important;
}

.real-projects-swiper .swiper-slide {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  /* Adjusted opacity for light theme stack */
  transform: scale(0.9) translateY(10px);
  /* Adjusted scale and translateY for light theme stack */
  filter: blur(0.5px);
  /* Subtle blur */
  z-index: 1;
  /* Asegura el orden de apilamiento */
}

.real-projects-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  /* Slightly less aggressive scale for light theme */
  z-index: 10;
  filter: blur(0);
}

.project-card {
  height: 480px;
  /* Ajustado para coincidir con el carrusel de gran escala */
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: var(--white);
  /* Changed to white background */
  display: flex;
  flex-direction: column;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s ease;
  /* Added box-shadow transition */
  box-shadow: var(--shmd);
  /* Added subtle shadow */
  border: 1px solid var(--border);
  /* Added subtle border */
}

.project-card:hover {
  transform: translateY(-8px);
  /* Lift effect on hover */
  box-shadow: var(--shlg);
  /* More prominent shadow on hover */
  border-color: var(--brand);
  /* Highlight border on hover */
}

.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 1;
  /* Full opacity for images on light theme */
  transition: all 0.8s ease;
  z-index: 1;
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
  /* Subtle zoom on hover */
  opacity: 1;
}

.project-card__body {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  width: calc(100% - 3rem);
  max-width: 420px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.705);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 2;
  color: var(--abyss);
  text-align: left;
}

.project-card__title {
  font-size: 1.4rem;
  color: var(--abyss);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.project-card__meta {
  font-size: 0.85rem;
  /* Ajustado para coincidir con el carrusel de gran escala */
  color: var(--text2);
  /* Changed text color to dark */
  font-weight: 400;
  line-height: 1.5;
}

/* Swiper Pagination (Dots) */
.real-projects-pagination {
  bottom: 20px !important;
}

.real-projects-pagination .swiper-pagination-bullet {
  background: var(--abyss);
  /* Changed to dark for contrast on light background */
  opacity: 0.2;
  transition: all 0.3s ease;
}

.real-projects-pagination .swiper-pagination-bullet-active {
  background: var(--brand);
  opacity: 1;
  width: 30px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .project-card__body {
    padding: 2.5rem 1.5rem;
  }

  .project-card__title {
    font-size: 1.8rem;
  }

  .project-card {
    height: 500px;
  }
}

/* ============================================================
   SECCIÓN: ¿CÓMO LO HACEMOS? — 6 pasos
============================================================ */
.section-process-netbilling {
  padding: 10rem 0;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.section-process-netbilling .process-layout {
  overflow: visible !important;
}

.section-process-netbilling .process-layout {
  overflow: visible !important;
  align-items: stretch;
  /* Ensure grid items stretch to the height of the tallest item */
}

/* Ensure the sticky column takes full height of the grid row */
.section-process-netbilling .process-sticky-col {
  height: 100%;
}

/* Forzado de Efecto Sticky */
.section-process-netbilling .process-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: calc(var(--header-current-bottom, 80px) + 3rem);
  align-self: start;
  height: fit-content;
  z-index: 20;
  /* Consistent with global.css for sticky elements */
}

.section-process-netbilling .process-sticky__intro {
  text-align: left;
}

.section-process-netbilling .section-title-corp {
  margin-top: 1rem;
  margin-left: 0;
  margin-right: 0;
  display: block;
  text-align: left;
  background-size:
    100% 100%,
    100% 100%;
}

.section-process-netbilling .section-desc-corp {
  margin-top: 2.5rem;
  color: var(--text2);
  text-align: left;
  max-width: 40ch;
}

/* Caja de Nota (Warning Box) estilo Gran Escala */
.section-process-netbilling .warning-box {
  margin-top: 4rem;
  background: var(--green-bg);
  /* border-left: 4px solid var(--brand); */
  color: var(--abyss);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shmd);
}

.section-process-netbilling .process-steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section-process-netbilling .step-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--white);
  padding: 4.5rem 3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(50px);
}

.section-process-netbilling .step-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.section-process-netbilling .step-item:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: var(--shlg);
}

.section-process-netbilling .step-icon {
  width: 6rem;
  height: 6rem;
  background: var(--brand-green-primary);
  color: var(--abyss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.section-process-netbilling .step-item strong {
  color: var(--abyss);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.section-process-netbilling .step-item p {
  color: var(--text2) !important;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Ajustes Responsive */
@media (max-width: 1023px) {
  .section-process-netbilling {
    padding: 6rem 0;
  }

  .section-process-netbilling .process-sticky__intro {
    text-align: center;
  }

  .section-process-netbilling .section-title-corp {
    text-align: center;
  }

  .section-process-netbilling .section-desc-corp {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-process-netbilling .warning-box {
    /* text-align: left; Eliminado para permitir el centrado automático en móvil */
    align-items: center;
  }
}

/* ============================================================
   SECCIÓN: BENEFICIOS FINALES
============================================================ */
.section-final-benefits {
  padding: 8rem 0;
  background: var(--page);
}

.final-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Default to single column on mobile */
  gap: 0;
  /* Pegadas, sin espaciado */
  /* Pegadas, sin espaciado */
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .final-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on larger screens */
    /* 3 columns on larger screens */
    gap: 0;
    /* Pegadas, sin espaciado */
  }
}

.final-benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 650px;
  /* Más altas */
  /* Más altas */
  /* Adjust height as needed */
  overflow: hidden;
  border-radius: 0;
  /* Sin bordes redondeados */
  background-color: var(--abyss);
  /* Fallback background */
  box-shadow: none;
  /* Sin sombra inicial */
  transition:
    all 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.3s ease;
}

.final-benefit-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.final-benefit-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  /* Más opaco para que el overlay sea más visible */
  /* Slightly dimmed to allow overlay */
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.final-benefit-card:hover .final-benefit-card__image {
  transform: scale(1.1);
  /* Zoom más notorio */
}

.final-benefit-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 23, 28, 0.95) 0%,
    rgba(2, 23, 28, 0.7) 50%,
    rgba(2, 23, 28, 0.1) 100%
  );
  z-index: 1;
  transition: background 0.5s ease;
}

.final-benefit-card:hover .final-benefit-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  /* Degradado más oscuro */
}

.final-benefit-card__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: var(--white);
  /* Texto blanco para contrastar con la imagen */
  text-align: left;
  background: transparent;
  /* Sin fondo para el texto */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  bottom: 1.5rem;
  /* Posicionamiento flotante sobre la imagen */
  left: 1.5rem;
  right: auto;
  width: calc(100% - 3rem);
  /* Ancho más estrecho */
  max-width: 320px;
  /* Ancho máximo para el cuadro de contenido */
}

.final-benefit-card__icon-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-start;
  /* Align icon to left */
}

.final-benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  /* Tamaño del círculo del icono */
  height: 4.5rem;
  /* Tamaño del círculo del icono */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  /* Fondo semitransparente */
  color: var(--white);
  /* Icono blanco */
  font-size: 2rem;
  /* Tamaño del icono */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.final-benefit-card:hover .final-benefit-card__icon {
  transform: scale(1.1);
}

.final-benefit-card__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem;
  /* Título más pequeño */
  font-weight: 800;
  color: var(--white);
  /* Texto blanco */
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.final-benefit-card__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  /* Texto blanco con ligera transparencia */
  line-height: 1.6;
}

.final-benefits-closing-phrase {
  text-align: center;
  font-size: 1.1rem;
  /* Slightly smaller to fit new design */
  font-weight: 500;
  /* Lighter weight */
  color: var(--abyss);
  /* Cambiado a color oscuro para que sea visible sobre el fondo claro */
  /* Texto blanco para el fondo oscuro de la sección */
  /* Color de texto oscuro para fondo claro */
  /* Color claro para el fondo oscuro de la sección */
  /* Default text color */
  margin-top: 4rem;
}

.final-benefits-closing-phrase em {
  color: var(--brand);
  /* Use brand color for emphasis */
  font-style: normal;
}

/* ============================================================
   CTA FINAL — Net Billing
============================================================ */
.section-cta-final-net-billing {
  padding: 10rem 0;
  background: var(--abyss);
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 0;
  text-align: center;
}

.section-cta-final-net-billing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 100%,
      rgba(76, 183, 155, 0.178) 0%,
      #00000073 70%
    ),
    url("https://grupoenergy.cl/wp-content/uploads/2024/11/green-business-company-and-solar-energy-environmen-2024-11-01-22-11-49-utc-scaled.jpg")
      center/cover;
  opacity: 0.25;
  z-index: 0;
}

.section-cta-final-net-billing .container {
  position: relative;
  z-index: 1;
}

.section-cta-final-net-billing .cta-corp__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.section-cta-final-net-billing .cta-corp__title em {
  font-style: normal;
  color: var(--gold);
}

.section-cta-final-net-billing .cta-corp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.section-cta-final-net-billing .btn-sample {
  font-size: 1.1rem;
  padding: 0.8rem 0.8rem 0.8rem 2rem;
}

.section-cta-final-net-billing .btn-sample .btn-icon-circle {
  width: 42px;
  height: 42px;
}

.section-cta-final-net-billing .btn-sample.btn-ghost-corp {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section-cta-final-net-billing .btn-sample.btn-ghost-corp:hover {
  border-color: var(--brand-green-primary);
  color: var(--brand-green-primary);
  background: rgba(76, 183, 155, 0.08);
}

/* ============================================================
   CTA CALCULADORA EXTERNA (banda oscura, acento dorado)
============================================================ */
.nb-calc-cta {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
  background-color: var(--abyss);
  border-top: 2px solid var(--gold);
}

.nb-calc-cta__bg {
  position: absolute;
  inset: 0;
  background: url("../img/casas_con_paneles_solares.webp") center/cover;
  opacity: 0.22;
  z-index: 0;
}

.nb-calc-cta__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 85% at 85% 30%,
      rgba(76, 183, 155, 0.3) 0%,
      transparent 60%
    ),
    linear-gradient(
      90deg,
      rgba(2, 23, 28, 0.96) 0%,
      rgba(2, 23, 28, 0.8) 55%,
      rgba(2, 23, 28, 0.6) 100%
    );
  z-index: 1;
}

/* Brillo ambiental — mismo mecanismo que los CTA de Soluciones/Inicio
   (gradientes radiales difuminados, movimiento lento en loop), así el
   calculador queda destacado y no como una banda oscura plana. */
.nb-calc-cta__glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(
      circle at 22% 25%,
      rgba(76, 183, 155, 0.25) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 82% 70%,
      rgba(191, 147, 94, 0.22) 0%,
      transparent 45%
    );
  filter: blur(60px);
  z-index: 1;
  animation: ctaGlowDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ctaGlowDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-4%, 3%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-calc-cta__glow {
    animation: none;
  }
}

.nb-calc-cta .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.nb-calc-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .nb-calc-cta__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
  }
}

.nb-calc-cta__text {
  min-width: 0;
}

.nb-calc-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.nb-calc-cta__label::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
  display: block;
}

.nb-calc-cta__text h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.nb-calc-cta__text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

/* ============================================================
   STAT HERO — número animado (odómetro), mismo mecanismo que la
   boleta de Inicio: cuenta desde 0 al entrar en scroll (ver
   js/net-billing.js). El HTML trae el valor final impreso como
   fallback sin JS/reducir-movimiento.
============================================================ */
.nb-calc-cta__stat-hero {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nb-calc-cta__stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nb-calc-cta__stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.nb-calc-cta__stat-hero-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 28ch;
}

.nb-calc-cta__stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nb-calc-cta__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(191, 147, 94, 0.45);
}

.nb-calc-cta__stat strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.nb-calc-cta__stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 16ch;
}

.nb-calc-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.nb-calc-cta__btn {
  font-size: 1.2rem;
  padding: 1.15rem 1.15rem 1.15rem 2.5rem;
  box-shadow: 0 10px 30px rgba(191, 147, 94, 0.45);
}

.nb-calc-cta__btn .btn-icon-circle {
  width: 46px;
  height: 46px;
}

.nb-calc-cta__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.nb-calc-cta__note i {
  color: var(--brand-green-primary);
}

@media (max-width: 767px) {
  .nb-calc-cta {
    padding: 7rem 0;
    min-height: 0;
  }

  .nb-calc-cta__stats-mini {
    gap: 1.5rem;
  }

  .nb-calc-cta__actions {
    width: 100%;
  }

  .nb-calc-cta__btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PROCESO "¿CÓMO LO HACEMOS?" — INTRO EN FILA + GRID 3x2
============================================================ */
.section-process-netbilling {
  padding: 8rem 0;
  overflow: visible;
}

.process-intro {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.process-intro .section-title-corp {
  display: block;
  text-align: center;
  margin: 0 auto 1rem;
}

.process-intro .section-desc-corp {
  text-align: center;
  margin: 0 auto;
  max-width: 60ch;
}

.process-intro .warning-box {
  max-width: 680px;
  margin: 2rem auto 0;
  text-align: left;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 1.25rem;
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shmd);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.process-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shlg);
  border-color: var(--brand);
  border-left-color: var(--brand);
}

.process-step-card__num {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: color 0.35s ease;
}

.process-step-card:hover .process-step-card__num {
  color: var(--brand);
}

.process-step-card__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--abyss);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.process-step-card__title i {
  color: var(--brand);
  font-size: 1rem;
}

.process-step-card__desc {
  color: var(--text2);
  font-size: 0.98rem;
  line-height: 1.6;
}
