/* El tiempo, fácil (tiempo_facil.js): colores y piezas del día. Todo bajo .tf para
   poder meterlo en el widget sin pisar sus estilos (2026-11-02). */
.tf{
  --bg:#fbf8f2; --tarjeta:#ffffff; --ink:#1f2430; --suave:#5d6472; --borde:#e4ded2;
  --acento:#7a2fb5; --cielo:#e8f2fc; --agua:#2f7fd6; --agua-claro:#cfe3f8;
  --sol:#f4b400; --nube:#9aa4b2; --nube-osc:#6b7584; --rayo:#f7c600; --luna:#c9b458;
  color:var(--ink);
  font-family:"Nunito","Segoe UI",Arial,Helvetica,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .tf{
    --bg:#15181f; --tarjeta:#1f2430; --ink:#eef0f4; --suave:#a8afbd; --borde:#323949;
    --acento:#c08cf0; --cielo:#1c2a3b; --agua:#6aa9ef; --agua-claro:#24405f;
    --nube:#b4bcc8; --nube-osc:#8a94a3; --luna:#e8d98a;
  }
}
.tf *{ box-sizing:border-box; }
.tf .tf-caja{ background:var(--tarjeta); border:2px solid var(--borde); border-radius:20px; padding:16px 18px; margin-bottom:16px; }
.tf .tf-caja h2{ font-size:1.15rem; margin:0 0 10px; }
.tf .tf-frase{ font-size:1.1rem; line-height:1.55; margin:0 0 12px; }
.tf .tf-resumen{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.tf .tf-dato{ background:var(--cielo); border-radius:16px; padding:12px 14px; display:flex; gap:12px; align-items:center; }
.tf .tf-dato svg{ width:56px; height:56px; flex:none; }
.tf .tf-dato .titulo{ font-size:.85rem; color:var(--suave); }
.tf .tf-dato .valor{ font-size:1.15rem; font-weight:700; }
.tf .tf-curva{ overflow-x:auto; }
.tf .tf-curva svg{ width:100%; min-width:640px; height:auto; display:block; }
.tf .tf-curva text{ fill:var(--ink); font-family:inherit; }
.tf .tf-tira{ display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x proximity; }
.tf .tf-hora{ flex:0 0 118px; scroll-snap-align:start; background:var(--cielo); border-radius:18px; padding:10px 8px 12px; text-align:center; }
.tf .tf-hora.noche{ background:color-mix(in srgb, var(--cielo) 55%, #1b2340 45%); color:#eef0f4; }
.tf .tf-hora.noche .chico{ color:#d3d8e2; }
.tf .tf-hora .h{ font-weight:800; font-size:1.05rem; }
.tf .tf-hora svg.ic{ width:64px; height:64px; display:block; margin:4px auto; }
.tf .tf-hora .t{ display:inline-block; font-size:1.3rem; font-weight:800; padding:2px 8px; white-space:nowrap; border-radius:999px; color:#1f2430; }
.tf .tf-hora .chico{ font-size:.82rem; color:var(--suave); line-height:1.35; margin-top:4px; }
.tf .tf-hora .fila{ display:flex; align-items:center; justify-content:center; gap:4px; margin-top:6px; font-size:.85rem; }
.tf .tf-hora .fila svg{ width:22px; height:22px; }
.tf .sin-dato{ opacity:.55; }
.tf .tf-nota{ font-size:.9rem; color:var(--suave); margin:-4px 0 10px; }
.tf .tf-tira.sin-cielo .tf-hora{ flex-basis:96px; padding-top:8px; }
.tf .tf-tira.sin-cielo .tf-hora .h{ margin-bottom:6px; }

/* versión compacta (widget) */
.tf.compacto .tf-caja{ padding:12px 12px; border-radius:16px; margin-bottom:10px; }
.tf.compacto .tf-caja h2{ font-size:1rem; margin-bottom:6px; }
.tf.compacto .tf-frase{ font-size:.95rem; line-height:1.45; }
.tf.compacto .tf-resumen{ grid-template-columns:1fr 1fr; gap:8px; }
.tf.compacto .tf-dato{ padding:8px 10px; gap:8px; border-radius:12px; }
.tf.compacto .tf-dato svg{ width:38px; height:38px; }
.tf.compacto .tf-dato .titulo{ font-size:.72rem; }
.tf.compacto .tf-dato .valor{ font-size:.9rem; }
.tf.compacto .tf-curva svg{ min-width:0; }
.tf.compacto .tf-hora{ flex-basis:100px; padding:8px 6px 10px; }
.tf.compacto .tf-hora svg.ic{ width:50px; height:50px; }
.tf.compacto .tf-hora .t{ font-size:1.25rem; }
.tf.compacto .tf-tira.sin-cielo .tf-hora{ flex-basis:84px; }
