/* Scoped to enhanced tools; header, navigation and editorial layout retain their CSS. */
html body .erht-tool{--erht-ink:#182b40;--erht-muted:#596978;--erht-line:#dce3e8;--erht-soft:#f4f6f8;--erht-blue:#175b92;min-width:0;box-sizing:border-box}
html body .erht-tool:not(#erps-farmacia){background:#fff!important;color:var(--erht-ink)!important;border:1px solid var(--erht-line)!important;border-radius:18px!important;box-shadow:none!important;padding:18px!important;font-family:inherit}
.erht-tool *{box-sizing:border-box}
html body .erht-tool:not(#erps-farmacia) h2,html body .erht-tool:not(#erps-farmacia) h3,html body .erht-tool:not(#erps-farmacia) h4{color:var(--erht-ink)!important;line-height:1.2;overflow-wrap:anywhere}
html body .erht-tool:not(#erps-farmacia) h2{font-size:23px!important;letter-spacing:-.035em!important}
html body .erht-tool:not(#erps-farmacia) .erps-card-icon{background:var(--erht-soft)!important;color:var(--erht-ink)!important;border-radius:12px!important}
html body .erht-tool:not(#erps-farmacia) .erps-card-head,html body .erht-tool .erps-emergency-head,html body .erht-tool .err-home-radio-head{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px!important;margin-bottom:16px!important}
html body .erht-brand{display:block!important;width:auto!important;flex:0 0 auto;color:#526574!important;background:transparent!important;font-family:inherit;font-size:10px!important;font-weight:700!important;letter-spacing:.035em;line-height:1.4!important;white-space:nowrap;text-transform:none!important;margin:9px 0 0!important}
html body .erps-card-head>.erht-brand,html body .erps-emergency-head>.erht-brand,html body .err-home-radio-head>.erht-brand{margin:0 0 0 auto!important;align-self:center}
html body #erps-farmacia .erht-brand{color:#38432c!important}
html body .erht-tool:not(#erps-farmacia) p{color:var(--erht-muted);font-size:13px;line-height:1.5}
html body .erht-tool .erht-meta{font-size:12px!important;color:var(--erht-muted)!important;margin:8px 0!important}
html body .erht-tool .erht-action,html body .erht-tool:not(#erps-farmacia) :is(.erps-button,.erps-link,.erps2-route-more,.err-home-radio-more,.erps-movie-link){display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 13px!important;border:1px solid var(--erht-line)!important;border-radius:10px!important;background:var(--erht-soft)!important;color:var(--erht-blue)!important;font-size:12px!important;font-weight:750!important;text-decoration:none!important;line-height:1.4;white-space:normal;max-width:100%}
.erht-tool :is(a,button,select):focus-visible,.erht-track:focus-visible{outline:3px solid #297eb6!important;outline-offset:3px}
html body .erht-tool :is(.erht-status,.erps-state,.err-home-radio-live){display:inline-flex!important;align-items:center;max-width:100%;padding:5px 9px!important;border-radius:6px!important;background:#edf1f5!important;color:#35516b!important;font-family:inherit;font-size:10px!important;font-weight:800!important;letter-spacing:.035em;line-height:1.4!important;text-transform:uppercase}
html body .erht-tool .erht-good{background:#e7f3eb!important;color:#216943!important}
html body .erht-tool .erps-exit-warning .erps-state,html body .erht-level-3 .erht-status{background:#fff2c2!important;color:#725500!important}
html body .erht-level-4 .erht-status{background:#ffead6!important;color:#854111!important}
html body .erht-tool .erps-exit-danger .erps-state,html body .erht-level-5 .erht-status{background:#fde8e8!important;color:#a02b35!important}
html body .erht-tool .erps-exit-good .erps-state{background:#e7f3eb!important;color:#216943!important}
html body .erht-tool .erht-track{position:relative;display:flex!important;gap:12px!important;max-width:100%;width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 0 8px!important;-webkit-overflow-scrolling:touch}
.erht-track::-webkit-scrollbar{display:none}
html body .erht-tool .erht-slide{flex:0 0 calc(100% - 22px)!important;min-width:0!important;width:calc(100% - 22px)!important;max-width:none!important;padding:16px!important;border:1px solid var(--erht-line)!important;border-radius:12px!important;background:var(--erht-soft)!important;scroll-snap-align:start;white-space:normal;color:var(--erht-ink)!important}
html body .erht-slide h3{font-size:20px!important;margin:5px 0 12px!important}
html body .erht-slide>strong{display:block;font-size:27px;line-height:1.2;margin:10px 0 16px;overflow-wrap:anywhere}
html body .erht-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0 6px;max-width:100%}
html body .erht-controls>button{display:grid!important;place-items:center;width:44px;height:44px;min-width:44px;padding:0!important;border:1px solid var(--erht-line)!important;border-radius:10px!important;background:#fff!important;color:var(--erht-ink)!important;font-size:23px!important;box-shadow:none!important}
.erht-controls>button:disabled{opacity:.3;cursor:default}
html body .erht-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:0;min-width:0;max-width:220px}
html body .erht-dots>button{position:relative;width:18px;height:44px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.erht-dots>button:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#c3cbd2;left:7px;top:19px}
.erht-dots>button[aria-current=true]:after{background:#24415a;width:7px;height:7px;left:6px;top:18px}
html body .erht-tool [hidden]{display:none!important}
html body #erps-urgencias.erht-tool .erps-emergency-head>span:not(.erht-brand){display:none!important}
html body #erps-rutas.erht-routes-ready>:is(.erps-exits,.erps3-scroll-shell,.erps8-mobile-routes,.erps-valid,.erps2-carousel-hint,.erps3-scroll-hint){display:none!important}
html body #erps-rutas.erht-routes-ready>.erht-track{display:flex!important}
html body #erps-rutas.erht-routes-ready>.erps-actions{display:flex!important;flex-wrap:wrap}
html body .erht-slide .erps-route-number{background:transparent!important;color:#445d73!important;font-size:12px!important;padding:0!important}
html body .erht-slide .erht-note{font-size:12px!important;margin:10px 0!important}
html body .erht-depo-ready>:not(.erps-card-head):not(.erht-match):not(.erht-action):not(.erht-brand){display:none!important}
html body .erht-depo-ready .erht-match{display:block!important;padding:0 0 8px!important;background:transparent!important}
html body .erht-match h3{font-size:clamp(20px,3vw,27px)!important;margin:12px 0!important}
html body .erht-match .erht-score{display:block;font-size:34px;color:#182b40;line-height:1.2}
html body .erht-match .erht-countdown{font-variant-numeric:tabular-nums;color:#263e55!important;font-weight:750;margin:10px 0!important}
html body .erht-cine-ready>.erps-cinema-help,html body .erht-cine-ready>.erps-source{display:none!important}
html body .erht-tool .erht-pets{float:right;width:125px;max-width:45%;margin:0 0 8px 12px;color:#566c79}
.erht-pets svg{display:block;width:100%;height:auto}
html body .erht-cole img{width:100%;height:auto;max-height:260px;object-fit:contain;border-radius:12px;display:block}
.erht-cole-map{display:block}
html body .erht-lines{margin:10px 0 6px;font-weight:800;color:#244a69;font-size:16px}
html body .erht-alerts{display:block;margin:0 0 16px;padding:14px;border:1px solid var(--erht-line);border-radius:12px;background:var(--erht-soft)}
html body .erht-alerts h3{font-size:17px!important;margin:0 0 12px!important}
html body .erht-alert{padding:12px 0;border-bottom:1px solid var(--erht-line)}
html body .erht-alert h4{font-size:20px!important;margin:9px 0 5px!important}
html body #erps-clima.erht-tool .erps4-alert-map{height:190px!important;min-height:190px!important}
html body #erps-radios.erht-tool .err-home-radio-app{background:var(--erht-soft)!important;border:1px solid var(--erht-line)!important;border-radius:12px!important;color:var(--erht-ink)!important}
html body #erps-radios.erht-tool :is(.err-home-radio-kicker,.err-home-radio-copy strong,.err-home-radio-copy span){color:var(--erht-ink)!important}
html body #erps-radios.erht-tool .err-home-radio-play{background:#234d71!important;color:#fff!important;border-radius:10px!important;min-height:44px}
@media(min-width:901px){html body #erps-urgencias .erht-slide{flex-basis:calc(100% - 12px)!important}html body #erps-radios .err-home-radio-app{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px}html body #erps-radios .err-home-radio-select{flex:1;min-width:180px}}
@media(max-width:430px){html body .erht-tool:not(#erps-farmacia){padding:14px!important;border-radius:15px!important}html body .erht-tool:not(#erps-farmacia) h2{font-size:21px!important}html body .erps-card-head>.erht-brand{flex-basis:100%;margin:0!important}.erht-tool img{max-width:100%}html body .erht-slide{padding:13px!important}html body .erht-controls{gap:3px}}
@media(prefers-reduced-motion:reduce){.erht-tool *{scroll-behavior:auto!important}}

html body .erht-tool:not(#erps-farmacia){min-height:0!important}
html body .erht-tool .erps-route-details summary{color:#175b92!important;font-size:12px!important;min-height:44px;padding:12px 0!important}
html body .erht-tool:not(#erps-farmacia) .erps-card-head>div{min-width:0;flex:1}
html body #erps-farmacia.erht-tool{order:0!important}
html body #erps-cine.erht-tool{order:1!important}
html body #erps-deportivo-rincon.erht-tool{order:2!important}
html body #erps-radios.erht-tool{order:3!important}
html body #erps-clima.erht-tool{order:4!important}
html body #erps-urgencias.erht-tool{order:5!important}
html body #erps-rutas.erht-tool{order:6!important}
html body #erps-luz.erht-tool{order:7!important}
html body #erps-servicios-rincon.erht-tool{order:8!important}
html body #erps-transporte.erht-tool{order:9!important}
html body #erps-mascotas.erht-tool{order:10!important}
html body #erps-feriados.erht-tool{order:11!important}
html body #erps-efemerides.erht-tool{order:12!important}
html body #erps-denuncia-drogas.erht-tool{order:13!important}
html body #erps-contacto.erht-tool{order:14!important}
html body .erht-tool:not(#erps-farmacia) .erps-card-head h2{margin:5px 0 0!important}
html body .erht-tool:not(#erps-farmacia) p{margin:8px 0!important}
html body .erht-tool .erht-slide>p:not(.erht-meta):not(.erht-note):not(.erps-route-note){display:none!important}
html body .erht-tool .erht-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .erht-tool .erps-route-details{margin:8px 0!important}
html body .erht-dots{flex-wrap:nowrap!important;flex:1;max-width:none!important}
html body .erht-dots>button{flex:1;min-width:0;width:8px!important}
html body .erht-dots>button:after{left:50%!important;transform:translateX(-50%)}
html body .erht-tool:not(#erps-farmacia) .erps-kicker{color:#596978!important}

/* Pharmacy keeps its original two-item header; branding stays inside each turn. */
html body #erps-farmacia .erps-pharmacy-head>.erht-brand{display:none!important}

@media(max-width:360px){html body #erps-farmacia .erps-pharmacy-head{flex-wrap:wrap!important;gap:8px!important}html body #erps-farmacia .erps-pharmacy-heading{flex:1 1 100%!important;width:100%!important}html body #erps-farmacia .erps-pharmacy-calendar-toggle{margin-left:auto!important}}

/* Cartelera: fotos con proporción natural y fichas compactas. */
html body #erps-cine.erht-tool{container-type:inline-size}
html body #erps-cine.erht-tool .erps-card-head{margin-bottom:12px!important}
html body #erps-cine.erht-tool .erps-card-head>.erht-brand,
html body #erps-cine.erht-tool .erps-movie>.erht-brand{display:none!important}
html body #erps-cine.erht-tool .erps4-cinema-shell{padding:0!important;min-width:0}
html body #erps-cine.erht-tool .erps-cinema-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important;gap:12px!important;align-items:start!important;overflow:visible!important;padding:0!important}
html body #erps-cine.erht-tool .erps-movie{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,3fr)!important;align-items:start!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:10px!important;border:1px solid var(--erht-line)!important;border-radius:12px!important;background:#fff!important;overflow:hidden}
html body #erps-cine.erht-tool .erps-movie-poster{position:relative!important;display:block!important;align-self:start!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;overflow:hidden;text-decoration:none!important}
html body #erps-cine.erht-tool .erps-movie-poster img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:0!important;background:transparent!important}
html body #erps-cine.erht-tool .erps-movie-poster>span{display:grid;place-items:center;aspect-ratio:2/3;background:var(--erht-soft);color:var(--erht-muted);font-size:15px}
html body #erps-cine.erht-tool .erps-movie-badge{position:static!important;display:block!important;margin:0!important;padding:5px 3px!important;border-radius:0!important;background:#fff2c2!important;color:#725500!important;font-size:10px!important;line-height:1.25!important;text-align:center;text-decoration:none!important}
html body #erps-cine.erht-tool .erps-movie-info{display:flex!important;flex-direction:column;gap:0!important;align-items:stretch!important;min-width:0!important;margin:0!important;padding:0!important}
html body #erps-cine.erht-tool .erps-movie h3{margin:0 0 6px!important;font-size:16px!important;line-height:1.2!important;letter-spacing:0!important;overflow-wrap:anywhere;word-break:normal!important}
html body #erps-cine.erht-tool .erps-movie :is(.erps-movie-meta,.erht-rating){margin:0 0 5px!important;font-size:11px!important;line-height:1.35!important}
html body #erps-cine.erht-tool .erps-movie-schedule{display:flex!important;flex-direction:column!important;gap:0!important;width:100%;margin:3px 0 8px!important}
html body #erps-cine.erht-tool .erps-movie-schedule>div{display:flex!important;flex-wrap:wrap;justify-content:space-between;gap:1px 5px!important;padding:5px 0!important;border:0;border-bottom:1px solid #edf0f2;border-radius:0!important;background:transparent!important}
html body #erps-cine.erht-tool .erps-movie-schedule :is(span,strong){font-size:11px!important;line-height:1.35!important;white-space:normal!important}
html body #erps-cine.erht-tool .erps-movie-schedule strong{margin-left:auto;text-align:right;font-variant-numeric:tabular-nums}
html body #erps-cine.erht-tool .erps-movie-link{width:100%;min-height:44px!important;margin:0!important;padding:8px 6px!important;font-size:11px!important;text-align:center}
html body #erps-cine.erht-tool .erps-sale-status{margin:6px 0 0!important;font-size:10px;line-height:1.35}
html body #erps-cine.erht-tool>.erps-actions{margin:12px 0 0!important}
html body #erps-cine.erht-tool .erps4-cinema-arrow,
html body #erps-cine.erht-tool .erps4-cinema-hint{display:none!important}
@media(max-width:900px){
 html body #erps-cine.erht-tool .erps-cinema-grid{display:flex!important;gap:10px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 0 6px!important;align-items:flex-start!important}
 html body #erps-cine.erht-tool .erps-movie{flex:0 0 100%!important;width:100%!important;min-width:0!important;scroll-snap-align:start;scroll-snap-stop:always}
 html body #erps-cine.erht-tool .erps4-cinema-shell{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
 html body #erps-cine.erht-tool .erps4-cinema-arrow{position:static!important;display:grid!important;place-items:center;order:2;transform:none!important;min-width:44px;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:1px solid var(--erht-line)!important;border-radius:10px!important;background:#fff!important;color:var(--erht-ink)!important;box-shadow:none!important;line-height:1!important;font-size:24px!important}
 html body #erps-cine.erht-tool .erps4-cinema-arrow.next{order:4}
 html body #erps-cine.erht-tool .erps4-cinema-hint{display:block!important;order:3;flex:1;min-width:0;margin:0!important;text-align:center;font-size:11px!important;line-height:1.3!important}
 html body #erps-cine.erht-tool .erps4-cinema-hint:before,
 html body #erps-cine.erht-tool .erps4-cinema-hint:after{content:none!important}
 html body #erps-cine.erht-tool .erps4-cinema-shell:has(.erps-movie:only-child) :is(.erps4-cinema-arrow,.erps4-cinema-hint){display:none!important}
 html body #erps-cine.erht-tool .erps4-cinema-shell:not(:has(.erps-movie)) :is(.erps4-cinema-arrow,.erps4-cinema-hint){display:none!important}
}
@container(max-width:240px){
 html body #erps-cine.erht-tool .erps-movie{column-gap:10px!important;row-gap:4px!important}
 html body #erps-cine.erht-tool .erps-movie-info{display:contents!important}
 html body #erps-cine.erht-tool .erps-movie-poster{grid-column:1;grid-row:1/4}
 html body #erps-cine.erht-tool .erps-movie h3{grid-column:2;grid-row:1}
 html body #erps-cine.erht-tool .erps-movie-meta{grid-column:2;grid-row:2}
 html body #erps-cine.erht-tool .erht-rating{grid-column:2;grid-row:3}
 html body #erps-cine.erht-tool :is(.erps-movie-schedule,.erps-movie-link,.erps-sale-status){grid-column:1/-1}
}
