/* ===== Menú ampliado (escritorio y celular) ===== */
:root { --nav-h: 80px; }
.nav__inner { gap: 28px; }
.nav__links { gap: 6px; }
.nav__links a { font-size: 16px; font-weight: 600; color: var(--navy); padding: 12px 12px; letter-spacing: -.1px; }
.nav__links a::after { left: 12px; right: 12px; bottom: 6px; height: 3px; }
.nav__item > a { gap: 6px; }
.nav__chevron { font-size: 11px; }
.nav__item::before { height: 24px; }
.nav__dropdown { min-width: 290px; padding: 10px 0; border-radius: 12px; top: calc(100% + 8px); }
.nav__dropdown a { font-size: 15.5px !important; padding: 12px 22px !important; font-weight: 600; color: var(--navy); }
.nav__dropdown a[style*="padding-left"] { padding-left: 40px !important; font-weight: 500; opacity: 1 !important; color: var(--text-60); }
.nav__burger { padding: 14px; }
.nav__burger span { width: 28px; height: 3px; }
@media (max-width: 1100px) {
  .nav__links, .btn--nav { display: none !important; }
  .nav__burger { display: flex; }
  :root { --nav-h: 72px; }
}
.mob a:not(.btn) { font-size: 18px; font-weight: 600; padding: 17px 0; min-height: 52px; display: flex; align-items: center; color: var(--navy); }
.mob a[style*="padding-left"] { font-size: 16.5px !important; font-weight: 500 !important; padding-left: 24px !important; opacity: 1 !important; color: var(--text-60) !important; }
.mob .btn { font-size: 17px; padding: 16px 24px; }
@media (max-width: 768px) { .logo-img { height: 46px; } }

