/* Reusable photo band for alternating editorial sections. */
body main section.site-photo-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: #12392f !important;
  color: #f5f2ea !important;
}

body main section.site-photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(12, 40, 31, .88), rgba(12, 40, 31, .78)), var(--site-photo-image);
  background-position: center;
  background-size: cover;
}

body main section.site-photo-band > * { position: relative; z-index: 1; }

body main section.site-photo-band :is(h1, h2, h3, h4, p, li, dt, dd, small, label, summary, strong, .eyebrow, .step-number, .service-index, .card-kicker, .text-link) {
  color: #f5f2ea !important;
}

body main section.site-photo-band :is(.eyebrow, .card-kicker, .step-number, .service-index) {
  color: #e3ab87 !important;
}

body main section.site-photo-band a:not(.button):not([class*="button-"]) {
  color: #fffefa !important;
  text-decoration-color: rgba(255, 254, 250, .65);
}

body main section.site-photo-band :is(.info-card, .service-row, .faq-item, .faq-a, .process-grid li, .community-note, .scenario-card, .feature-card, .step-card, .form-card, .contact-form-card, .budget-option) {
  border-color: rgba(230, 238, 232, .42) !important;
}

body main section.site-photo-band :is(input, select, textarea) {
  color: #173e32 !important;
  background-color: #fffefa !important;
}

/* Business page list and accordion use the site's square edges and quiet rules. */
.home-page #preguntas.site-photo-band .check-list {
  gap: 0;
  padding: .35rem 1.25rem;
  border: 1px solid rgba(230, 238, 232, .42) !important;
  border-radius: 0;
  background: rgba(12, 40, 31, .52) !important;
  box-shadow: none;
}

.home-page #preguntas.site-photo-band .check-list li {
  padding: .7rem 0 .7rem 1.55rem;
  border-bottom: 1px solid rgba(230, 238, 232, .28);
  line-height: 1.5;
}

.home-page #preguntas.site-photo-band .check-list li:last-child { border-bottom: 0; }
.home-page #preguntas.site-photo-band .check-list li::before { color: #e3ab87 !important; }

.home-page #faq:not(.site-photo-band) .faq-list {
  gap: 0;
  border-top: 1px solid #aeb9af;
}

.home-page #faq:not(.site-photo-band) .faq-item {
  padding: .15rem 0;
  border-bottom: 1px solid #aeb9af;
}

.home-page #faq:not(.site-photo-band) .faq-q {
  min-height: 3.65rem;
  padding: .95rem .2rem;
  color: #173e32 !important;
  line-height: 1.45;
  text-align: left;
}

.home-page #faq:not(.site-photo-band) .faq-q span { color: #a95735; }
.home-page #faq:not(.site-photo-band) .faq-a { padding: 0 .2rem 1.1rem; color: #46594f !important; line-height: 1.65; }
/* Residential FAQ sits on its own dark photo background; keep its text light. */
.residential-page #faq:not(.site-photo-band) .faq-q { color: #fffefa !important; }
.residential-page #faq:not(.site-photo-band) .faq-q span { color: #f2c9ac !important; }
.residential-page #faq:not(.site-photo-band) .faq-q:hover,
.residential-page #faq:not(.site-photo-band) .faq-q:focus-visible { color: #f2c9ac !important; }
.residential-page #faq:not(.site-photo-band) .faq-a { color: #e6eee8 !important; }


@media (max-width: 700px) {
  body main section.site-photo-band::before {
    background-image: linear-gradient(rgba(12, 40, 31, .88), rgba(12, 40, 31, .88)), var(--site-photo-mobile-image, var(--site-photo-image));
  }
}


/* Page-specific photo choices for EV and battery scenarios. */
body.battery-page #escenarios::before {
  background-image: linear-gradient(0deg, #e9e9dd 0%, rgba(233, 233, 221, 0) 42%), linear-gradient(90deg, rgba(233, 233, 221, .72) 0%, rgba(233, 233, 221, .89) 34%, #e9e9dd 62%), url('/img/site-optimized/instalacion-residencial-terraza-960.webp');
  background-position: center 58%;
}
body.ev-page #escenarios::before {
  background-image: linear-gradient(0deg, #e9e9dd 0%, rgba(233, 233, 221, 0) 42%), linear-gradient(90deg, rgba(233, 233, 221, .72) 0%, rgba(233, 233, 221, .89) 34%, #e9e9dd 62%), url('/img/site-optimized/photo-0115-cargador-montaje-960.webp');
  background-position: center 58%;
}
@media (max-width: 700px) {
  body.battery-page #escenarios::before {
    background-image: linear-gradient(0deg, #e9e9dd 0%, rgba(233, 233, 221, 0) 42%), linear-gradient(90deg, rgba(233, 233, 221, .72) 0%, rgba(233, 233, 221, .89) 34%, #e9e9dd 62%), url('/img/site-optimized/instalacion-residencial-terraza-480.webp');
  }
  body.ev-page #escenarios::before {
    background-image: linear-gradient(0deg, #e9e9dd 0%, rgba(233, 233, 221, 0) 42%), linear-gradient(90deg, rgba(233, 233, 221, .72) 0%, rgba(233, 233, 221, .89) 34%, #e9e9dd 62%), url('/img/site-optimized/photo-0115-cargador-montaje-480.webp');
  }
}

/* Keep contact form controls legible inside a photo band. */
body main section.site-photo-band .contact-form-card :is(h3, p, label, small, strong) { color: #173e32 !important; }
body main section.site-photo-band .contact-form-card .form-privacy { color: #46594f !important; }
body main section.site-photo-band .contact-form-card .form-privacy a:not(.button) { color: #173e32 !important; }
