:root {
  --top: 24px;
  --bottom: 0px;
  --glass: rgba(18, 28, 48, 0.30);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #FFFFFF;
  --dim: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.45);
  --rain: #7CC4FF;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1B2457; }
body {
  font-family: system-ui, Roboto, "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { display: block; }

/* ---------- Pantalla de inicio ---------- */
/* Mientras dura, solo se ve la foto del tiempo (con lluvia, nieve… animadas) y el logotipo */
#intro {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 8vh; text-align: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(10, 14, 40, .05) 0%, rgba(10, 14, 40, .45) 100%);
  transition: opacity .9s ease;
}
.intro-logo { width: 132px; height: 132px; filter: drop-shadow(0 6px 24px rgba(255, 170, 110, .45)); animation: introIn 1.2s cubic-bezier(.2, .8, .2, 1) both; }
#intro h1 {
  margin: 6px 0 0; font-size: 54px; font-weight: 300; letter-spacing: .14em; text-indent: .14em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); animation: introIn 1.2s .15s cubic-bezier(.2, .8, .2, 1) both;
}
/* Lema (23/11/2026), como en la imagen de presentación: letra de pluma Great Vibes (Google Fonts, licencia SIL OFL 1.1,
   fonts/GreatVibes-OFL.txt; elegida por el usuario entre 15), degradado de rosa a dorado como la nube y el sol del
   logotipo y una sombra violeta oscura un poco desplazada */
@font-face { font-family: 'Great Vibes'; src: url('../fonts/GreatVibes-Regular.ttf') format('truetype'); font-display: block; }
.intro-lema { position: relative; display: inline-block; margin: 0; padding: 0 10px; font-family: 'Great Vibes', cursive; font-size: 40px; line-height: 1.25; }
.lema-txt {
  display: inline-block; padding: 0 4px 6px; /* (margen para la «p» y la «E», que se salen de la caja) */
  background: linear-gradient(90deg, #F6BED2 0%, #FFDE96 100%); /* de rosa a dorado (23/11/2026, a petición del usuario) */ -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1.5px 1.5px 0 rgba(40, 20, 50, .45)) drop-shadow(0 2px 12px rgba(0, 0, 0, .35));
}
/* Se va pintando de izquierda a derecha. (23/11/2026) Antes con clip-path, que se calcula en el hilo principal y se
   entrecortaba mientras la app cargaba la previsión. Ahora es una «ventana» (.lema-ven, con overflow oculto) que entra
   desde la izquierda mientras el texto se mueve lo mismo al revés, así que el texto queda quieto y se va descubriendo.
   Solo se anima transform, que el móvil mueve en otro hilo aunque la app esté ocupada. El borde derecho de la ventana
   está difuminado (máscara), como una pincelada; el margen interior evita que se corten la sombra y los rasgos de la letra. */
.lema-ven {
  display: inline-block; vertical-align: top; overflow: hidden;
  padding: 12px 34px 16px 14px; margin: -12px -34px -16px -14px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  transform: translateX(-100%); will-change: transform;
  animation: lemaVen 1.3s .35s cubic-bezier(.45, .1, .35, 1) forwards;
}
/* (el texto se mueve el ancho de la ventana: el suyo + los 48 px de margen interior de .lema-ven; si no, se desliza un poco) */
.lema-ven > .lema-txt { transform: translateX(calc(100% + 48px)); will-change: transform; animation: lemaVen 1.3s .35s cubic-bezier(.45, .1, .35, 1) forwards; }
@keyframes lemaVen { to { transform: translateX(0); } }
/* Destello de una estrella al llegar a la última «a» de «manera» */
.lema-star {
  position: absolute; right: -12px; top: -8px; width: 56px; height: 56px; opacity: 0; transform: scale(0) rotate(-30deg);
  overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 240, 200, 1)) drop-shadow(0 0 22px rgba(255, 214, 150, .85));
  will-change: transform, opacity;
  /* (23/11/2026) Más grande, con halo y una chispa pequeña, 1,6 s y dos latidos: en el móvil coincidía con el cambio
     de la foto de fondo y casi no se veía */
  animation: lemaDestello 1.6s 1.55s ease-out forwards;
}
@keyframes lemaDestello {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  16% { opacity: 1; transform: scale(1.3) rotate(6deg); }
  32% { opacity: 1; transform: scale(.9) rotate(18deg); }
  52% { opacity: 1; transform: scale(1.15) rotate(30deg); }
  72% { opacity: .9; transform: scale(.95) rotate(40deg); }
  100% { opacity: 0; transform: scale(.2) rotate(70deg); }
}
.lema-star .halo { transform-origin: 20px 20px; animation: lemaHalo 1.6s 1.55s ease-out both; }
@keyframes lemaHalo { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: .9; transform: scale(1.1); } 60% { opacity: .6; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .lema-ven, .lema-ven > .lema-txt { animation: none; transform: none; } .lema-star { display: none; } }
/* (24/11/2026) Si ya se abrió hoy (index.html pone lema-quieto): el lema ya escrito, sin escritura ni estrella */
#intro.lema-quieto .lema-ven, #intro.lema-quieto .lema-ven > .lema-txt { animation: none; transform: none; }
#intro.lema-quieto .lema-star { display: none; }
@keyframes introIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
/* Frase al abrir (02/12/2026): debajo del lema; entra cuando el lema ya está escrito (o enseguida si ya estaba quieto) */
/* (02/12/2026, petición del usuario) bastante más abajo, cerca del pie de la pantalla */
.intro-frase { position: absolute; left: 0; right: 0; bottom: calc(11vh + env(safe-area-inset-bottom, 0px)); max-width: min(86vw, 420px); margin: 0 auto; font-size: 16px; line-height: 1.4; font-style: italic; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55); animation: introIn 1s 1.7s cubic-bezier(.2, .8, .2, 1) both; }
.intro-frase[hidden] { display: none; }
.intro-frase { pointer-events: auto; cursor: pointer; padding: 8px 0; } /* (tocarla lleva a sus ajustes; el resto de la pantalla de inicio no recoge toques) */
.intro-frase .frase-a { display: block; margin-top: 6px; font-size: 12.5px; font-style: normal; color: rgba(255, 255, 255, .7); }
#intro.lema-quieto .intro-frase { animation-delay: .35s; }
body.intro #top, body.intro #scroller, body.intro #tabs { opacity: 0; }
#scroller, #tabs { transition: opacity .9s ease .2s; }
#top { transition: background .3s, backdrop-filter .3s, opacity .9s ease .2s !important; }
body:not(.intro) #intro { opacity: 0; }

/* ---------- Fondo ---------- */
#bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.bg-layer {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  /* A saltos de medio segundo (pasos de ~0,1 px, no se notan): moverla a 60 fotogramas obligaba a volver a difuminar
     todas las tarjetas de cristal en cada uno y era lo que más batería gastaba con la app abierta */
  animation: drift 48s steps(96) infinite alternate;
  will-change: transform, opacity;
}
.bg-layer.on { opacity: 1; }
@keyframes drift {
  from { transform: scale(1.02) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.10) translate3d(1.2%, -1%, 0); }
}
#shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, calc(var(--dim-top, 0.30))) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(0deg, rgba(5, 10, 22, 0.55) 0%, rgba(5, 10, 22, 0) 55%),
    rgba(5, 12, 26, var(--dim-all, 0.12));
  transition: background 1s;
}
#fx { position: absolute; inset: 0; pointer-events: none; }
#fog-fx, #fx, #flash, #shade { z-index: 2; }
#flash { position: absolute; inset: 0; background: #E9F0FF; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
#flash.go { animation: flash 1.1s ease-out; }
@keyframes flash {
  0% { opacity: 0; } 4% { opacity: .55; } 9% { opacity: .08; } 14% { opacity: .42; } 30% { opacity: .05; } 100% { opacity: 0; }
}
#fog-fx { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s; pointer-events: none; }
#fog-fx.on { opacity: 1; }
#fog-fx i {
  position: absolute; left: -50%; width: 200%; height: 55%;
  background: radial-gradient(ellipse at center, rgba(235, 240, 245, .30) 0%, rgba(235, 240, 245, 0) 65%);
  animation: fogmove 38s steps(228) infinite alternate; /* ~6 por segundo: la niebla difusa no necesita más */
}
#fog-fx i:nth-child(1) { top: 20%; }
#fog-fx i:nth-child(2) { top: 55%; animation-duration: 52s; animation-timing-function: steps(312); animation-direction: alternate-reverse; }
@keyframes fogmove { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

/* ---------- Barra superior ---------- */
#top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 5;
  padding: calc(var(--top) + 6px) 10px 8px;
  display: flex; align-items: center; gap: 6px;
  transition: background .3s, backdrop-filter .3s;
}
#top.solid { background: rgba(10, 18, 34, 0.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.icon-btn:active { background: rgba(255, 255, 255, .15); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
#btnSettings svg { fill: #fff; stroke: none; }
#topTitle { flex: 1; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; min-width: 0; }
#top.solid #topTitle, body.nohero #topTitle { opacity: 1; transform: none; }
body.nohero #top { background: rgba(10, 18, 34, 0.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#btnHelp span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; }
#topName { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topMini { font-size: 13px; color: var(--dim); }

/* ---------- Contenido ---------- */
#scroller {
  position: fixed; inset: 0; z-index: 2;
  overflow-y: auto; overflow-x: hidden;
  padding: calc(var(--top) + 56px) 16px calc(var(--bottom) + 24px);
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#scroller::-webkit-scrollbar { display: none; }

/* Cabecera compacta (08/11/2026): antes ~400 px en vertical, ahora ~170; solo en «Hoy» y «Días» (body.nohero en las demás) */
#hero { text-align: center; padding: 4px 0 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.nohero #hero { display: none; }
#hero { position: relative; }
.hero-share { position: absolute; right: 12px; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.hero-share svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.hero-share:active { background: rgba(255, 255, 255, .25); }
.hero-share.busy { opacity: .5; pointer-events: none; }
/* Margen a los dos lados para no meterse debajo del botón de compartir (fijo a la derecha, 50 px); centrado igual.
   (21/11/2026: con «Santa Cruz de Tenerife · La Laguna» el barrio quedaba debajo del botón) */
.hero-place { display: flex; justify-content: center; align-items: baseline; gap: 8px; flex-wrap: nowrap; padding: 0 52px; }
/* En una línea: si no cabe, se acorta antes el barrio y luego el nombre, con «…» (21/11/2026: con el margen, la 📍 bajaba
   a otra línea en «Cartagena · Casco Antiguo» y empujaba toda la pantalla) */
#placeName { min-width: 0; flex: 0 0 auto; max-width: 100%; }
#placeText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#placeSub { min-width: 0; flex: 0 100 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gpsMap, #gpsIcon { flex-shrink: 0; }
/* Cargando otro sitio: las tarjetas, aún del anterior, atenuadas (js/app.js show) */
body.fc-wait .tab .card { opacity: .3; transition: opacity .2s; }
#placeName { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 500; letter-spacing: .2px; }
#gpsIcon { width: 14px; height: 14px; fill: #fff; transform: rotate(45deg); display: none; }
#placeName.gps #gpsIcon { display: block; }
#placeSub { font-size: 15px; opacity: .8; }
#placeSub::before { content: '· '; }
#gpsMap { font-size: 17px; line-height: 1; text-decoration: none; padding: 6px 4px; margin: -6px 0; }
#gpsMap[hidden] { display: none; }
/* «buscando ubicación…» o «ubicación de hace 25 min» en vez del barrio; la chincheta late mientras busca (22/11/2026) */
#placeSub.note { font-style: italic; font-size: 14px; }
body.gps-busy #gpsMap { animation: gpsBusy 1s ease-in-out infinite alternate; }
@keyframes gpsBusy { from { opacity: 1; } to { opacity: .3; } }
#dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; min-height: 6px; }
#dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
#dots i.on { background: #fff; }
.hero-main { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 6px; }
#temp { font-size: 88px; font-weight: 200; line-height: 1; letter-spacing: -3px; display: inline-flex; flex: none; }
#temp .deg { font-size: 64px; margin-left: 2px; letter-spacing: 0; }
.hero-info { text-align: left; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); }
#cond { font-size: 20px; font-weight: 500; }
#hilo { font-size: 16px; margin-top: 4px; color: var(--text); }
#feels { font-size: 14.5px; margin-top: 2px; color: var(--dim); }

