/* HALMI homepage: panoramic architecture and a contrasting masthead.
   Every masthead/service override is scoped to the homepage. */
.halmi-home .site-header{height:94px;background:#143c2e;color:#f4f6f2;border-bottom:1px solid #49695a;box-shadow:none}
.halmi-home .site-header.has-scrolled{background:#143c2e;box-shadow:0 8px 24px #0c231822}
.halmi-home .site-header .wordmark{font-size:43px;letter-spacing:-.065em}
.halmi-home .site-header .wordmark>span{color:#b9e3cb}
.halmi-home .brand-caption{color:#c5d6cb;letter-spacing:.11em}
.halmi-home .desktop-nav{font-size:16px;font-weight:500;gap:2px}
.halmi-home .desktop-nav a{padding:14px 12px;border-radius:30px}
.halmi-home .desktop-nav a:is(:hover,:focus-visible),.halmi-home .desktop-nav a[aria-current=location]{color:#143c2e;transform:none}
.halmi-home .desktop-nav a:is(:hover,:focus-visible):before,.halmi-home .desktop-nav a[aria-current=location]:before{background:#e5efe4;opacity:1;transform:none}
.halmi-home .header-cta{background:#e5efe4;color:#143c2e;border-color:#e5efe4;border-radius:30px;box-shadow:none;font-size:15px;padding:12px 15px 12px 23px;min-height:50px;gap:16px}
.halmi-home .header-cta:before{background:#c9e4d0}
.halmi-home .header-cta:is(:hover,:focus-visible){background:#e5efe4;color:#143c2e;box-shadow:none}
.halmi-home .header-cta .cta-arrow{border:0;border-radius:50%;background:#143c2e;color:#f4f6f2;width:28px;height:28px;font-size:20px}
.halmi-home .site-header :is(a,button):focus-visible{outline-color:#b9e3cb}
.halmi-home .menu-button{color:#f4f6f2;background:#234d3c;border-color:#789789;border-radius:50%}
.halmi-home .menu-button:hover{background:#326048}
.halmi-home .mobile-nav:not([hidden]){background:#143c2e;border-color:#49695a}
.halmi-home .mobile-nav a{border-color:#426653}
.halmi-home .mobile-nav a:is(:hover,:focus-visible),.halmi-home .mobile-nav a[aria-current=location]{background:#e5efe4;color:#143c2e}

.entrances-hero{padding:48px 0 0;overflow:hidden;background:#fafbf8;color:#1c2923}
.entrances-hero>.wrap{width:min(1376px,calc(100% - 64px))}
.entrances-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);column-gap:clamp(32px,6vw,100px);align-items:end}
.entrances-copy{grid-column:1;grid-row:1;padding:0 0 34px}
.entrances-copy .eyebrow{color:#446652;font-size:12px;line-height:1.5;letter-spacing:.12em;margin-bottom:19px}
.entrances-copy h1{font-size:clamp(52px,5.65vw,82px);line-height:1.01;letter-spacing:-.065em;font-weight:500;margin:0}
.entrances-copy h1>span{color:#175944}
.entrances-intro{grid-column:2;grid-row:1;padding-bottom:34px}
.entrances-intro p{max-width:37ch;font-size:17px;line-height:1.65;color:#526158;margin:0 0 14px}
.entrances-intro .button{min-height:44px;padding:0 0 5px;border:0;border-bottom:1px solid #8da893;border-radius:0;background:none;color:#175944;font-size:15px;gap:24px;box-shadow:none}
.entrances-intro .button:hover{box-shadow:none}

.entrance-carousel{position:relative;grid-column:1/-1;grid-row:2;min-width:0;--entrance-depth:0px}
.entrance-controls{position:absolute;top:18px;right:18px;z-index:5;display:flex;align-items:center;gap:8px;min-height:44px;padding:4px;background:#fafbf8ed;border:1px solid #ffffff80;border-radius:32px;color:#143c2e}
.entrance-controls[hidden]{display:flex!important;visibility:hidden}
.entrance-selectors[hidden]{display:grid!important;visibility:hidden}
.entrance-slide[hidden]{display:none!important}
.entrance-controls button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:inherit;border:0;border-radius:50%;font:inherit;cursor:pointer;transition:background-color .2s,color .2s,transform .25s}
.entrance-controls button:hover{background:#143c2e;color:#fff}
.entrance-controls button:active{transform:scale(.94)}
.entrance-controls .entrance-rotation{gap:8px;padding:0 10px;border-radius:28px;font-size:14px}
.entrance-rotation [data-rotation-icon]{font-size:15px;width:18px;text-align:center}
.entrance-counter{font-size:12px;letter-spacing:.06em;font-variant-numeric:tabular-nums;padding-inline:5px}
.entrance-arrows{display:flex;gap:0;font-size:21px}
.entrance-slides{position:relative;display:grid;isolation:isolate;touch-action:pan-y pinch-zoom}
.entrance-slide{grid-area:1 / 1;min-width:0;display:flex;flex-direction:column;position:relative;background:#fafbf8}
.entrance-photo{position:relative;aspect-ratio:2;margin:0;overflow:hidden;border-radius:24px;background:#dfe7de}
.entrance-photo>picture{display:block;width:100%;height:100%}
.entrance-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 50%;transform:translate3d(0,var(--entrance-depth),0) scale(1.02)}
.entrance-photo figcaption{position:absolute;left:20px;bottom:18px;max-width:calc(100% - 40px);font-size:12px;line-height:1.4;padding:6px 10px;border-radius:6px;background:#143c2edd;color:#f4f6f2}
.entrance-product-picture{background:radial-gradient(ellipse at 50% 45%,#fff 0%,#eef2ed 68%,#dce5dc 100%)}
.entrance-photo>.entrance-product-picture{padding:40px 16% 54px}
.entrance-photo>.entrance-product-picture img{object-fit:contain;filter:drop-shadow(16px 20px 14px #183d2420)}
.entrance-caption{padding:25px 8px;min-height:164px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.entrance-category{color:#41664e;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.entrance-caption h2{font-size:clamp(25px,2.65vw,38px);line-height:1.14;letter-spacing:-.04em;font-weight:500;margin:7px 0 7px}
.entrance-caption p{font-size:16px;line-height:1.55;max-width:61ch;color:#526158;margin:0}
.entrance-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;min-height:54px;flex-shrink:0;max-width:36%;padding:10px 11px 10px 23px;border-radius:32px;background:#175944;color:#f4f6f2;font-size:15px;font-weight:600;line-height:1.3;transition:background .25s,transform .25s}
.entrance-cta:hover{background:#246d50;transform:translateY(-2px)}
.entrance-caption :is(h2,p),.entrance-cta>span:first-child,.entrance-selectors [data-selector-label]{overflow-wrap:anywhere}
.entrance-cta>span:last-child{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;background:#ffffff1a;font-size:22px;transition:transform .25s}
.entrance-cta:hover>span:last-child{transform:rotate(45deg)}
.entrance-selectors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;margin:0;background:#143c2e;border-radius:20px}
.entrance-selectors button{position:relative;min-height:65px;padding:14px 22px;display:flex;align-items:center;gap:14px;text-align:left;border:0;border-radius:14px;background:transparent;color:#d8e5db;font:inherit;font-size:19px;font-weight:500;cursor:pointer;transition:color .3s,background .3s,transform .3s}
.entrance-selectors button[aria-disabled=true]{color:#143c2e;background:#e5efe4}
.entrance-selectors button:hover{color:#143c2e;background:#d1e4d5}
.entrance-selectors button:active{transform:scale(.985)}
.entrance-index{font-size:12px;letter-spacing:.04em;opacity:.8;font-variant-numeric:tabular-nums}
.entrance-carousel :is(button,a):focus-visible{outline:3px solid #175944;outline-offset:4px}
.entrance-selectors button:focus-visible{outline-color:#b9e3cb;outline-offset:0}
.entrance-slide.is-entering .entrance-caption>div{animation:entrance-caption-in .65s var(--ease) both}
@keyframes entrance-caption-in{from{transform:translateY(10px);opacity:.2}to{transform:translateY(0);opacity:1}}
.entrances-copy h1{animation:entrance-heading-in .7s var(--ease) both}
@keyframes entrance-heading-in{from{transform:translateY(12px)}to{transform:translateY(0)}}
.entrances-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 8px 30px;color:#526158;font-size:13px;line-height:1.5}
.entrances-foot a{color:#175944;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px}
.entrances-foot a:hover{text-decoration:underline}

/* Existing service links continue the same simple architectural rhythm. */
.halmi-home #soluciones{background:#fff}
.halmi-home .directions-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:18px 70px;max-width:none;margin-bottom:45px}
.halmi-home .directions-intro>.eyebrow{grid-column:1/-1;margin:0}
.halmi-home .directions-intro>h2{font-size:clamp(38px,4.4vw,62px)}
.halmi-home .directions-intro>p:not(.eyebrow){margin:0;align-self:end;font-size:17px;max-width:45ch}
.halmi-home .direction-grid{display:block;border-top:1px solid #c9d7cb}
.halmi-home .direction-card,.halmi-home .direction-card:first-child{display:grid;grid-template-columns:60px minmax(0,1fr) minmax(0,1fr) 210px;align-items:center;gap:26px;min-height:155px;padding:26px 10px;background:#fff;color:#1c2923;border:0;border-bottom:1px solid #c9d7cb;border-radius:0;transition:background .3s,padding .4s var(--ease)}
.halmi-home .direction-card:hover,.halmi-home .direction-card:first-child:hover{background:#f0f5ed;transform:none;padding-inline:18px}
.halmi-home .direction-number{font-size:11px;letter-spacing:.06em;max-width:5ch;color:#446652;opacity:1}
.halmi-home .direction-card h3{font-size:clamp(28px,2.8vw,40px);margin:0;line-height:1.08;max-width:13ch}
.halmi-home .direction-card p{font-size:16px;line-height:1.6;margin:0;max-width:37ch;color:#526158}
.halmi-home .direction-card a{font-size:14px;line-height:1.45;align-self:center;margin:0;justify-self:end;gap:14px;color:#175944;padding:10px 0;min-height:44px}
.halmi-home #opiniones{background:#eef3eb}
.halmi-home .home-works{background:#fafbf8}

@media(min-width:1600px){.halmi-home .desktop-nav{font-size:18px;gap:12px}.halmi-home .site-header .wordmark{font-size:46px}}
@media(max-width:1100px){.halmi-home .site-header{height:88px}.halmi-home .direction-card,.halmi-home .direction-card:first-child{grid-template-columns:42px minmax(0,1fr) minmax(0,1fr);gap:20px}.halmi-home .direction-card a{grid-column:3;justify-self:start}.halmi-home .direction-card h3{grid-row:1/3;grid-column:2}.halmi-home .direction-number{align-self:start;padding-top:5px}}
@media(max-width:1000px){
 .entrances-hero{padding-top:34px}.entrances-grid{column-gap:36px}.entrances-copy h1{font-size:clamp(49px,6.5vw,66px)}
 .entrances-copy .eyebrow{max-width:32ch;font-size:12px}.entrances-intro p{font-size:16px}
 .entrance-photo{aspect-ratio:1.8}.entrance-caption{min-height:175px;padding-block:22px}
 .entrance-caption p{max-width:43ch}.entrance-cta{max-width:34%;font-size:14px;padding-left:18px;gap:12px}
 .entrance-selectors button{padding:14px 16px;font-size:17px;min-height:60px}
 .halmi-home .directions-intro{gap:18px 36px}
}
@media(max-width:760px){
 .halmi-home .site-header{height:82px;padding-inline:16px;gap:12px}.halmi-home .site-header .wordmark{font-size:34px}
 .halmi-home .brand-caption{font-size:9px}.halmi-home .header-cta{min-height:46px;font-size:14px;padding:10px 12px;gap:8px}.halmi-home .header-cta .cta-arrow{width:24px;height:24px;font-size:18px}
 .entrances-hero{padding-top:29px}.entrances-hero>.wrap{width:calc(100% - 48px)}
 .entrances-grid{display:flex;flex-direction:column;align-items:stretch}
 .entrances-copy{order:0;padding:0 0 23px}.entrances-copy .eyebrow{max-width:none;font-size:12px;line-height:1.55;letter-spacing:.075em;margin-bottom:15px}
 .entrances-copy h1{font-size:clamp(46px,11.7vw,73px);line-height:1.02}
 .entrance-carousel{order:1;margin:0 -24px}
 .entrance-photo{aspect-ratio:1.5;border-radius:0}.entrance-photo img{transform:none;object-position:50% 50%}
 .entrance-photo>.entrance-product-picture{padding:30px 14% 44px}
 .entrance-photo figcaption{left:14px;bottom:12px;font-size:12px;padding:5px 8px}
 .entrance-controls{top:10px;right:10px;gap:0;padding:2px;min-height:44px}
 .entrance-controls .entrance-rotation{padding:0;min-width:44px;min-height:44px}
 .entrance-rotation [data-rotation-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .entrance-counter{display:none}.entrance-controls button{min-width:44px;min-height:44px}.entrance-arrows{font-size:20px}
 .entrance-caption{min-height:230px;padding:23px 24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:17px}
 .entrance-category{font-size:12px;letter-spacing:.09em}.entrance-caption h2{font-size:clamp(25px,6.45vw,34px);margin:6px 0 8px}
 .entrance-caption p{font-size:16px;line-height:1.5;max-width:43ch}.entrance-cta{font-size:15px;max-width:100%;min-height:48px;padding:8px 10px 8px 20px;gap:20px}
 .entrance-cta>span:last-child{width:30px;height:30px;font-size:20px}
 .entrance-selectors{margin:0 14px;border-radius:17px;padding:5px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .entrance-selectors button{font-size:16px;min-height:52px;padding:12px 14px;gap:12px;border-radius:12px}
 .entrance-index{font-size:12px}
 .entrances-intro{order:2;padding:28px 0 0}.entrances-intro p{font-size:16px;max-width:45ch;margin-bottom:13px}
 .entrances-foot{padding:20px 0 25px;flex-direction:column;align-items:flex-start;gap:6px;font-size:13px;margin-top:10px}
 .halmi-home .directions-intro{display:block;margin-bottom:32px}.halmi-home .directions-intro>.eyebrow{margin-bottom:18px}.halmi-home .directions-intro>h2{font-size:39px}.halmi-home .directions-intro>p:not(.eyebrow){margin-top:20px;font-size:16px}
 .halmi-home .direction-card,.halmi-home .direction-card:first-child{grid-template-columns:32px minmax(0,1fr);gap:10px 14px;padding:25px 0;min-height:0}
 .halmi-home .direction-card:hover,.halmi-home .direction-card:first-child:hover{padding-inline:0}
 .halmi-home .direction-card h3{grid-row:1;grid-column:2;font-size:29px;max-width:none}
 .halmi-home .direction-card p,.halmi-home .direction-card a{grid-column:2;max-width:none}
 .halmi-home .direction-number{padding-top:5px;font-size:11px}.halmi-home .direction-card a{justify-self:start;margin-top:4px;font-size:15px}
}
@media(max-width:380px){.halmi-home .site-header{padding-inline:14px;gap:8px}.halmi-home .site-header .wordmark{font-size:31px}.halmi-home .brand-caption{font-size:8px}.halmi-home .header-cta .cta-arrow{display:none}.entrance-caption{min-height:255px}.entrance-selectors button{gap:9px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.halmi-home .site-header *,.entrances-hero *,.halmi-home .direction-card{animation:none!important;transition:none!important}.entrance-photo img{transform:none}.entrance-cta:hover{transform:none}}

/* V9: different motion for directions, finished work and the order process.
   Content stays visible without JavaScript; all extra scroll motion is bounded. */
.halmi-home .direction-card,.halmi-home .direction-card:first-child{transition:opacity .8s var(--ease) var(--reveal-delay),transform 1s var(--ease) var(--reveal-delay),background-color .3s,padding .4s var(--ease)}
.halmi-home .direction-card.reveal-pending{transform:translate3d(-34px,0,0)}
.halmi-home .direction-card:nth-child(even).reveal-pending{transform:translate3d(34px,0,0)}
.halmi-home .direction-card:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#175944;transform:scaleX(0);transform-origin:left;transition:transform 1.1s var(--ease) var(--reveal-delay);pointer-events:none}
.halmi-home .direction-card.is-revealed:after{transform:scaleX(1)}
.halmi-home .direction-card h3{transition:transform .9s var(--ease) calc(var(--reveal-delay) + 80ms)}
.halmi-home .direction-card.reveal-pending h3{transform:translateY(15px)}
.halmi-home .direction-card:is(:hover,:focus-within) h3{transform:translateX(7px)}
.halmi-home .direction-card:focus-within{background:#f0f5ed}
.halmi-home .direction-card:is(:hover,:focus-within) .direction-number{color:#175944}
.halmi-home .home-works .projects-grid{row-gap:64px;padding-block:18px}
.halmi-home.home-motion-ready .home-work{translate:0 var(--work-float,0px)}
.halmi-home .home-work .project-image:after{transition-duration:1.3s;transform:translateX(102%)}
.halmi-home .home-work:nth-child(even) .project-image:after{transform:translateX(-102%)}
.halmi-home .home-work.reveal-pending .project-image:after{transform:translateX(0)}
.halmi-home .home-work .project-info{transition:opacity .7s var(--ease) calc(var(--reveal-delay) + 160ms),transform .9s var(--ease) calc(var(--reveal-delay) + 120ms)}
.halmi-home .home-work.reveal-pending .project-info{opacity:0;transform:translateY(17px)}
.halmi-home .section-end{position:relative;z-index:1;margin-top:48px}
.halmi-home .google-panel{transition:opacity .8s var(--ease) var(--reveal-delay),transform 1s var(--ease) var(--reveal-delay),box-shadow .5s var(--ease)}
.halmi-home .google-panel.reveal-pending{transform:translate3d(-26px,22px,0) scale(.96)}
.halmi-home .google-panel.is-revealed .google-stars{animation:home-stars-arrive .85s var(--ease) both}
@keyframes home-stars-arrive{from{opacity:.3;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
.halmi-home .process>li{position:relative}
.halmi-home.home-motion-ready .process>li:after{content:"";position:absolute;left:0;right:0;top:-1px;height:3px;background:#c0e7ce;transform:scaleX(var(--step-fill,0));transform-origin:left;pointer-events:none}
.halmi-home.home-motion-ready .process .step-marker{background:transparent;color:#d0eed9;box-shadow:none;transition:background-color .45s,color .45s,box-shadow .45s,transform .45s var(--ease)}
.halmi-home.home-motion-ready .process .is-current-step .step-marker{background:#d0eed9;color:#17462f;box-shadow:0 0 0 7px #d0eed91a;transform:scale(1.09)}
.halmi-home .process h3{transition:color .45s}
.halmi-home .process .is-current-step h3{color:#d0eed9}
.halmi-home .closing-cta .button{transition:transform .45s var(--ease),background-color .3s,box-shadow .45s}
.halmi-home .closing-cta .button:is(:hover,:focus-visible){transform:translateY(-4px);box-shadow:0 14px 30px #143c2e24}
@media(max-width:760px){
 .halmi-home .direction-card.reveal-pending{transform:translate3d(-18px,16px,0)}
 .halmi-home .direction-card:nth-child(even).reveal-pending{transform:translate3d(18px,16px,0)}
 .halmi-home .home-works .projects-grid{row-gap:38px;padding-block:8px}
 .halmi-home .section-end{margin-top:32px}
 .halmi-home .google-panel.reveal-pending{transform:translateY(24px) scale(.97)}
}
@media(prefers-reduced-motion:reduce){
 .halmi-home .direction-card h3,.halmi-home .direction-card:after,.halmi-home .home-work .project-info,.halmi-home .google-panel,.halmi-home .google-stars,.halmi-home .process .step-marker,.halmi-home .closing-cta .button{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}
 .halmi-home .home-work{translate:none!important}.halmi-home .process>li:after{display:none}
}
@media print{.halmi-home .home-work{translate:none}.halmi-home .home-work .project-info{opacity:1;transform:none}.halmi-home .process>li:after{display:none}}
