/* Compact pinned navigation: two CSS centimeters. */
body>.site-header.header-compact{height:2cm;min-height:2cm;gap:30px}
header.site-header.header-compact .brand{height:calc(2cm - 18px)}
.header-compact .site-nav{gap:30px}
.header-compact .site-nav a{font-size:15px!important;padding:11px 0}
.header-compact .site-nav .nav-contact{font-size:14px!important;padding:9px 15px}
/* One color per functional group, shared by icons, headings and demo buttons. */
.carousel .card[data-index="0"],.carousel .card[data-index="1"],.carousel .card[data-index="2"],.carousel .card[data-index="3"]{--module-tone:#68debf}
.carousel .card[data-index="4"],.carousel .card[data-index="5"],.carousel .card[data-index="6"],.carousel .card[data-index="7"]{--module-tone:#789aff}
.carousel .card[data-index="8"]{--module-tone:#c69aff}
.carousel .card[data-index="9"],.carousel .card[data-index="10"],.carousel .card[data-index="11"],.carousel .card[data-index="12"]{--module-tone:#ffc270}
.carousel .card[data-index="13"],.carousel .card[data-index="14"],.carousel .card[data-index="15"]{--module-tone:#ff7a99}
/* Desktop footer: horizontal composition fits within five CSS centimeters. */
footer.site-footer{height:5cm;max-height:5cm;box-sizing:border-box;padding-top:18px;padding-bottom:14px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.site-footer .footer-top{display:grid;grid-template-columns:1.2fr 1fr auto;align-items:center;gap:25px;min-height:0}
.site-footer .footer-top>div{display:grid;grid-template-columns:155px minmax(190px,1fr);align-items:center;gap:8px 22px}
.site-footer .footer-brand{width:155px;max-width:100%;grid-column:1;grid-row:1/3}
.site-footer .footer-top>div>p{display:none}
.site-footer .footer-contact{grid-column:2;grid-row:1/3;margin:0;gap:9px}
.site-footer .footer-contact a{font-size:14px;line-height:1.4}
.site-footer .footer-top nav{gap:18px;align-items:center;justify-content:center}
.site-footer .footer-top nav a,.site-footer .footer-up{font-size:14px}
.site-footer .footer-bottom{margin:0;padding-top:8px;font-size:12.333px;gap:20px;flex-direction:row}
@media(max-width:1000px){.site-footer .footer-top{grid-template-columns:1fr auto;gap:18px}.site-footer .footer-up{display:none}.site-footer .footer-top>div{grid-template-columns:135px auto;gap:15px}.site-footer .footer-brand{width:135px}.site-footer .footer-top nav{gap:12px}}
@media(max-width:760px){body>.site-header.header-compact{gap:20px;padding-inline:16px}.header-compact .site-nav{gap:18px}.header-compact .site-nav a{font-size:14.333px!important}.header-compact .site-nav .nav-contact{font-size:13.333px!important;padding:8px 10px}header.site-header.header-compact .brand{height:calc(2cm - 28px)}footer.site-footer{padding:14px 20px 12px}.site-footer .footer-top{grid-template-columns:1fr;gap:12px}.site-footer .footer-top>div{grid-template-columns:120px 1fr;gap:14px}.site-footer .footer-brand{width:120px}.site-footer .footer-contact{gap:6px}.site-footer .footer-contact a{font-size:13.333px}.site-footer .footer-top nav{justify-content:flex-start;gap:22px}.site-footer .footer-top nav a{font-size:13.333px}.site-footer .footer-bottom{font-size:10.333px;gap:10px;align-items:flex-start}.site-footer .footer-bottom>span:last-child{text-align:right;max-width:56%}}
@media(max-width:450px){body>.site-header.header-compact{gap:10px;padding-inline:10px}header.site-header.header-compact .brand{height:40px}.header-compact .site-nav{gap:10px}.header-compact .site-nav a{font-size:12.333px!important}.header-compact .site-nav .nav-contact{font-size:11.333px!important;padding:7px}.site-footer .footer-top>div{grid-template-columns:100px 1fr;gap:10px}.site-footer .footer-brand{width:100px}.site-footer .footer-contact a{font-size:12.333px}.site-footer .footer-contact span{font-size:11.333px;margin-right:5px}.site-footer .footer-top nav{gap:20px}}
header.site-header .brand .logo-pinned{display:none}
header.site-header.header-compact .brand .logo-expanded{display:none}
header.site-header.header-compact .brand .logo-pinned{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal;transform:none}
header.site-header.header-compact .brand{width:225px;height:auto;max-height:calc(2cm - 20px);display:flex;align-items:center}
@media(max-width:760px){header.site-header.header-compact .brand{width:165px;max-height:calc(2cm - 22px)}}
@media(max-width:450px){header.site-header.header-compact .brand{width:112px;max-width:30vw}}
/* The compact header is the definitive and only header layout. */
body>.site-header.header-compact{height:2cm;min-height:2cm}
header.site-header.header-compact .brand .logo-pinned{display:block}
#home .hero-rcc-logo{display:block;width:430px;max-width:90%;height:auto;margin:0 auto 30px;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal;transform:none}
/* Previous 268px RCC presentation × 1.6 = 428.8px. Add five cm to the existing gap. */
#home .hero-split{gap:calc(65px + 5cm)}
@media(max-width:760px){#home .hero-split{gap:calc(45px + 5cm)}#home .hero-rcc-logo{width:430px;max-width:92%}}
/* Equal clear space above and below the Home animation. */
#home .hero-split{--animation-clearance:calc(65px + 5cm);margin-top:0;padding-top:var(--animation-clearance);gap:var(--animation-clearance)}
#home .hero-rcc-logo{margin-top:0}
/* Footer RCC logo: twice its previous width at each breakpoint. */
.site-footer .footer-top>div{grid-template-columns:310px minmax(190px,1fr)}
.site-footer .footer-brand{width:310px}
@media(max-width:1000px){.site-footer .footer-top>div{grid-template-columns:270px auto}.site-footer .footer-brand{width:270px}}
@media(max-width:760px){#home .hero-split{--animation-clearance:calc(45px + 5cm)}.site-footer .footer-top>div{grid-template-columns:240px 1fr}.site-footer .footer-brand{width:240px}.site-footer .footer-contact{min-width:0}.site-footer .footer-contact a{overflow-wrap:anywhere}}
@media(max-width:450px){.site-footer .footer-top>div{grid-template-columns:200px minmax(0,1fr);gap:10px}.site-footer .footer-brand{width:200px}}
/* Three cm less on each side of the animation, retaining vertical centering. */
#home .hero-split{--animation-clearance:calc(65px + 2cm)}
.hero-logo-shine{position:relative;width:430px;max-width:90%;margin:0 auto 30px;isolation:isolate}
#home .hero-logo-shine .hero-rcc-logo{display:block;width:100%;max-width:100%;margin:0;height:auto}
.logo-shimmer{position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 0%,transparent 32%,#d5fff030 43%,#ffffffa8 49%,#d5fff050 54%,transparent 66%,transparent 100%);background-size:300% 100%;background-position:150% 0;mask-image:url('../img/Logo_Blanco_Horizontal.png');-webkit-mask-image:url('../img/Logo_Blanco_Horizontal.png');mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mix-blend-mode:screen;animation:logo-light-pass 7s ease-in-out infinite;opacity:.7}
@keyframes logo-light-pass{0%,18%{background-position:150% 0;opacity:0}30%{opacity:.7}60%{opacity:.7}78%,100%{background-position:-50% 0;opacity:0}}
@media(max-width:760px){#home .hero-split{--animation-clearance:calc(45px + 2cm)}.hero-logo-shine{max-width:92%}}
@media(prefers-reduced-motion:reduce){.logo-shimmer{display:none;animation:none}}
/* Remove another two cm from both sides, keeping the radar centered. */
#home .hero-split{--animation-clearance:65px}
.hero-logo-shine{filter:drop-shadow(0 0 8px #68debf10)}
.logo-shimmer{background:linear-gradient(105deg,transparent 0 30%,#789aff16 36%,#68debf80 43%,#eafff5ee 49%,#b5d5ffb3 53%,#c69aff55 58%,transparent 68%),repeating-linear-gradient(0deg,transparent 0 5px,#b9ffe522 5px 6px,transparent 6px 11px);background-size:320% 100%,100% 100%;background-position:160% 0,0 0;animation:logo-hologram-pass 6.5s cubic-bezier(.4,0,.2,1) infinite;mix-blend-mode:screen;opacity:.9}
.hero-logo-shine:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 38%,#68debf38 44%,#beffeacc 49%,#789aff55 53%,transparent 62%);background-size:340% 100%;background-position:170% 0;mask-image:url('../img/Logo_Blanco_Horizontal.png');-webkit-mask-image:url('../img/Logo_Blanco_Horizontal.png');mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mix-blend-mode:screen;animation:logo-energy-return 6.5s ease-in-out infinite;filter:drop-shadow(0 0 5px #68debf44)}
@keyframes logo-hologram-pass{0%,8%{background-position:160% 0,0 0;opacity:0}18%{opacity:.85}52%{background-position:-60% 0,0 9px;opacity:.95}63%,100%{background-position:-60% 0,0 11px;opacity:0}}
@keyframes logo-energy-return{0%,55%{background-position:-70% 0;opacity:0}65%{opacity:.55}91%{background-position:170% 0;opacity:.7}100%{background-position:170% 0;opacity:0}}
@media(max-width:760px){#home .hero-split{--animation-clearance:45px}}
@media(prefers-reduced-motion:reduce){.hero-logo-shine:after,.logo-shimmer{display:none;animation:none}.hero-logo-shine{filter:none}}
/* Use the same opening logo inset on the Product and Services pages. */
:is(#producto .product-intro, #servicios .services-section) {
  margin-block-start: 0;
  padding-block-start: calc(65px + 2cm) !important;
}
@media (max-width: 899px) {
  :is(#producto .product-intro, #servicios .services-section) {
    padding-block-start: calc(45px + 2cm) !important;
  }
}
