/* Pillan360 10.8.12-D (conservado en E): interfaz táctil y acceso a fuentes oficiales. */
.pillan-tools-wrap { position: relative; }
.pillan-tools-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid rgba(56,189,248,.45); border-radius: .65rem; color: var(--text-main); background: rgba(14,116,144,.12); font-size: .78rem; font-weight: 750; }
.pillan-tools-trigger[aria-expanded="true"] { background: rgba(14,116,144,.28); }
.pillan-tools-panel { position: absolute; z-index: 110; top: calc(100% + .65rem); right: 0; width: min(19rem, calc(100vw - 1rem)); padding: .9rem; border: 1px solid rgba(103,232,249,.42); border-radius: .8rem; background: #102139; color: #e2e8f0; box-shadow: 0 1rem 2.2rem rgba(0,0,0,.42); }
.pillan-tools-panel[hidden] { display: none !important; }
.pillan-tools-panel > strong { display: block; font-size: .82rem; }
.pillan-tools-panel > p { margin: .3rem 0 .7rem; font-size: .73rem; color: #cbd5e1; line-height: 1.45; }
.pillan-tools-panel label { display: flex; align-items: center; gap: .7rem; padding: .6rem; min-height: 2.75rem; border-radius: .5rem; cursor: pointer; font-size: .87rem; }
.pillan-tools-panel label:hover { background: rgba(14,116,144,.18); }
.pillan-tools-panel input { accent-color: #06b6d4; min-width: 1.2rem; min-height: 1.2rem; }
.pillan-tabs-row { display: flex; gap: .3rem; min-width: 0; align-items: stretch; flex: 0 0 auto; }
.pillan-tabs-row #main-tabs { flex: 1 1 0; min-width: 0; }
.pillan-tab-scroll { display: none; align-items: center; justify-content: center; flex: 0 0 2.4rem; height: 2.7rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--panel); color: var(--text-main); }
.pillan-tab-scroll svg { width: 1rem; height: 1rem; }
.hydro-pagination { margin-top: .8rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem; }
.hydro-pagination[hidden] { display: none !important; }
.hydro-pagination button { min-height: 2.65rem; padding: .5rem .85rem; border: 1px solid rgba(34,211,238,.45); border-radius: .6rem; color: #a5f3fc; background: rgba(8,145,178,.15); font-size: .82rem; font-weight: 700; }
.hydro-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.hydro-pagination span { color: var(--text-sub); font-size: .82rem; }
.hydro-source-note { margin-top: .7rem; font-size: .76rem; line-height: 1.55; color: var(--text-sub); }
#hydro-station-result-count { font-size: .78rem; line-height: 1.5; }
#tab-hydro .hydro-filter > span { font-size: .71rem; }
#tab-hydro .hydro-filter input, #tab-hydro .hydro-filter select { min-height: 2.75rem; font-size: .85rem; }
#tab-hydro .hydro-station-option { min-height: 5.4rem; }
#tab-hydro .hydro-station-option-head strong { font-size: .86rem; }
#tab-hydro .hydro-station-option-head b, #tab-hydro .hydro-station-option > small { font-size: .74rem; }
#tab-hydro .hydro-station-sensors span { font-size: .67rem; }
#tab-hydro .hydro-action { min-height: 2.6rem; font-size: .78rem; }
#tab-hydro .hydro-source-link { font-size: .8rem; }
#tab-hydro .hydro-reading strong { overflow-wrap: anywhere; }
#tab-hydro .hydro-station-option-head strong { white-space: normal; overflow-wrap: anywhere; }
#tab-hydro .hydro-station-option > small { white-space: normal; overflow-wrap: anywhere; }
:where(#tab-hydro, #main-header, .pillan-tabs-row) :is(a, button, input, select):focus-visible { outline: 3px solid #22d3ee; outline-offset: 2px; }
body.light-mode .pillan-tools-panel { background: #f8fafc; color: #0f172a; border-color: #0891b2; }
body.light-mode .pillan-tools-panel > p { color: #475569; }
body.light-mode .hydro-pagination button { color: #075985; }
@media(max-width: 900px) { .pillan-tab-scroll { display: inline-flex; } }
@media(max-width: 767px) {
  .pillan-tools-trigger { padding: .45rem; }
  .pillan-tools-trigger span { display: none; }
  #main-header > div > div:last-child { gap: .2rem; }
  .pillan-tools-panel { right: -5rem; }
  #main-header > div > div:last-child .pillan-tools-trigger { width: 2.65rem; height: 2.65rem; }
  #tab-hydro .hydro-reading small, #tab-hydro #hydro-status-message { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .pillan-tabs-row *, #tab-hydro * { scroll-behavior: auto !important; transition-duration: .001ms !important; } }
