body.overlay-menu .site-fixed-spacer.no-topbar{display:none!important}
body.overlay-menu .site-fixed-header{position:fixed!important;inset:0 0 auto;z-index:1000;background:transparent!important;box-shadow:none!important}
body.overlay-menu .site-fixed-header .main-header{background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important;transition:background .25s}
body.overlay-menu .main-header .desktop-nav>a,body.overlay-menu .main-header .desktop-nav>.group>a{color:#fff!important;text-shadow:0 1px 4px #09182788}
body.overlay-menu .site-fixed-header .brand-logo{filter:brightness(0) invert(1)}
body.overlay-menu .desktop-cta .discovery-account,body.overlay-menu .desktop-cta .discovery-call{display:inline-flex;gap:.5rem;align-items:center;color:white!important}
body.overlay-menu .desktop-cta .discovery-call{padding:12px 20px;border-radius:30px;background:#e88425;font-weight:700}
body.page-index #main-content{padding-top:0!important;margin-top:0!important}
.discovery{position:relative;isolation:isolate;height:clamp(570px,80svh,850px);background:#16382e;overflow:hidden;color:white}
.discovery-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s;pointer-events:none}
.discovery-slide.active{opacity:1;visibility:visible;pointer-events:auto}
.discovery-slide picture,.discovery-slide picture img,.discovery-slide:after{position:absolute;inset:0;width:100%;height:100%}
.discovery-project-link{position:absolute;inset:0;display:block;background:#173547;color:#fff!important}
.discovery-project-link:focus-visible{outline:3px solid white;outline-offset:-5px}
.discovery-slide picture img{object-fit:cover;object-position:center;transform:scale(1.035);transition:transform 7s ease-out}
.discovery-slide.active picture img{transform:scale(1)}
.discovery-project-link:after{position:absolute;inset:0;content:"";background:linear-gradient(180deg,#08152399 0%,#0a20264a 32%,#08152166 63%,#07151cd4 100%);pointer-events:none}
.discovery-copy{position:absolute;z-index:1;top:46%;left:50%;transform:translate(-50%,-50%);width:min(76%,960px);text-align:center;text-shadow:0 2px 12px #0006}
.discovery-copy small,.discovery-results small{font-weight:700;letter-spacing:.2em;text-transform:uppercase;font-size:.73rem}
body.overlay-menu .discovery-copy :is(h1,h2){color:white!important;font-size:clamp(2.1rem,3.9vw,4.4rem);font-weight:900;line-height:1.02;text-transform:uppercase;margin:.55rem 0 .7rem;text-wrap:balance}
body.overlay-menu .discovery-copy p,.discovery-copy a{color:white!important;font-size:clamp(1rem,1.4vw,1.4rem)}
.discovery-copy a{text-decoration:underline}.discovery-arrow{position:absolute;top:46%;transform:translateY(-50%);z-index:2;background:#fff;color:#075092;border:1px solid #fff;border-radius:50%;width:50px;height:50px;font:normal 38px/1 Arial;cursor:pointer;display:grid;place-items:center}
.discovery-arrow:hover{background:#eaf4ff;color:#064579}.discovery-arrow.prev{left:4%}.discovery-arrow.next{right:4%}
.discovery-search{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);width:min(84%,1440px);z-index:3;color:#12314c}
.discovery-tabs,.discovery-fields{background:white;padding:10px;display:flex;gap:6px}
.discovery-tabs{width:max-content;border-radius:16px 16px 0 0;padding-bottom:6px}.discovery-tabs label{cursor:pointer;position:relative}.discovery-tabs input{position:absolute;opacity:0}.discovery-tabs span{display:block;padding:8px 16px;border-radius:99px;font-weight:700}.discovery-tabs input:checked+span{color:white;background:#163968}.discovery-tabs input:focus-visible+span{outline:3px solid #5ab6ff}
.discovery-fields{border-radius:0 16px 16px 16px;box-shadow:0 12px 32px #00142435;display:grid;grid-template-columns:minmax(180px,2.4fr) repeat(2,minmax(120px,1fr)) auto;gap:12px;padding:16px;align-items:center}
.discovery-fields :is(input,select){box-sizing:border-box;min-width:0;width:100%;height:52px;padding:0 13px;background:white;border:1px solid #cbd5df;border-radius:10px;color:#173653;font:inherit}
.discovery-fields button{background:#dd3039;border:0;border-radius:99px;padding:12px 23px;color:white;text-transform:uppercase;font-weight:800;cursor:pointer}
.discovery-results{padding-block:42px;scroll-margin-top:90px}.discovery-results h2{font-weight:800;font-size:1.6rem}.discovery-results>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:16px}.discovery-results a{display:grid;padding:20px;border:1px solid #d8e4ed;border-radius:12px;background:white;color:#075092}
@media(max-width:760px){.discovery{height:clamp(565px,84svh,750px)}.discovery-copy{top:36%;width:74%}.discovery-arrow{top:36%;width:34px;height:34px;font-size:26px}.discovery-arrow.prev{left:2%}.discovery-arrow.next{right:2%}.discovery-search{width:calc(100% - 32px);bottom:20px}.discovery-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:8px}.discovery-fields input,.discovery-fields button{grid-column:1/-1}.discovery-fields :is(input,select){height:44px;font-size:14px}.discovery-tabs span{font-size:14px}.discovery-copy p{line-height:1.35}}
@media(prefers-reduced-motion:reduce){.discovery-slide,.discovery-slide picture img{transition:none;transform:none}}

body.page-index #proyectos-destacados .home-projects-heading h2,
body.page-index #familias h2.client-proof-title{font-size:clamp(1.45rem,5vw,2.1rem)!important}
@media(min-width:1024px){
  body.overlay-menu .desktop-nav > a::after,body.overlay-menu .desktop-nav .group > a::after{background:#fff!important}
  .discovery{height:100vh;height:100dvh}
  body.page-index #proyectos-destacados .home-projects-heading h2,
  body.page-index #familias h2.client-proof-title{font-size:clamp(1.75rem,2.6vw,2.35rem)!important}
}


body.overlay-menu.discovery-scrolled .site-fixed-header .main-header{background:#033662!important}
body.overlay-menu .module-hero,body.page-contacto .office-map-hero{position:relative;isolation:isolate;display:grid;place-items:center;min-height:clamp(410px,78svh,850px);padding:90px 18px 55px;box-sizing:border-box;overflow:hidden;background:#243d41!important}
.module-hero>.module-hero-image,.office-map-hero>.office-map{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.module-hero::after,.office-map-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#09162294,#09162254 43%,#09162280);pointer-events:none}
.module-hero>.module-hero-copy,.office-map-hero>.site-shell{position:relative;z-index:1;text-align:center;color:white;text-shadow:0 2px 12px #0007;width:min(100%,980px)}
.module-hero-copy small{font-size:.8rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
body.overlay-menu .module-hero-copy h1,body.page-contacto .office-map-hero h1{color:#fff!important;font-size:clamp(2.05rem,4vw,4.5rem)!important;font-weight:900!important;text-transform:uppercase;line-height:1.04!important;text-wrap:balance;margin:.6rem 0 1rem!important}
body.overlay-menu .module-hero-copy p,body.page-contacto .office-map-hero p{color:#fff!important;font-size:clamp(1rem,1.5vw,1.45rem);line-height:1.4;margin:0;text-wrap:balance}
.office-map-hero>.site-shell{pointer-events:none}
.office-map iframe{border:0;width:100%;height:100%;display:block}
.office-map iframe[hidden]{display:none}
.office-map .cookie-placeholder{position:absolute;bottom:12px;left:5%;width:90%;z-index:3}
@media(max-width:767px){body.overlay-menu .module-hero,body.page-contacto .office-map-hero{min-height:clamp(390px,68svh,610px);padding-top:72px}}

body.page-proyectos .discovery-project-link:after{background:linear-gradient(180deg,#0006,#0003 45%,#0006)}
.contact-map-card .map-frame iframe{width:100%;height:350px;border:0}
/* Cabecera del catálogo: más compacta que el carrusel de Inicio. */
body.page-proyectos .discovery{height:clamp(410px,78svh,850px)}
body.page-proyectos .discovery .discovery-copy :is(small,h1,h2,p){color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 2px 9px #0009}
@media(max-width:767px){body.page-proyectos .discovery{height:clamp(390px,68svh,610px)}body.page-proyectos .discovery-copy,body.page-proyectos .discovery-arrow{top:54%}}

@media(min-width:1110px){
  body.page-detalle-proyecto .detail-lp-hero{overflow:visible!important}
  body.page-detalle-proyecto .detail-lp-info{position:relative;grid-template-rows:auto auto auto!important;align-content:start!important;min-height:0!important;row-gap:16px!important;padding-block:24px 40px!important}
  body.page-detalle-proyecto .detail-lp-info>.detail-lead-origin{display:none}
  body.page-detalle-proyecto .detail-lp-info>.detail-lead-card:not(.is-page-sticky){position:absolute!important;inset:0 0 auto auto!important;margin:0!important}
}
body.page-nosotros .module-hero .module-hero-copy h1 {
    font-size: clamp(1.8rem, 3vw, 3rem) !important;
}
body.page-nosotros.site-white-page :is(.about-story-heading, .about-section-heading, .about-contact-copy) h2 {
    font-size: clamp(1.3rem, 2vw, 2rem) !important;
    text-transform: uppercase;
}
body.page-nosotros.site-white-page .about-value h3 {
    font-size: 1rem !important;
    text-transform: uppercase;
}
.about-story-text summary { cursor: pointer; font-weight: 600; margin-top: .7rem; }
.about-stats [data-count] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .about-value.is-visible { animation: about-value-rise .65s ease-out backwards; }
    .about-value:nth-child(2) { animation-delay: .1s; }
    .about-value:nth-child(3) { animation-delay: .2s; }
    .about-value:nth-child(4) { animation-delay: .3s; }
    @keyframes about-value-rise {
        from { opacity: .2; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