#notice {
  margin: -12px 0 14px; padding: 10px 14px; border-radius: 14px; font-size: 14px;
  background: rgba(255, 170, 60, .22); border: 1px solid rgba(255, 190, 90, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Aviso de ubicación aproximada (22/11/2026) */
#precNote {
  margin: -6px 0 14px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4;
  background: rgba(255, 170, 60, .22); border: 1px solid rgba(255, 190, 90, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
#precNote .pn-btns { display: flex; gap: 8px; margin-top: 8px; }
#precOn { flex: 1; padding: 8px 12px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; color: #1b1b1b; background: #ffc46b; }
#precOff { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); font: inherit; color: inherit; background: transparent; }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  margin-bottom: 14px;
  overflow: hidden;
}
/* Tarjeta remota (config.json → tarjetas, 22/11/2026): info azul, aviso naranja, noticia neutra */
.rcard.info { border-color: rgba(122, 184, 255, .45); }
.rcard.aviso { border-color: rgba(255, 181, 71, .6); background: linear-gradient(rgba(255, 181, 71, .12), rgba(255, 181, 71, .12)), var(--glass); }
.rc-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px 16px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); }
.rc-ico { font-size: 16px; letter-spacing: 0; }
.rc-tit { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rc-x { flex: none; background: none; border: 0; color: #fff; opacity: .7; font-size: 15px; padding: 4px 6px; }
.rc-body { padding: 4px 16px 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.rc-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.rc-link small { color: var(--dim); font-size: 12px; }
.card-head { padding: 14px 16px 10px; font-size: 15px; line-height: 1.35; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.card-title {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px 8px;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--dim);
}
.card-title svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Compartir la tarjeta (15/11/2026): icono pequeño antes de la flecha de plegar; plegada no sale */
.card-share { margin: -8px 0 -8px auto; width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.card-share:active { background: rgba(255, 255, 255, .15); }
.card-title .card-share svg { width: 16px; height: 16px; stroke-width: 1.8; }
.card:not(.folded) > .card-title .card-share + .chev { margin-left: 8px; }
.card.folded .card-share { display: none; }
/* Mientras se captura una tarjeta: sin barra de arriba, barra de pestañas ni botones de compartir */
body.capturing #top, body.capturing #tabs, body.capturing #ptr, body.capturing .card-share, body.capturing .hero-share { visibility: hidden !important; }

/* Horas */
.hscroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
#hourly { padding: 12px 0 12px; }
.hrow { position: relative; display: flex; }
.hitem { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; }
.hitem .h { font-size: 14px; font-weight: 500; height: 20px; }
.hitem.now .h { font-weight: 700; }
.hitem .wx { margin: 4px 0 2px; }
.hitem .p { font-size: 11.5px; color: var(--rain); font-weight: 600; height: 16px; margin-top: 2px; }
.hitem.sun .h { color: #FFD27A; }
.hitem.sun .lbl { font-size: 12px; color: #FFD27A; margin-top: 46px; font-weight: 600; }
.hcurve { display: block; margin: 2px 0; }
.hgrid .hrow { align-items: center; }
/* Nombres de las filas (23/11/2026): van en una columna quieta (#hourlyLabs) encima de la tabla, y la tabla se borra con
   una máscara al llegar a esa columna; así lo que se desliza ya no se ve a través de los nombres. Dentro de cada fila
   queda un hueco invisible del mismo ancho (.hgrid .hlab). Las alturas las copia hourlyLabs() en app.js. */
.hwrap { position: relative; }
#hourly { -webkit-mask-image: linear-gradient(to right, transparent 64px, #000 68px); mask-image: linear-gradient(to right, transparent 64px, #000 68px); }
.hgrid .hlab { width: 64px; flex: none; align-self: stretch; visibility: hidden; }
.hlabs { position: absolute; left: 0; top: 0; width: 64px; pointer-events: none; }
.hlabs .hlab {
  position: absolute; left: 0; width: 64px;
  display: flex; flex-direction: column; justify-content: center; padding-left: 6px; /* (24/11/2026: de 12 a 6 px, para que «Sensación» y «Humedad» no rocen la raya de la derecha) */
  font-size: 11px; font-weight: 600; color: var(--dim);
  /* Transparente como las demás columnas (23/11/2026, a petición del usuario): la máscara de #hourly ya borra lo que se
     desliza antes de llegar aquí, así que no hace falta el cristal esmerilado. Solo una raya fina de separación. */
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.hlab small { font-size: 9.5px; font-weight: 400; color: var(--faint); }
.hdet { border-top: 1px solid rgba(255, 255, 255, .07); }
.hcell { width: 58px; flex: none; height: 30px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 13px; }
.hcell.first-blk { border-left: 1px dashed rgba(255, 255, 255, .35); }
.hcell .strong { color: #FFB547; font-weight: 700; }
.harr { width: 13px; height: 13px; color: #9ACFFF; flex: none; }
.uvb { min-width: 20px; padding: 1px 4px; border-radius: 6px; font-size: 12px; font-weight: 700; text-align: center; color: #10131a; }
.uvb.uv1 { background: #3DD68C; } .uvb.uv2 { background: #F5E14B; } .uvb.uv3 { background: #FF9F43; } .uvb.uv4 { background: #FF4F5E; color: #fff; } .uvb.uv5 { background: #B06BFF; color: #fff; }
.hitem .hd { font-size: 10.5px; color: #9ACFFF; font-weight: 700; height: 13px; text-transform: uppercase; letter-spacing: .3px; }
.hitem .pm { font-size: 10.5px; color: var(--faint); height: 14px; }
.hitem.blk .h { color: var(--dim); }
.hitem.first-blk { border-left: 1px dashed rgba(255, 255, 255, .35); }
.drow .dp small { display: block; font-size: 10.5px; color: var(--faint); font-weight: 500; }

/* Fin de semana */
#weekend { padding: 0 16px 8px; }
.wverdict { font-size: 15px; padding: 2px 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.wday { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.wday:last-child { border-bottom: 0; }
.whead { display: flex; align-items: center; gap: 10px; }
.wtxt { flex: 1; min-width: 0; }
.wn { font-size: 17px; font-weight: 600; }
.wn small { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.wc { font-size: 13.5px; color: var(--dim); }
.wt b { font-size: 22px; font-weight: 500; }
.wt span { font-size: 16px; color: var(--dim); }
.wday .dparts { margin: 10px 0 6px; }
.wmeta { font-size: 12.5px; color: var(--dim); }
.hcurve text { fill: #fff; font-size: 15px; font-weight: 500; text-anchor: middle; }

/* Días */
#daily { padding: 0 16px 6px; }
.drow {
  display: grid; grid-template-columns: 74px 34px 44px 38px 1fr 38px; align-items: center;
  height: 52px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px;
}
.drow:first-child { border-top: 0; }
.drow .dn { font-weight: 500; }
.drow .dn small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.drow .dp { font-size: 11.5px; color: var(--rain); font-weight: 600; text-align: left; }
.drow .lo { color: var(--dim); text-align: right; padding-right: 8px; }
.drow .hi { text-align: left; padding-left: 8px; font-weight: 500; }
/* Primeros 4 días: madrugada, mañana, tarde y noche */
.dparts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0 0 10px; }
.dpt { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 5px 2px 4px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dparts.norain .dpr { display: none; }
.dpt.past { opacity: .45; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); border: 1px dashed transparent; }
.dpx { flex: 1; display: grid; place-items: center; font-size: 11px; color: var(--faint); padding-top: 4px; }
.dpn { font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.15; }
.dpn small { display: block; font-size: 10px; color: var(--faint); }
.dpT { font-size: 14px; font-weight: 500; white-space: nowrap; }
.dpr { font-size: 11px; color: var(--rain); font-weight: 600; min-height: 14px; white-space: nowrap; }
.dpr small { font-size: 10px; font-weight: 500; color: var(--faint); }
.dpw { display: flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.dpw.strong, .dpg { color: #FFB547; }
.dpg { font-size: 10.5px; }
.dparts-src { padding: 2px 0 8px !important; }
.bar { position: relative; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .22); }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.bar b { position: absolute; top: -2.5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 0, 0, .35); }

/* Pestañas */
/* Pestañas: barra fija abajo con iconos, siempre visible */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; gap: 4px; padding: 6px 8px calc(var(--bottom) + 6px);
  background: rgba(10, 18, 34, .78); border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
/* Si no caben los iconos, la barra se desplaza en horizontal */
#tabs { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
#tabs::-webkit-scrollbar { display: none; }
#tabs button { min-width: 64px; scroll-snap-align: start; }
/* Flechas «hay más pestañas»: encima de los bordes de la barra, con un degradado hacia el fondo de la barra */
.tabs-more {
  position: fixed; bottom: calc(var(--bottom) + 6px); z-index: 7; width: 24px; height: 54px;
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .55); padding: 0;
}
.tabs-more[hidden] { display: none; }
.tabs-more.right { right: 0; justify-content: flex-end; padding-right: 2px; background: linear-gradient(90deg, rgba(10, 18, 34, 0), rgba(10, 18, 34, .85)); }
.tabs-more.left { left: 0; justify-content: flex-start; padding-left: 2px; background: linear-gradient(270deg, rgba(10, 18, 34, 0), rgba(10, 18, 34, .85)); }
.tabs-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.intro .tabs-more, body.wx-fs .tabs-more { visibility: hidden; }
/* Se esconde sola hacia abajo al rato de no desplazar la página y vuelve al desplazar (tabsAutoHide) */
#tabs, .tabs-more { transition: transform .3s ease, opacity .9s ease .2s; }
body.tabs-off #tabs, body.tabs-off .tabs-more { transform: translateY(calc(100% + var(--bottom) + 8px)); }
/* Con 3 botones de navegación, una franja con el fondo de la barra queda siempre detrás de ellos: al esconderse la barra
   de pestañas los botones quedaban sueltos encima del contenido (Android 16, 26/11/2026). Va debajo de la barra (z 5). */
body.nav3::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom); z-index: 5; pointer-events: none;
  background: rgba(10, 18, 34, .78); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
body.nav3.intro::after, body.nav3.wx-fs::after { display: none; }
.user-hidden { display: none !important; }
/* ---------- Aviso especial de AEMET y borrascas con nombre ---------- */
#avisoEsp { margin: 0 0 12px; }
#avisoEsp[hidden] { display: none; }
.esp { position: relative; padding: 12px 40px 12px 14px; border-radius: var(--radius); background: rgba(150, 30, 30, .35); border: 1px solid rgba(255, 110, 90, .65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.esp + .esp { margin-top: 10px; }
.esp-h { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #FFB4A8; }
.esp-t { font-size: 16px; font-weight: 700; margin: 3px 0 4px; line-height: 1.3; }
.esp-m { font-size: 13.5px; line-height: 1.4; color: #FFE1DA; }
.esp-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.esp-b button { padding: 6px 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 13px; }
.esp-b small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.esp-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: #fff; opacity: .75; font-size: 15px; }
#espBody h3 { font-size: 15.5px; margin: 0 0 4px; }
#espBody .esp-sec { margin: 12px 0 0; }
#espBody .esp-sec b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); margin-bottom: 2px; }
#espBody p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
#espBody .act-cfg { display: block; text-align: center; margin-top: 8px; }
/* Nombre de la borrasca sobre los mapas (sin colocarla en un punto: AEMET no publica dónde está) */
.storm-pill { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 110px); padding: 5px 11px; border-radius: 14px;
  border: 1px solid rgba(255, 140, 120, .7); background: rgba(90, 20, 20, .78); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storm-pill[hidden] { display: none; }
#wxFs .storm-pill { top: 48px; }

/* ---------- Novedades de la versión (#novSheet) ---------- */
.nov-sec { margin: 0 0 14px; }
.nov-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15.5px; }
.nov-sec h3 span { font-size: 18px; line-height: 1; }
.nov-sec ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--dim); }
.nov-sec li + li { margin-top: 3px; }
#novSheet > .act-cfg { width: 100%; margin-top: 4px; }
/* ---------- Configuración remota ---------- */
.remote-hidden { display: none !important; }
/* Funciones nuevas que aún no están encendidas (config.json «activar», 30/11/2026) */
.feat-off { display: none !important; }
#remoteBar { margin: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
#remoteBar[hidden] { display: none; }
.rbar { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4;
  background: rgba(124, 196, 255, .16); border: 1px solid rgba(124, 196, 255, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rbar.aviso { background: rgba(255, 181, 71, .16); border-color: rgba(255, 181, 71, .5); }
.rbar-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rbar .linkbtn, .remote-note .linkbtn { background: none; border: 0; padding: 0; color: #9ACFFF; text-decoration: underline; font: inherit; }
.rbar-nov { margin: 4px 0 8px; padding-left: 18px; }
.rbar-nov li + li { margin-top: 2px; }
.rbar-play { background: #2F7FD8; color: #fff; border: 0; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; }
.rbar-x { flex: none; background: none; border: 0; color: #fff; opacity: .7; font-size: 15px; padding: 0 2px; line-height: 1.3; }
.remote-note { margin: 0 12px 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; background: rgba(255, 181, 71, .14); border: 1px solid rgba(255, 181, 71, .4); }
.card.remote-off > .card-body { display: none !important; }
.remote-block { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(180deg, #0b1524, #16223F); }
.remote-block[hidden] { display: none; }
.rblock-box { max-width: 360px; text-align: center; }
.rblock-box .act-cfg[hidden] { display: none; }
.rblock-box .act-cfg + .act-cfg { margin-top: 10px; }
.rblock-box svg { display: block; margin: 0 auto; width: 64px; height: 64px; fill: none; stroke: #9ACFFF; stroke-width: 1.6; stroke-linejoin: round; }
.rblock-box h2 { font-size: 21px; margin: 12px 0 8px; }
.rblock-box p { font-size: 15px; line-height: 1.5; color: var(--dim); margin: 0 0 18px; white-space: pre-line; }
.rblock-box .act-cfg { width: 100%; }
body.rblocked #tabs { visibility: hidden; }
#tabs button {
  flex: 1 0 auto; height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--dim);
}
#tabs button:active { background: rgba(255, 255, 255, .08); }
#tabs button[hidden] { display: none; }
#tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#tabs button.on { color: #7CC4FF; }
#scroller { padding-bottom: calc(var(--bottom) + 92px) !important; }
.tab { animation: tabIn .25s ease-out; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } }

/* (24/11/2026) Al bajar a una tarjeta con scrollIntoView (avisos de la casa, Mi casa, cámaras…), deja libre el alto
   de la barra de arriba (--topbar lo mide app.js, setInsets); antes el principio de la tarjeta quedaba tapado */
.card { scroll-margin-top: calc(var(--topbar, 110px) + 10px); }

/* Tarjetas plegables */
button.card-title { width: 100%; text-align: left; }
.card-title .chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
/* Botón de orden en la cabecera (surf, setas, cumbres, esquí, barrancos): a la izquierda de la flecha de plegar */
.card.has-ord { position: relative; }
.card.has-ord > .card-title { padding-right: 116px; }
/* (la flecha de plegar sigue a la derecha del todo, como en las demás tarjetas; el botón, a su izquierda) */
.card.has-ord > .card-title .chev { position: absolute; right: 18px; top: 18px; margin: 0; }
.ord-btn { position: absolute; top: 7px; right: 38px; height: 26px; padding: 0 9px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 24px; }
.ord-btn:active { background: rgba(255, 255, 255, .22); }
.ord-btn[hidden], .card.folded .ord-btn { display: none; }
.chip.pk-n2 { background: rgba(61, 214, 140, .2); color: #9FF0C4; }
.chip.pk-n1 { background: rgba(255, 181, 71, .2); color: #FFD08A; }
.chip.pk-n0 { background: rgba(255, 99, 99, .2); color: #FFB0B0; }
.card.folded .chev { transform: rotate(-45deg); }
.card.folded .card-body { display: none; }
.card.folded > .card-title { padding-bottom: 13px; }

/* Mosaicos de detalle (dentro de su tarjeta) */
#tiles, #sky, #miniPick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
/* Mini tarjetas: quitar y poner manteniendo pulsado (15/11/2026) */
#tiles .tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: relative; }
#tiles.mini-editing .tile[data-mini] { animation: miniWiggle .35s ease-in-out infinite alternate; }
#tiles.mini-editing .tile[data-mini]:nth-child(even) { animation-delay: -.17s; }
@keyframes miniWiggle { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }
.mini-x { position: absolute; top: -6px; left: -6px; width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0;
  background: #FF4F5E; color: #fff; font-size: 20px; line-height: 26px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.4); z-index: 2; }
.mini-add { min-height: 150px; border: 2px dashed rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); color: var(--dim);
  align-items: center; justify-content: center; gap: 4px; font: inherit; padding: 12px; }
.mini-add b { font-size: 44px; font-weight: 300; line-height: 1; color: #fff; }
.mini-add small { font-size: 14px; }
.mini-done { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--dim); }
.mini-done span { flex: 1; }
.mini-done button { border: 0; border-radius: 18px; padding: 8px 18px; background: #fff; color: #10203a; font: inherit; font-weight: 600; }
.mini-pick { cursor: pointer; }
#miniPick:empty::after { content: 'No hay ninguna quitada.'; grid-column: 1 / -1; color: var(--dim); padding: 8px 0; }
@media (prefers-reduced-motion: reduce) { #tiles.mini-editing .tile[data-mini] { animation: none; } }
#tiles.mini-editing .tile[data-mini] { touch-action: none; }
#tiles.mini-dragging .tile[data-mini] { animation: none; }
/* Arrastrar para ordenar (mini tarjetas y tarjetas grandes) */
/* Mientras se arrastra, sin desenfoque de cristal (es lo que más cuesta al moverse la pantalla) y la niebla quieta */
.tab.reordering > .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 32, 52, .82); }
body.drag-sorting #fog-fx { animation-play-state: paused; }
body.drag-sorting #fog-fx * { animation-play-state: paused; }
.dragging { will-change: transform; }
.dragging { position: relative; z-index: 20; animation: none !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); outline: 2px solid rgba(255, 255, 255, .55); }
.tab > .card > .card-title { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tab.reordering > .card .card-body, .tab.reordering > .card > :not(.card-title) { display: none; }
.tab.reordering > .card > .card-title { padding-bottom: 13px; }
.tab.reordering > .card { margin-bottom: 8px; }
.tile { margin: 0; min-height: 150px; padding: 0 12px 12px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .07); border-radius: 16px; }
.moon-tile { min-height: 0; }
.moonwrap { display: flex; align-items: center; gap: 14px; }
.moonwrap .moonpic { margin: 0; }
.moonrows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: 13.5px; }
.moonrows div { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 6px; }
.moonrows span { color: var(--dim); }
.moonrows b { font-weight: 500; }
.tile .card-title { padding: 13px 0 8px; }
.tile .big { font-size: 30px; font-weight: 400; line-height: 1.1; }
.tile .sub { font-size: 13.5px; color: var(--dim); margin-top: auto; line-height: 1.35; padding-top: 8px; }
.tile .mid { font-size: 15px; margin-top: 4px; }
.tile.wide { grid-column: 1 / -1; }
.uvbar { position: relative; height: 6px; border-radius: 3px; margin: 12px 0 2px;
  background: linear-gradient(90deg, #3DD68C, #F5E14B 30%, #FF9F43 55%, #FF4F5E 75%, #B06BFF); }
.uvbar b { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 0, 0, .35); }
.compass { width: 108px; height: 108px; margin: 0 auto; }
.compass text { fill: var(--dim); font-size: 11px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.compass .val { fill: #fff; font-size: 20px; font-weight: 500; }
.compass .unit { fill: var(--dim); font-size: 10px; font-weight: 500; }
.sunarc { width: 100%; height: 70px; margin-top: 4px; }
.cloudbars { display: grid; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.cloudbars div { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 6px; }
.cloudbars span.b { height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .22); position: relative; overflow: hidden; }
.cloudbars span.b i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .8); border-radius: 3px; }
.cloudbars span:last-child { text-align: right; }
.pk-maps { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.pk-maps .act-cfg { flex: 1 1 auto; margin: 0; }
/* Peligro de aludes (boletín de AEMET) */
.pk-av { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; font-size: 13px; }
.pk-avn { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #111; }
.pk-avs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--dim); }
.pk-avs span.on { color: #fff; font-weight: 600; }
.pk-avs i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
/* Alertas: aviso de ahorro de batería */
.al-batt { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.45; }
.al-batt.warn { background: rgba(255, 196, 70, .13); border: 1px solid rgba(255, 196, 70, .4); }
.al-batt p { margin: 6px 0; }
.al-batt .al-steps { color: var(--dim); }
.al-batt summary { cursor: pointer; font-weight: 600; }
.al-batt .act-cfg { margin: 6px 0 4px; }
.al-batt small { display: block; color: var(--dim); font-size: 11.5px; }
/* Mapa del cielo apuntando al cielo: ajuste con una estrella */
.sky-ar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 12px 0; font-size: 12.5px; color: var(--dim); }
.sky-ar[hidden] { display: none; }
.sky-ar .chip.on { background: rgba(255, 210, 122, .25); border-color: rgba(255, 210, 122, .6); color: #fff; }
.hu-sub .linkbtn { background: none; border: 0; padding: 0; color: var(--accent, #9ACFFF); text-decoration: underline; font: inherit; }
.sky-ar .linkbtn { background: none; border: 0; padding: 0; color: #9ACFFF; text-decoration: underline; font: inherit; }
/* Qué ponerse */
#ropa { padding: 0 14px 12px; }
.rp-say { font-size: 15px; line-height: 1.5; }
.rp-extra { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 2px; font-size: 13.5px; }
.rp-extra span { background: rgba(0, 0, 0, .16); border-radius: 10px; padding: 7px 10px; }
.rp-per { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.rp-per span { text-align: center; background: rgba(0, 0, 0, .12); border-radius: 10px; padding: 6px 4px; font-size: 14px; font-weight: 600; }
.rp-per small { display: block; font-size: 11px; font-weight: 400; color: var(--dim); text-transform: capitalize; }
/* Medido hoy (estaciones de Euskalmet) */
/* Fiabilidad de cada día en «Días» (15/11/2026, js/fiable.js) */
.fi { display: inline-flex; gap: 2px; margin-left: 4px; padding: 5px 4px; margin: -5px -4px -5px 1px; vertical-align: middle; cursor: pointer; }
.fi b { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.fi.lv3 b { background: #7BE3A0; }
.fi.lv2 b:nth-child(-n+2) { background: #FFD36E; }
.fi.lv1 b:first-child { background: #FF9478; }
.fi-src .fi { padding: 0; margin: 0 1px; cursor: default; }
/* «Puntos y palabra»: la palabra en una tercera línea bajo la fecha (la fila crece un poco) */
.drow.fi-tx { height: 64px; }
.drow .dn small.fi-w { font-size: 11px; font-weight: 600; margin-top: 1px; cursor: pointer; white-space: nowrap; }
.drow .dn small.fi-w.lv3 { color: #7BE3A0; } .drow .dn small.fi-w.lv2 { color: #FFD36E; } .drow .dn small.fi-w.lv1 { color: #FF9478; }
.fi-why { margin: 0 0 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.45; }
.fi-why b.lv3 { color: #7BE3A0; } .fi-why b.lv2 { color: #FFD36E; } .fi-why b.lv1 { color: #FF9478; }
.fi-why table { width: 100%; margin-top: 6px; font-size: 12.5px; border-collapse: collapse; }
.fi-why td { padding: 2px 0; } .fi-why td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fi-why small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--faint); }

/* Buscar sol cerca (15/11/2026, js/sol.js) */
#sol { padding: 0 16px 10px; }
.sol-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; align-items: center; }
.sol-chips .chip { padding: 5px 9px; border-radius: 15px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: inherit; font: inherit; font-size: 12.5px; }
.sol-chips .chip small { opacity: .65; font-size: 10.5px; }
.sol-chips .chip.on { background: rgba(124, 196, 255, .22); border-color: #7CC4FF; color: #CFE8FF; font-weight: 600; }
.sol-sep { width: 8px; }
.sol-go { display: block; width: 100%; margin: 6px 0 4px; }
.sol-msg { font-size: 13.5px; color: var(--dim); padding: 8px 2px; line-height: 1.4; }
.sol-mapbox { position: relative; overflow: hidden; border-radius: 14px; margin: 4px 0 6px; }
.sol-mapin { position: relative; will-change: transform; }
#solMap { display: block; width: 100%; height: 320px; }
.sol-icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sol-ico { position: absolute; transform: translate(-50%, -50%); line-height: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.sol-ico.top { z-index: 2; }
.sol-ico.on { z-index: 4; }
.sol-ico.on::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #FFD36E; background: rgba(255, 211, 110, .18); }
.sol-badge { position: absolute; left: -5px; top: -4px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; background: #FFD36E; color: #1b1400; font: 700 11px/17px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 1.5px #16233a; }
.sol-badge.home { background: #fff; }
.sol-tag { position: absolute; z-index: 5; transform: translate(-50%, -100%); max-width: 170px; padding: 5px 9px; border-radius: 10px; background: rgba(14, 22, 40, .92); border: 1px solid rgba(255, 211, 110, .6); text-align: center; line-height: 1.25; white-space: nowrap; }
.sol-tag.down { transform: translate(-50%, 0); }
.sol-tag b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sol-tag small { display: block; font-size: 11px; color: var(--dim); }
.sol-mapbox .wx-reset { z-index: 6; }
#solFs { position: fixed; inset: 0; z-index: 20; background: #0b1524; display: flex; flex-direction: column;
  padding: calc(var(--top) + 6px) env(safe-area-inset-right) calc(var(--bottom) + 6px) env(safe-area-inset-left); }
#solFs[hidden] { display: none; }
#solFs .sol-mapbox { flex: 1; min-height: 0; margin: 0; border-radius: 0; }
#solFs .sol-mapin { height: 100%; }
#solFs #solMap { height: 100%; }
#solFs .sol-leg { padding: 8px 12px 0; margin: 0; }
.sol-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.sol-leg span { display: inline-flex; align-items: center; gap: 3px; }
.sol-hint { font-size: 11.5px; color: var(--dim); opacity: .8; margin-bottom: 4px; }
.sol-row { cursor: pointer; border-radius: 10px; }
.sol-row.on { background: rgba(255, 211, 110, .1); box-shadow: inset 3px 0 0 #FFD36E; padding-left: 7px; }
.sol-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.sol-row.home { opacity: .8; }
.sol-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 211, 110, .2); color: #FFD36E; }
.sol-row.home .sol-n { background: rgba(255, 255, 255, .1); color: #fff; }
.sol-name { flex: 1; min-width: 0; }
.sol-name b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sol-name small, .sol-v small { display: block; font-size: 12px; color: var(--dim); }
.sol-v { text-align: right; font-size: 13px; white-space: nowrap; }
.sol-v b { font-size: 14px; }

/* Mis planes (15/11/2026) */
#misPlanes { padding: 0 16px 10px; }
.mp-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mp-row:first-child { border-top: 0; }
.mp-d { width: 40px; flex: none; text-align: center; line-height: 1.1; }
.mp-d small { display: block; font-size: 11px; text-transform: uppercase; color: var(--dim); }
.mp-d b { font-size: 21px; }
.mp-t { flex: 1; min-width: 0; }
.mp-t > b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-t > small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 1px; }
.mp-rel { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.mp-rel .fi { margin: 0 3px 0 0; padding: 0; }
.mp-rel.lv3 { color: #7BE3A0; } .mp-rel.lv2 { color: #FFD36E; } .mp-rel.lv1 { color: #FF9478; }
.mp-chg { display: block; width: fit-content; margin-top: 4px; font-size: 11.5px; padding: 2px 7px; border-radius: 8px; background: rgba(255, 148, 120, .16); color: #FFB39E; }
.mp-w { text-align: right; min-width: 52px; }
.mp-w b { display: block; font-size: 17px; }
.mp-w small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.mp-del { flex: none; background: none; border: 0; color: var(--faint); font-size: 14px; padding: 6px 2px 6px 6px; }
.mp-row.confirm .mp-del { color: #FF9478; font-weight: 600; font-size: 13px; }
.mp-empty { font-size: 13.5px; color: var(--dim); line-height: 1.45; padding: 4px 0 6px; }
.mp-add { display: block; width: 100%; margin: 8px 0 4px; padding: 11px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .3); background: none; color: #7CC4FF; font: inherit; font-size: 14px; font-weight: 600; }
.mp-form { margin: 8px 0 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 9px; }
.mp-l { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--dim); flex: 1; min-width: 0; }
.mp-form input, .mp-form select { box-sizing: border-box; width: 100%; font: inherit; font-size: 15px; color: inherit; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 8px 10px; min-width: 0; color-scheme: dark; }
.mp-form .trip-field { margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; position: relative; }
.mp-form .trip-field > span { flex: none; font-size: 12px; color: var(--dim); width: auto; }
.mp-form .trip-field input { flex: none; height: 42px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 8px 10px; }
.mp-form .trip-sug { left: 0; top: 100%; margin-top: 2px; }
/* Día en su fila y hora + duración debajo (en Android el campo de fecha no encoge y se montaban) */
.mp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 8px; }
.mp-row2 .mp-l:first-child { grid-column: 1 / -1; }
.mp-row2 input, .mp-row2 select { width: 100%; box-sizing: border-box; height: 42px; }
.mp-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.mp-chk input { width: 18px; height: 18px; padding: 0; }
.mp-msg { font-size: 13px; color: #FFB39E; min-height: 0; }
.mp-msg:empty { display: none; }
.mp-btns { display: flex; justify-content: flex-end; gap: 8px; }
.mp-cancel { background: none; border: 0; color: var(--dim); font: inherit; font-size: 14px; padding: 8px 12px; }

/* Frente a lo normal (15/11/2026) */
#normal { padding: 0 16px 10px; }
.nrm-hoy { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; line-height: 1.35; }
.nrm-hoy.warm { background: rgba(255, 170, 90, .13); border-color: rgba(255, 170, 90, .3); }
.nrm-hoy.cold { background: rgba(110, 180, 255, .13); border-color: rgba(110, 180, 255, .3); }
.nrm-hoy small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.nrm-big { font-size: 22px; font-weight: 700; white-space: nowrap; min-width: 52px; text-align: center; }
.nrm-hoy.warm .nrm-big, #normal b.warm { color: #FFC285; }
.nrm-hoy.cold .nrm-big, #normal b.cold { color: #8CC8FF; }
.nrm-sec { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nrm-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 6px; }
.nrm-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 14px; align-items: baseline; }
.nrm-kv b { text-align: right; font-weight: 600; }
.nrm-kv .nrm-sub { grid-column: 1 / -1; text-align: right; margin-top: -3px; }
.nrm-sub { font-size: 12px; color: var(--faint); line-height: 1.35; margin-top: 6px; }
.nrm-rain { font-size: 14.5px; line-height: 1.4; }
.nrm-gauge { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .12); margin: 10px 0 4px; }
.nrm-gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #4FA8FF, #7CC4FF); }
.nrm-gauge b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; }
/* Energía en casa (18/11/2026); desde el 23/11/2026, pestaña Hogar (mismas piezas .en-*) */
#hgPlan, #hgLuz, #hgClima, #hgVent, #hgRopa, #hgElec, #hgAvisos, #hgSolar, #hgCasa { padding: 0 16px 10px; }
/* Fase 2 (23/11/2026): placas solares y Mi casa */
.on-pv { background: #FFB938 !important; } .on-pv2 { background: rgba(255, 185, 56, .4) !important; }
rect.pv-b { fill: rgba(255, 185, 56, .55); } rect.pv-b.on { fill: #FFB938; }
.en-leg i.pv-b { background: #FFB938; } .en-leg i.pv-n { background: none; border-top: 2px dashed #fff; height: 0; } .en-leg i.pv-est { background: rgba(255, 185, 56, .35); }
.pv-t { color: #FFC85C; }
.pv-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); gap: 4px; margin-top: 4px; }
.pv-d { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pv-w { position: relative; width: 100%; height: 64px; }
.pv-w i { position: absolute; bottom: 0; left: 18%; right: 18%; background: #FFB938; border-radius: 4px 4px 1px 1px; }
.pv-d.est .pv-w i { background: rgba(255, 185, 56, .45); }
.pv-d.sel .pv-w i { outline: 2px solid #fff; outline-offset: 1px; }
.pv-d b { font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.pv-d span { font-size: 11px; color: var(--faint); margin-top: 3px; }
.pv-w s { position: absolute; left: 4%; right: 4%; height: 0; border-top: 2px dashed rgba(255, 255, 255, .75); }
.hg-hint { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.hg-hint a, #hgSolar .src a { color: #8EC5FF; }
#hgSolar .act-cfg, #hgCasa .act-cfg { width: 100%; margin: 10px 0 2px; }
.hc-intro { font-size: 13.5px; line-height: 1.45; margin: 2px 0 8px; }
.hc-row { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.hc-row > span { font-size: 13px; color: var(--dim); }
.hc-seg { display: flex; flex-wrap: wrap; width: auto; }
.hc-seg { gap: 2px; }
.hc-seg button { flex: 1 1 40%; min-width: 0; padding: 4px 6px; height: auto !important; min-height: 32px; font-size: 13px !important; line-height: 1.2; }
.hc-seg[data-hc=calef] button, .hc-seg[data-hcaz] button, .hc-seg[data-hc=aisl] button { flex-basis: 28%; }
.hc-seg[data-hc=vent] button, .hc-seg[data-hc=aire] button, .hc-seg[data-hc=coche] button, .hc-seg[data-hcpl] button { flex: 1 1 0; }
.hc-pl { background: rgba(255, 185, 56, .07); border-radius: 12px; padding: 2px 10px 8px; margin-top: 2px; }
.hc-pl .al-opt { margin: 10px 0 2px; }
.hc-pl .al-opt > span:first-child { min-width: 78px; }
.hc-pl .al-opt input { flex: 1; min-width: 0; }
.hc-pl .al-val { min-width: 74px; text-align: right; color: #fff; }
.hc-note { font-size: 12px; color: var(--faint); line-height: 1.4; margin-top: 6px; }
.hc-btns { display: flex; gap: 8px; }
.hc-btns .act-cfg.ghost { background: none; border: 1px solid rgba(255, 255, 255, .15); font-weight: 500; }
.hc-bar { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.hc-bar::-webkit-scrollbar { display: none; }
.hc-bar button { flex: none; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 13.5px; color: var(--dim); max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-bar button small { font-size: 10.5px; color: var(--faint); }
.hc-bar button.on { background: rgba(255, 255, 255, .24); color: #fff; font-weight: 600; }
.hc-bar .hc-add { justify-content: center; color: #8EC5FF; }
.hc-warn { font-size: 13px; line-height: 1.4; margin: -6px 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 210, 122, .14); color: #FFE2A8; }
.hc-warn a { color: #8EC5FF; }
.hc-name { font-size: 15px; margin: 2px 0 6px; } .hc-name small { color: var(--faint); font-size: 12px; }
.hc-where { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.hc-in { width: 100%; padding: 9px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 14px; }
.hc-in option { color: #000; }
.hc-del { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
/* Tu consumo real (Datadis, 30/11/2026) */
/* (margen interior: el texto iba pegado al borde de la tarjeta, 30/11/2026) */
/* (y lo mismo en «Tu casa con Home Assistant», que salía pegada al borde, 02/12/2026) */
#hgDatadis, #hgHa { padding: 4px 14px 8px; }
#hgDatadis .hc-btns, #hgHa .hc-btns { flex-wrap: wrap; margin-top: 8px; }
#hgDatadis .hc-del .act-cfg, #hgHa .hc-del .act-cfg { width: auto; flex: 1; margin: 0; }
/* Secciones nuevas de «Tu consumo real» (02/12/2026) */
.dd-secs { margin: 10px 0 4px; display: grid; gap: 8px; }
.dd-sec { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 0 12px; }
.dd-sec > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; padding: 11px 0; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.dd-sec > summary::-webkit-details-marker { display: none; }
.dd-sec > summary::after { content: '▾'; color: var(--dim); transition: transform .2s; }
.dd-sec[open] > summary::after { transform: rotate(180deg); }
.dd-secb { padding: 0 0 10px; }
.dd-txt { font-size: 14px; line-height: 1.45; margin: 4px 0 8px; }
.dd-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.dd-tab th { font-weight: 500; color: var(--dim); text-align: right; padding: 3px 4px; }
.dd-tab td { text-align: right; padding: 5px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.dd-tab td:first-child, .dd-tab th:first-child { text-align: left; }
.dd-tab td.best { color: #7EE0A0; font-weight: 700; }
.dd-cmpin { margin: 6px 0; }
.dd-cmpt { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; }
.dd-num { max-width: 86px; text-align: right; }
/* (los tres tramos en una fila, con el nombre encima, 02/12/2026) */
.dd-trs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dd-tr label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--dim); min-width: 0; }
.dd-tr .dd-num { max-width: none; width: 100%; text-align: center; }
.dd-lim { stroke: #FFB547; stroke-width: 1.6; stroke-dasharray: 5 4; }
.dd-limi { display: inline-block; width: 14px; height: 0; border-top: 2px dashed #FFB547; vertical-align: middle; margin-right: 4px; }
.dd-ml { display: grid; font-size: 10.5px; color: var(--dim); text-align: center; margin: 2px 0 4px; }
.dd-dot { fill: #7CC4FF; opacity: .75; }
.dd-fit { fill: none; stroke: #FFD27A; stroke-width: 2; }
.hg-chart.dd-sc { height: 110px; }
.hg-chart.dd-spark { height: 44px; margin: 0 0 6px; }
.dd-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin: 2px 0 6px; }
.dd-heat { width: 100%; height: auto; display: block; margin: 4px 0 0; }
.dd-hl { fill: var(--dim); font-size: 8px; }
.dd-hb { margin-left: 4.6%; }
.dd-yl { font-size: 11px; color: var(--dim); margin: 4px 0 2px; }
.dd-mbars { display: flex; gap: 8px; align-items: flex-end; height: 110px; margin: 6px 0 4px; }
.dd-mbars > div { flex: 0 1 48px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.dd-mbars b { font-size: 12px; font-weight: 600; }
.dd-mbars i { width: 100%; background: #C9A14A; opacity: .85; border-radius: 4px 4px 2px 2px; min-height: 3px; }
.dd-mbars span { font-size: 11px; color: var(--dim); }
.dd-err { font-size: 13px; color: #FFB4AA; background: rgba(240, 104, 90, .12); border-radius: 10px; padding: 7px 10px; margin: 6px 0; line-height: 1.4; }
.dd-tit { font-size: 13px; font-weight: 600; margin: 2px 0 6px; color: var(--dim); }
.dd-head { font-size: 16px; line-height: 1.4; margin: 2px 0 6px; }
.dd-hero { font-size: 16px; line-height: 1.4; margin: 4px 0 12px; }
.dd-intro { font-size: 14px; line-height: 1.45; margin: 2px 0 6px; }
.dd-ejw { position: relative; margin: 2px 0 8px; }
.dd-ejw .hg-chart { height: 70px; opacity: .85; }
.dd-ejl { position: absolute; top: 0; right: 0; font-size: 11px; color: var(--faint); background: rgba(0, 0, 0, .25); border-radius: 6px; padding: 1px 6px; }
.dd-ben { display: flex; flex-direction: column; gap: 7px; font-size: 14px; line-height: 1.35; margin: 8px 0 14px; }
.dd-ben div { padding-left: 19px; text-indent: -19px; }
.dd-what { font-size: 13px; line-height: 1.45; color: var(--dim); background: rgba(0, 0, 0, .14); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.dd-cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.dd-cta .act-cfg { margin: 0; width: 100%; }
.dd-cta .act-cfg.ghost { background: none; border: 1px solid rgba(255, 255, 255, .2); font-weight: 500; }
.dd-lock { font-size: 12.5px; color: var(--dim); margin: 6px 0 2px; }
/* Tu casa con Home Assistant (02/12/2026) */
.ha-now { margin: 2px 0 10px; }
.ha-big { font-size: 30px; font-weight: 600; line-height: 1.1; }
.ha-big small { font-size: 16px; font-weight: 500; color: var(--dim); }
.ha-sub { font-size: 13.5px; color: var(--dim); margin-top: 3px; line-height: 1.4; }
.ha-days { display: flex; gap: 8px; margin: 4px 0 8px; }
.ha-day { flex: 1; min-width: 0; background: rgba(0, 0, 0, .14); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ha-day small { font-size: 12px; color: var(--faint); }
.ha-day b { font-size: 18px; }
.ha-day span { font-size: 14px; color: var(--dim); }
.ha-day em { font-size: 11.5px; font-style: normal; color: var(--faint); line-height: 1.3; }
.hg-chart.ha-chart { height: 70px; }
.hg-chart .ha-ghost { fill: rgba(255, 255, 255, .16); }
.ha-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin: 2px 0 0; }
.ha-in { font-size: 14px; margin: 10px 0 4px; }
/* Fase 2 (03/12/2026): mañana, el frío del mes, humedad dentro y la hora de más gasto */
.ha-pred { font-size: 17px; margin: 2px 0 6px; }
.ha-vs { font-size: 12.5px; color: var(--dim); margin-left: 4px; }
.hg-chart.ha-chart-s { height: 40px; }
.ha-line { font-size: 14px; line-height: 1.45; margin: 4px 0 8px; }
.ha-warn { font-size: 13px; line-height: 1.45; background: rgba(255, 196, 0, .1); border-radius: 10px; padding: 8px 10px; margin: 8px 0 4px; }
.ha-adv { font-size: 13px; margin: 6px 0; }
.ha-adv summary { color: var(--dim); cursor: pointer; padding: 4px 0; }
.ha-sel select.hc-in { max-width: 100%; }
.dd-links { font-size: 13px; margin: 8px 0 2px; color: var(--faint); }
.dd-links a, .dd-intro a { color: inherit; text-decoration: underline; }
.dd-trust { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }
.dd-trust summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 6px 0; list-style: none; }
.dd-trust summary::-webkit-details-marker { display: none; }
.dd-trust summary::after { content: ' ▸'; color: var(--faint); }
.dd-trust[open] summary::after { content: ' ▾'; }
.dd-tit small { font-weight: 400; color: var(--faint); }
.dd-sups { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.dd-sup { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: inherit; }
.dd-sup.on { border-color: #4CC38A; }
.dd-sup b { font-size: 14px; } .dd-sup small { font-size: 12px; color: var(--dim); }
.dd-days { gap: 2px; }
.dd-days .pv-d { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.dd-days .pv-d b { font-size: 10px; } .dd-days .pv-d span { font-size: 10px; line-height: 1.15; text-align: center; }
.dd-days .pv-w { height: 56px; }
#hgCasa .hc-del .act-cfg { width: auto; flex: 1; margin: 0; }
.hc-delb { color: #FF8C80 !important; }
.hc-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hc-sum span { display: flex; flex-direction: column; font-size: 13px; padding: 5px 9px; border-radius: 10px; background: rgba(0, 0, 0, .14); }
.hc-sum small { font-size: 10.5px; color: var(--faint); }
.hg-top { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.hg-day { flex: none; width: 190px; }
.hg-tit { font-size: 14px; color: var(--dim); min-width: 0; }
.hg-plan { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hg-plan span { font-size: 13px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.hg-tl { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.hg-tl-r { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 6px; }
.hg-tl-l { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-tl-c, .hg-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 16px; }
.hg-tl-c i, .hg-strip i { border-radius: 3px; background: rgba(255, 255, 255, .06); position: relative; }
.hg-tl-c i.past, .hg-strip i.past, .hg-dry i.past { opacity: .3; }
.hg-tl-c i.now, .hg-strip i.now { outline: 2px solid #fff; outline-offset: 1px; z-index: 1; }
.lz-barata { background: #4CC38A !important; } .lz-media { background: #F2C14E !important; } .lz-cara { background: #F0685A !important; }
rect.lz-barata { fill: #4CC38A; } rect.lz-media { fill: #F2C14E; } rect.lz-cara { fill: #F0685A; }
.lz-t-barata { color: #6FD9A4; } .lz-t-media { color: #F7D27A; } .lz-t-cara { color: #FF8C80; }
.on-vent { background: #7CC4FF !important; } .on-ropa { background: #B79CFF !important; } .on-calor { background: #FF9F5A !important; }
.on-frio { background: #5EC8F2 !important; } .on-baja, .b-baja { background: rgba(240, 104, 90, .45) !important; } .on-elec { background: #E7E36B !important; } .on-sol { background: #FFD27A !important; }
/* (24/11/2026) Es un botón que lleva a «Avisos de la casa»: sin aspecto de botón, como una línea de texto */
.hg-avmini { display: block; width: 100%; margin-top: 10px; padding: 4px 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; color: #FFD27A; cursor: pointer; }
.hg-avmini u { text-underline-offset: 2px; }
.hg-src { margin: 4px 0 10px; }
.hg-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.hg-kv div { background: rgba(0, 0, 0, .14); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; }
.hg-kv small { font-size: 11px; color: var(--faint); }
.hg-kv b { font-size: 17px; font-weight: 600; }
.hg-chart { display: block; width: 100%; height: 130px; }
.hg-chart rect.past { opacity: .35; }
.hg-chart rect.pick { stroke: #fff; stroke-width: 1.5; }
.hg-chart .hg-avg { stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.hg-chart .hg-now { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hg-temp { height: 100px; }
.hg-temp .hg-tline { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hg-temp text { fill: #fff; font-size: 10px; text-anchor: middle; }
.hg-temp rect.b-calor { fill: rgba(255, 159, 90, .3); } .hg-temp rect.b-frio { fill: rgba(94, 200, 242, .3); } .hg-temp rect.b-baja { fill: rgba(240, 104, 90, .22); }
.b-calor { background: rgba(255, 159, 90, .6) !important; } .b-frio { background: rgba(94, 200, 242, .6) !important; }
.hg-pick { font-size: 13px; margin-top: 6px; line-height: 1.4; }
.hg-pick.dim { color: var(--faint); font-size: 12px; }
.hg-cheap { font-size: 13.5px; margin-top: 8px; }
.hg-nodata { font-size: 13.5px; color: var(--dim); padding: 8px 0; }
.vt-bien { background: #4CC38A !important; } .vt-reg { background: #F2C14E !important; } .vt-mal { background: #F0685A !important; }
.hg-dry { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 56px; align-items: end; margin-top: 2px; }
.hg-dry i { display: block; border-radius: 3px 3px 1px 1px; }
.dr { background: rgba(183, 156, 255, .55) !important; } .dr-on { background: #B79CFF !important; } .dr-rain { background: rgba(79, 168, 255, .35) !important; }
.en-leg i.dr, .en-leg i.dr-on, .en-leg i.dr-rain { height: 10px; }
.hg-dev { display: flex; flex-direction: column; gap: 6px; }
.hg-dv { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; background: rgba(0, 0, 0, .14); border-radius: 12px; padding: 8px 10px; }
.hg-dv-m, .hg-dv-w { display: flex; flex-direction: column; min-width: 0; }
.hg-dv-w { text-align: right; }
.hg-dv small { font-size: 11.5px; color: var(--faint); }
.hg-dv b { font-size: 14px; font-weight: 600; }
.hg-ok { font-size: 14px; line-height: 1.45; padding: 8px 0; }
.hg-av { border-left: 3px solid #FFD27A; }
.en-head { font-size: 14.5px; line-height: 1.45; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.en-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.en-it { display: flex; gap: 10px; align-items: flex-start; background: rgba(0, 0, 0, .14); border-radius: 12px; padding: 8px 10px; font-size: 13.5px; line-height: 1.42; }
.en-ic { font-size: 18px; line-height: 1.2; flex: none; width: 22px; text-align: center; }
.en-t { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.en-t span { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.en-bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 16px; }
.en-bar i { border-radius: 3px; position: relative; }
.en-bar i.now { outline: 2px solid #fff; outline-offset: 1px; z-index: 1; }
.en-valle, .en-leg i.en-valle { background: #4CC38A; }
.en-llano, .en-leg i.en-llano { background: #F2C14E; }
.en-punta, .en-leg i.en-punta { background: #F0685A; }
.en-txt-valle { color: #6FD9A4; } .en-txt-llano { color: #F7D27A; } .en-txt-punta { color: #FF8C80; }
.en-bl { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 3px; }
.en-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--dim); margin: 6px 0 2px; }
.en-leg span { display: inline-flex; align-items: center; gap: 5px; }
.en-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.nrm-gl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-bottom: 8px; }

#medido { padding: 0 12px 12px; }
.md-st { font-size: 12.5px; color: var(--dim); margin: 2px 0 10px; line-height: 1.4; }
.md-st b { color: var(--text, #fff); font-weight: 600; }
.md-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.md-c { background: rgba(0, 0, 0, .16); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-c > span { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .03em; }
.md-c > b { font-size: 21px; font-weight: 600; line-height: 1.2; }
.md-c > b i { font-style: normal; color: var(--dim); font-weight: 400; }
.md-c > b small { font-size: 12px; font-weight: 400; color: var(--dim); }
.md-c > small { font-size: 11.5px; color: var(--dim); line-height: 1.3; }
.md-c:last-child:nth-child(odd) { grid-column: 1 / -1; }
.md-chart { width: 100%; height: auto; margin-top: 10px; display: block; overflow: visible; }
.md-chart text { font-size: 9px; fill: var(--dim); text-anchor: middle; }
.md-chart text.md-v { fill: #fff; font-size: 10px; font-weight: 600; }
.moonpic { width: 64px; height: 64px; margin: 4px auto 0; }

/* Cielo: día elegido del Sol y de la Luna */
.sky-today { margin-left: auto; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .1);
  color: #fff; font: inherit; font-size: 11.5px; letter-spacing: .4px; }
.sky-today[hidden] { display: none; }
.sky-day { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.sky-mark { font-size: 13px; color: #F5C76A; margin-bottom: 2px; }
.sky-cmp { font-size: 13px; color: var(--dim); text-align: center; margin-top: 6px; }
.sky-note, .sky-hint { font-size: 12px; color: var(--faint); line-height: 1.4; margin-top: 8px; }
.sunhours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; margin-top: 10px; font-size: 13.5px; }
.sunhours > div > span { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 6px; }
.sunhours p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 4px 0 0; }
.sunhours b { margin-left: auto; font-weight: 500; white-space: nowrap; }
.sunhours i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sunhours .hg { background: #F5B942; }
.sunhours .hb { background: #4F7BD9; }
/* Curva de horas de luz del año */
.suncurve { margin-top: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sc-plot { position: relative; height: 84px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.sc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-12 { position: absolute; left: 2px; transform: translateY(-115%); font-size: 10px; color: var(--faint); }
.sc-now, .sc-cur, .sc-hora { position: absolute; top: 0; bottom: 0; width: 0; }
.sc-now { border-left: 1px dashed rgba(255, 255, 255, .45); }
.sc-hora { border-left: 1px dotted rgba(255, 255, 255, .3); top: 55%; }
.sc-cur { border-left: 2px solid #fff; margin-left: -1px; }
.sc-dot, .sc-mark { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.sc-dot { width: 14px; height: 14px; background: radial-gradient(circle at 40% 35%, #FFF3B0, #F5B942 70%); box-shadow: 0 0 8px rgba(245, 185, 66, .8); }
.sc-mark { width: 7px; height: 7px; background: #fff; }
.sc-mark.sol { background: #F5C76A; }
.sc-months { position: relative; height: 16px; font-size: 10px; color: var(--faint); }
.sc-months span { position: absolute; top: 3px; }
/* Tira de la Luna: el día del centro es el elegido */
.moonstrip { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding: 4px calc(50% - 23px) 2px; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.moonstrip::-webkit-scrollbar { display: none; }
.ms-day { flex: 0 0 46px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--dim); font: inherit; }
.ms-day span { font-size: 10.5px; }
.ms-day b { font-size: 14px; font-weight: 500; color: #fff; }
.ms-day em { font-style: normal; font-size: 9px; color: #F5C76A; height: 12px; white-space: nowrap; }
.ms-pic { width: 28px; height: 28px; margin: 3px 0 1px; }
.ms-day.today span { color: #F5C76A; font-weight: 600; }
.ms-day.sel { background: rgba(255, 255, 255, .14); }

#credits { text-align: center; font-size: 12px; color: var(--faint); line-height: 1.6; padding: 8px 0 4px; }
#credits a { color: var(--dim); }

/* Tirar para refrescar */
#ptr {
  position: fixed; left: 50%; top: calc(var(--top) + 60px); z-index: 4;
  width: 38px; height: 38px; margin-left: -19px; border-radius: 50%;
  background: rgba(20, 30, 50, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; opacity: 0; transform: translateY(-50px);
  transition: opacity .2s;
}
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; }
#ptr.loading .spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Paneles ---------- */
#scrim { position: fixed; inset: 0; z-index: 8; background: rgba(0, 0, 0, .35); }
.sheet {
  position: fixed; inset: 0; z-index: 9;
  background: rgba(10, 18, 34, .80);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: calc(var(--top) + 8px) 16px calc(var(--bottom) + 16px);
  overflow-y: auto;
  animation: sheetIn .28s ease-out;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h2 { font-size: 26px; font-weight: 600; margin: 0 0 0 4px; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); margin-bottom: 14px;
}
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
.search input::placeholder { color: var(--faint); }
#sheetMsg { padding: 12px 14px; border-radius: 14px; background: rgba(90, 160, 255, .18); font-size: 14px; margin-bottom: 14px; line-height: 1.4; }
.res { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.res:active { background: rgba(255, 255, 255, .06); }
.res .n { font-size: 16px; }
.res .r { font-size: 13px; color: var(--dim); }
.res .add { margin-left: auto; color: var(--dim); font-size: 26px; font-weight: 300; }
.res-empty { padding: 12px 6px; color: var(--dim); font-size: 14px; }

.pcard {
  position: relative; display: flex; align-items: center; gap: 12px; overflow: hidden;
  min-height: 92px; padding: 14px 16px; border-radius: 20px; margin-bottom: 10px;
  background-size: cover; background-position: center; background-color: rgba(255, 255, 255, .08);
}
.pcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15)); }
.pcard > * { position: relative; }
.pcard.sel { outline: 2px solid rgba(255, 255, 255, .8); }
.pcard .pn { font-size: 19px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.pcard .pr { font-size: 13px; color: var(--dim); margin-top: 2px; }
.pcard .pc { font-size: 13px; margin-top: 6px; }
.pcard .pt { margin-left: auto; font-size: 38px; font-weight: 300; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.pcard .del {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; flex: none;
}
.pcard .del svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; }

.set-group { margin: 14px 4px 18px; }
.set-label { font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.seg { display: flex; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 38px; border-radius: 10px; font-size: 15px; color: var(--dim); }
.seg button.on { background: rgba(255, 255, 255, .22); color: #fff; font-weight: 600; }
/* Selector de idioma con su banderita (03/12/2026) */
.seg-lang button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; line-height: 1.1; padding: 0 4px; min-width: 0; }
/* (el botón de avisar de errores de traducción solo con euskera: .act-cfg lo volvía a mostrar aunque estuviera oculto) */
#btnEuErr[hidden] { display: none; }
.seg-lang .flag { width: 20px; height: 13px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.seg-lang .flag-auto { width: 10px; height: 15px; box-shadow: none; }
/* Grupos desplegables de Ajustes */
.set-sec { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.set-sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 6px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; }
.set-sec > summary::-webkit-details-marker { display: none; }
.set-sec > summary::after { content: '⌄'; margin-left: 8px; font-size: 14px; color: var(--faint); transition: transform .2s; }
.set-sec[open] > summary::after { transform: rotate(180deg); }
.set-sum { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--dim); }
.set-sec > .set-group:first-of-type { margin-top: 2px; }
/* Filas de Ajustes que abren su panel directamente (Widgets, barra de estado), con el mismo aspecto que los grupos */
.set-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.set-row::after { content: '›'; margin-left: auto; font-size: 20px; line-height: 1; color: var(--faint); }
.set-row[hidden] { display: none; }
.about { font-size: 14px; line-height: 1.5; color: var(--dim); }
.about > p { margin: 0 6px 10px; }
.about h3 { color: #fff; font-size: 16px; margin: 0 0 6px; }
.about b { color: #fff; }
.about .ver { color: var(--faint); }
.set-ver { text-align: center; font-size: 12.5px; color: var(--faint); margin: 14px 0 6px; }

/* ---------- Avisos oficiales ---------- */
.warn {
  margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid; cursor: pointer;
}
.warn + .warn { margin-top: 0; }
.warn.lv1 { background: rgba(255, 214, 10, .20); border-color: rgba(255, 214, 10, .45); }
.warn.lv2 { background: rgba(255, 140, 0, .28); border-color: rgba(255, 150, 40, .6); }
.warn.lv3 { background: rgba(230, 30, 40, .35); border-color: rgba(255, 70, 70, .7); }
.wh { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.wdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lv1 .wdot { background: #FFD60A; } .lv2 .wdot { background: #FF8C00; } .lv3 .wdot { background: #FF3B30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .3); }
.wa { color: var(--dim); font-size: 13px; margin: 3px 0 5px 18px; }
.wd { display: none; margin: 4px 0 0 18px; }
.wi { display: none; margin: 6px 0 0 18px; font-size: 13px; color: var(--dim); }
.warn.open .wd, .warn.open .wi { display: block; }
/* «Ver cámaras de la zona» (16/11/2026): solo con el aviso desplegado */
.warn .warn-cams { display: none; margin: 8px 0 2px 18px; padding: 6px 12px; font-size: 13px; }
.warn.open .warn-cams { display: inline-block; }
.wa { margin-bottom: 0; }
.warn { padding: 10px 14px; }
/* Notas de fuentes al pie de las tarjetas (22/11/2026: «la letra es pequeña»): letra más grande. Las notas en bloque
   (div.src) seguidas se juntan en un solo recuadro (.srcbox, lo hace srcFitSetup de app.js) con su título, para que se
   vea dónde empieza; como mucho unas 6 líneas, que se leen desplazando dentro, y mientras quede texto debajo el final
   se difumina (clase «more») */
.src { color: var(--faint); font-size: 13.5px; line-height: 1.45; }
.srcbox { max-height: 10.5em; overflow-y: auto; scrollbar-width: thin; font-size: 13.5px; line-height: 1.45;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px 6px; }
.srcbox::before { content: 'ⓘ Fuentes y notas'; display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.srcbox > .src { padding: 0 !important; margin: 0 !important; }
.srcbox > .src + .src { margin-top: 6px !important; }
.srcbox.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.2em), transparent); mask-image: linear-gradient(#000 calc(100% - 2.2em), transparent); }
/* Grupo de avisos (3 o más): cabecera plegable con el resumen */
.warn-grp .wh { font-size: 15px; }
.wg-chev { margin-left: auto; font-size: 14px; opacity: .8; }
.warn-grp.wg-open { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.wg-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 18px; }
.wg-btn { height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1);
  color: #fff; font: inherit; font-size: 13px; font-weight: 600; }
.wg-btn:active { background: rgba(255, 255, 255, .22); }
.wg-bar .wg-share { margin: 0 0 0 auto; }
.wg-share svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8; }
body.capturing .wg-bar { display: none; }

/* ---------- Mar y playas ---------- */
#marine { padding: 0 16px 14px; }
.sea-zone { font-size: 13px; color: var(--dim); }
.sea-main { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.wave { width: 64px; height: 44px; flex: none; }
.sea-state { font-size: 21px; font-weight: 500; line-height: 1.2; }
.sea-state .arrow { color: var(--dim); }
.sea-h { font-size: 14px; color: var(--dim); margin-top: 3px; }
.sea-grid { border-top: 1px solid rgba(255, 255, 255, .1); }
.srow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.srow span { color: var(--dim); flex: none; }
.srow b { font-weight: 500; text-align: right; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
.sea details { margin: 8px 0 4px; font-size: 13px; color: var(--dim); line-height: 1.45; }
.sea details summary { color: #9ACFFF; font-size: 13.5px; padding: 4px 0; }
.sea details p { margin: 6px 0; }
.beach-title { margin: 14px 0 4px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); }
.beach { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.beach summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.bmain { flex: 1; min-width: 0; }
.bn { font-size: 15.5px; font-weight: 500; }
.bt { font-size: 12.5px; color: var(--dim); }
.bchips { display: flex; gap: 6px; flex: none; }
.chip { padding: 4px 9px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: rgba(61, 214, 140, .25); }
.chip.mid { background: rgba(255, 196, 0, .28); }
.chip.bad { background: rgba(255, 80, 80, .32); }
.bday { font-size: 13px; color: var(--dim); line-height: 1.45; padding: 4px 0 10px; }
.bday b { color: #fff; font-weight: 600; display: block; }
#marine > .src { margin-top: 10px; }

/* ---------- Olas y mareas ---------- */
.beach-pick { margin: 0 0 12px; }
.beach-pick button { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; padding: 7px 12px; }
.beach-pick small { font-size: 11px; color: var(--faint); font-weight: 400; }

/* Montaña: cumbre elegida, días y estaciones de esquí */
.pk-find input { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; margin-bottom: 6px; }
.pk-search.on + .pk-find { background: rgba(124, 196, 255, .14); border-radius: 0 0 14px 14px; padding: 8px 10px; margin-bottom: 8px; }
.pk-res { display: block; width: 100%; text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.pk-res small { color: var(--faint); font-size: 12px; }
.pk-right b { font-size: 14px; font-weight: 600; }
/* ✕ de las cumbres y estaciones buscadas a mano: quitarla de la lista */
.pk-del { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--dim); font-size: 14px; margin-left: 2px; }
.pk-del:active { background: rgba(255, 107, 107, .3); color: #fff; }
.pk-search .pk-lupa { width: 64px; text-align: center; font-size: 26px; flex: none; }
.pk-search .srfname { font-weight: 500; }
#peak .pk-load .chip { margin-left: 6px; }
.pk-load { padding: 6px 16px 14px; color: var(--dim); }
.pk-now { display: flex; align-items: center; gap: 12px; }
.pk-nowt { flex: 1; }
.pk-t { font-size: 30px; font-weight: 600; }
.pk-t small { font-size: 13px; font-weight: 400; color: var(--dim); }
.pk-m { font-size: 13px; color: var(--dim); }
.pk-fav { border: 0; background: none; color: var(--dim); font-size: 26px; padding: 4px; }
.pk-fav.on { color: #FFB547; }
.pk-verdict { margin: 10px 0; font-size: 14px; line-height: 1.4; }
.pk-days { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.pk-day { display: grid; grid-template-columns: 64px 30px 70px 52px 1fr; align-items: center; gap: 6px; font-size: 13px; padding: 6px 8px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border-left: 3px solid transparent; }
.pk-day i { grid-column: 3 / -1; font-style: normal; font-size: 12px; color: var(--faint); }
.pk-day.s2 { border-left-color: #5BD38A; }
.pk-day.s1 { border-left-color: #FFB547; }
.pk-day.s0 { border-left-color: #FF6B6B; }
.pk-snow { margin: 0 0 10px; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(160, 200, 255, .12); }
#peak .srfsub { margin: 12px -12px 8px; padding-left: 12px; }
.pk-aeday { margin-bottom: 8px; }
.pk-ae { font-size: 13.5px; line-height: 1.45; margin-bottom: 6px; }
.pk-ae b { color: var(--dim); font-weight: 600; margin-right: 4px; }
.pk-nivo { color: var(--dim); }
.pk-pts { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; margin-bottom: 8px; }
.pk-pts small { color: var(--faint); }
#ski, #peakList, .pk-find { padding: 0 12px 8px; }
#peak { padding: 4px 12px 10px; }
#ski .src { margin-top: 10px; }
#waves, #tide { padding: 0 16px 12px; }
.wnow { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.wbig { width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; font-size: 30px; font-weight: 500; flex: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.wbig small { font-size: 14px; margin-left: 2px; }
.winfo { min-width: 0; }
.wword { font-size: 19px; font-weight: 600; }
.wline { font-size: 13.5px; color: var(--dim); margin-top: 3px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.warr { display: inline-block; vertical-align: middle; }
.kst { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 8px; }
.kst.off { background: rgba(61, 214, 140, .3); }
.kst.cross { background: rgba(255, 255, 255, .15); }
.kst.on { background: rgba(255, 107, 107, .3); }
.wtable { display: flex; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 8px; }
.wlegend, .wcol { display: grid; grid-template-rows: 14px 18px 36px 20px 18px 18px 20px 20px 20px 18px 22px; align-items: center; }
/* Con segundo mar de fondo: una fila más (02/12/2026) */
.wtable.sw2 .wlegend, .wtable.sw2 .wcol { grid-template-rows: 14px 18px 36px 20px 18px 18px 20px 20px 20px 20px 18px 22px; }
.ksw2 { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
/* Ajustes de la frase al abrir */
.frase-cfg .fr-sub { margin-top: 10px; }
.frase-cfg .fr-tipos { flex-wrap: wrap; }
.frase-cfg .fr-src { margin-top: 8px; }
/* Por qué no llega la ola (playa resguardada o mal orientada para ese mar) */
.srf-shelter { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); }
/* Energía de la ola en kJ (02/12/2026): flojo, moderado, fuerte, muy fuerte */
.wcol .ken { font-size: 11px; font-weight: 600; padding: 1px 4px; border-radius: 6px; }
.ken.e1 { color: #9AA8BF; }
.ken.e2 { color: #7CC4FF; }
.ken.e3 { color: #FFC857; }
.ken.e4 { color: #FF7A7A; }
.wcol .ken.e3 { background: rgba(255, 200, 87, .14); }
.wcol .ken.e4 { background: rgba(255, 122, 122, .16); }
i.ken { font-style: normal; }
.kface { font-size: 12px; font-weight: 600; }
.ksurf { font-size: 11.5px; font-weight: 700; padding: 1px 5px; border-radius: 8px; color: #0B1A2E; background: rgba(255, 255, 255, .25); }
.ksurf.s0 { background: none; color: var(--faint); }
.ksurf.s1, .ksurf.s2 { background: #9AA8BF; }
.ksurf.s3 { background: #7CC4FF; }
.ksurf.s4, .ksurf.s5 { background: #4FD1C5; }
.kst.glassy { background: rgba(124, 196, 255, .4); }

/* ---------- Surf ---------- */
#surf { padding: 0 12px 8px; }
.srf { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 6px; border-radius: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.srf.on { background: rgba(124, 196, 255, .14); }
.srfpic { width: 64px; height: 54px; flex: none; }
.srfmain { flex: 1; min-width: 0; }
.srf.shel { opacity: .7; }
.srfmode { margin: 0 0 6px; }
/* Actividades del mar en una fila que se desliza de lado (28/11/2026) */
.chips.srfmode { position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 -12px 8px; padding: 0 12px; }
.chips.srfmode::-webkit-scrollbar { display: none; }
.chips.srfmode button { flex: none; padding: 7px 13px; font-size: 13.5px; }
.chips.srfmode.wg-dep, .chips.srfmode.al-dep { margin: 0 0 8px; padding: 0; }
.srfwarn { font-size: 12px; color: #FFB547; margin-top: 4px; }
.srfname { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srfname small { font-weight: 400; color: var(--faint); font-size: 12px; }
.srftags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.srftags .chip { font-size: 11px; padding: 2px 7px; }
.srfbest { font-size: 12px; color: var(--dim); margin-top: 4px; }
.srfbest .sstars { font-size: 11px; }
.srfscore { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.srfscore small { font-size: 11px; color: var(--dim); }
.srfscore .srfat { color: #9ACFFF; font-weight: 600; }
/* Marea preferida de cada playa y mareas vivas/muertas (01/12/2026) */
.srf-marea { margin: 10px 0 4px; }
.srf-marea-t { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.chips.srfmode.srf-mareas { margin: 0; padding: 0; }
.srf-mareas .chip.com { box-shadow: inset 0 0 0 1.5px #9ACFFF; }
.srf-marea-com { font-size: 13px; color: var(--text, #fff); opacity: .9; margin: 0 0 8px; line-height: 1.35; }
.srf-wanna { display: inline-block; margin-top: 8px; font-size: 13px; color: #9ACFFF; text-decoration: none; }
.srf-marea small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 6px; line-height: 1.35; }
.tcycle { font-size: 13px; color: var(--dim); margin: -2px 0 8px; }
.sstars { color: #FFD27A; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.sstars em { font-style: normal; background: linear-gradient(90deg, #FFD27A 50%, rgba(255, 255, 255, .22) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sstars i { font-style: normal; color: rgba(255, 255, 255, .22); }
.srfgloss { margin: 10px 4px 6px; font-size: 13px; color: var(--dim); }
.srfgloss summary { font-weight: 600; color: var(--text); padding: 4px 0; }
.srfgloss p { margin: 6px 0; line-height: 1.4; }
#surf > .src { padding: 0 4px 6px; }
/* Detalle desplegado: pegado a la playa tocada, como una sola pieza */
.srf.on { border-radius: 14px 14px 0 0; border-bottom-color: transparent; }
.srfdetail { background: rgba(124, 196, 255, .14); border-radius: 0 0 14px 14px; padding: 4px 0 6px; margin-bottom: 8px; animation: tabIn .25s ease-out; }
.srfdetail #waves, .srfdetail #tide { padding: 0 10px 8px; }
/* Setas cerca: valoración (verde = buenas, ámbar = regulares, gris = pocas), especies y sus parecidas peligrosas */
#setas { padding: 0 12px 6px; }
#setas .srfscore b { font-size: 15px; }
#setas .st-2 { color: #5BD68C; } #setas .st-1 { color: #FFD27A; } #setas .st-0 { color: var(--dim); }
.st-det { padding: 8px 12px 10px !important; }
.st-why { font-size: 12.5px; color: var(--dim); margin: 4px 0 8px; line-height: 1.4; }
.st-soil { font-size: 13px; margin: 0 0 8px; line-height: 1.4; }
.st-soil small { display: block; font-size: 12px; color: var(--dim); }
.st-soilbar { display: inline-block; vertical-align: middle; width: 54px; height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; margin-left: 4px; }
.st-soilbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a46a, #6fae5a 45%, #3f8fd0); }
#canyon { padding: 0 12px 12px; }
#canyon .cy-2 { color: #5BD68C; } #canyon .cy-1 { color: #FFD27A; } #canyon .cy-0 { color: #FF6B6B; }
.cy-day { display: grid; grid-template-columns: 74px auto; gap: 2px 8px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.cy-day i { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--dim); }
.cy-storm { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 181, 71, .14); font-size: 13px; line-height: 1.4; }
.rv { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.rv-h b { font-size: 15px; } .rv-h small { display: block; color: var(--faint); font-size: 12px; }
.rv-v { font-size: 13.5px; margin-top: 2px; } .rv > small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.rv-lo .rv-v b { color: #FFD27A; } .rv-ok .rv-v b { color: #5BD68C; } .rv-hi .rv-v b { color: #FFB547; } .rv-vhi .rv-v b { color: #FF6B6B; }
.rv-t.rv-lo { color: #FFD27A; } .rv-t.rv-ok { color: #5BD68C; } .rv-t.rv-hi { color: #FFB547; } .rv-t.rv-vhi { color: #FF6B6B; }
.rv .pk-maps { margin-top: 6px; }
/* Suelo de las zonas de setas: resumen arriba y previsión de 3 días */
.st-soilsum { padding: 8px 10px; margin: 4px 0 8px; border-radius: 10px; background: rgba(120, 190, 110, .08); font-size: 13px; }
.st-soilsum small, .st-soil small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.st-soilfc { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--dim); }
.st-soilfc span { flex: 1; text-align: center; }
.st-soilfc b { display: block; color: var(--text, #fff); font-size: 13px; }
.rv-svg { display: block; width: 100%; height: 46px; margin-top: 6px; }
.rv-svg path { fill: none; stroke: #6FB7FF; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rv-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.st-h { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .4px; margin: 6px 0 4px; }
.st-sp { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.st-sp small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.st-sp .st-m { color: #FF6B6B; font-weight: 700; } .st-sp .st-t { color: #FFB547; } .st-sp .st-i { color: var(--dim); }
.st-map { display: block; margin-top: 8px; text-align: center; }
.st-aviso { margin: 8px 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 107, 107, .14); border: 1px solid rgba(255, 107, 107, .35); font-size: 12.5px; line-height: 1.45; }
.srfsub { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.srfsub.tidehead { border-top: 0; padding: 0 16px 6px; }
#tideCard { margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.srfsub svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.srfnow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 0 10px; }
.srfnow b { font-size: 15px; }
.srfnow span { font-size: 13px; color: var(--dim); width: 100%; }
.wlegend { flex: none; width: 58px; font-size: 10.5px; color: var(--faint); padding-right: 4px; }
.wtable .hscroll { flex: 1; }
.wcols { display: flex; }
.wcol { width: 48px; flex: none; justify-items: center; text-align: center; }
.wcol.wday0 { border-left: 1px dashed rgba(255, 255, 255, .25); }
.wcol.sel { background: rgba(124, 196, 255, .16); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(124, 196, 255, .45); } /* la hora del dibujo */
.kday { font-size: 10.5px; font-weight: 700; color: #9ACFFF; text-transform: uppercase; white-space: nowrap; }
.khr { font-size: 12.5px; font-weight: 600; }
.kh { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.kper, .ksw { font-size: 12px; color: var(--dim); }
.kwind { font-size: 12px; display: flex; align-items: center; gap: 2px; }
.wcol .kst { font-size: 10px; padding: 1px 4px; }
.tnow { font-size: 17px; font-weight: 600; margin: 2px 0 6px; }
.tnow small { font-size: 12.5px; color: var(--dim); font-weight: 400; }
.tidesvg { width: 100%; height: 90px; }
.tlist { margin-top: 6px; }
.trow { display: grid; grid-template-columns: 80px 1fr auto; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.tty.H { color: #7CC4FF; font-weight: 600; }
.tty.L { color: #FFD27A; font-weight: 600; }
.tnote { font-size: 14px; color: var(--dim); line-height: 1.45; margin: 4px 0 8px; }

/* ---------- Radar ---------- */
#radarCard:not(.folded) { padding-bottom: 12px; } /* plegada, igual de alta que las demás (26/11/2026) */
.rmsg { padding: 0 16px 10px; font-size: 15px; line-height: 1.4; }
.rwrap { position: relative; margin: 0 12px; }
/* Marco redondo fijo: al pellizcar se mueve el lienzo de dentro, no el círculo */
.rcirc { position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: #0D1626; }
#radarCanvas { width: 100%; height: auto; aspect-ratio: 1; display: block; touch-action: pan-y; will-change: transform; }
.rstamp { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(10, 18, 34, .75); padding: 4px 10px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.rstamp .fut { color: #FFD27A; }
.rctrl { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
#radarPlay { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex: none; }
#radarPlay svg { width: 20px; height: 20px; fill: #fff; }
#radarPlay.on svg path { d: path("M7 5h4v14H7zM13 5h4v14h-4z"); }
#radarSlider { flex: 1; accent-color: #7CC4FF; }
#radarLegend .wx-legend { padding-top: 4px; }
#radarCard .src { padding: 0 16px; }

/* ---------- Eclipses ---------- */
#eclipses { padding: 0 16px 6px; }
.ecl { display: flex; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ecl:last-child { border-bottom: 0; }
.eico { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; background: #0E1626; }
.eico svg { width: 48px; height: 48px; }
.etxt { flex: 1; min-width: 0; }
.ek { font-size: 16px; font-weight: 600; }
.ed { font-size: 14px; margin: 1px 0 4px; }
.emeta { font-size: 13px; color: var(--dim); line-height: 1.4; }
.ecount { font-size: 13.5px; color: #FFD27A; margin-top: 4px; font-weight: 600; }
.ewarn { font-size: 12px; color: var(--faint); margin-top: 4px; }

.lic { font-size: 10.5px !important; line-height: 1.35; color: var(--faint); }

/* ---------- Pestañas y tarjetas (ajustes) ---------- */
.lay-h { display: flex; align-items: center; margin: 18px 4px 8px; }
/* Grupos plegables de «Pestañas y tarjetas»: el título es un botón con flecha */
.lay-g { margin-bottom: 4px; }
.lay-gh { width: 100%; text-align: left; gap: 8px; padding: 10px 6px; margin: 4px 0; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.lay-gh small { color: var(--faint); font-weight: 500; }
.lay-chev { font-style: normal; display: inline-block; width: 14px; transition: transform .15s; color: var(--dim); }
.lay-g.open .lay-chev { transform: rotate(90deg); }
.lay-cols { margin-left: auto; display: flex; gap: 6px; }
.lay-cols i { font-style: normal; width: 42px; text-align: center; font-size: 11px; color: var(--faint); }
.lay-row { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 8px 10px; margin-bottom: 6px; }
.lay-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.lay-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.lay-arr { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: 12px; color: var(--dim); flex: none; }
.lay-arr:disabled { opacity: .25; }
.lay-fixed { width: 42px; text-align: center; font-size: 11px; color: var(--faint); }
.toggle.sm { width: 42px; height: 26px; }
.toggle.sm::after { width: 20px; height: 20px; }
.toggle.sm.on::after { transform: translateX(16px); }
.lay-open { width: 100%; margin: 0; }
/* Ruedita ⚙ de cada pestaña (02/12/2026): pequeña, arriba a la derecha; con cuántas tarjetas ha ocultado el usuario */
.tab-cfg-row { display: flex; justify-content: flex-end; margin: 0 2px 6px; }
/* (sin la cabecera grande, la barra de arriba tapaba su borde de arriba: un poco de aire) */
body.nohero .tab-cfg-row { margin-top: 6px; }
.tab-cfg { display: inline-flex; align-items: center; gap: 5px; height: 30px; min-width: 30px; padding: 0 7px; border-radius: 15px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .08); color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.tab-cfg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.tab-cfg:active { background: rgba(255, 255, 255, .22); }
.tab-cfg-n:empty { display: none; }
body.capturing .tab-cfg-row { visibility: hidden; }
.tc-simple { margin: 18px 0 10px; }
.tc-sim { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.tc-sim span { font-size: 13.5px; color: var(--dim); }
.tc-sim.on { background: rgba(79, 209, 197, .14); box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .4); }
.tc-btn { margin-top: 8px; }
#tabCfgSheet .tc-opts .set-group { margin-top: 6px; }

/* ---------- Mapa del tiempo ---------- */
.chips.wx-layers { margin: 0 0 10px; padding: 0 12px; --hs-pad: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
/* Filas de botones que se desplazan en horizontal: flechas discretas pegadas al borde si quedan botones fuera
   (las clases ml / mr las pone scrollArrows() en app.js). Se solapan con los botones y no ocupan sitio. */
.hs-arrows::before, .hs-arrows::after {
  content: ''; position: sticky; z-index: 1; flex: none; width: 22px; align-self: stretch; pointer-events: none; opacity: 0; transition: opacity .2s;
  background-repeat: no-repeat; background-size: 12px 12px;
}
/* (left/right negativos: pegadas al borde de la fila aunque tenga margen interior; --hs-pad lo da cada fila) */
.hs-arrows::before { left: calc(-1 * var(--hs-pad, 0px)); margin-right: -22px; background-position: 2px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23fff' stroke-opacity='.6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(270deg, rgba(12, 20, 36, 0), rgba(12, 20, 36, .9)); }
.hs-arrows::after { right: calc(-1 * var(--hs-pad, 0px)); margin-left: -22px; background-position: calc(100% - 2px) center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23fff' stroke-opacity='.6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(90deg, rgba(12, 20, 36, 0), rgba(12, 20, 36, .9)); }
.hs-arrows::before, .hs-arrows::after { background-size: 12px 12px, 100% 100%; background-position-y: center; }
.hs-arrows.ml::before, .hs-arrows.mr::after { opacity: 1; }
.wx-layers::-webkit-scrollbar { display: none; }
.wx-layers button { flex: none; }
.wx-satnote { padding: 2px 16px 4px; }
#wxCanvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 14px; touch-action: pan-y; }
#wxCard .rwrap { margin: 0 12px; position: relative; }
.wx-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: 14px; color: var(--dim); background: rgba(13, 26, 43, .8); border-radius: 14px; }
.wx-msg[hidden] { display: none; } /* sin esto, el velo vacío tapaba el mapa y se comía los toques */
#tripPlay { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex: none; }
#tripPlay svg { width: 20px; height: 20px; fill: #fff; }
#tripPlay.on svg path { d: path("M7 5h4v14H7zM13 5h4v14h-4z"); }
#tripSlider { flex: 1; accent-color: #7CC4FF; }
#wxPlay { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex: none; }
#wxPlay svg { width: 20px; height: 20px; fill: #fff; }
#wxPlay.on svg path { d: path("M7 5h4v14H7zM13 5h4v14h-4z"); }
#wxSlider { flex: 1; accent-color: #7CC4FF; }
.wx-view { margin: 2px 16px 10px; }
.wx-legend { padding: 0 16px 6px; }
.wx-legend i { display: block; height: 9px; border-radius: 5px; }
.wx-ticks { position: relative; height: 16px; font-size: 11px; color: var(--dim); }
.wx-ticks span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.wx-legend small { display: block; font-size: 11px; color: var(--faint); text-align: right; }
/* Nubes por niveles: una muestra de color por nivel */
.wx-cls .wx-cl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.wx-cls .wx-cl i { width: 56px; flex: none; }
.wx-cls small { margin-top: 2px; }
/* Menú de las nubes (todas o por niveles), bajo el botón «Nubes» de Predicción y de Viaje */
.chips button .cdd { display: inline-block; margin-left: 5px; font-size: 10px; opacity: .8; }
.chips button .cdots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.chips button .cdots i { width: 8px; height: 8px; border-radius: 50%; }
#cloudMenu { position: fixed; z-index: 40; min-width: 230px; padding: 6px; border-radius: 16px;
  background: rgba(16, 26, 46, .96); border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: cmIn .16s ease-out; }
#cloudMenu[hidden] { display: none; }
@keyframes cmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#cloudMenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border-radius: 11px; font-size: 14.5px; text-align: left; }
#cloudMenu button:active { background: rgba(255, 255, 255, .08); }
#cloudMenu button small { display: block; font-size: 11.5px; color: var(--faint); }
#cloudMenu .sw { width: 22px; height: 22px; border-radius: 7px; flex: none; }
#cloudMenu .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: transparent; }
#cloudMenu button.on .ck { background: #7CC4FF; border-color: #7CC4FF; color: #0d1a2b; }
#cloudMenu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 4px 6px; }
#cloudMenu .cm-off { color: var(--dim); font-size: 13.5px; justify-content: center; }
#cloudMenu .cm-off[disabled] { opacity: .35; }
/* Cuadrado de color de los niveles: se toca para abrir la paleta (algo más grande y con borde para que se vea tocable) */
#cloudMenu [data-cm="low"] .sw, #cloudMenu [data-cm="mid"] .sw, #cloudMenu [data-cm="high"] .sw { width: 28px; height: 28px; margin: -3px 0; border: 2px solid rgba(255, 255, 255, .45); }
#cloudMenu .cm-hint { display: block; padding: 2px 10px 0; font-size: 11.5px; color: var(--faint); }
#cloudMenu .cm-pal-t { padding: 8px 10px 4px; font-size: 13.5px; color: var(--dim); }
#cloudMenu .cm-pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 6px 8px 8px; }
#cloudMenu .cm-pal button { width: auto; aspect-ratio: 1; padding: 0; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .18); }
#cloudMenu .cm-pal button.on { border-color: #7CC4FF; box-shadow: 0 0 0 2px #7CC4FF; }
#cloudMenu [data-cp][disabled] { opacity: .35; }
.wx-src { padding: 4px 16px 12px; }

/* ---------- Planes cerca ---------- */
#planes { padding: 0 12px 8px; }
.pl-when, .pl-cat { margin: 0 0 8px; }
.pl-cat button { font-size: 13px; }
.pl-wet { font-size: 13.5px; background: rgba(124, 196, 255, .14); border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; }
.pl-none { padding: 6px 4px 10px; }
.pl-sub { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 14px 4px 8px; }
.ev { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: inherit; }
.ev-ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { font-size: 12.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-price { font-size: 12px; color: #FFD27A; margin-top: 2px; }
.ev-go { font-size: 22px; color: var(--faint); flex: none; }
.pl-src { padding: 10px 4px 4px; }

/* ---------- Actividades ---------- */
#acts { padding: 0 12px; }
/* Tamaño máximo de la lista de actividades (28/11/2026, idea del usuario): con muchas, se desliza dentro de la tarjeta;
   abajo se difumina mientras quedan más (clase «more», la pone actsFade en app.js) */
#acts.scroll { max-height: min(62vh, 470px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#acts.scroll.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.acts-more { display: block; text-align: center; font-size: 12px; color: var(--faint); margin: 2px 0 0; }
.acts-more[hidden] { display: none; }
.act-why.act-warn { color: #FFB74D; font-weight: 600; }
.act { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.act-ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.act-main { flex: 1; min-width: 0; }
.act-ico svg, .al-ico svg { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.act-note { padding: 8px 4px 4px; }
.act-name { font-weight: 600; font-size: 15px; }
.act-line { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-top: 2px; }
.act-st { font-size: 13px; font-weight: 600; }
.act-st.r2 { color: #4FD1A0; }
.act-st.r1 { color: #FFD27A; }
.act-st.r0 { color: #FF8A80; }
.act-why { font-size: 12px; color: var(--dim); }
.act-why.act-extra { flex-basis: 100%; margin-top: 3px; }
.act-go { margin-top: 6px; padding: 5px 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; }
.act-days { display: grid; grid-template-columns: repeat(7, 15px); gap: 3px; flex: none; }
.act-days .ad { width: 15px; height: 15px; border-radius: 50%; position: relative; font-style: normal; background: rgba(255, 255, 255, .12); }
.act-days .ad.r2 { background: #3DBF8A; }
.act-days .ad.r1 { background: #E8B84A; }
.act-days .ad.r0 { background: #D9605A; }
.act-days .ad b { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.act:first-child .act-days .ad b { display: block; }
.act:not(:first-child) .act-days .ad b { display: none; }
.act:first-child { padding-top: 18px; }
.act-cfg { display: block; width: calc(100% - 24px); margin: 8px 12px 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; color: var(--dim); }

/* ---------- Huerta (12/11/2026) ---------- */
#huerta { padding: 0 16px 8px; }
.hu-top { padding: 2px 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hu-head { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.hu-head.r2 { color: #4FD1A0; }
.hu-head.r1 { color: #FFD27A; }
.hu-sub { display: block; font-size: 12.5px; color: var(--dim); margin-top: 5px; line-height: 1.4; }
.hu-btns { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.hu-water { background: rgba(79, 195, 247, .25); font-weight: 600; }
.hu-ok { color: #4FD1A0; font-weight: 600; font-size: 14px; }
.hu-lbl { font-size: 12px; color: var(--faint); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .4px; }
.hu-sec { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hu-sec > summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.hu-sec > summary::-webkit-details-marker { display: none; }
.hu-sec > summary::after { content: '⌄'; color: var(--faint); }
.hu-sec[open] > summary::after { content: '⌃'; }
.hu-sec[open] { padding-bottom: 10px; }
.hu-warn { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; padding: 6px 0; }
.hu-warn > span:first-child { flex: none; font-size: 17px; }
.hu-warn.big > span:last-child { color: #FFD27A; }
/* Luna y faenas (16/11/2026): aviso de que es la tradición y cuadro de 10 días (día · luna · podar · trasegar) */
.hu-trad { font-size: 13px; line-height: 1.45; padding: 8px 10px; margin-bottom: 4px; border-radius: 10px; background: rgba(255, 210, 122, .1);
  border-left: 3px solid rgba(255, 210, 122, .6); color: var(--dim); }
.hu-trad b { color: #fff; }
.hu-warn small { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.hu-lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 82px 52px 66px; gap: 2px 0; align-items: center; margin-top: 8px;
  font-size: 13px; font-variant-numeric: tabular-nums; }
.hu-lgrid > span { padding: 5px 2px; text-align: center; }
.hu-lgrid > span.l { font-size: 12px; color: var(--dim); }
.hu-lgrid > span.mg { background: rgba(255, 210, 122, .1); }
.hu-lgrid > span.d.mg { border-radius: 8px 0 0 8px; padding-left: 6px; }
.hu-lgrid > span.l.mg { color: #FFD27A; font-weight: 600; }
.hu-lgrid > span:nth-child(4n).mg { border-radius: 0 8px 8px 0; }
.hu-lgrid > span:nth-child(4n + 1) { text-align: left; }
.hu-lgrid .hu-lh { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.hu-lgrid .ok { color: #4FD1A0; font-weight: 700; }
.hu-lgrid .no { color: var(--faint); }
.hu-grp { margin-top: 10px; }
.hu-gt { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hu-crops { display: flex; flex-wrap: wrap; gap: 6px; }
.hu-crop { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 5px 10px; font-size: 13px; }
.hu-crop small { display: block; font-size: 11px; color: var(--dim); }
.hu-mine { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.hu-mi { font-size: 22px; flex: none; }
.hu-mt { flex: 1; min-width: 0; font-size: 14px; }
.hu-mt small { display: block; font-size: 12px; color: var(--dim); }
.hu-del { flex: none; width: 34px; height: 34px; font-size: 14px; color: var(--dim); }
.hu-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hu-add select, .hu-add input { flex: 1 1 40%; min-width: 0; height: 36px; border-radius: 10px; border: 0; padding: 0 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; color-scheme: dark; }
.hu-add select option { color: #000; }

/* ---------- Barra de estado (13/11/2026) ---------- */
.st-select { width: 100%; height: 40px; border-radius: 12px; border: 0; padding: 0 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; color-scheme: dark; }
.st-select option { color: #000; }
#stMsg { padding: 10px 4px; }

/* ---------- Cielo nocturno ---------- */
#night, #meteors { padding: 0 16px 8px; }
.ncond { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nstars { flex: none; font-size: 15px; letter-spacing: 1px; color: #FFD27A; padding-top: 1px; }
.nstars i { color: rgba(255, 255, 255, .22); font-style: normal; }
.ntext { font-size: 14.5px; line-height: 1.4; }
.nmeta { font-size: 13px; color: var(--dim); margin-top: 4px; line-height: 1.4; }
.npl { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.npl:last-child { border-bottom: 0; }
.npl .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.npl .nm { font-weight: 600; font-size: 15px; }
.npl .nd { font-size: 13px; color: var(--dim); line-height: 1.35; }
.npl.off { opacity: .55; }
.skywrap { position: relative; padding: 0 12px; }
#skyCanvas { width: 100%; aspect-ratio: 1; display: block; touch-action: pan-y; position: relative; }
/* Imagen de la cámara detrás del mapa del cielo (la app le da la posición y el tamaño del lienzo) */
#skyVideo { position: absolute; object-fit: cover; background: #000; pointer-events: none; }
#skyPick { bottom: 18px; }
.skytime { font-size: 14px; font-weight: 600; min-width: 92px; }
#skySlider { flex: 1; accent-color: #FFD27A; }
.skyhelp { padding: 0 16px 12px; }
.met { padding: 10px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.met:last-child { border-bottom: 0; }
.met .ek .live { font-size: 11.5px; font-weight: 700; color: #0B1A2E; background: #FFD27A; border-radius: 8px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Alertas ---------- */
#btnAlerts { position: relative; }
#btnAlerts svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
#alertDot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #FFB547; }
.sheet-intro { margin: 0 4px 14px; font-size: 14px; line-height: 1.45; color: var(--dim); }
#alertMsg { padding: 12px 14px; border-radius: 14px; background: rgba(255, 170, 60, .2); font-size: 14px; margin-bottom: 14px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); font-size: 14px; color: var(--dim); }
.chips button.on { background: rgba(255, 255, 255, .25); color: #fff; font-weight: 600; }
/* (03/12/2026) «Pestaña al abrir la app»: los botones se montaban un poco sobre «Fuentes y notas» */
.chips.tab-start { margin-bottom: 12px; }
/* Elegir playa (widgets y alerta de surf, 24/11/2026): botones que pueden partir línea, con el municipio en pequeño */
.wg-beach { margin: 4px 0 10px; }
.wg-beach .chips button { padding: 7px 12px; font-size: 13.5px; white-space: normal; text-align: left; }
.wg-beach .chips button small { font-size: 11.5px; opacity: .7; font-weight: 400; }
.al-opt.al-beaches { display: block; }
.al-opt.al-beaches > span { display: block; margin-bottom: 6px; }
.wg-beachq { width: 100%; margin: 10px 0 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; }
.al-item { background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.al-item.disabled { opacity: .55; }
.al-row { display: flex; align-items: center; gap: 12px; }
.al-ico { font-size: 24px; width: 30px; text-align: center; flex: none; }
.al-txt { flex: 1; min-width: 0; }
.al-name { font-size: 16px; font-weight: 600; }
.al-desc { font-size: 13px; color: var(--dim); margin-top: 2px; line-height: 1.35; }
.al-opt { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px 42px; font-size: 13px; color: var(--dim); }
.al-opt > span:first-child { min-width: 64px; }
/* La configuración de cada alerta se despliega al tocarla (aunque esté apagada, para poder prepararla) */
.al-row { cursor: pointer; }
.al-detail { display: none; }
.al-item.open .al-detail { display: block; }
.al-chev { display: inline-block; font-size: 12px; color: var(--faint); transition: transform .2s; }
.al-item.open .al-chev { transform: rotate(180deg); }
.al-item:not(.on) .al-desc { opacity: .75; }
/* Grupos de alertas desplegables: cabecera con cuántas hay activas */
.al-group { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0; padding: 12px 6px; font-size: 15px; font-weight: 600; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.al-group .al-gn { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #7CC4FF; }
.al-group .al-chev { font-size: 14px; }
.al-sec.open > .al-group .al-chev { transform: rotate(180deg); }
.al-gbody { display: none; padding-top: 6px; }
.al-sec.open > .al-gbody { display: block; }
.al-opt .seg { flex: 1; }
.seg.small button { height: 32px; font-size: 13.5px; }
.al-range { flex: 1; accent-color: #3D9BFF; min-width: 0; }
.al-val { min-width: 64px; text-align: right; color: #fff; font-size: 14px; font-weight: 600; }
.al-tone { flex-wrap: wrap; }
.tone-btn { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: 13px; max-width: 100%; }
.tone-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.tone-btn i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.al-tone select { background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 13px; }
.al-tone select option { background: #18233A; }
.tone-test { padding: 6px 12px; border-radius: 10px; background: rgba(61, 155, 255, .3); font-size: 13px; font-weight: 600; }
.toggle { width: 50px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .2); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.toggle.on { background: #3D9BFF; }
.toggle.on::after { transform: translateX(20px); }
.btn { display: block; width: 100%; height: 46px; margin: 16px 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 15px; font-weight: 600; }
.btn:active { background: rgba(255, 255, 255, .25); }
.al-foot { margin: 4px 4px 0; font-size: 12.5px; color: var(--faint); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .bg-layer { animation: none; }
  #fog-fx i { animation: none; }
}
.hgrid .hcurve { flex: none; }

.btn-sec { background: rgba(255, 255, 255, .08); font-weight: 500; }

/* Aire y polen */
.aq-now { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.aq-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.aq-cat { font-size: 16px; }
.aq-why { font-size: 12.5px; opacity: .75; margin-top: 2px; }
.aq-adv { font-size: 13px; line-height: 1.45; opacity: .9; margin-bottom: 10px; }
#aire { padding: 0 16px 12px; }
.aq-polls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.aq-p { background: rgba(255,255,255,.07); border-radius: 10px; padding: 7px 6px 0; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.aq-pn { font-size: 11.5px; opacity: .7; }
.aq-pv { font-size: 16px; font-weight: 600; margin: 2px 0 6px; }
.aq-pv small { font-size: 10px; font-weight: 400; opacity: .7; }
.aq-p i { display: block; height: 4px; margin: auto -6px 0; }
/* minmax(0, 1fr): con letra grande, «Razonablemente» no debe empujar las columnas fuera de la tarjeta */
/* Aire hora a hora (03/12/2026): las filas de Hogar con la etiqueta del día más estrecha */
.aq-tl { margin-top: 6px; }
.aq-tl .hg-tl-r { grid-template-columns: 58px 1fr; }
.aq-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.aq-day { text-align: center; font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.aq-day i { display: block; height: 8px; border-radius: 4px; margin: 5px 4px 4px; }
.aq-day small { display: block; font-size: 10.5px; opacity: .75; line-height: 1.2; }
.aq-pol { font-size: 12.5px; }
.aq-prow { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); align-items: center; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.08); }
.aq-prow > span + span { text-align: center; font-size: 11px; opacity: .85; }
.aq-prow i { display: block; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 2px; }
.aq-phead { border-top: 0; opacity: .7; }
.aq-phead > span + span { font-size: 12px; }
.aq-pol + .src, .aq-pol ~ .src { margin-top: 8px; }

/* Mapa del tiempo: ampliar con los dedos */
#wxCard .rwrap { overflow: hidden; border-radius: 14px; }
#wxCanvas { will-change: transform; }
.wx-reset { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(10, 18, 34, .7); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wx-reset[hidden] { display: none; }
.wx-reset svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Mapa del cielo: botón de girar con la brújula (naranja = siguiendo la brújula; blanco = norte fijo arriba) */
#skyFollow .fillc { fill: currentColor; }
#skyFollow.on { color: #FFB547; }
/* Botón de la cámara, abajo a la derecha del mapa (naranja = encendida); brilla las primeras veces, con un bocadillo */
#skyCam { top: auto; bottom: 8px; }
#skyCam.on { color: #FFB547; }
#skyCam.pulse { animation: skycampulse 1.6s ease-out infinite; }
@keyframes skycampulse { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .75); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 181, 71, 0); } }
.skycamtip { position: absolute; right: 6px; bottom: 54px; max-width: 70%; background: #FFB547; color: #10192b; font-size: 12.5px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; pointer-events: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.skycamtip::after { content: ''; position: absolute; right: 18px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #FFB547; }
.skycamtip[hidden] { display: none; }
/* Cámara pedida con el móvil plano: aviso en el centro del mapa */
.skycamhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 78%; text-align: center;
  background: rgba(10, 18, 34, .85); border: 1px solid rgba(255, 181, 71, .5); padding: 10px 14px; border-radius: 14px; pointer-events: none; }
.skycamhint b { display: block; font-size: 15px; }
.skycamhint span { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; }
.skycamhint[hidden] { display: none; }
#skyPick { max-width: calc(100% - 110px); white-space: normal; text-align: center; }

/* Mapa del tiempo a pantalla completa (el contenido de la tarjeta se mueve a #wxFs) */
.wx-fullbtn { left: 8px; right: auto; }
#wxFs { position: fixed; inset: 0; z-index: 20; background: #0b1524; display: flex; flex-direction: column;
  padding: calc(var(--top) + 6px) 0 calc(var(--bottom) + 6px); }
#wxFs[hidden] { display: none; }
#wxFs .card-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#wxFs .rwrap { position: relative; flex: 1; min-height: 0; margin: 0; overflow: hidden; }
#wxFs #wxCanvas { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
#wxFs .wx-msg { border-radius: 0; }
#wxFs .wx-src { display: none; }
#wxFs .rctrl { padding-top: 8px; }
#wxFs .wx-legend { padding-bottom: 2px; }
#wxFs .wx-satnote { font-size: 11px; line-height: 1.35; }
body.wx-fs #tabs { visibility: hidden; }
/* Radar a pantalla completa: rectangular, sin el círculo */
#wxFs .rbody { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#wxFs .rmsg { font-size: 13.5px; padding: 0 16px 8px; }
#wxFs .rcirc { border-radius: 0; aspect-ratio: auto; height: 100%; }
#wxFs #radarCanvas { width: 100%; height: 100%; aspect-ratio: auto; }
#wxFs #radarSrc { display: none; }
/* Mapa del cielo a pantalla completa: se amplía y se mueve con los dedos */
#wxFs .skywrap { flex: 1; min-height: 0; padding: 0; }
#wxFs #skyCanvas { width: 100%; height: 100%; aspect-ratio: auto; touch-action: none; }
#wxFs .skyhelp { padding: 2px 16px 0; font-size: 11.5px; }

/* Widgets: diseños */
.wg { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 12px 10px 4px; margin: 0 0 14px; scroll-margin-top: calc(var(--top, 24px) + 12px); }
.wg .set-label { margin: 12px 4px 6px; font-size: 13px; }
.wg-head { display: flex; align-items: center; gap: 8px; }
.wg-name { flex: 1; min-width: 0; background: rgba(255, 255, 255, .1); border: 0; border-radius: 10px; padding: 9px 12px; font-size: 16px; font-weight: 700; color: #fff; }
/* Plegar cada widget: flecha en la cabecera y, plegado, un resumen de una línea */
.wg-fold { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.wg-fold .chev { width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.wg.folded .wg-fold .chev { transform: rotate(-45deg) translate(-1px, -1px); }
.wg.folded { padding-bottom: 10px; }
.wg-sum { margin: 8px 4px 0; font-size: 13.5px; color: var(--dim); cursor: pointer; }
.wg-body[hidden] { display: none; }
.wg-placed { font-size: 11.5px; font-weight: 700; color: #7FD99A; background: rgba(61, 214, 140, .15); border-radius: 10px; padding: 4px 8px; white-space: nowrap; }
.wg-place { width: 100%; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 10px; padding: 9px 10px; font-size: 15px; }
.wg-place option { color: #000; }
.wg .seg button { font-size: 13.5px; }
.wg .lay-row.off .lay-name { color: var(--faint); font-weight: 500; }
.wg-ico { width: 24px; text-align: center; flex: none; }
.wg-actions .act-cfg { width: 100%; margin: 10px 0 0; }
.wg-actions .act-cfg[data-wgpin] { background: rgba(61, 155, 255, .25); color: #fff; }
.wg-del { color: #FF9A9A !important; }
.wg-msg { margin: 8px 4px; }
.wg-msg[hidden] { display: none; }
.wg-note { margin-top: 4px; font-size: 12.5px; }
.wg-size { margin: 10px 4px 0; font-size: 13px; color: var(--dim); }

/* Horóscopo (pestaña Cielo) */
#zodiac { padding: 0 16px 6px; }
#zodiacCard .src { padding: 0 16px 12px; }
/* Brújula */
.cmp-wrap { display: flex; justify-content: center; padding: 20px 0 22px; }
.cmp { width: min(220px, 62vw); height: auto; overflow: visible; }
.cmp .ring { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.cmp line { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.cmp line.big { stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; }
.cmp text { fill: #fff; font: 600 15px system-ui, sans-serif; text-anchor: middle; dominant-baseline: middle; }
.cmp text.n { fill: #FF6B6B; font-size: 18px; font-weight: 800; }
.cmp text.num { fill: rgba(255, 255, 255, .6); font-size: 8.5px; font-weight: 500; }
#cmpRose { transform-origin: 100px 100px; transition: transform .12s linear; }
.cmp .nd-n { fill: #FF6B6B; }
.cmp .nd-s { fill: rgba(255, 255, 255, .75); }
.cmp .hub { fill: #0d1a2b; stroke: #fff; stroke-width: 1.5; }
.cmp .idx { fill: #FFD27A; }
.cmp .sun { fill: #FFD27A; stroke: #0d1a2b; stroke-width: 1.5; }
.cmp .moon { fill: #E6ECF5; stroke: #0d1a2b; stroke-width: 1.5; }
.cmp line.wind { stroke: #7CC4FF; stroke-width: 2.5; stroke-linecap: round; }
.cmp .windh { fill: #7CC4FF; }
.cmp-head { text-align: center; font-size: 17px; margin-bottom: 8px; }
.cmp-info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cmp-info span { display: flex; align-items: center; gap: 8px; }
.cmp-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.cmp-dot.sun { background: #FFD27A; } .cmp-dot.moon { background: #E6ECF5; } .cmp-dot.wind { background: #7CC4FF; }
.cmp-dot.off { opacity: .3; }
#compass { padding: 0 16px 12px; }
#compass .src { padding: 0; margin-top: 10px; }
.zsun { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.zsun .zg { font-size: 46px; line-height: 1; width: 56px; text-align: center; color: #FFD27A; }
.zsun .zn { font-size: 22px; font-weight: 600; }
.zsun .zd { color: var(--dim); font-size: 13px; margin-top: 2px; }
.zrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--glass-border); font-size: 15px; }
.zrow .zr { text-align: right; }
.zrow b { font-weight: 600; }
.zrow small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* Oleaje dibujado en el detalle de cada playa: escena + tira de horas (la del centro es la elegida) */
.ol { margin: 2px 0 8px; }
.ol canvas { display: block; width: 100%; height: 170px; border-radius: 12px; }
.ol-info { font-size: 12.5px; color: var(--dim); margin: 8px 2px 0; min-height: 38px; }
.ol-info b { color: #fff; font-size: 15px; font-weight: 600; margin-right: 4px; }
.ol-gear { margin-top: 4px; color: #E6EDF7; line-height: 1.45; }
.ol-strip { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory;
  padding: 2px calc(50% - 17px); margin-top: 4px; }
.ol-strip::-webkit-scrollbar { display: none; }
/* Día fijo a la izquierda de la tira (el de las primeras horas que se ven) */
.ol-stripw { position: relative; }
.ol-day { position: absolute; left: 0; top: 7px; font-size: 9.5px; color: #F5C76A; white-space: nowrap; pointer-events: none;
  padding: 0 6px 0 2px; border-radius: 4px; background: rgba(18, 28, 48, .7); }
.ol-day[hidden] { display: none; }
.ol-h { flex: 0 0 34px; scroll-snap-align: center; position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 62px; padding: 0 0 3px; border: 0; border-radius: 8px; background: none; color: var(--dim);
  font: inherit; font-size: 10.5px; }
.ol-h i { position: absolute; top: 1px; left: 3px; font-style: normal; font-size: 9.5px; color: #F5C76A; white-space: nowrap; z-index: 1; }
.ol-h.d0 { box-shadow: inset 1px 0 rgba(255, 255, 255, .2); border-radius: 0; }
.ol-h s { display: block; width: 14px; border-radius: 4px 4px 0 0; margin-bottom: 3px; text-decoration: none; }
.ol-h.night s { opacity: .45; }
.ol-h.sel { background: rgba(255, 255, 255, .16); color: #fff; }

/* Feiras cerca (pestaña Días): cada feria se despliega con el texto de su ficha */
#feiras { padding: 0 16px 6px; }
#feirasCard .src { padding: 0 16px 12px; }
#feiras .act-cfg { margin: 8px 0 4px; }
.fe summary { list-style: none; cursor: pointer; }
.fe summary::-webkit-details-marker { display: none; }
.fe[open] .ev-go { transform: rotate(180deg); }
.fe-text { color: var(--dim); font-size: 13px; line-height: 1.45; padding: 0 0 10px 44px; }
.fe-text a { display: inline-block; margin-top: 6px; color: #9fd0ff; }

/* Menú del tiempo (pestaña Días): desayuno, comida y cena; cada receta se despliega */
#menu { padding: 0 16px 6px; }
#menuCard .src { padding: 4px 0 8px; }
#menu .pl-sub { margin-top: 2px; }
.mn summary { list-style: none; cursor: pointer; }
.mn summary::-webkit-details-marker { display: none; }
.mn[open] .ev-go { transform: rotate(180deg); }
.mn .ev-ico { font-size: 24px; }
.mn .ev-title, .mn .ev-meta { white-space: normal; overflow: visible; text-overflow: clip; } /* que no se corte el porqué */
.mn-meal { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #FFD27A; }
.mn-body { color: var(--dim); font-size: 13.5px; line-height: 1.45; padding: 0 0 12px 44px; }
.mn-body b { display: block; color: #fff; font-size: 13px; margin: 4px 0 2px; }
.mn-body ul, .mn-body ol { margin: 0 0 6px; padding-left: 18px; }
.mn-body li { margin: 2px 0; }
.mn-body .chip { margin-top: 4px; }
/* Ligero / Equilibrado / Con energía y calorías (27/11/2026) */
.mn-modo { margin: 2px 0 8px; }
.mn-kcal { font-size: 12.5px; color: #9FE3B4; margin-top: 2px; }
.mn-nut { font-size: 12.5px; color: var(--dim); margin: 2px 0 6px; }
.mn-tot { font-size: 12.5px; color: var(--dim); line-height: 1.45; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }

/* Fechas importantes (pestaña Días) */
#fechas { padding: 0 16px 6px; }
#fechasCard .src { padding: 0 16px 12px; }
#fechas .act-cfg { margin: 8px 0 4px; }
.fch { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fch-ico { font-size: 22px; width: 28px; text-align: center; }
.fch-txt { flex: 1; min-width: 0; }
.fch-t { font-size: 15px; font-weight: 600; }
.fch-s { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.fch-when { color: var(--dim); font-size: 12.5px; white-space: nowrap; }

/* Mapa: detalle de la playa tocada */
.wx-pick { position: absolute; left: 8px; right: 8px; bottom: 8px; display: block; padding: 8px 10px; border-radius: 12px;
  background: rgba(10, 18, 34, .88); border: 1px solid var(--glass-border); font-size: 13px; line-height: 1.45; pointer-events: none; }
.wx-pick[hidden] { display: none; }
.wx-pick b { font-size: 14px; }
.wx-pick .wx-pick-t { color: var(--dim); font-size: 12px; margin-left: 4px; }

/* Noticias cerca (pestaña Hoy) */
#news { padding: 0 12px 6px; }
#news .act-cfg { margin: 8px 4px 4px; }
.news-src { padding: 8px 4px 6px; }
.fch-santo { color: var(--dim); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.fch-santo b { color: var(--text); font-weight: 600; }

/* ---------- Tablets y plegables ---------- */
/* Columna centrada en vez de tarjetas de lado a lado */
@media (min-width: 900px) {
  #scroller > * { max-width: 980px; margin-left: auto; margin-right: auto; }
}
/* En horizontal la altura es escasa: cabecera más compacta para ver antes la previsión */
@media (min-width: 900px) and (orientation: landscape) {
  #hero { padding: 0 0 12px; }
  #temp { font-size: 72px; }
  #temp .deg { font-size: 52px; }
}

/* Viaje: el tiempo en la ruta */
.trip-form { padding: 0 12px 12px; }
.trip-field { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.trip-field > span, .trip-row > span { flex: 0 0 52px; font-size: 13px; color: var(--dim); }
.trip-field input, .trip-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 15px; }
.trip-field input::placeholder { color: var(--faint); }
.trip-del { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--dim); }
.trip-sug { position: absolute; z-index: 5; left: 60px; right: 0; top: 44px; background: #1b2740; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); overflow: hidden; }
.trip-sug[hidden] { display: none; }
.trip-sug button { display: block; width: 100%; padding: 10px 12px; text-align: left; font-size: 15px; color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.trip-sug small { margin-left: 8px; color: var(--faint); font-size: 12px; }
.trip-acts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px 60px; }
.trip-add { font-size: 13.5px; color: var(--dim); }
.trip-add[hidden] { display: none; }
.trip-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.trip-days { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.trip-days button { flex: 1 0 auto; padding: 0 8px; }
.trip-days button:disabled { opacity: .35; }
.trip-hint { margin: -2px 0 10px 60px; font-size: 12.5px; color: var(--dim); }
/* Modos de Viaje (coche, moto, bici; 02/12/2026) */
#tripModoBox[hidden] { display: none; }
#tripModo, #tripBici { flex: 1; min-width: 0; }
#tripModo button, #tripBici button { flex: 1 0 auto; padding: 0 8px; }
.trip-vels { flex: 1; min-width: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
.trip-vels button { flex: 0 0 auto; }
/* Gasolineras en el camino (02/12/2026) */
.trip-gas { margin: 10px 16px 6px; }
.trip-gas .act-cfg { margin: 4px 0 6px; }
.trip-fuels { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.trip-fuels button { flex: 0 0 auto; }
.trip-gas-msg { font-size: 14px; color: var(--dim); padding: 6px 0; }
.trip-gas-best { font-size: 14px; line-height: 1.45; padding: 7px 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(79, 209, 160, .16); }
.trip-gas-list { display: flex; flex-direction: column; }
.trip-gas-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.trip-gas-row > b { flex: 0 0 64px; font-size: 14px; }
.trip-gas-row > b small, .trip-gas-row > span small { display: block; font-weight: 400; font-size: 12px; color: var(--dim); }
.trip-gas-row > span { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.trip-gas-row > em { font-style: normal; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.trip-gas-row > em.g0 { color: #4FD1A0; }
.trip-gas-row > em.g2 { color: #FF9C8A; }
.trip-gas-closed { font-style: normal; color: #FF9C8A; }
.trip-gas-open { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 10px 0 4px; color: var(--dim); }
.trip-icons .trip-gaspin { position: absolute; font-style: normal; font-size: 15px; line-height: 1; transform: translate(-50%, -50%); background: #0d1a2b; border: 1.5px solid #fff; border-radius: 12px; padding: 3px 4px; display: flex; align-items: center; gap: 3px; }
.trip-icons .trip-gaspin.cheap { border-color: #4FD1A0; z-index: 2; }
.trip-icons .trip-gaspin { pointer-events: auto; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
/* Ficha de una gasolinera (02/12/2026): en la lista, debajo de su fila; en el mapa, encima */
.trip-gas-row.sel { background: rgba(255, 255, 255, .07); border-radius: 10px; }
.trip-gas-det { padding: 8px 10px 12px; margin: 2px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.trip-gas-det > .chip { margin-top: 8px; }
.gas-det-t b { font-size: 15px; }
.gas-det-t small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.gas-det-p { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.gas-det-p li { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; color: var(--dim); }
.gas-det-p li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gas-det-p li b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gas-det-p li.on span, .gas-det-p li.on b { color: #4FD1A0; }
.gas-det-l { font-size: 13px; line-height: 1.45; margin-top: 3px; }
.gas-det-l .ok { color: #4FD1A0; } .gas-det-l .ko { color: #FF9C8A; }
.gas-det-maps { margin: 8px 0 0; }
.gas-sel { position: relative; padding: 10px 12px 12px; }
.gas-sel .cam-x { position: absolute; top: 6px; right: 6px; }
.trip-icons .trip-gaspin small { font-size: 11.5px; font-weight: 700; color: #4FD1A0; }
.trip-icons .trip-warr { position: absolute; font-style: normal; transform: translate(-50%, -50%) translate(18px, 14px); display: flex; align-items: center; gap: 1px; background: rgba(13, 26, 43, .82); border-radius: 10px; padding: 1px 5px 1px 3px; pointer-events: none; }
.trip-icons .trip-warr b { display: inline-block; font-size: 12px; line-height: 1; }
.trip-icons .trip-warr small { font-size: 11px; font-weight: 700; color: #fff; }
.trip-icons .trip-warr.cara b { color: #FF6B6B; }
.trip-icons .trip-warr.favor b { color: #4FD1A0; }
.trip-icons .trip-warr.lado b { color: #FFD27A; }
.trip-err { margin: -2px 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: rgba(255, 210, 122, .16); border: 1px solid rgba(255, 210, 122, .35); }
.trip-err[hidden] { display: none; }
.trip-err .chip { margin-top: 6px; }
.trip-cmp { margin: 6px 16px 4px; }
.trip-cmp-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 10px; border-left: 4px solid #4FD1A0; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.trip-cmp-row.l1 { border-left-color: #FFD27A; } .trip-cmp-row.l2 { border-left-color: #FF6B6B; } .trip-cmp-row.na { border-left-color: #9AA8BF; cursor: default; opacity: .7; }
.trip-cmp-row > b { flex: 0 0 18px; font-size: 16px; }
.trip-cmp-row > span { flex: 1; min-width: 0; font-size: 15px; }
.trip-cmp-row > span small { display: block; font-size: 12.5px; color: var(--dim); }
.trip-cmp-row > i { font-style: normal; color: var(--dim); font-size: 20px; }
.trip-ride-leg { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.trip-ride-leg b.c { color: #FF6B6B; } .trip-ride-leg b.f { color: #4FD1A0; } .trip-ride-leg b.l { color: #FFD27A; }
.trip-ride { font-size: 14px; padding: 7px 10px; border-radius: 10px; margin-bottom: 6px; background: rgba(120, 170, 255, .14); }
.trip-hint:empty { display: none; }
.trip-go { display: block; width: 100%; margin: 6px 0 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 15px; font-weight: 600; }
.trip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 11px; font-size: 13px; cursor: pointer; }
.trip-chip > span small { display: block; font-size: 11.5px; color: var(--dim); }
.trip-alert { margin: -4px 12px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.trip-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13.5px; color: var(--dim); }
.trip-name input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; }
.trip-name input::placeholder { color: var(--faint); }
.trip-namesug { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.trip-namesug button { font-size: 12.5px; padding: 5px 10px; }
.trip-alert .seg { margin-bottom: 8px; }
.trip-alert #tripAvMode button { flex: 1 1 auto; padding: 0 8px; }
.trip-wdays button { flex: 1; }
.trip-avtxt { font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.trip-unsave { width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .2); color: var(--dim); font-size: 11px; }
.trip-head { padding: 0 16px 8px; }
.trip-head b { display: block; font-size: 16px; font-weight: 600; }
.trip-head span { font-size: 13px; color: var(--dim); }
.trip-sum { padding: 0 16px; }
.trip-ok, .trip-warn { font-size: 14px; padding: 7px 10px; border-radius: 10px; margin-bottom: 6px; background: rgba(255, 255, 255, .08); }
.trip-ok { background: rgba(79, 209, 160, .18); }
.trip-warn.l1 { background: rgba(255, 210, 122, .2); }
.trip-warn.l2 { background: rgba(255, 107, 107, .25); }
.trip-best { margin: 4px 16px 8px; font-size: 14px; line-height: 1.5; }
.trip-best .chip { margin-left: 4px; }
.trip-mapwrap { padding: 4px 12px 0; }
.trip-mapbox { position: relative; overflow: hidden; border-radius: 14px; }
.trip-mapin { position: relative; will-change: transform; }
#tripMap { width: 100%; height: 260px; display: block; }
/* (recortada al mapa: al ampliar, el coche y el ☀️ no se salen encima de los botones y la barra de debajo) */
.trip-icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.trip-ic { position: absolute; display: flex; align-items: center; gap: 1px; height: 30px; padding: 0 6px 0 3px; border-radius: 15px;
  transform: translate(-50%, calc(-100% - 6px)); background: rgba(10, 18, 34, .78); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.trip-ic .na { font-weight: 500; color: var(--dim); padding: 0 3px; }
.trip-row-ic { flex-direction: column; align-items: center; gap: 0; height: auto; padding: 3px 7px 4px; border-radius: 10px; }
.trip-row-ic > div { display: flex; align-items: center; gap: 2px; }
.trip-row-ic b { margin-right: 3px; }
.trip-row-ic small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .8); max-width: 110px; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.trip-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0d1a2b; }
.tl-row { cursor: pointer; }
#tripFs { position: fixed; inset: 0; z-index: 20; background: #0b1524; display: flex; flex-direction: column; padding: var(--top) 0 var(--bottom); }
#tripFs[hidden] { display: none; }
#tripFs .trip-mapbox { flex: 1; min-height: 0; border-radius: 0; display: flex; flex-direction: column; }
#tripFs .trip-mapin { flex: 1; min-height: 0; }
#tripFs #tripMap { height: 100%; }
/* Capas de la predicción y reproducción del viaje (debajo del mapa; en pantalla completa, abajo) */
.trip-play { background: rgba(10, 18, 34, .55); padding: 8px 0 2px; }
.trip-play .chips.wx-layers { margin: 0; }
.trip-play .rctrl { padding: 8px 12px 4px; }
.trip-play .wx-legend { margin: 0 12px 6px; }
/* La hora de arriba: entre los dos botones redondos (pantalla completa y volver), sin taparlos ni quitarles los toques;
   si no cabe en una línea (con el sol), pasa a dos */
.trip-stamp { top: 10px; bottom: auto; z-index: 2; left: 52px; right: 52px; transform: none; width: fit-content; margin: 0 auto;
  white-space: normal; text-align: center; pointer-events: none; }
.trip-mapbox .wx-reset { z-index: 3; }
.trip-stamp[hidden] { display: none; }
/* El coche del viaje: flecha de navegación que gira con la carretera */
.trip-car { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.trip-car svg { width: 100%; height: 100%; }
/* «☀️ Sol»: caja de 0×0 en el coche girada al acimut del sol; el sol arriba (hacia donde está) y sus rayos hasta el coche */
.trip-sun { position: absolute; width: 0; height: 0; z-index: 1; }
.trip-sun span { position: absolute; left: -13px; top: -66px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 22px; line-height: 1; filter: drop-shadow(0 0 4px rgba(255, 200, 40, .9)); }
.trip-sun .rays { position: absolute; left: -1.5px; top: -42px; width: 3px; height: 24px; border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(255, 214, 64, .95) 0 5px, transparent 5px 8px); }
.trip-sun .rays::after { content: ''; position: absolute; left: -4px; bottom: -6px; border: 5.5px solid transparent; border-top: 7px solid rgba(255, 214, 64, .95); }
.trip-sun.glare span { font-size: 26px; filter: drop-shadow(0 0 7px rgba(255, 200, 40, 1)); }
.trip-glare { color: #FFD640; }
.trip-sunleg { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px 2px; font-size: 12.5px; color: var(--dim); }
.trip-sunleg > i { flex: none; width: 22px; height: 10px; margin-top: 3px; border-radius: 5px; background: rgba(255, 214, 64, .75); }
.trip-sunleg small { display: block; font-size: 11px; color: var(--faint); }
.trip-ic::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(10, 18, 34, .78); }
.trip-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 6px 16px 4px; font-size: 12px; color: var(--dim); }
.trip-legend i { width: 14px; height: 4px; border-radius: 2px; margin-left: 6px; }
.trip-legend i:first-child { margin-left: 0; }
.trip-tl { padding: 4px 12px 0; }
.tl-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 28px 36px auto; align-items: center; gap: 6px; padding: 6px 4px 6px 8px; border-left: 4px solid #9AA8BF; margin-bottom: 2px; font-size: 14px; }
.tl-row.l0 { border-color: #4FD1A0; }
.tl-row.l1 { border-color: #FFD27A; }
.tl-row.l2 { border-color: #FF6B6B; }
.tl-town { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-town small { display: block; font-size: 11.5px; color: #FFD27A; }
.tl-row.l2 .tl-town small { color: #FF8A80; }
.tl-t { text-align: right; font-weight: 500; }
.tl-x { font-size: 12px; color: var(--dim); text-align: right; white-space: nowrap; }
#tripRes > .src { padding: 0 16px 14px; line-height: 1.45; }
.tl-na { grid-column: 3 / -1; }

/* Radar: satélite de bastante antes que la imagen del radar */
.sat-old { opacity: .75; font-style: italic; }

/* ---------- Recorrido guiado (js/tour.js) ---------- */
/* El foco es un hueco transparente con una sombra enorme que oscurece el resto; encima, el globo */
#tourBlock { position: fixed; inset: 0; z-index: 80; }
#tourSpot { position: fixed; z-index: 81; pointer-events: none; border-radius: 14px; border: 2px solid #7CC4FF;
  box-shadow: 0 0 0 200vmax rgba(5, 10, 24, .68), 0 0 18px rgba(124, 196, 255, .55);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
#tourBox { position: fixed; z-index: 82; padding: 14px 16px 10px; border-radius: 18px; background: #16223F;
  border: 1px solid rgba(124, 196, 255, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 15px; line-height: 1.4; }
#tourBox.wait { opacity: .45; pointer-events: none; }
#tourBox b { display: block; font-size: 16px; margin-bottom: 4px; }
#tourBox p { margin: 0 0 10px; color: var(--dim); }
.tour-foot { display: flex; align-items: center; gap: 6px; }
.tour-n { font-size: 12.5px; color: var(--faint); margin-right: auto; }
.tour-foot button { padding: 8px 12px; border-radius: 12px; font-size: 14.5px; }
.tour-foot button:empty { display: none; }
.tour-skip { color: var(--faint); }
.tour-next { background: #7CC4FF; color: #0d1a2b; font-weight: 600; }
body.touring #tabs, body.touring .tabs-more { transform: none !important; }
/* Botón «?» de cada pestaña (abre su recorrido) */
.tab-help { display: flex; justify-content: flex-end; margin: -8px 2px 6px; }
.tab-help button { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 16px; font-size: 13px; color: var(--dim);
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tab-help button i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgba(124, 196, 255, .25); color: #CFE7FF; }
/* Invitación (una vez) para quien ya tenía la app */
#tourInvite, #pinInvite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 16px; font-size: 14px;
  background: rgba(124, 196, 255, .16); border: 1px solid rgba(124, 196, 255, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#tourInvite span, #pinInvite span { flex: 1 1 180px; }
#tourInvite button, #pinInvite button { padding: 6px 12px; border-radius: 12px; font-size: 14px; }
#tourInvite .yes, #pinInvite .yes { background: #7CC4FF; color: #0d1a2b; font-weight: 600; }
#tourInvite .no, #pinInvite .no { color: var(--dim); }

/* ---------- Aviso importante (Ajustes) y recordatorio cada minuto ---------- */
.aviso-box { margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px; border: 2px solid #ff4d4f; background: rgba(200, 30, 40, .22); color: #ffd6d6; transition: background .3s, border-color .3s, color .3s; }
.aviso-box p { margin: 8px 0; line-height: 1.45; }
.aviso-box a { color: #fff; }
.aviso-tit { font-weight: 800; font-size: 1.08em; color: #ff6b6b; }
.aviso-chk { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-weight: 700; color: #fff; }
.aviso-chk input { width: 24px; height: 24px; accent-color: #2fbf71; flex: none; }
.aviso-chk[hidden] { display: none; }
.aviso-chk { transition: opacity .5s; }
.aviso-chk.bye { opacity: 0; }
.aviso-box.ok { border-color: #2fbf71; background: rgba(30, 150, 80, .22); color: #d4f5e2; }
.aviso-box.ok .aviso-tit { color: #5fe39a; }
/* Ya aceptado: el título se toca para plegarlo y desplegarlo; plegado, solo se ve el título */
.aviso-box.ok .aviso-tit { display: flex; align-items: center; cursor: pointer; }
.aviso-box.ok .aviso-tit::after { content: '⌄'; margin-left: auto; padding-left: 8px; font-size: 14px; color: var(--faint); transition: transform .2s; }
.aviso-box.ok:not(.fold) .aviso-tit::after { transform: rotate(180deg); }
.aviso-box.fold { padding-block: 10px; }
.aviso-box.fold > :not(.aviso-tit) { display: none; }
.aviso-st { margin-left: 8px; font-size: .8em; font-weight: 600; opacity: .8; }
.aviso-box.flash { animation: avisoFlash 1s ease-in-out 2; }
@keyframes avisoFlash { 50% { box-shadow: 0 0 0 6px rgba(255, 77, 79, .55); } }
.aviso-pop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(5, 8, 16, .72); }
.aviso-pop[hidden] { display: none; }
.aviso-pop-box { max-width: 420px; width: 100%; padding: 18px 18px 14px; border-radius: 18px; border: 2px solid #ff4d4f; background: #2a0f14; color: #ffd6d6; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.aviso-pop-box p { margin: 10px 0; line-height: 1.45; }
.aviso-pop-box b { color: #fff; }
.aviso-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: #fff; background: #d92d36; }
.aviso-btn.sec { background: transparent; color: #ffb3b3; font-weight: 600; }
/* ---------- Mapas a pantalla completa: panel de controles y leyenda (.fs-side) ---------- */
/* En vertical el panel no existe a efectos de la maqueta: sus piezas siguen en su sitio (las capas y los avisos, arriba) */
.fs-side { display: contents; }
.fs-fold { display: none; } /* (solo en apaisado, ver abajo) */
#wxFs .fs-side > .wx-layers, #wxFs .fs-side > .rmsg { order: -1; }
/* Botón de la leyenda: debajo del de pantalla completa */
.fs-legbtn { top: 52px; left: 8px; right: auto; z-index: 3; }
.fs-legbtn circle { fill: currentColor; stroke: none; }
body.fs-noleg #wxLegend, body.fs-noleg #radarLegend, body.fs-noleg #tripWxLegend { display: none; }
/* En apaisado: el mapa ocupa toda la pantalla y el panel (capas, reproducción y leyenda) va encima, abajo a la derecha,
   semitransparente y con desplazamiento si no cabe; el botón ☰ lo quita entero (body.fs-noleg) */
@media (orientation: landscape) {
  #wxFs .card-body, #wxFs .rbody, #tripFs .trip-mapbox { position: relative; }
  #wxFs .fs-side, #tripFs .fs-side { display: flex; flex-direction: column; position: absolute; right: 10px; bottom: 10px; z-index: 4;
    width: 40%; max-width: 420px; max-height: calc(100% - 66px); overflow-y: auto; padding: 4px 0 8px; border-radius: 16px;
    background: rgba(10, 18, 34, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
  #wxFs .fs-side > .wx-layers, #wxFs .fs-side > .rmsg { order: 0; }
  /* Si no cabe todo, se desplaza: que ninguna pieza se encoja (la fila de capas, con desplazamiento lateral, se quedaba en 0) */
  #wxFs .fs-side > *, #tripFs .fs-side > *, #tripFs .fs-side .trip-play > * { flex-shrink: 0; }
  #tripFs .fs-side .trip-play { display: flex; flex-direction: column; }
  body.fs-noleg #wxFs .fs-side, body.fs-noleg #tripFs .fs-side { display: none; }
  /* La hora de Predicción y Observación, arriba entre los botones (abajo la taparía el panel) */
  #wxFs .rwrap .rstamp { top: 10px; bottom: auto; left: 52px; right: 52px; transform: none; width: fit-content; margin: 0 auto; white-space: normal; text-align: center; }
  /* Flechita para plegar la leyenda, abajo a la derecha del panel (02/12/2026); plegada, quedan las capas y la reproducción */
  #wxFs .fs-side > .fs-fold, #tripFs .fs-side > .fs-fold { display: flex; align-items: center; justify-content: center; order: 99;
    position: sticky; bottom: 0; align-self: flex-end; width: 32px; height: 32px; margin: 2px 8px -4px 0; padding: 0; border: 0;
    border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; }
  .fs-fold svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  body.fs-legfold .fs-fold svg { transform: rotate(180deg); }
  body.fs-legfold #wxFs .fs-side #wxLegend, body.fs-legfold #wxFs .fs-side #radarLegend, body.fs-legfold #tripFs .fs-side #tripWxLegend { display: none; }
  /* (con el panel quitado, la leyenda vuelve a estar dentro para cuando se enseñe otra vez) */
  body.fs-noleg #wxLegend, body.fs-noleg #radarLegend, body.fs-noleg #tripWxLegend { display: block; }
}

/* ---------- Cámaras (webcams de Windy, 16/11/2026) ---------- */
.cam-mapbox { position: relative; overflow: hidden; border-radius: 14px; margin: 4px 12px 0; }
.cam-mapin { position: relative; will-change: transform; }
#camMap { width: 100%; height: 300px; display: block; }
.cam-icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cam-pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 18, 34, .85); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 1px 4px rgba(0, 0, 0, .5); }
.cam-pin svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.cam-pin.on { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: #FFD27A; z-index: 2; }
.cam-pin.on svg { stroke: #0d1a2b; }
.cam-grp { position: absolute; min-width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0 6px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(79, 140, 255, .9); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 0 0 3px rgba(79, 140, 255, .35), 0 1px 4px rgba(0, 0, 0, .5); }
.cam-grp.big { min-width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 18px; }
.cam-me { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #4FD1A0; box-shadow: 0 0 0 3px rgba(79, 209, 160, .35), 0 0 0 1.5px #fff inset; }
.cam-mapbox .wx-reset { z-index: 3; }
.cam-status { z-index: 2; top: 12px; bottom: auto; }
/* Mención de Windy: en la esquina del mapa (también a pantalla completa) y en las fichas */
.cam-mapcredit { position: absolute; left: 6px; bottom: 6px; z-index: 2; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 8px;
  background: rgba(10, 18, 34, .72); color: rgba(255, 255, 255, .85); font-size: 10.5px; line-height: 1.4; }
.cam-mapcredit a, .cam-wcredit a { color: inherit; }
.cam-wcredit { display: block; margin-top: 2px; font-size: 11px !important; color: var(--faint) !important; }
.cam-sel-b .cam-wcredit { flex: 1; margin: 0; }
.cam-status[hidden] { display: none; }
.cam-hint { padding: 6px 16px 2px; font-size: 12px; color: var(--faint); }
.cam-sel { margin: 8px 12px 4px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .07); }
/* La imagen a su tamaño o menor (condiciones de Windy): nunca se agranda */
.cam-img { display: block; text-align: center; background: rgba(0, 0, 0, .25); min-height: 60px; }
.cam-img img { display: block; margin: 0 auto; max-width: 100%; width: auto; height: auto; }
.cam-img span { display: none; padding: 20px; font-size: 13px; color: var(--dim); }
.cam-img.err img { display: none; }
.cam-img.err span { display: block; }
.cam-sel-t { padding: 8px 12px 0; }
.cam-sel-t b { display: block; font-size: 14.5px; }
.cam-sel-t small { font-size: 12.5px; color: var(--dim); }
.cam-sel-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px 10px; }
.cam-sel-b a { padding: 7px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; }
.cam-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--dim); font-size: 15px; }
.cam-filt { padding: 4px 12px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cam-filt::-webkit-scrollbar { display: none; }
.cam-filt button { flex: none; }
.cam-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer; }
.cam-row + .cam-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.cam-th { flex: none; width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .3); }
.cam-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-rt { flex: 1; min-width: 0; }
.cam-rt b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cam-rt small { font-size: 12.5px; color: var(--dim); }
.cam-row .chev-r { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); margin-right: 4px; }
.cam-grpbox .cam-sel-t { padding-bottom: 6px; }
/* Visor de una imagen de tráfico a pantalla completa */
#camViewer { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; flex-direction: column;
  padding: var(--top) env(safe-area-inset-right) var(--bottom) env(safe-area-inset-left); }
#camViewer[hidden] { display: none; }
.cv-stage { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.cv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.cv-cap { padding: 10px 16px 14px; color: #fff; }
.cv-cap b { display: block; font-size: 15px; }
.cv-cap small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
#cvClose { top: calc(var(--top) + 10px); right: calc(env(safe-area-inset-right) + 10px); z-index: 2; }
#cvClose svg, #cvRef svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; }
#cvRef { top: calc(var(--top) + 10px); right: calc(env(safe-area-inset-right) + 56px); z-index: 2; }
#cvRef.spin svg, .cam-tl.spin { animation: camSpin 1s linear infinite; }
.cam-tl.spin { animation: camPulse 1s ease-in-out infinite; }
@keyframes camSpin { to { transform: rotate(360deg); } }
@keyframes camPulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { #cvRef.spin svg, .cam-tl.spin { animation: none; } }
/* Al compartir una tarjeta como imagen, las de Windy no salen (sus condiciones prohíben publicar gráficos con ellas) */
body.capturing .cam-w { position: relative; }
body.capturing .cam-w > img, body.capturing .cam-w > iframe { visibility: hidden; }
body.capturing .cam-w::after { content: 'Webcam de Windy'; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 18, 34, .92); color: rgba(255, 255, 255, .75); font-size: 12px; text-align: center; }
/* Timelapse de Windy en el sitio de la imagen */
.tl-on > .cam-imgw { display: none; }
.cam-imgw { position: relative; }
/* ↗ de Windy en la esquina de sus miniaturas (el resto de la miniatura despliega la cámara) */
.cam-th { position: relative; }
.cam-wlink { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(10, 18, 34, .72); }
.cam-wlink svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* En la imagen grande, más grande y con aire */
.cam-img { position: relative; }
.cam-wlink.big { right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 10px; z-index: 2; }
.cam-wlink.big svg { width: 19px; height: 19px; }
/* ▶ encima de la imagen (abajo a la izquierda): reproduce el timelapse ahí mismo */
.cam-play { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  border-radius: 20px; background: rgba(10, 18, 34, .78); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 2px 8px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cam-play svg { width: 18px; height: 18px; fill: #fff; }
/* El reproductor se dibuja a 480 px y se reduce para que quepa entero (camTlFit pone el ancho, el alto y la escala) */
.cam-tlbox { position: relative; width: 100%; overflow: hidden; background: #000; }
.cam-tlbox iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.cam-tlfull { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 18, 34, .75); }
.cam-tlfull svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
/* Encima del botón de pantalla completa de Windy (abajo a la derecha del reproductor): abre la nuestra. El suyo, dentro
   del iframe, dejaba la pantalla de un color y sin salida en Android (la app no gestiona la pantalla completa de un
   iframe); además el iframe ya no la permite (sin allowfullscreen) */
.cam-tlfs-cover { position: absolute; right: 0; bottom: 0; width: 13%; height: 22%; z-index: 2; background: transparent; border: 0; padding: 0; }
#cvFrame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.cv-stage { position: relative; }
.cam-sel-b .cam-tl { padding: 7px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; color: #fff; }
/* Cámaras en otras tarjetas (16/11/2026): fila de miniaturas; al tocar una, su imagen debajo */
.cam-emb { margin: 10px 0 4px; }
.cam-emb-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 6px; font-size: 13px; font-weight: 700; color: var(--dim); }
.cam-emb-more { font-size: 13px; font-weight: 600; color: var(--accent, #8CC4FF); background: none; padding: 2px 0; }
.cam-emb-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.cam-emb-row::-webkit-scrollbar { display: none; }
.cam-emb-it { flex: none; width: 132px; cursor: pointer; border-radius: 10px; padding: 3px; }
.cam-emb-it.open { background: rgba(255, 255, 255, .1); }
.cam-emb-it .cam-th { width: 126px; height: 71px; display: block; }
.cam-emb-t { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cam-emb-t small { display: block; font-weight: 400; font-size: 11.5px; color: var(--dim); }
.cam-emb .cam-det { margin: 6px 12px 4px; }
.cam-emb > .cam-wcredit { padding: 0 12px; }
#camFavs .cam-emb { margin: 4px 0 10px; }
.trip-cams { margin-top: 6px; }
.trip-cams .cam-wcredit { padding: 2px 16px 0; }
.sunset-cams .cam-emb { margin-top: 6px; }
/* Cámaras sobre el mapa de Viaje: iconos que se pueden tocar y la ficha encima del mapa */
.trip-icons .trip-campin { pointer-events: auto; border: 0; padding: 0; cursor: pointer; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 1; }
.trip-icons .trip-campin svg { width: 14px; height: 14px; }
/* (en la tarjeta, debajo del mapa; a pantalla completa, encima del mapa) */
.trip-camsel { margin: 8px 8px 0; border-radius: 14px; }
.trip-camsel:empty { display: none; }
#tripFs .trip-camsel { position: absolute; left: 8px; right: 8px; top: calc(var(--top) + 118px); margin: 0; z-index: 4; max-height: 55%; overflow-y: auto; }
.trip-camsel .cam-sel { margin: 0; background: rgba(13, 26, 43, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trip-camsel .cam-img img { max-height: 32vh; }
/* Apaisado a pantalla completa: la ficha, panel a la izquierda de arriba abajo (a todo lo ancho dejaba la imagen
   diminuta); la imagen, tan alta como quepa (sin agrandarla nunca: condiciones de Windy) */
@media (orientation: landscape) {
  #tripFs .trip-camsel { left: calc(env(safe-area-inset-left, 0px) + 66px); right: auto; width: min(46%, 460px);
    top: calc(var(--top) + 10px); bottom: calc(var(--bottom) + 10px); max-height: none; }
  #tripFs .trip-camsel .cam-img img, #camFs .cam-img img { max-height: 58vh; }
}
/* Capa de cámaras sobre el radar */
.radar-cams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.radar-cams .rc { pointer-events: auto; border: 0; padding: 0; cursor: pointer; }
.radar-cams .cam-pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.radar-cams .cam-pin svg { width: 13px; height: 13px; }
.radar-cams .cam-grp { min-width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 11.5px; }
#radarCamSel .cam-sel { margin: 8px 12px 4px; }
/* Imagen desplegada debajo de su fila en una lista */
.cam-det { margin: 0 10px 8px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.cam-row.open { background: rgba(255, 255, 255, .06); }
.cam-row .chev-r { transition: transform .15s; }
.cam-row.open .chev-r { transform: rotate(135deg); }
#camFs .cam-det .cam-img img { max-height: 34vh; }
.cam-grplist { max-height: 340px; overflow-y: auto; }
.cam-grpbox .cam-row { padding: 6px 10px; }
/* Pantalla completa: el mapa ocupa todo y la ficha o la lista del grupo van encima, abajo */
#camFs { position: fixed; inset: 0; z-index: 20; background: #0b1524; display: flex; flex-direction: column;
  padding: calc(var(--top) + 6px) 0 calc(var(--bottom) + 6px); }
#camFs[hidden] { display: none; }
#camFs .cam-mapbox { flex: 1; min-height: 0; margin: 0; border-radius: 0; }
#camFs .cam-mapin { height: 100%; }
#camFs #camMap { height: 100%; }
.cam-view { margin: 8px 12px 0; }
#camFs .cam-view { margin: 8px 12px 0; flex: none; }
#camFs #camSel { position: absolute; left: 8px; right: 8px; bottom: calc(var(--bottom) + 62px); z-index: 4; max-height: 62%; overflow-y: auto;
  border-radius: 14px; }
#camFs #camSel .cam-sel { margin: 0; background: rgba(13, 26, 43, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#camFs .cam-img img { max-height: 34vh; }
#camFs .cam-grplist { max-height: none; }
/* En apaisado: la ficha o la lista del grupo a la derecha, de arriba abajo, sin tapar el centro del mapa */
@media (orientation: landscape) {
  #camFs { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #camFs #camSel { left: auto; right: calc(env(safe-area-inset-right) + 8px); top: calc(var(--top) + 54px);
    bottom: calc(var(--bottom) + 62px); width: min(44%, 420px); max-height: none; }
  #camFs .cam-img img { max-height: 42vh; }
  #camFs .cam-view { max-width: 420px; margin: 6px auto 0; width: calc(100% - 24px); }
}
.cam-empty { padding: 14px 16px; font-size: 14px; color: var(--dim); }
.cam-credit a { color: inherit; }