/* SGS final draft fixes: layout, carousel and genuine media */
/* Botones superiores más grandes y legibles, sin modificar el resto de la portada. */
@media(min-width:801px){.sgs-home .sgs-coverbar nav{gap:12px!important}.sgs-home .sgs-coverbar nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:52px!important;padding:15px 22px!important;font-size:14px!important;line-height:1.15!important;font-weight:900!important;white-space:nowrap!important;border-radius:9px!important}}
@media(max-width:800px){.sgs-home .sgs-coverbar nav a{min-height:44px!important;padding:10px 13px!important;font-size:12px!important}}
@media(min-width:801px){
.sgs-home .sgs-coverbar{position:relative!important}
.sgs-home .sgs-finder-fast{position:relative!important;top:auto!important;left:auto!important;right:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:18px max(4vw,24px)!important;border:0!important;z-index:2!important}
.sgs-home .sgs-finder-fast .sgs-finder-row{display:grid!important;grid-template-columns:minmax(210px, .65fr) minmax(0,1.35fr)!important;align-items:center!important;gap:22px!important}
.sgs-home .sgs-hero{border-top:0!important;background-size:100% auto!important;background-repeat:no-repeat!important;background-color:#10191d!important;background-position:center top!important;min-height:0!important}
.sgs-home .sgs-hero-grid{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;align-items:end!important;gap:32px!important;min-height:clamp(440px,47vw,690px)!important;padding:30px clamp(24px,4vw,65px)!important}
.sgs-home .sgs-hero-copy{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:auto!important;max-width:100%!important;min-width:0!important;align-self:end!important}
.sgs-home .sgs-hero h1{font-size:clamp(29px,3.25vw,51px)!important;line-height:1.02!important;letter-spacing:-1px!important;overflow-wrap:normal!important}
.sgs-home .sgs-diagnostic-card{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;align-self:end!important}
.sgs-home .sgs-diagnosis{display:grid!important;grid-template-columns:1fr 1fr!important;min-height:0!important;align-items:stretch!important}
.sgs-home .sgs-diagnosis .sgs-atf-copy{padding:32px clamp(24px,4vw,60px)!important}
}
/* Orden visual: cabecera, buscador y fotografía principal. */
.sgs-home{display:flex!important;flex-direction:column!important}
.sgs-home>.sgs-coverbar{order:1!important}
.sgs-home>.sgs-mobile-panorama{order:2!important}
.sgs-home>.sgs-finder-fast{order:3!important}
.sgs-home>.sgs-hero{order:4!important}
.sgs-home>.sgs-atf,.sgs-home>.sgs-pro-strip,.sgs-home>.sgs-resolver,.sgs-home>.sgs-work,.sgs-home>.sgs-specialties,.sgs-home>.sgs-brands,.sgs-home>.sgs-guarantee{order:5!important}
@media(min-width:801px){.sgs-home .sgs-hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important;gap:16px!important;padding-bottom:22px!important}.sgs-home .sgs-diagnostic-card{max-width:520px!important;justify-self:center!important;transform:translateX(-230px)!important}.sgs-home .sgs-diagnostic-card small{color:#101820!important;font-size:15px!important;font-weight:800!important;letter-spacing:.5px!important;opacity:1!important;visibility:visible!important;text-shadow:0 1px 2px #ffffffaa!important}.sgs-home .sgs-diagnostic-card h2{color:#101820!important;font-size:27px!important;line-height:1.15!important;font-weight:900!important;opacity:1!important;text-shadow:0 1px 3px #ffffffbb!important}.sgs-home .sgs-hero-copy{transform:translateY(85px)!important}}
/* Selector de sintomas compacto: sin espacio blanco sobrante. */
@media(min-width:801px){.sgs-home .sgs-diagnostic-card .sgs-symptoms{width:100%!important;max-width:none!important}.sgs-home .sgs-diagnostic-card .sgs-symptoms>*{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;max-width:none!important;min-width:0!important;padding:10px 18px!important;min-height:48px!important;box-sizing:border-box!important;white-space:nowrap!important}.sgs-home .sgs-diagnostic-card{width:max-content!important;min-width:0!important}}
/* La portada mantiene el texto sobre la fotografia, sin bloque oscuro separado. */
@media(min-width:801px){.sgs-home .sgs-hero{background-position:center center!important;background-size:cover!important;min-height:580px!important}.sgs-home .sgs-hero-grid{min-height:580px!important;align-items:end!important;padding-bottom:52px!important}.sgs-home .sgs-hero-copy,.sgs-home .sgs-diagnostic-card{align-self:end!important}.sgs-home .sgs-hero:after{background:linear-gradient(0deg,rgba(5,13,17,.65),transparent 58%)!important}}
.sgs-home .sgs-diagnosis-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:6px!important;min-width:0!important;overflow:hidden!important;align-self:stretch!important;max-height:560px!important}
.sgs-home .sgs-diagnosis-gallery img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;object-fit:cover!important;object-position:center!important}
.sgs-home .brand-track{display:flex!important;align-items:center!important;gap:22px!important;width:max-content!important;animation:sgsBrandLoop 65s linear infinite!important}
.sgs-home .brand-track img{width:112px!important;height:76px!important;object-fit:contain!important;flex:none!important;background:#fff!important;border-radius:8px!important;padding:7px!important}
@keyframes sgsBrandLoop{to{transform:translateX(-50%)}}
.sgs-home .sgs-track{animation:slide 160s linear infinite!important}
.sgs-home .sgs-search,.sgs-home .sgs-search>div{min-width:0!important}
.sgs-home .sgs-search input{min-width:0!important}
@media(max-width:800px){
.sgs-home .sgs-finder-fast{position:relative!important;top:auto!important;margin:0!important;z-index:1!important}
.sgs-home .sgs-hero-copy,.sgs-home .sgs-diagnostic-card{max-width:100%!important;min-width:0!important}
.sgs-home .sgs-diagnosis-gallery{order:1!important;width:100%!important;grid-auto-rows:130px!important;grid-template-rows:repeat(2,130px)!important;max-height:none!important}
.sgs-home .sgs-diagnosis .sgs-atf-copy{order:2!important}
.sgs-home .brand-track img{width:88px!important;height:62px!important}
}
@media(max-width:430px){.sgs-home .sgs-diagnosis-gallery{grid-template-rows:repeat(2,100px)!important}.sgs-home .sgs-search>div{display:flex!important}.sgs-home .sgs-search button{flex:none!important}}