/* ===== Divisiones Estratégicas ===== */
.g-area__dato { display: inline-block; align-self: flex-start; margin-top: 12px; padding: 6px 14px; border-radius: 100px; background: #69C5FF; color: #0A1E38; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.g-hero-dato { display: inline-block; margin-top: 14px; padding: 7px 18px; border-radius: 100px; background: #69C5FF; color: #0A1E38; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.pend { background: #FFE066 !important; color: #4A3700 !important; outline: 2px dashed #B08900; }

/* ===== Descargas de energía y bloque de obras ===== */
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.d-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.d-card__img { background: linear-gradient(160deg, #EEF1F4, #fff); padding: 22px; display: flex; align-items: center; justify-content: center; height: 270px; }
.d-card__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.d-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.d-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.d-cap { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.d-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.d-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.3; transition: background .15s, transform .15s; }
.d-btn small { font-size: 12.5px; font-weight: 600; opacity: .8; white-space: nowrap; }
.d-btn:hover { background: var(--teal); transform: translateY(-1px); }
.d-btn:nth-child(even) { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.d-btn:nth-child(even):hover { background: var(--navy); color: #fff; }
.d-btn:focus-visible { outline: 3px solid #69C5FF; outline-offset: 2px; }
.d-cesc { margin-top: 40px; background: var(--navy); color: #fff; border-radius: 20px; padding: 34px 36px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.d-cesc h3 { color: #fff; font-size: 24px; font-weight: 800; margin: 6px 0; }
.d-cesc p { color: #D2DEEA; margin: 0; }
.d-cesc .e-kicker { color: #69C5FF; }
.d-btns--row { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
.d-btn--light, .d-btn--light:nth-child(even) { background: #fff; color: var(--navy); border: 0; }
.d-btn--light:hover, .d-btn--light:nth-child(even):hover { background: #69C5FF; color: var(--navy); }
.d-grid--pend { margin-top: 28px; }
.d-card--pend { border-style: dashed; box-shadow: none; }
.d-pend { display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 800; margin: 8px 0 0; align-self: flex-start; }
.d-atc { margin-top: 34px; background: var(--navy); color: #fff; border-radius: 20px; padding: 32px 36px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.d-atc > div:first-child { flex: 1 1 420px; min-width: 0; }
.d-atc h3 { color: #fff; font-size: 24px; font-weight: 800; margin: 6px 0 8px; }
.d-atc p { color: #D2DEEA; margin: 0; max-width: 62ch; }
.d-atc .e-kicker { color: #69C5FF; }
.d-atc .b-pills { margin-top: 0; max-width: 420px; }
.d-atc .b-pills span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; }
@media (max-width: 600px) {
  .d-cesc, .d-atc { padding: 26px 22px; }
  .d-btn { font-size: 15px; }
  .d-card__img { height: 240px; }
}
.nav__links a.active { padding: 12px 12px !important; }
.d-card__img { background: #EEF1F4; }
.d-card__body .d-btns { margin-top: auto; padding-top: 14px; }
.d-card__body h3 { margin-bottom: 0; }
#obras-energia .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ===== Galería de referencia: cargadores ===== */
.d-ev__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.d-ev__shot { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); aspect-ratio: 3 / 4; box-shadow: var(--sh-sm); }
.d-ev__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-ev__shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #fff; background: linear-gradient(0deg, rgba(10,30,56,.92), rgba(10,30,56,0)); }
@media (max-width: 900px) { .d-ev__grid { grid-template-columns: repeat(2, 1fr); } }
.section--dark .d-ev .g-sub { color: #fff; }
.section--dark .d-ev .d-ev__grid { margin-top: 22px; }
.d-card--wide { flex-direction: row; margin-top: 28px; }
.d-card--wide .d-card__img { flex: 0 0 46%; height: auto; min-height: 280px; padding: 0; }
.d-card--wide .d-card__img img { width: 100%; height: 100%; object-fit: cover; }
.d-card--wide .d-card__body { justify-content: center; padding: 28px 32px; }
.d-card--wide .d-card__body p { color: var(--text-60); margin: 8px 0 0; }
.d-card--wide .d-btns { max-width: 360px; }
@media (max-width: 800px) { .d-card--wide { flex-direction: column; } .d-card--wide .d-card__img { flex: none; min-height: 0; height: 230px; } }

/* ===== Subestaciones: movimiento de tierra y obra civil ===== */
.s-gal { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; margin-top: 26px; }
.s-gal__shot { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: var(--sh-sm); min-height: 230px; }
.s-gal__tall { grid-row: span 2; }
.s-gal__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s-gal__shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #fff; background: linear-gradient(0deg, rgba(10,30,56,.92), rgba(10,30,56,0)); }
@media (max-width: 800px) { .s-gal { grid-template-columns: 1fr 1fr; } .s-gal__tall { grid-row: span 1; grid-column: span 2; min-height: 320px; } }
@media (max-width: 520px) { .s-gal { grid-template-columns: 1fr; } .s-gal__tall { grid-column: auto; } }

/* ===== Planos BESS ===== */
.b-planos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.b-planos figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.b-planos img { width: 100%; height: auto; display: block; }
.b-planos figcaption { padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 800px) { .b-planos { grid-template-columns: 1fr; } }

/* ===== BIM ===== */
.bim-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.bim-gal figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-sm); }
.bim-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #0b0f17; }
.bim-gal figcaption { padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.35; }
@media (max-width: 900px) { .bim-gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bim-gal { grid-template-columns: 1fr; } }

/* ===== Obra Penco ===== */
.pn-gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
.pn-gal figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); aspect-ratio: 3 / 4; box-shadow: var(--sh-sm); }
.pn-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #fff; background: linear-gradient(0deg, rgba(10,30,56,.92), rgba(10,30,56,0)); }
@media (max-width: 1000px) { .pn-gal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pn-gal { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== Accesibilidad: foco visible ===== */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #4da3ff; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ===== Accesibilidad: contraste ===== */
.btn--primary { background: #1769A6; border-color: #1769A6; }
.btn--primary:hover { background: #12588C; border-color: #12588C; }
.eyebrow--light { color: #69C5FF; }
.eyebrow.eyebrow--light, .section--dark .eyebrow { color: #69C5FF !important; }

/* ===== Obras: cards cuadradas 320 x 320 (4 por fila) ===== */
.g-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 320px)); gap: 16px; justify-content: center; margin-top: 40px; }
.g-ocard { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: var(--sh-sm); }
.g-ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-ocard:hover img { transform: scale(1.05); }
.g-ocard__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 18px; color: #fff; background: linear-gradient(180deg, rgba(10,30,56,0), rgba(10,30,56,.92) 55%); }
.g-ocard__t h3 { font-size: 17px; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 0 6px; }
.g-ocard__t p { font-size: 14px; line-height: 1.4; margin: 0; color: rgba(255,255,255,.88); }
@media (max-width: 1360px) { .g-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .g-cards { grid-template-columns: 1fr; } .g-ocard { max-width: 360px; margin: 0 auto; width: 100%; } }
/* corrige fotos alargadas: el alto del atributo height no debe estirar la imagen */
.g-shot img { height: auto; }
.bim-gal img { height: auto; }
@media (min-width: 1400px) { .g-cards { width: 1328px; margin-left: 50%; transform: translateX(-50%); } }
/* Planos BESS: ambas imágenes con el mismo alto (el ancho de cada una es proporcional a su relación de aspecto) */
.b-planos { display: flex; gap: 16px; align-items: flex-start; }
.b-planos figure:nth-child(1) { flex: 1.49 1 0; min-width: 0; }
.b-planos figure:nth-child(2) { flex: 1.81 1 0; min-width: 0; }
.b-planos img { width: 100%; height: auto; }
@media (max-width: 800px) { .b-planos { flex-direction: column; } .b-planos figure { flex: none !important; width: 100%; } }

/* ===== Páginas de referencia (integrador): franja de cifras ===== */
.proof-bar { background: #fff; border-bottom: 1px solid var(--border, #e3e8f2); }
.proof-bar__inner { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding: 8px 0; }
.proof-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 10px; border-left: 1px solid var(--border, #e3e8f2); }
.proof-item:first-child { border-left: 0; }
.proof-item strong { font-size: 28px; line-height: 1; font-weight: 800; color: var(--navy, #162559); }
.proof-item span { font-size: 13.5px; color: #55607a; line-height: 1.3; }
@media (max-width: 900px) { .proof-bar__inner { grid-template-columns: repeat(2, 1fr); } .proof-item { border-left: 0; border-top: 1px solid var(--border, #e3e8f2); } .proof-item:nth-child(-n+2) { border-top: 0; } }
