*{box-sizing:border-box}body{margin:0;font:16px/1.55 system-ui,sans-serif;color:#242424;background:#fafafa}header,footer{padding:1rem clamp(1rem,4vw,3rem);background:#242424;color:#fff}header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-bottom:4px solid var(--accent)}header a,footer a{color:white}nav{display:flex;gap:1rem;flex-wrap:wrap}nav a[aria-current]{text-decoration:underline;text-underline-offset:5px}.brand{font-size:1.6rem;font-weight:750;text-decoration:none}.brand span{color:#ffd43b}main{max-width:1400px;margin:auto;padding:clamp(1rem,3vw,2rem)}h1 span,.wordmark span{color:var(--accent)}.hero{padding:2rem 0 3rem;max-width:850px}.wordmark{font-size:clamp(4rem,12vw,8rem);line-height:1;margin:.3em 0}.eyebrow{letter-spacing:.1em;font-size:.85rem}.action,button{display:inline-block;background:var(--accent);color:white;padding:.65rem 1rem;border:0;border-radius:.35rem;text-decoration:none;cursor:pointer}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem}.product{display:block;background:white;border:1px solid #ddd;border-top:5px solid var(--product);padding:1.2rem;color:inherit;text-decoration:none;border-radius:.4rem}.product h2{color:var(--product)}.viewer{display:grid;grid-template-columns:minmax(240px,300px) 1fr;gap:1rem}.viewer aside{background:white;padding:1rem;border:1px solid #ddd;border-radius:.4rem}#map{height:65vh;min-height:350px;background:#e7e7e7}.layer{padding:.6rem 0;border-bottom:1px solid #ddd}.layer input[type=range]{width:100%}select{width:100%;min-height:44px}summary{cursor:pointer;font-weight:bold}button,input,label{min-height:32px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #007c91;outline-offset:3px}.notice{color:#555}dt{font-weight:bold}dd{margin:0 0 .5rem}footer{margin-top:2rem}@media(max-width:700px){.viewer{display:flex;flex-direction:column}#map{order:-1;height:55dvh;min-height:280px}nav{gap:.7rem;font-size:.9rem}main{padding:1rem}.hero{padding:1rem 0}}

/* Identidad y navegación compartida */
.product h2{color:inherit}.product h2 .sm{color:var(--product)}footer .sm{color:#FFD43B}nav ul{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;padding:0;margin:0}nav li{display:flex;align-items:center;gap:.4rem}nav li::before{content:"";width:.6rem;height:.6rem;border-radius:50%;background:var(--nav-color);flex:none}nav .sm{color:var(--nav-color)}nav a{text-decoration:none}nav a:hover{text-decoration:underline} .viewer>*{min-width:0}.feature-popup h2{font-size:1.05rem;line-height:1.3}.feature-popup dl{margin:0}.feature-popup dd{overflow-wrap:anywhere}.feature-popup{max-height: min(240px,40vh);overflow:auto}.leaflet-popup-close-button{min-height:24px} @media(max-width:700px){nav ul{gap:.3rem .8rem}nav a{display:inline-block;line-height:36px;min-height:36px}nav a .sm{display:inline}#map{width:100%}}

/* Marco persistente: solo el contenido central se desplaza. */
body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}#site-header,#site-footer{flex:none;z-index:1001}body>main{flex:1 1 auto;min-height:0;overflow:auto;width:100%;margin:0 auto}footer{margin:0;padding:.55rem clamp(1rem,4vw,3rem)}nav li::before{display:none}nav a{border:1px solid var(--nav-color);border-radius:.45rem;padding:.25rem .6rem;background:#242424;line-height:1.5}nav a[aria-current]{background:#414141;text-decoration:none;box-shadow:inset 0 -2px var(--nav-color)}.layer-heading{display:flex;align-items:center;gap:.4rem}.layer-heading label{flex:1;display:flex;align-items:center}.layer-heading button{padding:.2rem .55rem;background:#eee;color:#242424;min-width:36px}.layer-heading button:disabled{opacity:.35;cursor:default}.layer-heading input{flex:none}#map{isolation:isolate}@media(max-width:700px){header{padding:.45rem 1rem;gap:.35rem}nav ul{gap:.3rem}nav a{min-height:32px;line-height:1.5}footer{font-size:.75rem} .brand{font-size:1.3rem}}

/* 0.1.4: badges como enlaces de navegación. */
nav li{gap:0}nav a.section-badge{display:inline-block;background:var(--nav-color);color:#fff;font-weight:600;font-size:.8rem;padding:.25rem .55rem;border:0;border-radius:.35rem;white-space:nowrap;text-decoration:none;line-height:1.5}nav a.section-badge:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* 0.1.5: navegación estable y botones de producto. */
nav a.section-badge,nav a.section-badge:hover,nav a.section-badge:active,nav a.section-badge:visited,nav a.section-badge[aria-current]{background:var(--nav-color);color:#fff;text-decoration:none;box-shadow:none;transform:none}header a.brand:hover,header a.brand:active{color:#fff;text-decoration:none}.product{display:flex;flex-direction:column;align-items:flex-start}.product-action{display:inline-block;margin-top:auto;padding:.55rem .85rem;background:var(--product);color:#fff;border-radius:.35rem;text-decoration:none;font-weight:600}.product-action:hover,.product-action:active,.product-action:visited{color:#fff;text-decoration:none}.project-copy{max-width:760px}.hero h1{font-size:clamp(1.8rem,4vw,2.8rem)}


/* 0.1.5 fix 1: portada, enlaces de fichas, footer y accesibilidad. */
.hero{max-width:none;width:100%}
.hero h1{max-width:none;font-size:clamp(1.65rem,2.2vw,2.35rem);line-height:1.2;overflow-wrap:normal}
.product{min-width:0;align-items:stretch}
.product p{flex:1}
/* Mayor especificidad que las reglas genéricas de Bootstrap y del sitio. */
.products .product a.product-action,
.products .product a.product-action:link,
.products .product a.product-action:visited,
.products .product a.product-action:hover,
.products .product a.product-action:active{
  display:inline-block;align-self:flex-start;margin-top:1rem;
  background:var(--product);color:#fff;text-decoration:none;
  border-radius:.4rem;padding:.55rem .9rem;font-weight:600;
}
footer .project-badge,
footer .project-badge:link,
footer .project-badge:visited,
footer .project-badge:hover,
footer .project-badge:active{
  display:inline-block;background:#A64B00;color:#fff;
  text-decoration:none;border-radius:.35rem;padding:.2rem .65rem;
  font-weight:650;white-space:nowrap;
}
footer .footer-divider{color:#ddd;margin-inline:.25rem}
footer .project-badge:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:750px){
  .hero h1{font-size:clamp(1.45rem,5vw,2rem);line-height:1.23}
}


/* 0.3.1 — identidad editorial-tecnológica */

:root{--geo-font:Montserrat,system-ui,-apple-system,"Segoe UI",sans-serif;--badge-size:.78rem;--badge-padding:.48rem .7rem;--badge-radius:.35rem}
body{font-family:var(--geo-font);font-size:15px;line-height:1.65;background:#f7f7f5;color:#242424}
button,input,select,textarea,.leaflet-container{font-family:var(--geo-font)}
header,footer{background:#202124;padding:.55rem clamp(.8rem,3vw,2.5rem)}
header{gap:.75rem;border-bottom-width:3px;flex-wrap:nowrap;position:relative}
.brand{font-size:1.55rem;font-weight:800;line-height:1.25;white-space:nowrap}
nav ul{gap:.45rem;flex-wrap:nowrap}
nav a.section-badge,footer a.project-badge,footer a.project-badge:link,footer a.project-badge:visited,footer a.project-badge:hover,footer a.project-badge:active{font-family:var(--geo-font);font-size:var(--badge-size);font-weight:600;padding:var(--badge-padding);border-radius:var(--badge-radius);line-height:1.4;min-height:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
footer{display:flex;align-items:center;justify-content:space-between;gap:.35rem .75rem;flex-wrap:wrap;font-size:.78rem;line-height:1.4}
.footer-info{min-width:0;overflow-wrap:anywhere}
.menu-toggle{display:none;background:transparent;color:#fff;border:1px solid #777;border-radius:.35rem;padding:.45rem;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.menu-toggle:focus-visible,.brand:focus-visible{outline:2px solid white;outline-offset:3px}
h1{font-weight:700;line-height:1.22;letter-spacing:-.025em}h2,h3{font-weight:600;line-height:1.3}h1 span{color:var(--accent)}
.hero{padding:clamp(1rem,3vw,2.5rem) 0 1.7rem}
.hero h1{font-size:clamp(1.55rem,3vw,2.65rem);max-width:1050px;line-height:1.22;margin:0 0 .8rem}
.hero p{max-width:850px;color:#505050;font-size:clamp(.95rem,1.4vw,1.1rem);margin:0}
.products{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.product{border:1px solid #dedede;border-radius:.5rem;padding:1.15rem;box-shadow:0 2px 8px #00000008;gap:.35rem}
.product h2{font-size:clamp(1rem,1.5vw,1.35rem);font-weight:600;margin:0 0 .35rem;overflow-wrap:anywhere}
.product p{color:#505050;font-size:.9rem;margin:0}
.products .product a.product-action{font-size:.8rem;line-height:1.4;padding:.55rem .75rem;max-width:100%;white-space:normal}
.news{margin-top:2rem}.news h2{font-size:1.45rem;margin-bottom:.65rem}.news-item{display:grid;grid-template-columns:8rem minmax(0,1fr);gap:.75rem;padding:.9rem 0;border-top:1px solid #d9d9d9}.news-item time{font-size:.78rem;color:#555;font-weight:500}.news-item h3{font-size:1rem;margin:0 0 .2rem}.news-item p{font-size:.9rem;color:#505050;margin:0}.news-item a{color:#242424;text-underline-offset:3px}
.viewer aside{border-color:#dedede;border-radius:.5rem}.viewer summary{font-weight:600}.feature-popup{font-size:.82rem}
@media(max-width:1050px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){
 header{padding:.35rem .8rem;gap:.4rem}.brand{font-size:1.45rem}.menu-toggle{display:inline-flex}
 header nav{display:none;position:absolute;top:100%;left:0;right:0;background:#202124;padding:.65rem .8rem .85rem;border-bottom:3px solid var(--accent);box-shadow:0 5px 12px #0003;max-height:calc(100dvh - 7rem);overflow:auto}
 header.menu-open nav{display:block}nav ul{flex-direction:column;align-items:stretch;gap:.45rem}nav li{display:block}nav a.section-badge{display:flex;min-height:44px;justify-content:flex-start;padding:.55rem .8rem}
 footer{padding:.4rem .8rem;font-size:.7rem}.footer-info{flex:1 1 9rem}main{padding:1rem}.hero{padding:.6rem 0 1.25rem}.news-item{grid-template-columns:1fr;gap:.25rem}.news{margin-top:1.5rem}
}
@media(max-width:520px){.products{grid-template-columns:1fr}.product{padding:1rem}.product h2{font-size:1.25rem}}

/* Lab: arquitectura y recursos */
.lab-architecture{margin-top:clamp(1.5rem,3vw,2.5rem)}
.lab-architecture>h2{font-size:1.45rem;margin:0 0 1rem}
.lab-resources{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:1rem}
.lab-resource{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dedede;border-radius:.5rem;padding:1.15rem;box-shadow:0 2px 8px #00000008}
.lab-resource h3{font-size:1.15rem;color:#242424;margin:0 0 .6rem}
.lab-resource p{font-size:.9rem;color:#505050;margin:0 0 1rem;flex:1}
.lab-resource a{align-self:flex-start;color:#242424;font-size:.85rem;font-weight:600;text-underline-offset:3px}
.lab-resource a:hover{color:#505050}
