/* Shared navigation for the public site. All destinations and commerce logic stay unchanged. */
body.site-sidebar{--sidebar-width:284px}
body.site-sidebar .header{box-sizing:border-box;position:relative;top:auto;min-height:72px;height:auto;width:calc(100% - var(--sidebar-width));margin-left:var(--sidebar-width);padding:12px 28px;display:flex;justify-content:flex-end;gap:20px;background:#102a31;z-index:50}
body.site-sidebar .header>.brand{position:fixed;left:0;top:0;width:var(--sidebar-width);height:116px;padding:24px 22px;box-sizing:border-box;display:flex;gap:12px;background:#102a31;z-index:52}
body.site-sidebar .header .drone-logo{width:64px;height:64px;flex:0 0 64px;object-fit:contain}
body.site-sidebar .sidebar-wordmark{display:flex;flex-direction:column;color:#f5f9f9;font-size:19px;line-height:1.35;letter-spacing:1.5px;white-space:nowrap}
body.site-sidebar .sidebar-wordmark strong{font-weight:800;letter-spacing:.7px}
body.site-sidebar .sidebar-wordmark>span{font-weight:400;letter-spacing:3px}
body.site-sidebar .header:has(#main-nav) #main-nav{position:fixed;inset:116px auto 0 0;box-sizing:border-box;width:var(--sidebar-width);max-width:none;margin:0;padding:10px 20px 28px;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:10px;background:#102a31;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;border-right:1px solid #35515a;z-index:51}
body.site-sidebar .header:has(#main-nav) #main-nav>a{box-sizing:border-box;flex:none;display:flex;align-items:center;justify-content:flex-start;gap:14px;min-height:52px;width:100%;margin:0;padding:12px 15px;border:1px solid #526d74;border-radius:5px;background:#163239;color:#f1f7f6;font-size:16px;font-weight:500;line-height:1.3;white-space:normal;text-decoration:none;transform-origin:center;transition:transform .16s ease,background-color .16s ease,color .16s ease;position:relative}
body.site-sidebar .header:has(#main-nav) #main-nav>a svg{width:23px;height:23px;flex:0 0 23px;fill:none;fill-opacity:0}
body.site-sidebar .header:has(#main-nav) #main-nav>a[aria-current="page"]{border-color:#adc975;border-left:5px solid #d3f45b;background:#243e35}
body.site-sidebar .header:has(#main-nav) #main-nav>a:focus-visible{outline:3px solid #f7ffff;outline-offset:3px;background:#d3f45b;color:#11292f;z-index:2}
@media(hover:hover){body.site-sidebar .header:has(#main-nav) #main-nav>a:hover{background:#d3f45b;color:#11292f;border-color:#d3f45b;transform:scale(1.06);z-index:2}}
body.site-sidebar .header:has(#main-nav) .menu-toggle{display:none}
body.site-sidebar .header .nav-contact{display:inline-flex;margin:0;padding:9px 13px;border:1px solid #d3f45b;border-radius:5px;font-size:14px;white-space:nowrap}
body.site-sidebar .header .currency-header-tools{margin-left:0;flex-basis:auto;order:initial}
body.site-sidebar main,body.site-sidebar>footer,body.site-sidebar>.payment-logo-strip{margin-left:var(--sidebar-width)}
body.home-sidebar .home-visual-hero{margin:0;height:clamp(300px,39vw,560px)}
body.home-sidebar .home-visual-hero-inner{height:clamp(300px,39vw,560px);min-height:0}
body.home-sidebar .coast-preview .coast-poster,body.home-sidebar .coast-preview .coast-video{inset:0;width:100%;height:100%;object-fit:cover}
body.home-sidebar .coast-preview .home-visual-hero-inner::before{background:none}
body.home-sidebar .hero-inner{padding:45px 30px;gap:20px}
body.home-sidebar .hero h1{font-size:clamp(36px,4.5vw,68px)}
body.home-sidebar .whatsapp-entry{margin-top:0}
@media(max-width:900px){
body.site-sidebar{--sidebar-width:0px}
body.site-sidebar .header{margin-left:0;padding:14px 18px;gap:12px;flex-wrap:wrap;justify-content:space-between}
body.site-sidebar .header>.brand{position:static;width:auto;height:auto;padding:0;gap:8px;background:none;order:0}
body.site-sidebar .header .drone-logo{width:48px;height:48px;flex-basis:48px}
body.site-sidebar .sidebar-wordmark{font-size:15px}
body.site-sidebar .header:has(#main-nav) .menu-toggle{display:block;order:1;margin-left:auto;min-height:44px;padding:9px 12px}
body.site-sidebar .header .nav-contact{order:2;font-size:13px}
body.site-sidebar .header .currency-header-tools{order:3;margin-left:auto;flex-basis:auto}
body.site-sidebar .header:has(#main-nav) #main-nav{display:none;position:static;order:4;width:100%;max-height:min(65vh,650px);padding:12px 8px 24px;border:0;background:#102a31;gap:10px}
body.site-sidebar .header:has(#main-nav) #main-nav.is-open{display:flex}
body.site-sidebar .header:has(#main-nav) #main-nav>a{font-size:16px;min-height:48px}
body.home-sidebar .home-visual-hero,body.home-sidebar .home-visual-hero-inner{height:300px}
body.home-sidebar .hero-inner{padding:30px 22px}
body.home-sidebar .hero h1{font-size:40px}
}
@media(prefers-reduced-motion:reduce){body.site-sidebar .header:has(#main-nav) #main-nav>a{transition:none;transform:none!important}}

body.site-sidebar main{width:calc(100% - var(--sidebar-width));max-width:none}
body.home-sidebar .hero-inner{width:100%;max-width:100%;box-sizing:border-box}
body.home-sidebar .whatsapp-entry{width:100%;max-width:100%;box-sizing:border-box;margin-left:0;margin-right:0}
body.site-sidebar>footer,body.site-sidebar>.payment-logo-strip{width:calc(100% - var(--sidebar-width));max-width:none;box-sizing:border-box}
body.site-sidebar .header{color:#f5f9f9}body.site-sidebar .header>.brand{text-decoration:none}body.site-sidebar .menu-toggle{font:inherit;color:#f5f9f9;background:transparent;border:1px solid #759098;border-radius:4px}body.site-sidebar .header .nav-contact{color:#f5f9f9;text-decoration:none}body.site-sidebar .header #main-nav>a[href="software.html"]{display:none!important}body.site-sidebar .sidebar-local-nav{display:flex;flex-wrap:wrap;gap:20px;margin-left:var(--sidebar-width);padding:16px 24px;background:#102a31;color:#f5f9f9}body.site-sidebar .sidebar-local-nav a{color:inherit}body.site-sidebar .software-page+.lab-software-notice{margin-left:calc(var(--sidebar-width) + 24px);margin-right:24px}body.site-sidebar .header .home-nav-emoji{width:23px;flex:0 0 23px}body.site-sidebar .header #main-nav>a:focus-visible{outline:3px solid white;outline-offset:3px}
/* A backdrop filter on the legacy header otherwise traps fixed sidebar children. */
body.site-sidebar .header{backdrop-filter:none;-webkit-backdrop-filter:none;transform:none;filter:none;contain:none;overflow:visible}
/* Ocultar Soluciones Top, LAB y Contacto en todos los menús, en escritorio y móvil. */
body.site-sidebar .header #main-nav>a:is([href$="soluciones-topograficas.html"],[href$="lab.html"],[href$="contacto.html"]){display:none!important}

/* Una sola zona inferior con el mismo azul de los medios de pago. */
body.site-sidebar{--footer-blue:#001827}
body.site-sidebar>footer,
body.site-sidebar>.public-pwa-tools,
body.site-sidebar>.payment-logo-strip{
  background:var(--footer-blue);
  border:0;
  box-shadow:none;
  margin-top:0;
  margin-bottom:0;
}
body.site-sidebar>footer{
  min-height:190px;
  padding:48px clamp(24px,5vw,68px) 24px;
  gap:24px;
  color:#eaf0ed;
}
body.site-sidebar>footer :is(p,a,button){color:#c8d6d7}
body.site-sidebar>.payment-logo-strip{min-height:140px;padding:32px 24px 64px}
@media(max-width:700px){
  body.site-sidebar>footer{min-height:190px;padding:36px 24px 20px;gap:20px}
  body.site-sidebar>.payment-logo-strip{min-height:130px;padding:28px 16px 56px}
}

/* Pie común: medios de pago arriba y navegación en cuatro columnas. */
body.site-sidebar>footer.site-footer{
  display:block;
  padding:48px clamp(24px,5vw,68px) 52px;
  color:#eaf0ed;
}
.site-footer-payments{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:clamp(32px,6vw,88px);
  padding-bottom:40px;
  margin-bottom:36px;
  border-bottom:1px solid #284451;
}
.site-footer-payments img{display:block;height:auto;object-fit:contain;flex:none;border:0;border-radius:0}
.site-footer-payments .site-footer-paypal{width:132px}
.site-footer-payments .site-footer-visa{width:78px}
.site-footer-payments .site-footer-mastercard{width:51px}
.site-footer-grid{display:grid;grid-template-columns:1.35fr .95fr 1.3fr 1fr;gap:36px}
.site-footer-column{min-width:0;margin:0;padding:0;border:0}
body.site-sidebar>footer.site-footer h2{color:#f5f9f9;font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;letter-spacing:0;margin:0 0 22px}
.site-footer-column ul{list-style:none;display:grid;gap:12px;margin:0;padding:0}
.site-footer-column li{margin:0;padding:0;font-size:15px;line-height:1.65}
body.site-sidebar>footer.site-footer a,
body.site-sidebar>footer.site-footer .topo-ads-settings{color:#eaf0ed;font-size:15px;font-weight:400;line-height:1.65;text-decoration:none;overflow-wrap:anywhere}
.site-footer-column a{display:inline-block;max-width:100%}
body.site-sidebar>footer.site-footer a:hover,
body.site-sidebar>footer.site-footer .topo-ads-settings:hover{color:#d3f45b;text-decoration:underline;text-underline-offset:4px}
body.site-sidebar>footer.site-footer .topo-ads-settings{display:block;text-align:left;background:transparent;border:0;padding:0;margin:12px 0 0;cursor:pointer;font-family:inherit}
.site-footer a:focus-visible,.site-footer button:focus-visible{outline:3px solid #d3f45b;outline-offset:4px}
@media(max-width:1200px){.site-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 44px}}
@media(max-width:600px){
  body.site-sidebar>footer.site-footer{padding:36px 24px 40px}
  .site-footer-grid{grid-template-columns:1fr;gap:30px}
  .site-footer-payments{gap:30px;padding-bottom:30px;margin-bottom:30px}
  .site-footer-payments .site-footer-paypal{width:112px}
  .site-footer-payments .site-footer-visa{width:66px}
  .site-footer-payments .site-footer-mastercard{width:46px}
  body.site-sidebar>footer.site-footer h2{margin-bottom:16px}
  body.site-sidebar>footer.site-footer a,body.site-sidebar>footer.site-footer .topo-ads-settings{font-size:16px}
}
