:where(.port-render){background:#edf0ee}
.service-card .product-card-photo{aspect-ratio:1.28;overflow:hidden;background:#edf0ee}
.service-card .product-card-photo img.port-render,.service-photo img.port-render,.m-equipment img.port-render,.sub img.port-render{object-fit:contain;object-position:center;background:#edf0ee}
.service-card .product-card-photo img.port-render{padding:0}
.sub img.port-render{aspect-ratio:1.19}
.m-equipment img.port-render{filter:none}
.pc-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.pc-mini-grid>a{display:flex;flex-direction:column;gap:12px;color:inherit;padding:12px;border:1px solid #70806942;border-radius:12px;text-decoration:none;transition:box-shadow .2s ease}
.pc-mini-grid>a:hover,.pc-mini-grid>a:focus-visible{box-shadow:0 8px 26px #18241030}
.pc-mini-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#edf0ee;border-radius:7px}
.pc-mini-grid h3{font-size:clamp(1rem,1.5vw,1.25rem);margin:0;line-height:1.25}
@media(max-width:750px){.pc-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

/* Product cutouts use true alpha, with no white or gray photo plate. */
:is(.service-card .product-card-photo,.service-photo,.m-product-photo){background:transparent}
:is(.service-card .product-card-photo img,.m-equipment img,.service-photo img,.sub img).port-render,.pc-mini-grid img[src*="-pk.svg"]{background:transparent;object-fit:contain}
.m-solution-core img[src*="-pk.svg"]{object-fit:contain;background:transparent}

.grasa-unit{object-fit:contain!important;background:#edf0ee;object-position:center!important}
.m-solution-core .grasa-unit{object-fit:contain!important}
.pc-field{width:min(100% - 40px,1060px);margin:clamp(30px,6vw,90px) auto;overflow:hidden}
.pc-field img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;border-radius:12px}
.pc-field figcaption{font-size:.88rem;color:#44515a;padding:.65rem .05rem}

/* Full cutout (no clipping) and responsive physical photo limits. */
#montajes{max-width:1540px}
#montajes .gallery-track{scrollbar-width:thin}
#montajes picture img,#montajes .gallery-slide img{image-rendering:auto;object-position:center}
.m-equipment>.product-card-photo{display:grid;place-items:center;background:transparent;padding:10px;min-height:215px;aspect-ratio:1.22}
.m-equipment>.product-card-photo img.port-render{display:block;width:100%;height:100%;max-height:325px;object-fit:contain;transform:none}
.m-equipment:hover>.product-card-photo img.port-render{transform:translateY(-3px)}
.service-grid:has(.product-card-photo){grid-template-columns:repeat(4,minmax(0,1fr))}
.pc-form-only{display:block!important;max-width:800px}
.pc-form-only .booking-box{width:100%}
@media(max-width:1050px){.service-grid:has(.product-card-photo){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.service-grid:has(.product-card-photo){grid-template-columns:1fr}.m-equipment>.product-card-photo{max-height:310px}}

/* Portaclin mobile: retain the desktop composition while making the same content usable by touch. */
.coverage-mobile-picker,.pc-swipe-hint{display:none}
@media(max-width:1060px){
 .header:has(.menu) nav.open{max-block-size:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior-y:contain;align-items:stretch}
 .header:has(.menu) :is(.menu,nav.open>a,nav.open summary){min-block-size:44px;display:flex;align-items:center}
 .header:has(.menu) nav.open a{white-space:normal;overflow-wrap:anywhere}
 .header:has(.menu) nav.open a[aria-current="page"]{font-weight:650}
}
@media(max-width:820px){
 .header:not(.m-header){min-height:68px}
 .header:not(.m-header) .menu{display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;background:#fff;border:1px solid #b5c8b0;border-radius:100px;padding:7px 12px;font-size:.88rem;color:var(--ink)}
 .header:not(.m-header) nav{display:none;position:absolute;inset:100% 0 auto;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 27px #062a562b}
 .header:not(.m-header) nav.open{display:grid;gap:2px}
 .header:not(.m-header) nav.open>a,.header:not(.m-header) nav.open summary{padding:8px 10px}
 .header:not(.m-header) .head-actions>.btn{padding:8px 11px;min-height:44px}
}
@media(max-width:760px){
 :is(.wrap,#montajes,.coverage-grid,.booking-box,.fieldset,.m-catalog,.m-hero-card){min-inline-size:0}
 .wrap:has(.m-solution-core)>.section-head,.section-head{overflow-wrap:break-word}
 :is(.hero-links,.head-actions)>.btn{min-block-size:44px}
 .hero-links>.btn{max-inline-size:100%;white-space:normal;text-align:center}
 .gallery-track{grid-auto-columns:100%;gap:0;scroll-padding-inline:0}
 .gallery-track img{aspect-ratio:16/9;object-fit:contain;background:#131d23}
 .gallery-controls button{min-height:44px}
 .gallery-counter{flex:1 0 auto}
 .pc-swipe-hint{display:inline;color:#263e48;font-size:.85rem;flex:0 1 auto}
 .coverage-grid{grid-template-columns:minmax(0,1fr)}
 .coverage-figure{min-inline-size:0}
 .coverage-maps{grid-template-columns:minmax(0,1fr);gap:4px}
 .coverage-maps>div:first-child{display:none}
 .coverage-maps .coverage-svg{block-size:clamp(200px,61vw,330px)}
 .coverage-mobile-picker{display:grid;gap:6px;text-align:left;margin:8px 0;color:#062a56;font-weight:600;font-size:.92rem}
 .coverage-mobile-picker select{min-height:46px;max-inline-size:100%;font-size:16px;color:#062a56;border:1px solid #a0b3b8;background:#fff;border-radius:8px;padding:6px 12px;appearance:auto}
 .coverage-town{min-height:44px;line-height:1.35}
 .coverage-copy ul{column-count:auto;columns:1}
 .booking :is(input,select,textarea),.subscribe input{font-size:16px;max-width:100%;min-width:0;min-height:44px}
 .booking .fieldset{grid-template-columns:minmax(0,1fr)}
 .booking form [type=submit]{min-height:44px;white-space:normal}
 .footer a:not(.brand){overflow-wrap:anywhere}
 .m-catalog-tabs button,.m-product-link,.m-solution-core .btn{min-height:44px;align-items:center}
 .m-catalog-tabs{gap:4px 5px}
 .m-home-page .hero.m-hero:has(.hero-split-media){min-height:clamp(570px,calc(100svh - 33px),740px)}
 .m-home-page .hero.m-hero:has(.hero-split-media) .hero-copy{padding-inline:clamp(16px,5vw,29px);gap:16px}
 .hero.m-hero:has(.hero-split-media) .m-hero-card{width:min(100%,395px);margin-inline:0;max-width:100%}
 .hero.m-hero:has(.hero-split-media) .hero-links{flex-wrap:wrap}
}
@media(max-width:460px){
 .use-grid.m-service-strip{grid-template-columns:minmax(0,1fr)}
 .m-service-strip .use-card{min-height:240px}
 .m-service-strip .use-card>div{padding:14px}
 .m-service-strip .use-card p{font-size:.9rem}
 .m-solution-core{grid-template-columns:minmax(0,1fr)}
 .m-solution-core>img{aspect-ratio:16/9;height:auto;max-height:210px}
 .m-solution-core>div{padding:14px}
 .m-equipment>.product-card-photo{min-height:185px}
 .sub h1{font-size:clamp(2rem,8.5vw,2.6rem);overflow-wrap:break-word}
 .sub:has(>img),.solution-intro{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px){
 .hero-links>.btn{flex:1 0 100%}
 .pc-mini-grid,.foot-cols{grid-template-columns:minmax(0,1fr)}
 .hero.m-hero:has(.hero-split-media) h1{font-size:clamp(2rem,9vw,2.46rem)}
}

.booking-box > h1{margin:0 0 22px;color:white;font-size:clamp(2.05rem,3.4vw,3.45rem);line-height:1.22}

/* Keep the compact layout inside the smallest phone viewport. */
@media(max-width:410px){
 .step-fan,.expert-grid,.subscribe{grid-template-columns:minmax(0,1fr)}
 .step-fan article,.expert-grid article{min-width:0;min-height:0;overflow-wrap:anywhere}
 .expert>.section-head,.expert-grid,.subscribe>*{min-width:0}
 .subscribe form{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .subscribe input,.subscribe button{width:100%;min-width:0}
 .subscribe h2{overflow-wrap:anywhere}
}
@media(max-width:760px){html,body{overflow-x:clip}}

/* One existing product-detail link per card, with a clear visible action. */
#catalogo-equipos .pc-mini-grid > a { display: flex; flex-direction: column; align-items: stretch; }
#catalogo-equipos .pc-mini-product-link {
 align-self: flex-start; margin: auto 0 2px; padding-top: 1px;
 color: #153f73; font-weight: 700; font-size: .875rem;
 text-decoration: underline; text-underline-offset: .2em;
}
#catalogo-equipos .pc-mini-grid > a:hover .pc-mini-product-link,
#catalogo-equipos .pc-mini-grid > a:focus-visible .pc-mini-product-link { color: #276c02; }
#catalogo-equipos .pc-mini-grid > a:focus-visible { outline: 3px solid #356e12; outline-offset: 3px; }
