/* =============================================
   ENSOCLIM — Tema común (2026)
   Se carga en TODAS las páginas justo después de styles.css y alinea los
   componentes compartidos con la portada: cabecera oscura de página,
   títulos alineados a la izquierda, botones redondos y planos, tarjetas
   sin sombra ni borde y un pie más limpio. styles.css no se toca: aquí
   solo hay sobrescrituras, así que quitar este archivo devuelve el diseño
   anterior.
   ============================================= */

:root {
  --gut: clamp(20px, 4vw, 56px);
  --night: #100E0C;
  --amber: #F0A02A;
  --t-h2: clamp(30px, 3.4vw, 52px);
  --pad: clamp(72px, 8vw, 120px);
  --card: rgba(255,255,255,.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.container { max-width: 1400px; padding: 0 var(--gut); }

/* ——— BOTONES: redondos, planos, sin sombra ——— */
.btn {
  border-radius: 999px;
  box-shadow: none;
  min-height: 52px;
  padding: 0 26px;
  justify-content: center;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary, .btn--primary:hover { box-shadow: none; }
.btn--ghost { background: var(--ink); color: #fff; border: 0; box-shadow: none; }
.btn--ghost:hover { background: #2B241D; color: #fff; border: 0; }
.btn--nav { box-shadow: none; border-radius: 999px; min-height: 0; padding: 10px 20px; }
.btn--lg { padding: 0 32px; min-height: 56px; }
.btn--wa { border-radius: 999px; box-shadow: none; min-height: 54px; padding: 0 28px; }
.btn--wa:hover { box-shadow: none; }

/* Botones de la portada (también útiles en el resto) */
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 700 16px/1 'Manrope', sans-serif;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn:active { transform: translateY(0) scale(.98); }
.hbtn svg { width: 20px; height: 20px; flex-shrink: 0; }
.hbtn--red { background: var(--red); color: #fff; }
.hbtn--red:hover { background: var(--red-hover); }
.hbtn--light { background: #fff; color: var(--ink); }
.hbtn--light:hover { background: var(--bg); }
.hbtn--wa { background: rgba(255,255,255,.14); color: #fff; }
.hbtn--wa:hover { background: #25D366; }
.hbtn--ink { background: var(--ink); color: #fff; }
.hbtn--ink:hover { background: #2B241D; }

/* ——— BARRA DE CRISTAL FLOTANTE ———
   Una cápsula separada de los bordes con efecto de vidrio esmerilado.
   Sobre la portada o la cabecera oscura (.nav--over sin .scrolled) es un
   cristal oscuro con texto blanco; al hacer scroll (main.js pone .scrolled)
   pasa a cristal claro que deja ver, desenfocado, lo que pasa por debajo. */
.nav {
  top: 12px; left: 12px; right: 12px;
  max-width: 1280px; margin: 0 auto;
  padding: 12px 0;
  border-radius: 20px;
  background: rgba(244,239,230,.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 34px rgba(16,14,12,.12);
  transition: background-color .35s, border-color .35s, box-shadow .35s, padding .35s;
}
.nav::before { display: none; }
.nav.scrolled { padding: 10px 0; background: rgba(244,239,230,.62); box-shadow: 0 10px 34px rgba(16,14,12,.12); }
.nav__inner { padding: 0 22px; }

.nav.nav--over:not(.scrolled) {
  background: rgba(20,17,14,.26);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.nav.nav--over:not(.scrolled) .nav__burger span { background: #fff; }
@media (min-width: 641px) {
  .nav.nav--over:not(.scrolled) .nav__links a,
  .nav.nav--over:not(.scrolled) .nav__phone { color: #fff; }
  .nav.nav--over:not(.scrolled) .nav__links a:hover { color: var(--amber); }
  .nav.nav--over:not(.scrolled) .nav__links a.active::after { background: #fff; }
}
.nav__links a.active::after { background: var(--red); }

/* Menú del móvil: un panel debajo de la cápsula, con la misma forma */
.nav:has(.nav__links.open),
.nav.nav--over:has(.nav__links.open) { background: rgba(244,239,230,.92); border-color: rgba(255,255,255,.55); }
.nav.nav--over:has(.nav__links.open) .nav__burger span { background: var(--ink); }
@media (max-width: 640px) {
  .nav__links.open {
    top: calc(100% + 8px);
    height: auto;
    padding: 26px 24px;
    gap: 18px;
    border-top: 0;
    border-radius: 20px;
    background: #F4EFE6;
    box-shadow: 0 16px 40px rgba(16,14,12,.18);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(244,239,230,.97); }
  .nav.nav--over:not(.scrolled) { background: rgba(20,17,14,.82); }
}

/* ——— CABECERA DE PÁGINA: la misma noche que la portada ——— */
.page-header {
  background: var(--night);
  color: #fff;
  border-bottom: 0;
  padding: clamp(150px, 19vh, 210px) 0 clamp(64px, 8vw, 110px);
}
.page-header__bg { display: none; }
.page-header__content { text-align: left; }
.page-header__breadcrumb { color: rgba(255,255,255,.62); font-size: 14px; margin-bottom: 22px; }
.page-header__breadcrumb a { color: rgba(255,255,255,.62); }
.page-header__breadcrumb a:hover { color: #fff; }
.page-header__breadcrumb span { color: #fff; }
.page-header__title {
  color: #fff;
  font-size: clamp(40px, 6vw, 92px);
  line-height: .95;
  letter-spacing: -0.045em;
  max-width: 15ch;
  margin-bottom: 26px;
}
.page-header__title em { color: inherit; font-style: normal; }
.page-header__sub {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}

/* ——— SECCIONES Y TÍTULOS ——— */
.page-section { padding: var(--pad) 0; }
.section-header { text-align: left; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-tag { display: none; }   /* sin etiquetas sobre los títulos, como en la portada */
.section-title { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.035em; }
.section-sub { margin: 0; max-width: 52ch; color: var(--ink); font-size: 17px; line-height: 1.6; }
.intro-block { margin: 0; max-width: 860px; }
.intro-block__lead { color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }

/* ——— TARJETAS: planas, sin borde ni sombra, como los servicios de la portada ——— */
.project-card, .process-step, .stats-strip__item, .value-block, .faq-item,
.callout, .link-card, .zone-card, .post-card, .contact__form, .contact__wa,
.service-card, .about__card-sm, .about__card-main, .about__card-cert {
  background: var(--card);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}
.page-section--alt .project-card, .page-section--alt .process-step, .page-section--alt .value-block,
.page-section--alt .link-card, .page-section--alt .faq-item, .page-section--alt .zone-card,
.page-section--alt .post-card, .page-section--alt .stats-strip__item { background: rgba(255,255,255,.62); }
.project-card:hover, .process-step:hover, .stats-strip__item:hover, .value-block:hover,
.zone-card:hover, .post-card:hover, .link-card:hover {
  background: #fff; border-color: transparent; box-shadow: none; transform: translateY(-4px);
}
.process-step::before { display: none; }
.zone-card { border-left: 0; }

.process-step__num, .stats-strip__num {
  background: none; -webkit-text-fill-color: currentColor; color: var(--ink);
}
.process-step__num { font-size: 15px; font-weight: 700; color: var(--red-ink); letter-spacing: 0; margin-bottom: 12px; }
.process-step h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.process-step p, .value-block p, .zone-card__text, .post-card__text, .faq-item__a p,
.callout p, .service-detail__text, .service-detail__list li, .project-card__info p,
.legal-content p, .legal-content li, .article__body p, .article__body li { color: var(--ink); }

.stats-strip__label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.stats-strip__num { font-size: clamp(44px, 4.4vw, 64px); letter-spacing: -0.05em; }

.value-block__icon { display: none; }   /* iconos-emoji fuera, como en la portada */
.value-block h3, .zone-card__name, .post-card__title { font-weight: 800; letter-spacing: -0.02em; }

.project-card__tag, .post-card__tag, .article__tag {
  font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--red-ink);
}
.project-card__visual, .pv-visual, .thermal-visual, .clim-visual, .colective-visual { background: #E2DCD0; }
.project-card__photo { height: 240px; }

.callout { border-left: 0; background: var(--ink); color: #fff; padding: clamp(26px, 3vw, 40px); margin-left: 0; }
.story__visual { box-shadow: none; border: 0; border-radius: 20px; }
.story__text p { color: var(--ink); }
.callout__title { color: #fff; font-size: 22px; }
.callout p, .callout p strong { color: rgba(255,255,255,.9); }
.callout p strong { color: #fff; }

.link-card { font-weight: 700; }
.link-card:hover { color: var(--ink); }

.faq__list { margin: 0; max-width: 860px; gap: 10px; }
.faq-item.open { background: #fff; }
.faq-item__q { font-size: 17px; font-weight: 700; padding: 22px 26px; }
.faq-item__icon { color: var(--red); }

/* ——— FILAS DE SERVICIO ——— */
.service-detail { border-bottom: 0; padding: clamp(40px, 5vw, 64px) 0; gap: clamp(32px, 5vw, 72px); }
.service-detail__num { display: none; }   /* sin «01 · AUTOCONSUMO» */
.service-detail__title { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.service-detail__list li::before { content: '→'; color: var(--red); }
.service-detail__visual { border: 0; box-shadow: none; border-radius: 20px; }
.sd-bg-pv, .sd-bg-thermal, .sd-bg-clim, .sd-bg-heat { background: #E2DCD0; }
.sd-bg-pv svg, .sd-bg-thermal svg, .sd-bg-clim svg, .sd-bg-heat svg { color: var(--ink); }
.sd-collage { border-radius: 20px; }

/* ——— FICHAS DE ZONA, FILTROS ——— */
.zone-chips { justify-content: flex-start; }
.zone-chip { border: 0; box-shadow: none; background: var(--card); color: var(--ink); padding: 12px 22px; }
a.zone-chip:hover { background: #fff; color: var(--ink); }
.zone-chip--all { background: var(--ink); color: #fff; }
a.zone-chip--all:hover { background: var(--red); color: #fff; }
.zone-hero { border: 0; box-shadow: none; border-radius: 20px; margin-left: 0; }
.project-filters { justify-content: flex-start; }
.filter-btn { border: 0; box-shadow: none; background: var(--card); color: var(--ink); }
.filter-btn:hover { color: var(--ink); background: #fff; }
.filter-btn.active { box-shadow: none; background: var(--ink); color: #fff; }
.map-block { border: 0; box-shadow: none; border-radius: 20px; }

/* ——— FRANJA FINAL (cta-banner): igual que el cierre de la portada ——— */
.cta-banner { background: var(--night); padding: clamp(64px, 7vw, 104px) 0; }
.cta-banner__inner {
  background: none; box-shadow: none; border-radius: 0; padding: 0;
  flex-wrap: wrap; gap: 32px 48px;
}
.cta-banner__inner::before, .cta-banner__inner::after { display: none; }
.cta-banner__inner h2 { font-size: var(--t-h2); line-height: 1.02; margin-bottom: 12px; }
.cta-banner__inner p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 46ch; }
.cta-banner__inner .btn--primary { box-shadow: none; }

/* ——— CONTACTO ——— */
.contact__info { background: var(--night); border: 0; box-shadow: none; border-radius: 20px; }
.contact__lead { color: rgba(255,255,255,.85); }
.contact__detail-icon { display: none; }
.contact__detail strong { text-transform: none; letter-spacing: 0; font-size: 14px; color: rgba(255,255,255,.62); font-weight: 600; }
.contact__detail span { font-size: 17px; color: #fff; }
.contact__detail a { color: #fff; }
.contact__wa { background: var(--card); }
.contact__wa-text { color: var(--ink); }
.form-group label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { border-radius: 12px; }

/* ——— CALCULADORA (placas solares) ——— */
.calc-section { background: var(--surface-2); }
.calc { border: 0; box-shadow: none; border-radius: 22px; margin: 0; max-width: 1040px; }
.calc__results { background: var(--night); }
.calc__label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.calc__grid { border-top: 0; padding-top: 8px; }
.calc__stat span { font-size: 14px; color: rgba(255,255,255,.78); }
.calc__range::-webkit-slider-thumb { box-shadow: none; }
.calc__range::-moz-range-thumb { box-shadow: none; }
.calc__options label { border: 0; background: var(--surface-2); color: var(--ink); }
.calc__note { margin: 22px 0 0; text-align: left; color: var(--ink); }

/* ——— BLOG ——— */
.article__meta { border-bottom: 0; padding-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.article__body li::marker { color: var(--red); }
.article__body .callout { margin: 36px 0; }
.article__cta { background: var(--night); box-shadow: none; text-align: left; padding: clamp(28px, 3.4vw, 48px); }
.article__cta p { margin-left: 0; color: rgba(255,255,255,.88); font-size: 17px; }

/* ——— LEGAL ——— */
.legal-content .legal-updated { color: var(--ink-soft); }

/* ——— PIE: sin líneas finas ni etiquetas en mayúsculas ——— */
.footer { background: var(--night); }
.footer__col h4, .footer__zones h4 {
  font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0;
  color: #fff; margin-bottom: 16px;
}
.footer__brand p, .footer__col a, .footer__contact-info p, .footer__contact-info a, .footer__zones a {
  font-size: 15px; color: rgba(255,255,255,.72);
}
.footer__col a:hover, .footer__contact-info a:hover, .footer__zones a:hover { color: #fff; }
.footer__zones { border-top: 0; padding-top: 0; }
.footer__zones p { color: rgba(255,255,255,.4); font-size: 15px; }
.footer__bottom { border-top: 0; padding-top: 8px; }
.footer__bottom p { font-size: 14px; color: rgba(255,255,255,.5); }
.footer__social a { border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; width: 40px; height: 40px; }
.footer__social a:hover { background: #25D366; color: #fff; }

/* ——— BURBUJA DE WHATSAPP ——— */
.wa-float { box-shadow: none; animation: none; }
.wa-float:hover { box-shadow: none; }
.wa-float__tooltip { backdrop-filter: none; border: 0; background: var(--ink); }

@media (max-width: 640px) {
  .page-header { padding: 128px 0 56px; }
  .page-header__title { font-size: 11vw; }
  .page-header__sub { font-size: 16px; }
  .cta-banner__inner { text-align: left; align-items: flex-start; }
  .cta-banner__inner .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .hbtn { transition: none; }
}
