/* ==========================================================================
   DISFRICAL — Páginas de servicio (SEO), menú desplegable, llamada directa,
   bloques de confianza y utilidades de tipografía
   ========================================================================== */

/* Acento "eco" (verde esmeralda) SOLO en aerotermia y eficiencia energética */
:root { --eco-500: #10b981; --eco-600: #059669; --eco-100: #d1fae5; }
.t-eco { color: var(--eco-600); }
:root[data-theme="dark"] .t-eco { color: var(--eco-500); }
.eco .eyebrow { color: var(--eco-600); }
.eco .eyebrow::before { background: linear-gradient(90deg, var(--eco-500), var(--frost-400)); }
.eco .t-thermal { background: linear-gradient(90deg, #6ee7b7, var(--eco-500) 50%, var(--frost-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn--eco { --btn-bg: var(--eco-600); --btn-ink: #fff; --btn-line: transparent; box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.6); }
.btn--eco:hover { --btn-bg: var(--eco-500); }

/* ---- Menú: desplegable de Servicios ---- */
.nav__item { position: relative; }
.nav__link--parent { display: inline-flex; align-items: center; gap: 4px; }
.nav__link--parent svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.nav__item:hover .nav__link--parent svg, .nav__item:focus-within .nav__link--parent svg { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 5;
  width: 340px; padding: 10px; border-radius: var(--radius);
  background: var(--glass-solid); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .nav__dropdown { background: var(--glass); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
}
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dropdown a { display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 12px; transition: background 0.2s; }
.nav__dropdown a:hover, .nav__dropdown a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav__dropdown a > span:first-child { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.nav__dropdown a > span:first-child svg { width: 20px; height: 20px; }
.nav__dropdown a.is-eco > span:first-child { background: color-mix(in srgb, var(--eco-500) 14%, transparent); color: var(--eco-600); }
.nav__dropdown b { font-size: 0.9rem; font-weight: 700; }
.nav__dropdown small { font-size: 0.75rem; color: var(--ink-3); line-height: 1.3; }
.nav__dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.nav__dropdown .all { display: block; padding: 8px 10px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }

/* Submenú en el menú móvil */
.nav__overlay .sub { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 0 14px; }
.nav__overlay .sub a { font-size: 0.95rem; color: rgba(233, 241, 251, 0.75); }
.nav__overlay .sub a:hover { color: #fff; }

/* ---- Botón "Llamar ahora" ---- */
.nav__call { --btn-bg: var(--heat-500); --btn-ink: #fff; --btn-line: transparent; min-height: 44px; padding: 0 16px; box-shadow: 0 8px 24px -10px rgba(242, 98, 42, 0.8); }
.nav__call svg { width: 17px; height: 17px; }
.nav__call:hover svg { transform: none; }
.nav__call .long { display: none; }
@media (min-width: 980px) {
  .nav__call { width: 44px; padding: 0; }
  .nav__call .short { display: none; }
}
@media (min-width: 1440px) {
  .nav__call { width: auto; padding: 0 16px; }
  .nav__call .long { display: inline; }
}
@media (max-width: 559px) {
  .nav__pill { padding-left: 14px; gap: 8px; }
  .nav__actions { gap: 6px; }
  .nav__actions .theme-toggle, .nav__actions .nav__auth { display: none; }
  .nav__brand small { display: none; }
}
.nav__overlay-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav__overlay-tools .icon-btn { border-color: rgba(255, 255, 255, 0.24); }

/* ---- Páginas de servicio ---- */
.silo-intro { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .silo-intro { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.eco .prose a { color: var(--eco-600); }
.silo h2 { font-size: var(--fs-3xl); max-width: 22ch; }
.silo h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.facts { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.facts [data-icon] { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.eco .facts [data-icon] { color: var(--eco-600); }
.facts b { color: var(--ink); }

.feature-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow-1); }
.feature::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-thermal); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.eco .feature::after { background: linear-gradient(90deg, var(--eco-500), var(--frost-400)); }
.feature:hover::after { transform: scaleX(1); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.eco .feature__icon { background: color-mix(in srgb, var(--eco-500) 14%, transparent); color: var(--eco-600); }
.feature__icon svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-2); font-size: 0.95rem; }
.feature ul { display: grid; gap: 6px; font-size: 0.9rem; color: var(--ink-2); }
.feature ul li { display: flex; gap: 10px; }
.feature ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--accent); }
.eco .feature ul li::before { background: var(--eco-500); }

.media-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .media-split { grid-template-columns: 1fr 1fr; gap: 72px; } .media-split--rev > :first-child { order: 2; } }
.media-split figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.media-split figure img { width: 100%; height: 100%; object-fit: cover; }
.media-split figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 8px 12px; border-radius: 10px; font-size: 0.75rem; color: #fff; background: rgba(3, 12, 24, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.steps-v { display: grid; gap: 0; counter-reset: sv; margin-top: 28px; }
.steps-v li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps-v li::before { counter-increment: sv; content: "0" counter(sv); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.eco .steps-v li::before { color: var(--eco-600); background: color-mix(in srgb, var(--eco-500) 12%, transparent); }
.steps-v b { font-size: 1.02rem; }
.steps-v span { color: var(--ink-2); font-size: 0.94rem; }

/* Enlazado interno entre servicios */
.related { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .related { grid-template-columns: repeat(4, 1fr); } }
.related a { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.related a:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.related b { font-size: 1.05rem; }
.related span { font-size: 0.88rem; color: var(--ink-2); }
.related .link-arrow { margin-top: 4px; }
.related [aria-current="page"] { display: none; }

.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.towns li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }

/* Placeholders de fotos reales (pendientes del cliente) */
.photo-todo { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 3; padding: 24px; border-radius: var(--radius-lg); border: 2px dashed var(--line-2); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--bg-2) 12px, var(--bg-2) 24px); text-align: center; color: var(--ink-3); font-size: 0.85rem; }
.photo-todo [data-icon] { width: 36px; height: 36px; color: var(--ink-3); }

/* ---- Inicio: taller + mapa ---- */
.workshop { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 980px) { .workshop { grid-template-columns: 1fr 1.2fr; gap: 40px; } }
.workshop .map-frame { min-height: 380px; }
.trust-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.trust h3 { font-size: 1.35rem; }
.trust p { color: var(--ink-2); }
.trust__badge { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.disclaimer { margin-top: 14px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.55; }

/* Pie de página: títulos sin etiquetas de encabezado (estructura SEO limpia) */
.footer__title { color: #fff; font-size: clamp(2rem, 1.3rem + 3.2vw, 4.2rem); font-weight: 700; line-height: 1.08; max-width: 14ch; letter-spacing: -0.04em; }
.footer__h { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--frost-300); margin-bottom: 16px; }

/* Títulos visuales que no son encabezados (mantienen la jerarquía H1-H3 limpia) */
.h2-like { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.h3-like { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* H1 SEO de la portada: más largo, tamaño contenido para que quepa sin cortes */
.hero__title--seo { font-size: clamp(2.1rem, 1.1rem + 3.7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero__title--seo .line:nth-child(3) > span { animation-delay: 0.22s; }
.hero__title--seo .line:nth-child(4) > span { animation-delay: 0.32s; }
.statement { font-weight: 700; }

/* ==========================================================================
   Botón flotante de WhatsApp (todas las páginas)
   ========================================================================== */
.wa-button {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 95;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(6, 24, 45, 0.18);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s;
}
.wa-button svg { position: relative; z-index: 1; width: 32px; height: 32px; }
/* Latido: anillo que se expande y se desvanece */
.wa-button::before, .wa-button::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: 0;
  animation: waPing 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.wa-button::after { animation-delay: 1.3s; }
@keyframes waPing { 0% { transform: scale(1); opacity: 0.5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-button:hover { transform: scale(1.1); background: #20bd5a; box-shadow: 0 18px 36px -8px rgba(37, 211, 102, 0.7), 0 6px 14px rgba(6, 24, 45, 0.2); }
.wa-button:focus-visible { outline: 3px solid #128c7e; outline-offset: 4px; }
/* Etiqueta al pasar el ratón (solo escritorio) */
.wa-button__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; z-index: 1;
  padding: 8px 14px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--frost-950); color: #fff; font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-1); pointer-events: none;
  opacity: 0; transform: translate(8px, -50%); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
@media (hover: hover) { .wa-button:hover .wa-button__tip { opacity: 1; transform: translate(0, -50%); } }
/* Solo el latido continuo se suaviza con "reducir movimiento" */
@media (prefers-reduced-motion: reduce) { .wa-button::before, .wa-button::after { animation-duration: 6s; } }
/* La "Solicitud" de la tienda sube para no solaparse con WhatsApp */
/* Con el menú móvil abierto, el botón se oculta */
.menu-open .wa-button { opacity: 0; pointer-events: none; }

/* Menú móvil: si el contenido no cabe, se desplaza en lugar de solaparse con el logo */
.nav__overlay { justify-content: safe flex-end; overflow-y: auto; overscroll-behavior: contain; }
.nav__overlay > ol { margin-top: auto; }

/* ---- WhatsApp con varios contactos: botón + selector ---- */
.wa-widget:not(.wa-button) { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 95; display: grid; justify-items: end; gap: 14px; }
.wa-widget .wa-button { position: relative; right: auto; bottom: auto; }
.wa-button__close { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; opacity: 0; transform: rotate(-90deg); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.wa-button__close::before, .wa-button__close::after { content: ""; position: absolute; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.wa-button__close::after { transform: rotate(-45deg); }
.wa-widget .wa-button > svg { transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.wa-widget.is-open .wa-button > svg { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wa-widget.is-open .wa-button__close { opacity: 1; transform: none; }
.wa-widget.is-open .wa-button::before, .wa-widget.is-open .wa-button::after { animation: none; opacity: 0; }
.wa-widget.is-open .wa-button__tip { display: none; }

.wa-pick {
  width: min(300px, calc(100vw - 36px)); border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform-origin: bottom right; opacity: 0; transform: translateY(10px) scale(0.96);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.wa-widget.is-open .wa-pick { opacity: 1; transform: none; }
.wa-pick__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #075e54; color: #fff; }
.wa-pick__head > svg { width: 30px; height: 30px; flex: none; color: #25d366; }
.wa-pick__head p { font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.wa-pick__head small { font-size: 0.78rem; opacity: 0.8; }
.wa-pick__list { display: grid; padding: 8px; }
.wa-pick__item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background 0.2s; }
.wa-pick__item:hover, .wa-pick__item:focus-visible { background: var(--surface-2); }
.wa-pick__item:focus-visible { outline: 2px solid #25d366; outline-offset: -2px; }
.wa-pick__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; color: #fff; background: var(--grad-frost); }
.wa-pick__item:nth-child(2) .wa-pick__avatar { background: var(--grad-heat); }
.wa-pick__item b { display: block; font-size: 0.95rem; color: var(--ink); }
.wa-pick__item small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3); }
.wa-pick__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #25d366; color: #fff; transition: transform 0.3s var(--ease-out); }
.wa-pick__go svg { width: 18px; height: 18px; }
.wa-pick__item:hover .wa-pick__go { transform: scale(1.1); }
.menu-open .wa-widget { opacity: 0; pointer-events: none; }

/* ---- Marcas con las que trabajamos ---- */
.brands { margin-top: 24px; display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
@media (min-width: 980px) { .brands { grid-template-columns: 300px 1fr; gap: 40px; align-items: center; } }
.brands__head { display: grid; gap: 10px; }
.brands__head > p:last-child { color: var(--ink-2); font-size: 0.92rem; }
.brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .brands__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .brands__grid { grid-template-columns: repeat(4, 1fr); } }
.brands__grid li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s; }
.brands__grid li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow-1); }
.brands__grid b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brands__grid span { font-size: 0.75rem; color: var(--ink-3); }

/* ==========================================================================
   Barra de marcas (logo marquee) bajo el hero
   ========================================================================== */
.logos { padding-block: 30px 34px; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__title { text-align: center; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; color: var(--ink-3); max-width: 62ch; margin: 0 auto 20px; text-wrap: balance; }
.logos__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 42s linear infinite; }
.logos__marquee:hover .logos__track,
.logos__marquee:focus-within .logos__track { animation-play-state: paused; }
/* padding (no gap) para que el -50% del bucle sea exacto */
.logos__item { flex: none; padding-right: 18px; }
.logos__item img {
  display: block; box-sizing: content-box;
  height: 38px; width: auto; max-width: 150px; object-fit: contain;
  padding: 16px 26px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  filter: grayscale(1); opacity: .6;
  transition: filter .45s var(--ease-out), opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.logos__item img[src*="zanotti"], .logos__item img[src*="sporlan"] { height: 50px; padding-block: 10px; }
.logos__item img[src*="mundoclima"], .logos__item img[src*="momplet"] { max-width: 190px; }
.logos__item img[src*="haier"] { height: 32px; padding-block: 19px; }
.logos__item img[src*="chnt"], .logos__item img[src*="parker"] { height: 30px; padding-block: 20px; }
.logos__item img:hover { filter: none; opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(10, 26, 46, .35); }
[data-theme="dark"] .logos__item img { background: #eef2f7; border-color: transparent; opacity: .55; }
[data-theme="dark"] .logos__item img:hover { opacity: 1; }
@media (max-width: 640px) {
  .logos { padding-block: 22px 26px; }
  .logos__item img { height: 30px; padding: 12px 18px; max-width: 120px; }
  .logos__item img[src*="zanotti"], .logos__item img[src*="sporlan"] { height: 40px; padding-block: 7px; }
  .logos__item img[src*="chnt"], .logos__item img[src*="parker"] { height: 24px; padding-block: 15px; }
  .logos__track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) { .logos__track { animation-duration: 120s; } }

/* ==========================================================================
   Energía renovable: placas solares + cargadores de coche eléctrico
   ========================================================================== */
.renew { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .renew { grid-template-columns: 1fr 1fr; } }
.renew-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.renew-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 26, 46, 0.35); }
.renew-card[data-temp="heat"]:hover { border-color: color-mix(in srgb, var(--eco-500) 45%, transparent); }
.renew-card[data-temp="cold"]:hover { border-color: color-mix(in srgb, var(--frost-500) 45%, transparent); }

/* Contenedor de foto: object-cover + bordes redondeados + zoom en hover */
.renew-card__media { position: relative; margin: 10px 10px 0; aspect-ratio: 16 / 10; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--bg-2); }
.renew-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.1s var(--ease-out); }
.renew-card:hover .renew-card__media img { transform: scale(1.07); }
.renew-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 12, 24, 0.55)); pointer-events: none; }
.renew-card__media figcaption { position: absolute; z-index: 1; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #fff; background: rgba(3, 12, 24, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.renew-card__media figcaption [data-icon] { width: 16px; height: 16px; }

.renew-card__body { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.6vw, 30px); }
.renew-card__badge { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: #fff; background: linear-gradient(135deg, var(--frost-600, #1d4ed8), var(--frost-500)); }
.renew-card__badge--eco { background: linear-gradient(135deg, var(--eco-600), #34d399); }
.renew-card h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.renew-card p { color: var(--ink-2); line-height: 1.65; }
.renew-card p a { text-decoration: underline; text-underline-offset: 3px; }
.renew-card__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.renew-card__list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink); }
.renew-card__list li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--frost-500) 14%, transparent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--frost-500) 60%, transparent); }
.renew-card[data-temp="heat"] .renew-card__list li::before { background: color-mix(in srgb, var(--eco-500) 14%, transparent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--eco-500) 60%, transparent); }
.renew-card__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }

/* Galería de placas instaladas */
.solar-gallery { display: grid; gap: 14px; margin-top: 40px; }
.solar-gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
@media (min-width: 760px) { .solar-gallery { grid-template-columns: 1.3fr 1fr 1fr; } .solar-gallery figure { aspect-ratio: auto; height: clamp(220px, 24vw, 320px); } }
.solar-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.solar-gallery figure:hover img { transform: scale(1.06); }
.solar-gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: #fff; background: rgba(3, 12, 24, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Mantiene la animación de entrada (.reveal) junto con las transiciones de hover */
.js .renew-card.reveal { transition: opacity 0.9s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s; transition-delay: var(--d, 0s); }
.js .renew-card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ==========================================================================
   Distintivo "Instalación real" sobre fotos de trabajos propios
   ========================================================================== */
.real-badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 7px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; color: #fff; white-space: nowrap;
  background: rgba(3, 12, 24, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 24px -12px rgba(3, 12, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.real-badge [data-icon], .real-badge .rb-ic { display: grid; place-items: center; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--eco-500); color: #fff; }
.real-badge [data-icon] svg, .real-badge .rb-ic svg { width: 100%; height: 100%; stroke-width: 2.6; }
/* Posición según el contenedor */
.svc-card__media .real-badge { top: 74px; left: 22px; }
.svc-detail__media .real-badge { top: auto; bottom: 16px; left: 16px; }
.hero__media .real-badge, .page-banner__media .real-badge { top: auto; left: auto; right: max(16px, 2.5vw); bottom: 22px; }
@media (max-width: 640px) { .hero__media .real-badge { display: none; } } /* en móvil el hero va lleno de contenido */

/* Encuadre uniforme de fotos reales (verticales u horizontales) */
img[src*="/instalaciones/"] { object-fit: cover; }

/* Acceso al catálogo en el menú + móviles estrechos ("Llamar" pasa a icono) */
.nav__catalog[aria-current="page"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
@media (max-width: 400px) {
  .nav__call { width: 44px; padding: 0; }
  .nav__call .short { display: none; }
  .nav__actions { gap: 6px; }
}
