/* TE 5.0: componente central único, sin geometría duplicada */
body.te-active #teWelcomeWidgets .te-widget.te-calendar > header,
body.te-active #teWelcomeWidgets .te-widget.te-news > header {background:#000!important;background-color:#000!important;background-image:none!important;opacity:1!important;filter:none!important;backdrop-filter:none!important;color:#fff!important}
/* El padre ES la única cápsula: incluye buscador y pronóstico en el mismo DOM. */
body.te-active #te217Hub .te217-search{position:fixed!important;left:50%!important;right:auto!important;top:clamp(395px,54vh,535px)!important;bottom:auto!important;width:clamp(320px,34vw,560px)!important;max-width:calc(100vw - 36px)!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:15px 15px 12px!important;background:rgba(10,10,10,.84)!important;background-image:none!important;border:0!important;border-radius:12px!important;box-shadow:0 7px 20px #0005!important;backdrop-filter:blur(5px)!important;transform:translateX(-50%)!important;translate:none!important;animation:te50-fade .45s ease-out both!important;transition:opacity .45s ease!important;z-index:5!important;overflow:visible!important}
body.te-active #te217Hub .te217-search::before,body.te-active #te217Hub .te217-search::after{content:none!important;display:none!important}
body.te-active #te217Hub .te217-search form{margin-bottom:9px!important}
body.te-active #te217Hub .te217-search .te217-weather{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;display:block!important;transform:none!important;translate:none!important;animation:none!important;transition:none!important;background:none!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;backdrop-filter:none!important;overflow:visible!important;isolation:auto!important;z-index:auto!important;color:#fff!important}
body.te-active #te217Hub .te217-search .te217-weather::before,body.te-active #te217Hub .te217-search .te217-weather::after{content:none!important;display:none!important}
body.te-active #te217Hub .te217-search .te217-weather header{margin:0 0 9px!important;padding:0!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;min-height:22px!important}
body.te-active #te217Hub .te217-search .te217-forecast{position:relative!important;width:100%!important;margin:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}
body.te-active #te217Hub .te217-search .te217-day{min-width:0!important;box-shadow:5px 7px 11px #0009!important}
@keyframes te50-fade{from{opacity:0}to{opacity:1}}
body.te-active.te222-arriving #te217Hub,body.te-active.te222-arriving #te217Hub .te217-lower{animation:none!important;transform:none!important}
@media(max-width:1099px){body.te-active #te217Hub .te217-search{top:50vh!important;width:min(560px,55vw)!important}}
@media(max-width:700px){body.te-active #te217Hub .te217-search{top:44vh!important;width:calc(100vw - 30px)!important;padding:12px 10px 12px!important}body.te-active #te217Hub .te217-search .te217-weather header{gap:5px!important;flex-wrap:wrap!important}}
@media(prefers-reduced-motion:reduce){body.te-active #te217Hub .te217-search{animation:none!important}}
/* Evento real en la franja libre bajo el calendario */
body.te-active #teWelcomeWidgets .te-calendar .te49-next-event{display:block!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;text-align:left!important;padding:9px 12px!important;font-size:11px!important;line-height:1.35!important}
body.te-active #teWelcomeWidgets .te-calendar .te49-next-event b{font-weight:800!important}
/* TE 5.1 — ajuste visual según referencia "deseado": mayor respiración y acentos dorados */
body.te-active #te217Hub .te217-search{
  padding-top:15px!important;
  padding-bottom:20px!important;
}
/* La banda intermedia pertenece al MISMO panel, sin segundo fondo externo. */
body.te-active #te217Hub .te217-search .te217-weather{
  margin-top:23px!important;
  padding-top:4px!important;
  background:linear-gradient(180deg,rgba(0,0,0,.30),rgba(0,0,0,.06))!important;
}
body.te-active #te217Hub .te217-search .te217-weather header{
  margin:0 0 15px!important;
  padding:3px 0 2px!important;
  min-height:27px!important;
}
body.te-active #te217Hub .te217-search .te217-weather header strong{
  color:#ffe000!important;
  text-shadow:0 1px 2px #000!important;
}
body.te-active #te217Hub .te217-search .te217-weather header select{
  color:#ffe000!important;
  border:1px solid #d5a600!important;
  background-color:#121212!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23ffe000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
body.te-active #te217Hub .te217-search .te217-forecast{
  margin-top:3px!important;
}
@media(max-width:700px){
  body.te-active #te217Hub .te217-search .te217-weather{margin-top:15px!important}
  body.te-active #te217Hub .te217-search .te217-weather header{margin-bottom:10px!important}
}
