/* Aislamiento Térmico México — Thermal scroll comparison v7.
   Progressive enhancement: static two-image view remains when JS is disabled. */
.thermal-intro{padding:clamp(58px,7vw,120px) 0 30px;background:#fff;}
.thermal-intro-inner{text-align:center;max-width:760px;}
.thermal-tag{display:block;color:#1655ca;font-size:.74rem;letter-spacing:.19em;font-weight:800;margin-bottom:18px;}
.thermal-intro h2{font-size:clamp(2.55rem,6.1vw,5.8rem);line-height:.98;letter-spacing:-.065em;margin:0;color:#0e1d33;font-weight:790;}
.thermal-intro p{color:#5b6779;font-size:clamp(1rem,1.6vw,1.2rem);margin:19px 0 0;}
.thermal-jump{display:inline-flex;align-items:center;gap:12px;margin-top:27px;color:#1655ca;font-weight:740;font-size:.88rem;}
.thermal-jump span{font-size:1.45rem;animation:thermal-arrow 2s ease-in-out infinite;}
@keyframes thermal-arrow{0%,100%{transform:translateY(-2px)}50%{transform:translateY(4px)}}
.thermal-story{background:#fff;padding-top:22px;}
.thermal-sticky{max-width:min(1460px,calc(100% - 28px));margin:0 auto;}
.thermal-stage{width:100%;height:clamp(300px,47vw,670px);position:relative;overflow:hidden;isolation:isolate;background:#9e3e30;}
.thermal-stage img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center center;user-select:none;-webkit-user-drag:none;}
.thermal-stage .thermal-before{z-index:1;}
.thermal-stage .thermal-after{z-index:2;clip-path:inset(0 0 0 50%);}
.thermal-sweep{position:absolute;top:0;left:50%;height:100%;width:2px;background:#fff;box-shadow:0 0 22px 6px rgba(255,255,255,.78);z-index:3;pointer-events:none;transform:translateX(-50%);}
.thermal-sweep-icon{position:absolute;top:50%;left:50%;z-index:4;transform:translate(-50%,-50%);border:2px solid #fff;width:50px;height:50px;display:grid;place-items:center;border-radius:50%;color:#0e1d33;background:#fff;box-shadow:0 10px 24px #0002;font-size:1.4rem;pointer-events:none;}
.thermal-frame-corner{position:absolute;z-index:3;left:17px;width:34px;height:34px;border-color:rgba(255,255,255,.8);pointer-events:none;}
.thermal-frame-top{top:17px;border-top:2px solid;border-left:2px solid;}
.thermal-frame-bottom{bottom:17px;border-bottom:2px solid;border-left:2px solid;}
.thermal-dashboard{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(12px,3vw,60px);padding:clamp(18px,2.7vw,34px) 8px 4px;background:#fff;}
.thermal-measure{display:flex;align-items:center;gap:12px;min-width:0;}
.thermal-thermometer{color:#d54435;display:grid;place-items:center;width:36px;flex:none;}
.thermal-thermometer svg{width:40px;height:43px;}
.thermal-measure-eyebrow{color:#697586;letter-spacing:.115em;font-size:.66rem;font-weight:820;display:block;white-space:nowrap;}
.thermal-reading{font-size:clamp(2.6rem,5vw,5rem);font-weight:800;letter-spacing:-.072em;color:#bd3e2c;line-height:1;margin-top:5px;display:flex;align-items:baseline;gap:3px;font-variant-numeric:tabular-nums;}
.thermal-reading small{font-size:.53em;letter-spacing:-.04em;}
.thermal-progress-block{min-width:0;align-self:center;}
.thermal-progress-track{height:3px;background:#e3e8ef;position:relative;overflow:hidden;}
.thermal-progress-track i{display:block;width:50%;height:100%;background:linear-gradient(90deg,#be4030,#186fcf);}
.thermal-progress-labels{display:flex;justify-content:space-between;gap:8px;color:#667486;font-size:.68rem;letter-spacing:.1em;margin-top:12px;font-weight:720;}
.thermal-end-note{max-width:170px;font-size:.72rem;color:#7d8996;line-height:1.4;}
.thermal-disclaimer{font-size:.74rem;color:#8b96a3;text-align:center;max-width:900px;padding:21px 14px 66px;line-height:1.55;}
/* On supported devices scroll advances a single image reveal, but never blocks normal scrolling. */
.thermal-story.is-interactive{height:220svh;padding:0;position:relative;}
.thermal-story.is-interactive .thermal-sticky{position:sticky;top:78px;height:calc(100svh - 78px);min-height:520px;display:flex;flex-direction:column;justify-content:center;gap:0;}
.thermal-story.is-interactive .thermal-stage{height:min(70svh,660px);flex:1 1 auto;min-height:0;}
.thermal-story.is-interactive .thermal-dashboard{flex:none;}
.thermal-story.is-interactive .thermal-stage .thermal-after{clip-path:inset(0 0 0 100%);will-change:clip-path;}
.thermal-story.is-interactive .thermal-sweep{left:100%;}
.thermal-story.is-interactive .thermal-sweep-icon{left:100%;}
@media(max-width:880px){
 .thermal-story.is-interactive .thermal-sticky{top:72px;height:calc(100svh - 72px);min-height:0;}
 .thermal-story.is-interactive .thermal-stage{height:clamp(310px,63svh,590px);flex:1 1 auto;}
 .thermal-stage img{object-fit:cover;object-position:center;}
 .thermal-dashboard{grid-template-columns:1fr;gap:12px;padding:18px 4px 5px;}
 .thermal-end-note{display:block;max-width:none;text-align:center;font-size:.66rem;color:#7f8c9d;}
 .thermal-progress-track{height:3px;}
 .thermal-progress-labels{font-size:.62rem;}
 .thermal-measure-eyebrow{font-size:.59rem;}
 .thermal-measure{gap:10px;}
 .thermal-reading{font-size:clamp(2.4rem,10vw,3.6rem);}
 .thermal-intro{padding-top:56px;padding-bottom:8px;}
 .thermal-intro h2{font-size:clamp(2.7rem,10vw,4.3rem);}
}
@media(max-width:560px){
 .thermal-stage{height:390px;}
 .thermal-stage img{object-position:center;}
 .thermal-story.is-interactive .thermal-stage{max-height:67svh;}
 .thermal-dashboard{padding:14px 0 4px;gap:12px;}
 .thermal-sweep-icon{width:38px;height:38px;font-size:1.1rem;}
 .thermal-disclaimer{padding-bottom:45px;}
 .thermal-intro p{margin-top:14px;}
}
/* The comparison remains accessible and informative with motion reduced or scripts disabled. */
@media(prefers-reduced-motion:reduce){
 .thermal-jump span{animation:none;}
 .thermal-story.is-interactive{height:auto;padding-top:22px;}
 .thermal-story.is-interactive .thermal-sticky{position:relative;top:auto;height:auto;min-height:0;display:block;}
 .thermal-story.is-interactive .thermal-stage{height:clamp(300px,47vw,670px);}
 .thermal-story.is-interactive .thermal-stage .thermal-after{clip-path:inset(0 0 0 50%);will-change:auto;}
 .thermal-story.is-interactive .thermal-sweep,.thermal-story.is-interactive .thermal-sweep-icon{left:50%;}
}

/* With JS disabled or reduced motion, show the two example readings together. */
.thermal-story:not(.is-interactive) .thermal-reading{font-size:clamp(2rem,3.2vw,3.5rem);letter-spacing:-.05em;}
