/* PE2.20: dos franjas adaptables, estética uniforme. No afecta mapa ni intro. */
@media (min-width: 901px){
 body.te-active #teWelcomeWidgets .te-widget.te-calendar,
 body.te-active #teWelcomeWidgets .te-widget.te-news{overflow:hidden!important}
 body.te-active #teCommuneOverlay .te-test-commune-card{height:100%!important;min-height:0!important;width:100%!important}
 body.te-active .te217-hub{position:fixed!important;top:clamp(390px,61vh,630px)!important;left:clamp(22px,3.8vw,65px)!important;right:clamp(22px,3.8vw,65px)!important;bottom:clamp(58px,9vh,92px)!important;width:auto!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(240px,1fr) minmax(340px,1.12fr) minmax(245px,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:10px!important;overflow:visible!important}
 body.te-active .te217-hub .te217-lower{display:contents!important}
 body.te-active .te217-hub .te217-ads{grid-column:1!important;grid-row:1!important;min-height:0!important}
 body.te-active .te217-hub .te217-search{grid-column:2!important;grid-row:1!important;align-self:start!important;min-height:0!important;padding:8px!important}
 body.te-active .te217-hub .te217-weather{grid-column:2!important;grid-row:1!important;align-self:end!important;height:75px!important;min-height:0!important;padding:7px!important;box-sizing:border-box!important}
 body.te-active .te217-hub .te217-stats{grid-column:2!important;grid-row:1!important;align-self:center!important;min-height:0!important;height:auto!important;white-space:normal!important;display:block!important;padding:8px!important}
 body.te-active .te217-hub .te220-reserve{grid-column:3;grid-row:1;min-width:0}
 body.te-active .te217-hub .te217-carousel{min-height:0!important}
 body.te-active .te217-hub .te217-cards{min-height:0!important}
 body.te-active .te217-hub .te217-card{height:92%!important;max-height:260px!important;width:min(34%,145px)!important}
 body.te-active .te217-hub .te217-forecast{padding:3px 0!important}
 body.te-active .te217-hub .te217-day .icon{font-size:17px!important;margin:2px 0!important}
 body.te-active .te217-hub .te217-day strong{font-size:12px!important}
 body.te-active .te217-hub .te217-day{font-size:9px!important}
}
body.te-active .te217-hub .te217-ads,body.te-active .te217-hub .te217-weather,body.te-active .te217-hub .te217-stats,body.te-active .te217-hub .te217-search,body.te-active .te217-hub .te220-reserve{background:linear-gradient(180deg,rgba(29,53,70,.78),rgba(39,63,78,.65))!important;backdrop-filter:blur(7px)!important;border:1px solid rgba(185,205,220,.22)!important;box-shadow:none!important;border-radius:10px;color:#fff}
.te220-reserve{display:flex;align-items:center;justify-content:center;text-align:center;color:#e8e1d7;font:12px Tahoma,Arial,sans-serif;padding:12px;box-sizing:border-box}
.te220-reserve span{opacity:.65}
.te217-hub .te217-stats #te217Stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px!important;white-space:normal!important}
.te217-hub .te217-stats #te217Stats span{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;font-size:10px;min-width:0}
.te217-hub .te217-stats #te217Stats span b{font-size:16px}
.te217-hub .te217-stats #te217Stats span:last-child{display:none}
/* Carrusel de noticias horizontal y compacto. */
body.te-active #teWelcomeWidgets .te-news-body:has(.te220-news-viewport){height:calc(100% - 45px)!important;overflow:hidden!important;padding:7px!important;box-sizing:border-box}
.te220-news-viewport{height:100%;width:100%;overflow:hidden;position:relative}
.te220-news-row{display:flex;width:max-content;height:100%;gap:10px;animation:te220-news-scroll 42s linear infinite;will-change:transform}
.te220-news-viewport:is(:hover,:focus-within) .te220-news-row{animation-play-state:paused}
.te220-news-item{width:clamp(150px,11vw,205px);height:100%;flex:none;display:flex;flex-direction:column;gap:6px;color:#fff;text-decoration:none}
.te220-news-item img{width:100%;height:62%;object-fit:cover;border-radius:6px}
.te220-news-item strong{font:700 12px/1.3 Tahoma,Arial,sans-serif;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@keyframes te220-news-scroll{to{transform:translateX(-50%)}}
body.te-active #teWelcomeWidgets .te-news-footer{display:none!important}
@media(max-height:800px) and (min-width:901px){body.te-active .te217-hub{top:62vh!important;bottom:70px!important}.te217-hub .te217-stats strong{font-size:10px}.te217-hub .te217-stats #te217Stats span b{font-size:12px}}
@media(max-width:900px){body.te-active .te217-hub{position:fixed!important;top:52vh!important;left:3vw!important;right:3vw!important;bottom:80px!important;width:94vw!important;max-width:none!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr!important;gap:8px!important;overflow:auto!important}.te217-hub .te217-lower{display:contents!important}.te217-hub .te217-ads{grid-column:1!important;grid-row:1!important}.te217-hub .te217-search{grid-column:2!important;grid-row:1!important;align-self:start!important}.te217-hub .te217-weather{grid-column:2!important;grid-row:1!important;align-self:end!important}.te217-hub .te217-stats{grid-column:2!important;grid-row:1!important;align-self:center!important}.te220-reserve{display:none!important}}
@media(prefers-reduced-motion:reduce){.te220-news-row{animation:none!important}}
