/* =========================================================
   INER · Innovaciones Energéticas — Hoja de estilos
   Mobile-first. Paleta y tipografía oficiales de marca.
   ========================================================= */

:root {
  /* Verdes */
  --green: #5FBD3E;          /* logo / primario */
  --green-dark: #376D23;
  --green-mid: #4D9A32;
  --green-light: #EBF7E7;
  --green-xlight: #F5FBF3;
  --green-text: #2D5A1D;
  --green-header: #376D23;
  /* Grises */
  --ink: #1C1C1E;
  --ink-2: #3A3A3C;
  --gray: #8E8E93;
  --gray-bg: #F2F4F0;
  --white: #FFFFFF;
  /* Ámbar (solo notas aclaratorias) */
  --amber-text: #B07D1A;
  --amber-bg: #FDF3E0;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 28px;
  --radius-sm: 18px;
  --gutter: 20px;
  --max: 1180px;
  --nav-h: 60px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 14vw, 160px); }
.section--dark { background: var(--ink); color: var(--white); }

.eyebrow {
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--green); }
.eyebrow--light { color: rgba(255,255,255,.92); }
.eyebrow--light strong { color: var(--green); font-weight: 700; }
.display {
  font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em;
  max-width: 18ch;
}
.muted { color: var(--gray); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 500 1rem/1 var(--font); letter-spacing: -.005em; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 8px 24px -10px rgba(95,189,62,.8); }
.btn--primary:hover { background: var(--green-mid); }
.btn--glass {
  background: rgba(255,255,255,.14); color: var(--white);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.btn--glass:hover { background: rgba(255,255,255,.24); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; box-shadow: none; }
.ico { width: 20px; height: 20px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .35s var(--ease), box-shadow .35s;
}
.nav__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.nav__logo { position: relative; height: 30px; width: 75px; flex-shrink: 0; }
.nav__logo img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.logo--dark { opacity: 0; }
.nav__links { display: none; }
.nav__cta { margin-left: auto; }
.nav__toggle {
  width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; place-content: center; gap: 6px; color: var(--white);
}
.nav__toggle span { display: block; width: 20px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease); }

