/* 410px at 1440px before this redesign -> 273.33px (two thirds).
   All selectors are isolated from navigation, content and internal pages. */
.municipal-hero.smart-hero{height:clamp(193.333px,19.2vw,273.333px);min-height:0;position:relative;isolation:isolate;overflow:hidden;contain:paint;color:#fff;background:#07334f url('/assets/hero1-riacho-original-poster-m2.jpg') center 8%/cover no-repeat}
.smart-hero:before,.smart-hero:after{content:none!important}
.smart-hero .mh-decoration{pointer-events:none}
.smart-hero .mh-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;filter:none;opacity:0;transition:opacity .5s;z-index:0;pointer-events:none}
.smart-hero .mh-video.hero-video-playing{opacity:1}
.smart-hero .mh-video::-webkit-media-controls{display:none!important}
.smart-hero .mh-contrast{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,28,51,.84),rgba(0,29,51,.66) 32%,rgba(0,33,57,.14) 57%,rgba(0,30,54,.02)),linear-gradient(0deg,rgba(0,31,53,.48),transparent 30%)}
.smart-hero .mh-layout{position:relative;z-index:3;width:min(92%,1760px);height:100%;margin:auto;display:grid;grid-template-columns:47% 53%;align-items:center;gap:0;padding:12px 0 24px;box-sizing:border-box;pointer-events:none}
.smart-hero .mh-identity{width:max-content;max-width:100%;align-self:center;text-shadow:0 2px 8px #00203c80}
.smart-hero .mh-official-name{display:flex;align-items:center;gap:clamp(12px,1.5vw,26px)}
.smart-hero .mh-crest{width:clamp(79px,8.4vw,128px);height:auto;object-fit:contain;flex-shrink:0}
.smart-hero .mh-name{border-left:1px solid #d4f3f5b3;padding-left:clamp(12px,1.5vw,26px);min-width:0}
.smart-hero .mh-eyebrow{display:block;font:650 clamp(10px,1.22vw,19px)/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.07em;white-space:nowrap;margin-bottom:3px}
.smart-hero h1{font:800 clamp(26px,2.9vw,42px)/1.02 'DM Sans',Arial,sans-serif;letter-spacing:-.025em;color:white;margin:0;max-width:none;white-space:nowrap}
.smart-hero .mh-state{display:block;font:600 clamp(10px,1.17vw,17px)/1.35 'DM Sans',Arial,sans-serif;letter-spacing:.26em;margin-top:5px;white-space:nowrap}
.smart-hero .mh-red-divider{width:clamp(78px,9.3vw,145px);height:4px;border-radius:5px;background:#ff304d;margin:15px 0 7px 2.5%}
.smart-hero .mh-slogan{font:750 italic clamp(14px,1.5vw,22px)/1.25 'DM Sans',Arial,sans-serif;letter-spacing:0;color:white;margin:0 0 0 5%;max-width:none}
.smart-hero .mh-network{position:absolute;inset:0;z-index:2;width:100%;height:100%;opacity:.6}
.smart-hero .mh-data-flow{stroke-dasharray:.3 4 .1 95.6;animation:mh-transmit var(--flow-duration) linear infinite;animation-delay:var(--delay);opacity:.95}
.smart-hero .mh-node{animation:mh-node-pulse 5s ease-in-out infinite;animation-delay:var(--delay)}
.smart-hero .mh-scene{position:relative;isolation:isolate;width:min(85%,calc((clamp(193.333px,19.2vw,273.333px) - 48px)*1.76));aspect-ratio:1.76;justify-self:center;align-self:center;margin-top:3px}
.smart-hero .mh-ring{position:absolute;width:67%;aspect-ratio:1;left:17%;top:-5%;z-index:0}
/* Separate SVG roots let the compositor rotate cached ring surfaces. */
.smart-hero .mh-ring svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.smart-hero .mh-orbit{transform-origin:50% 50%;animation:mh-orbit 38s linear infinite;will-change:transform}
.smart-hero .mh-orbit-inner{animation-duration:49s;animation-direction:reverse}
.smart-hero .mh-platform{position:absolute;left:-18%;bottom:-12%;width:136%;height:29%;z-index:1;overflow:visible}
.smart-hero .mh-base-pulse{animation:mh-luminance 6s ease-in-out infinite}
.smart-hero .mh-building{position:relative;width:100%;z-index:2}
.smart-hero .mh-building img{display:block;width:100%;height:auto;max-width:none;transform:none;background:transparent;filter:drop-shadow(0 3px 8px #002d4f55)}
.smart-hero .mh-building-light{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.smart-hero .mh-architecture-glow{animation:mh-luminance 8s ease-in-out infinite}
.smart-hero .mh-window-light{animation:mh-luminance 6.5s -2s ease-in-out infinite}
.smart-hero .mh-contour-signal{stroke-dasharray:8 92;animation:mh-transmit 10s linear infinite}
.smart-hero .mh-building-particles{position:absolute;inset:0;z-index:4}
.smart-hero .mh-building-particles i{position:absolute;left:var(--x);top:var(--y);width:2px;height:2px;background:#d6ffff;border-radius:50%;box-shadow:0 0 5px #00eaff;animation:mh-particle 7s ease-in-out infinite;animation-delay:var(--delay)}
.smart-hero .mh-services{position:absolute;inset:0;z-index:4}
.smart-hero .mh-service{position:absolute;width:clamp(34px,4.1vw,62px);height:auto;overflow:visible;filter:drop-shadow(0 0 1px #04dfff80);animation:mh-float var(--float-duration) ease-in-out infinite;animation-delay:var(--delay);will-change:transform,opacity}
.smart-hero .mh-service-halo{fill:none;stroke:#0ed9ff;stroke-width:3;opacity:.1}
.smart-hero .mh-service-citizenship{left:44%;top:10%}
.smart-hero .mh-service-development{left:55.5%;top:1%}
.smart-hero .mh-service-environment{right:4%;top:7%}
.smart-hero .mh-service-connectivity{left:41.5%;top:42%}
.smart-hero .mh-service-education{left:51%;top:45%}
.smart-hero .mh-service-health{left:45%;top:69%}
.smart-hero .mh-service-management{right:1.5%;top:49%}
.smart-hero .mh-waves{position:absolute;left:0;bottom:-1px;width:100%;height:18%;z-index:5;pointer-events:none}
.smart-hero .mh-wave-glow{animation:mh-luminance 11s ease-in-out infinite}
.smart-hero .mh-wave-red{animation:mh-luminance 13s -4s ease-in-out infinite}
.smart-hero .mh-wave-flow{stroke-dasharray:3 97;animation:mh-transmit 14s linear infinite}
.smart-hero .mh-wave-flow-back{animation-duration:19s;animation-delay:-7s;stroke-dasharray:1 99}
/* Reserve the lower strip for light waves, clear of the institutional slogan. */
@media(min-width:768px){
  .smart-hero .mh-layout{padding:8px 0 32px}
  .smart-hero .mh-waves{height:8%;z-index:2}
}
@keyframes mh-orbit{to{transform:rotate(360deg)}}
@keyframes mh-transmit{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes mh-luminance{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes mh-node-pulse{0%,100%{opacity:.5}45%{opacity:1}65%{opacity:.65}}
@keyframes mh-float{0%,100%{transform:translateY(0);opacity:.72}50%{transform:translateY(-4px);opacity:1}}
@keyframes mh-particle{0%,100%{opacity:0;transform:translateY(4px)}30%,65%{opacity:.9}90%{opacity:0;transform:translateY(-12px)}}
@media(min-width:1600px){.smart-hero .mh-layout{width:min(90%,1760px);grid-template-columns:46% 54%}.smart-hero .mh-service-education{left:53%}.smart-hero .mh-scene{width:405px}.smart-hero .mh-ring{width:65%;left:18%;top:-6%}}
@media(min-width:768px) and (max-width:1023px){
  .municipal-hero.smart-hero{height:220px}
  .smart-hero .mh-layout{width:94%;grid-template-columns:49% 51%}
  .smart-hero .mh-identity{align-self:start}
  .smart-hero .mh-official-name{gap:10px}.smart-hero .mh-crest{width:70px}.smart-hero .mh-name{padding-left:10px}
  .smart-hero h1{font-size:clamp(26px,3.4vw,34px)}.smart-hero .mh-eyebrow{font-size:10px;letter-spacing:.035em}.smart-hero .mh-state{font-size:10px;letter-spacing:.2em}
  .smart-hero .mh-slogan{font-size:16px}.smart-hero .mh-red-divider{margin-top:13px}
  .smart-hero .mh-scene{width:83%}.smart-hero .mh-service-education{display:none}
  .smart-hero .mh-service-citizenship{left:45%;top:6%}.smart-hero .mh-service-connectivity{left:46%;top:42%}.smart-hero .mh-service-health{left:47%;top:74%}
}
/* Mobile: 380px -> 253px; desktop rules above remain unchanged. */
@media(max-width:767px){
  .municipal-hero.smart-hero{height:253px}
  .smart-hero .mh-video{object-position:51% 16%}
  .smart-hero .mh-contrast{background:linear-gradient(180deg,#00233cb8 0%,#00243b94 37%,#00243b0a 65%,#00243b44)}
  .smart-hero .mh-layout{width:min(calc(100% - 24px),510px);grid-template-columns:1fr;grid-template-rows:76px minmax(0,1fr);align-content:start;padding:12px 0 10px;gap:0}
  /* One horizontal band: crest/name group, red rule, complete slogan. */
  .smart-hero .mh-identity{display:grid;grid-template-columns:minmax(0,1.55fr) 1px minmax(0,1fr);align-items:center;gap:clamp(6px,1.8vw,8px);width:100%;min-width:0;max-width:100%;justify-self:center;align-self:center;margin:0}
  .smart-hero .mh-crest{width:100%;max-width:48px}
  .smart-hero .mh-official-name{display:grid;grid-template-columns:clamp(40px,11.8vw,48px) minmax(0,1fr);align-items:center;gap:clamp(5px,1.6vw,7px);min-width:0}
  .smart-hero .mh-name{min-width:0;padding-left:clamp(6px,1.6vw,8px)}
  .smart-hero .mh-eyebrow{font-size:clamp(8px,2.25vw,9.5px);letter-spacing:.01em;line-height:1.25;margin-bottom:2px}
  .smart-hero h1{font-size:clamp(17px,5vw,20px);line-height:1.04;letter-spacing:-.025em}
  .smart-hero .mh-state{font-size:clamp(8px,2.1vw,8.5px);letter-spacing:.13em;margin-top:3px;line-height:1.25}
  .smart-hero .mh-red-divider{height:clamp(42px,12vw,50px);width:1px;margin:0;border-radius:2px;align-self:center}
  .smart-hero .mh-slogan{min-width:0;width:100%;max-width:100%;font-size:clamp(11px,3vw,12px);line-height:1.23;margin:0;text-wrap:pretty}
  .smart-hero .mh-slogan br{display:none}
  .smart-hero .mh-scene{width:clamp(165px,47vw,195px);margin:0;align-self:center;justify-self:center}
  .smart-hero .mh-ring{width:62%;left:19%;top:-12%;filter:none;opacity:.8}
  .smart-hero .mh-ring circle{stroke-width:1.2}.smart-hero .mh-ring .mh-orbit-outer circle:first-child{stroke-width:12}
  .smart-hero .mh-ring .mh-orbit-inner circle:first-child{stroke-width:6;stroke-dasharray:1 14}
  .smart-hero .mh-building img{filter:drop-shadow(0 0 2px #00dfff80)}
  .smart-hero .mh-platform{bottom:-10%;height:25%;opacity:.7}
  .smart-hero .mh-network{top:94px;height:148px;left:-45%;width:145%;opacity:.45;filter:none}
  .smart-hero .mh-network>g:first-child path:nth-child(even),.smart-hero .mh-network>g:nth-child(2) path:nth-child(even),.smart-hero .mh-network .mh-node:nth-child(even){display:none}
  .smart-hero .mh-data-flow{animation-duration:16s}
  .smart-hero .mh-service{width:26px;filter:drop-shadow(0 0 1px #00dfff);animation-name:mh-float-compact}
  .smart-hero .mh-service-citizenship{left:17%;top:45%}.smart-hero .mh-service-development{left:77%;top:45%}
  .smart-hero .mh-service-health{left:12%;top:77%}
  .smart-hero .mh-service-environment,.smart-hero .mh-service-connectivity,.smart-hero .mh-service-education,.smart-hero .mh-service-management{display:none}
  .smart-hero .mh-building-particles i:nth-child(n+4){display:none}
  .smart-hero .mh-waves{height:8%;opacity:.65}.smart-hero .mh-wave-glow path,.smart-hero .mh-wave-red{stroke-width:1}
  .smart-hero .mh-wave-flow{stroke-width:1.4;animation-duration:24s}
}
@keyframes mh-float-compact{0%,100%{transform:translateY(0);opacity:.8}50%{transform:translateY(-2px);opacity:1}}
@media(max-width:359px){.smart-hero .mh-layout{width:calc(100% - 16px)}.smart-hero .mh-identity{grid-template-columns:minmax(0,1.3fr) 1px minmax(0,1fr);gap:6px}.smart-hero .mh-official-name{grid-template-columns:40px minmax(0,1fr);gap:5px}.smart-hero .mh-name{padding-left:6px}.smart-hero h1{font-size:17px}.smart-hero .mh-eyebrow{font-size:8px}.smart-hero .mh-slogan{font-size:11px;line-height:1.22}}
/* Paused when outside the viewport or when the document is hidden. */
.smart-hero.mh-paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.smart-hero *{animation:none!important;transition:none!important}.smart-hero .mh-video{display:none}}
/* WebKit balances the italic slogan differently; keep the complete three-line band. */
@media(max-width:767px){.smart-hero .mh-slogan{text-wrap:wrap}}