.nav.is-solid {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav.is-solid .logo--light { opacity: 0; }
.nav.is-solid .logo--dark { opacity: 1; }
.nav.is-solid .nav__toggle { color: var(--ink); }
.nav.is-solid.is-dark { background: rgba(28,28,30,.72); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.is-solid.is-dark .logo--light { opacity: 1; }
.nav.is-solid.is-dark .logo--dark { opacity: 0; }
.nav.is-solid.is-dark .nav__toggle { color: var(--white); }

/* Menú móvil a pantalla completa */
.nav.is-open { background: var(--white); }
.nav.is-open .logo--light { opacity: 0; }
.nav.is-open .logo--dark { opacity: 1; }
.nav.is-open .nav__toggle { color: var(--ink); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.nav.is-open .nav__links {
  display: flex; flex-direction: column; position: fixed; inset: var(--nav-h) 0 0; background: var(--white);
  padding: 24px var(--gutter);
}
.nav.is-open .nav__links a {
  font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; padding: 12px 0; color: var(--ink);
  border-bottom: 1px solid var(--gray-bg); animation: menuIn .45s var(--ease) both;
}
.nav.is-open .nav__links a:nth-child(2) { animation-delay: .04s; }
.nav.is-open .nav__links a:nth-child(3) { animation-delay: .08s; }
.nav.is-open .nav__links a:nth-child(4) { animation-delay: .12s; }
.nav.is-open .nav__links a:nth-child(5) { animation-delay: .16s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 900px) {
  :root { --gutter: 32px; --nav-h: 64px; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: 32px; margin-left: auto; }
  .nav__links a { font-size: .875rem; color: rgba(255,255,255,.86); transition: color .2s; }
  .nav__links a:hover { color: var(--white); }
  .nav.is-solid .nav__links a { color: var(--ink-2); }
  .nav.is-solid .nav__links a:hover { color: var(--green-dark); }
  .nav.is-solid.is-dark .nav__links a { color: rgba(255,255,255,.86); }
  .nav.is-solid.is-dark .nav__links a:hover { color: var(--white); }
  .nav__cta { margin-left: 8px; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--white);
  display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: center; animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,28,30,.6) 0%, rgba(28,28,30,.45) 35%, rgba(28,28,30,.5) 65%, rgba(28,28,30,.92) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(28,28,30,.15) 0%, rgba(28,28,30,.45) 100%);
}
.hero__content {
  align-self: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 24px;
  max-width: 900px; margin-inline: auto;
}
.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero__title {
  font-size: clamp(3rem, 13vw, 7.5rem); font-weight: 700; line-height: .98; letter-spacing: -.045em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__lead {
  margin: 22px auto 0; max-width: 34ch; font-size: clamp(1.0625rem, 2.2vw, 1.375rem); font-weight: 300;
  color: rgba(255,255,255,.9); line-height: 1.45;
}
.hero__ctas { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero__ctas .btn { width: min(100%, 320px); }
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; justify-content: center; }
  .hero__ctas .btn { width: auto; min-width: 210px; }
}

.hero__stats {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter) 100px; width: 100%; max-width: 760px;
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  animation: rise 1s .6s var(--ease) both;
}
.hero__stats li { display: grid; gap: 2px; padding-inline: 6px; }
.hero__stats li + li { border-left: 1px solid rgba(255,255,255,.2); }
.hero__stats strong { font-size: clamp(1.375rem, 4vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.hero__stats li > span { font-size: .75rem; color: rgba(255,255,255,.72); line-height: 1.3; }
@media (min-width: 560px) { .hero__stats li > span { font-size: .875rem; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 24px; height: 36px;
  border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--white); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 2 · Sol de Sonora ---------- */
.sol .display { max-width: 20ch; }
.sol__hero {
  margin-top: clamp(48px, 8vw, 88px);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px;
}
.sol__number {
  font-size: clamp(7rem, 30vw, 16rem); font-weight: 700; line-height: .82; letter-spacing: -.06em;
  background: linear-gradient(180deg, #A9E394 0%, var(--green) 45%, var(--green-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sol__label { display: grid; gap: 4px; padding-bottom: 10px; }
.sol__label strong { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; }
.sol__label span { font-size: .875rem; color: var(--gray); }

.sol__day { margin: 56px 0 0; }
.sol__bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 56px; }
.sol__bar i {
  border-radius: 4px; background: var(--ink-2);
  transform-origin: bottom; transform: scaleY(.3); transition: transform .8s var(--ease), background-color .8s;
}
.sol__bar i.day { background: #2A3A25; }
.sol__bar i.peak { background: var(--green); box-shadow: 0 0 18px -2px rgba(95,189,62,.7); }
.is-visible .sol__bar i { transform: scaleY(var(--h, .3)); }
.sol__axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: .75rem; color: var(--gray); }

.sol__facts {
  margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 32px;
  border-top: 1px solid var(--ink-2); padding-top: 40px;
}
.sol__facts h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--white); margin-bottom: 8px; }
.sol__facts p { color: #B5B5BA; font-weight: 300; font-size: 1rem; max-width: 36ch; }
@media (min-width: 760px) { .sol__facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- 3 · Por qué INER ---------- */
.why { background: var(--white); }
.why__stats {
  margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 32px;
}
.why__stats div { display: grid; gap: 6px; }
.why__stats strong {
  font-size: clamp(4.5rem, 16vw, 8.5rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.why__stats span { font-size: 1.0625rem; color: var(--ink-2); font-weight: 300; max-width: 26ch; }
@media (min-width: 760px) { .why__stats { grid-template-columns: 1fr 1fr; } }

.bento { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px 28px;
  background: var(--gray-bg); display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.card p { font-size: 1rem; font-weight: 300; color: var(--ink-2); }
.card__ico { width: 36px; height: 36px; color: var(--green-mid); margin-bottom: 14px; }
.card--dark { background: var(--ink); color: var(--white); }
.card--dark p { color: #B5B5BA; }
.card--dark .card__ico { color: var(--green); }
.card--tint { background: var(--green-light); }
.card--tint h3 { color: var(--green-text); }
.card--tint .card__ico { color: var(--green-dark); }
.card--green { background: var(--green); color: var(--white); justify-content: flex-end; min-height: 240px; }
.card--green p { color: rgba(255,255,255,.9); }
.card--green:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(55,109,35,.6); }
.card__link { margin-top: 12px; font-weight: 500; }
.card__link span { display: inline-block; transition: transform .3s var(--ease); }
.card--green:hover .card__link span { transform: translateX(5px); }

.card__viz { margin-top: 28px; }
.viz-curve { width: 100%; height: auto; }
.viz-curve path:last-of-type { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.8s .3s var(--ease); }
.is-visible .viz-curve path:last-of-type { stroke-dashoffset: 0; }

.phone {
  align-self: center; width: 180px; height: 200px; border-radius: 30px 30px 0 0; margin-bottom: -32px;
  background: var(--ink); padding: 10px 10px 0; box-shadow: 0 30px 60px -30px rgba(28,28,30,.5);
}
.phone__screen {
  height: 100%; border-radius: 22px 22px 0 0; background: var(--white);
  padding: 22px 16px 0; display: flex; flex-direction: column;
}
.phone__kpi { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.phone__kpi small { display: block; font-size: .6875rem; font-weight: 400; color: var(--gray); letter-spacing: 0; }
.phone__bars { height: 96px; margin-top: auto; display: flex; align-items: flex-end; gap: 4px; padding-bottom: 12px; }
.phone__bars i {
  flex: 1; border-radius: 3px; background: var(--green); height: var(--h);
  transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease);
}
.is-visible .phone__bars i { transform: scaleY(1); }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 40px 36px; }
  .card--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
  .card--wide .card__text { flex: 1; }
  .card--wide .card__viz { flex: 1; margin-top: 0; }
  .card--wide .phone { flex: 0 0 200px; margin-bottom: -40px; align-self: flex-end; height: 230px; }
}
@media (hover: hover) {
  .card:not(.card--green):hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(28,28,30,.25); }
}

/* ---------- Footer mínimo (temporal) ---------- */
.footer-min { background: var(--green-xlight); border-top: 3px solid var(--green); padding-block: 40px 110px; }
.footer-min .container { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-min p { font-size: .8125rem; color: var(--gray); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  height: 58px; min-width: 58px; border-radius: 999px; padding: 0 17px;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: var(--white); font-weight: 500; font-size: .9375rem;
  box-shadow: 0 12px 32px -8px rgba(55,109,35,.6), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .3s var(--ease), background-color .2s;
  animation: waIn .6s 1.2s var(--ease) both;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float span { display: none; }
.wa-float:hover { background: var(--green-mid); transform: translateY(-2px); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(95,189,62,.55);
  animation: waPulse 2.6s 2s infinite;
}
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes waPulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(95,189,62,0); } }
@media (min-width: 900px) {
  .wa-float { right: 28px; bottom: 28px; padding: 0 22px 0 18px; }
  .wa-float span { display: inline; }
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilidades ---------- */
.section--gray { background: var(--gray-bg); }
.lead { margin-top: 20px; font-size: clamp(1.0625rem, 2vw, 1.25rem); font-weight: 300; color: var(--ink-2); max-width: 40ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 4 · Servicios ---------- */
.svc-grid { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 16px; }
.svc {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 32px 28px 36px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 0 rgba(28,28,30,.04);
}
.svc--featured { box-shadow: inset 0 0 0 2px var(--green); }
.svc__tag {
  position: absolute; top: 24px; right: 24px; font-size: .75rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px; background: var(--green-light); color: var(--green-text);
}
.svc__art {
  width: 100%; height: 120px; margin-bottom: 20px; border-radius: var(--radius-sm);
  background: var(--green-xlight); color: var(--green-mid);
  display: grid; place-items: center;
}
.svc__art svg { width: 70%; max-width: 200px; }
.svc--featured .svc__art { margin-top: 36px; }
.svc h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.svc__sub { font-size: .875rem; font-weight: 500; color: var(--green-mid); margin-top: -4px; }
.svc > p:not(.svc__sub) { margin: 8px 0 16px; font-weight: 300; color: var(--ink-2); }
.checks { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--gray-bg); display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .9375rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='%23376D23' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.segments {
  margin-top: 16px; background: var(--white); border-radius: var(--radius);
  display: grid; padding: 8px 28px;
}
.segment { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; }
.segment + .segment { border-top: 1px solid var(--gray-bg); }
.segment__ico { width: 32px; height: 32px; flex-shrink: 0; color: var(--green-mid); }
.segment h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.segment p { font-size: .9375rem; font-weight: 300; color: var(--ink-2); }

@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc { padding: 36px 32px 40px; }
  .svc--featured .svc__art { margin-top: 36px; }
  .svc:not(.svc--featured) .svc__art { margin-top: 36px; }
  .segments { grid-template-columns: repeat(3, 1fr); padding: 12px 8px; margin-top: 20px; }
  .segment { padding: 24px 28px; }
  .segment + .segment { border-top: 0; border-left: 1px solid var(--gray-bg); }
}

/* ---------- 5 · Dimensionamiento ---------- */
.method__layout { display: grid; gap: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { padding: 28px 0; border-top: 1px solid var(--gray-bg); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.step:last-child { border-bottom: 1px solid var(--gray-bg); }
.step__n { grid-row: span 2; font-size: .875rem; font-weight: 500; color: var(--green); padding-top: 5px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.step p { margin-top: 6px; font-weight: 300; color: var(--ink-2); }

@media (min-width: 900px) {
  .method__layout { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .method__intro { position: sticky; top: calc(var(--nav-h) + 48px); }
  .step { padding: 36px 0; grid-template-columns: 72px 1fr; }
  .step h3 { font-size: 1.5rem; }
}

/* Gráfica de balance anual */
.balance {
  margin: clamp(64px, 9vw, 112px) 0 0; padding: 28px 20px 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 1px #E4E7E1;
}
.balance__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.balance__head h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.balance__head p { font-size: .8125rem; color: var(--gray); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; font-size: .8125rem; color: var(--ink-2); align-items: center; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw--gen { background: var(--green); }
.sw--con { background: var(--ink-2); }

.balance__chart {
  position: relative; height: 240px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px;
  align-items: end; border-bottom: 1px solid #D9DCD6;
  background-image: linear-gradient(to top, #EEF0EC 1px, transparent 1px);
  background-size: 100% 25%;
}
.bm { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; cursor: default; }
.bm i {
  width: min(40%, 14px); border-radius: 4px 4px 0 0; height: var(--h);
  transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease);
}
.bm .g { background: var(--green); }
.bm .c { background: var(--ink-2); }
.is-visible .bm i { transform: scaleY(1); }
.bm::after {
  content: attr(data-s); position: absolute; bottom: -24px; left: 0; right: 0; text-align: center;
  font-size: .6875rem; color: var(--gray);
}
.bm:hover { background: rgba(95,189,62,.07); border-radius: 6px 6px 0 0; }
.bm-tip {
  position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 50%; translate: -50% 0;
  background: var(--ink); color: var(--white); padding: 10px 12px; border-radius: 10px;
  font-size: .75rem; line-height: 1.5; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s; box-shadow: 0 8px 20px -8px rgba(0,0,0,.35);
}
.bm:hover .bm-tip, .bm:focus .bm-tip { opacity: 1; }
.bm:first-child .bm-tip, .bm:nth-child(2) .bm-tip { left: 0; translate: 0 0; }
.bm:nth-child(11) .bm-tip, .bm:last-child .bm-tip { left: auto; right: 0; translate: 0 0; }
.bm-tip b { font-weight: 500; }
.balance__totals {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--gray-bg);
}
.balance__totals div { display: grid; gap: 2px; }
.balance__totals span { font-size: .75rem; color: var(--gray); }
.balance__totals strong { font-size: clamp(1rem, 3vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.balance__totals .pos { color: var(--green-text); }
@media (min-width: 760px) {
  .balance { padding: 40px 40px 32px; }
  .balance__chart { height: 300px; gap: 8px; }
  .bm::after { content: attr(data-m); font-size: .75rem; }
}

/* Medición Neta */
.netmeter {
  margin-top: 20px; border-radius: var(--radius); background: var(--ink); color: var(--white);
  padding: 36px 28px; display: grid; gap: 40px;
}
.netmeter h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 16px; }
.netmeter__text p:not(.eyebrow) { color: #B5B5BA; font-weight: 300; max-width: 46ch; }
.netmeter__text strong { color: var(--white); font-weight: 500; }
.netmeter .eyebrow { color: var(--green); }
.netmeter__legal { margin-top: 16px; font-size: .8125rem; color: var(--gray) !important; }

.netmeter__diagram { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nm-node {
  width: 100%; max-width: 300px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px; background: #2A2A2D; font-size: .9375rem;
}
.nm-node svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.nm-node--meter { background: var(--green); color: var(--white); font-weight: 500; }
.nm-node--meter svg { color: var(--white); }
.nm-flow { position: relative; width: 24px; height: 34px; display: flex; justify-content: center; gap: 6px; }
.nm-flow i { position: relative; width: 2px; height: 100%; background: #3A3A3C; overflow: hidden; border-radius: 2px; }
.nm-flow i::after {
  content: ""; position: absolute; left: 0; width: 2px; height: 10px; border-radius: 2px; background: var(--green);
  animation: flowDown 1.4s linear infinite;
}
.nm-flow--both i:last-child::after { animation-name: flowUp; }
@keyframes flowDown { from { top: -10px; } to { top: 100%; } }
@keyframes flowUp { from { top: 100%; } to { top: -10px; } }

@media (min-width: 900px) {
  .netmeter { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 64px; gap: 64px; }
}

/* ---------- Hero: extras ---------- */
.hero__si { color: var(--green); }
.hero__phone {
  display: inline-block; margin-top: 20px; font-size: .9375rem; color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.hero__phone span { font-weight: 500; color: var(--white); }
.hero__phone:hover { border-color: var(--green); }
.hero__media img { object-position: 50% 62%; }

/* Fuentes oficiales (sección Hermosillo) */
.sources { margin-top: 48px; display: grid; gap: 14px; }
.sources__label { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li {
  font-size: .8125rem; color: #D1D1D6; padding: 7px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-2);
}

/* ---------- 6 · Marcas ---------- */
.brands__grid {
  list-style: none; margin: clamp(48px, 7vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.brand {
  height: 112px; border-radius: var(--radius-sm); background: var(--white);
  display: grid; place-items: center; padding: 20px;
}
.brand img {
  max-width: min(100%, calc(150px * var(--s, 1))); max-height: calc(40px * var(--s, 1));
  width: auto; height: auto; opacity: .62; transition: opacity .3s, transform .3s var(--ease);
}
.brand:hover img { opacity: 1; transform: scale(1.04); }
.brand--text span { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: .62; }
@media (min-width: 760px) { .brands__grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } .brand { height: 132px; } }

/* ---------- 7 · Garantías ---------- */
.warranty__layout { display: grid; gap: 48px; }
.warranty__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--gray-bg); }
.warranty__media img { width: 100%; height: 100%; object-fit: cover; }
.specs { margin: 36px 0 0; display: grid; }
.spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--gray-bg); }
.spec:last-child { border-bottom: 1px solid var(--gray-bg); }
.spec dt { font-weight: 500; font-size: 1.0625rem; display: grid; gap: 2px; }
.spec dt span { font-size: .875rem; font-weight: 300; color: var(--gray); }
.spec dd { margin: 0; font-size: clamp(1.25rem, 3vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; color: var(--green-dark); white-space: nowrap; }
.spec:first-child dd { color: var(--green); }
@media (min-width: 900px) {
  .warranty__layout { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .warranty__media { aspect-ratio: 3 / 4; }
}

/* ---------- Banda de marca ---------- */
.band__layout { display: grid; gap: 40px; }
.band .display { max-width: 16ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.band__cta { margin-top: 28px; }
.band__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
@media (min-width: 900px) {
  .band__layout { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .band__media { aspect-ratio: 4 / 3; }
}

/* ---------- 8 · Financiamiento ---------- */
.finance__layout { display: grid; gap: 48px; }
.finance__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.finance__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.finance .muted { color: #8E8E93; }
.finance__lead { color: #B5B5BA; }
.sim { margin-top: 36px; background: #2A2A2D; border-radius: var(--radius); padding: 28px 24px; }
.sim__label { display: block; font-size: .875rem; color: #B5B5BA; }
.sim__amount { display: block; margin: 6px 0 18px; font-size: clamp(2.25rem, 7vw, 3.25rem); font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sim__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--green) var(--p, 20%), #48484A var(--p, 20%));
}
.sim__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.sim__range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--white); }
.sim__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(95,189,62,.5); }
.sim__rows { margin: 24px 0 0; display: grid; }
.sim__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #3A3A3C; }
.sim__rows dt { color: #D1D1D6; font-size: .9375rem; }
.sim__rows dd { margin: 0; font-weight: 500; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.note {
  margin-top: 16px; padding: 10px 14px; border-radius: 12px; font-size: .8125rem;
  color: var(--amber-text); background: var(--amber-bg);
}
.sim__cta { margin-top: 20px; width: 100%; }
@media (min-width: 900px) {
  .finance__layout { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .finance__media { aspect-ratio: 2 / 3; }
  .sim { padding: 36px 36px; }
}

/* ---------- 9 · Proyectos ---------- */
.gallery { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 12px; grid-template-columns: 1fr; }
.tile {
  position: relative; display: block; overflow: hidden; border: 0; padding: 0; margin: 0; cursor: zoom-in;
  border-radius: var(--radius-sm); background: var(--gray-bg); aspect-ratio: 4 / 3; font: inherit; color: var(--white); text-align: left;
}
.tile--alto { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; display: grid; gap: 2px;
  background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.tile__cap strong { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.tile__cap > span:last-child { font-size: .8125rem; color: rgba(255,255,255,.8); }
.chip { justify-self: start; margin-bottom: 6px; font-size: .6875rem; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile--cta {
  cursor: pointer; background: var(--green); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px;
  aspect-ratio: auto; min-height: 220px;
}
.tile--cta strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.tile--cta > span:not(.card__link) { color: rgba(255,255,255,.9); font-weight: 300; }
.tile--cta:hover .card__link span { transform: translateX(5px); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } .tile--grande { grid-column: span 2; } }
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
  .tile, .tile--alto { aspect-ratio: auto; }
  .tile--grande { grid-column: span 2; grid-row: span 2; }
  .tile--alto { grid-row: span 2; }
  .tile--cta { min-height: 0; }
}

.lightbox {
  max-width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 56px); margin: 0 auto; }
.lightbox p { padding: 16px 20px; font-size: .875rem; color: #D1D1D6; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(28,28,30,.7); color: var(--white); font-size: 1.5rem; line-height: 1;
}

.footer-min__contact { color: var(--ink-2) !important; font-size: .9375rem !important; }
.footer-min__contact a:hover { color: var(--green-dark); }

/* ---------- 8 · Clientes ---------- */
.clients { padding-block: clamp(72px, 10vw, 128px); }
.clients__grid {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.client { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
/* object-fit: contain → el logo siempre cabe completo y conserva su proporción */
.client img {
  position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px);
  object-fit: contain; transform: scale(var(--s, 1)); transition: transform .4s var(--ease);
}
.client:hover img { transform: scale(calc(var(--s, 1) * 1.04)); }
.client--foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .clients__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .client:not(.client--foto) img { inset: 22px 26px; width: calc(100% - 52px); height: calc(100% - 44px); }
}

/* ---------- 11 · Contacto / Cotización ---------- */
.contact__layout { display: grid; gap: 48px; }
.contact__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; order: 2; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.contact .display { max-width: 16ch; }

.quote {
  margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(28,28,30,.35);
}
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--gray-bg); }
.seg__btn {
  border: 0; background: transparent; font: 500 .875rem/1.2 var(--font); color: var(--ink-2);
  padding: 11px 8px; border-radius: 10px; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s;
}
.seg__btn.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.drop {
  display: grid; place-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 28px 16px; border-radius: var(--radius-sm); border: 1.5px dashed #C7CCC3; background: var(--green-xlight);
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--green); background: var(--green-light); }
.drop.has-file { border-style: solid; border-color: var(--green); }
.drop__ico { width: 34px; height: 34px; color: var(--green-mid); margin-bottom: 6px; }
.drop__title { font-weight: 500; word-break: break-all; }
.drop__hint { font-size: .8125rem; color: var(--gray); }

.quote__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #D9DCD6; background: var(--white);
  font: 400 1rem var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(95,189,62,.18); }
.field small { font-size: .75rem; color: var(--gray); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.check a { color: var(--green-dark); text-decoration: underline; }

.quote__msg { font-size: .875rem; min-height: 0; }
.quote__msg:empty { display: none; }
.quote__msg.is-error { color: #B3261E; }
.quote__msg.is-info { color: var(--amber-text); background: var(--amber-bg); padding: 10px 14px; border-radius: 12px; }
.quote__msg.is-ok { color: var(--green-text); background: var(--green-light); padding: 10px 14px; border-radius: 12px; }
.quote__submit { width: 100%; }
.quote__submit:disabled { opacity: .6; cursor: wait; }
.quote__foot { font-size: .75rem; color: var(--gray); text-align: center; margin-top: -6px; }
.contact__alt { margin-top: 20px; font-size: .875rem; color: var(--gray); }
.contact__alt a { color: var(--ink-2); }
.contact__alt a:hover { color: var(--green-dark); }

@media (min-width: 600px) { .quote__row { grid-template-columns: 1fr 1fr; } .quote { padding: 32px; } }
@media (min-width: 900px) {
  .contact__layout { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .contact__media { position: sticky; top: calc(var(--nav-h) + 32px); aspect-ratio: 2 / 3; order: 0; }
}

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--nav-h) + 48px) 0 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-weight: 300; max-width: 70ch; }
.legal .note { max-width: 70ch; }

/* ---------- 5 · Dimensionamiento: fondo fotográfico ---------- */
.method { position: relative; isolation: isolate; overflow: hidden; }
.method__bg, .method__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.method__bg { z-index: -2; }
.method__bg img { object-fit: cover; object-position: 50% 35%; }
.method__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,28,30,.72) 0%, rgba(28,28,30,.6) 45%, rgba(28,28,30,.85) 100%);
}
.method .lead { color: rgba(255,255,255,.85); }
.method .muted { color: rgba(255,255,255,.6); }
.method .step { border-color: rgba(255,255,255,.16); }
.method .step h3 { color: var(--white); }
.method .step p { color: rgba(255,255,255,.78); }
.method-extra { padding-top: clamp(48px, 7vw, 88px); }
.method-extra .balance { margin-top: 0; }
