/* Tablero Local v3.1 */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --tlf-page:  #f2f2f2;
  --tlf-bg:    #ffffff;
  --tlf-bdr:   #e8e8e8;
  --tlf-ink:   #1a1a1a;
  --tlf-ink2:  #6e6e6e;
  --tlf-ink3:  #b0b0b0;
  --tlf-red:   #d93025;
  --tlf-green: #3d8b40;
  --tlf-r:     18px;
  --tlf-font:  'Google Sans','Roboto',system-ui,sans-serif;
}

.tl-front {
  font-family: var(--tlf-font);
  background: var(--tlf-page);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  box-sizing: border-box;
}

/* ── Fila superior: Soja + Novillo + Lluvia ── */
.tlf-top-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.tlf-top-row .tlf-card { height: 100%; }

/* ── Card base ── */
.tlf-card {
  background: var(--tlf-bg);
  border-radius: var(--tlf-r);
  padding: 22px 24px 20px;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}
.tlf-card--full { grid-column: 1 / -1; }

/* ── Precios (Soja / Novillo) ── */
.tlf-precio__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--tlf-ink);
  margin-bottom: 2px;
}
.tlf-precio__mes {
  font-size: 13px;
  color: var(--tlf-ink2);
  margin-bottom: 22px;
}
.tlf-precio__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.tlf-precio__num {
  display: flex;
  align-items: flex-end;   /* alineados por la línea de base */
  gap: 0;
  line-height: 1;
}
.tlf-precio__signo {
  font-size: 20px;
  font-weight: 400;
  color: var(--tlf-ink);
  margin-right: 2px;
  padding-bottom: 6px;    /* baja el $ para centrarlo con el número */
  align-self: flex-end;
}
.tlf-precio__entero {
  font-size: 52px;
  font-weight: 700;
  color: var(--tlf-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tlf-precio__decimal {
  font-size: 18px;
  font-weight: 500;
  color: var(--tlf-ink);
  margin-bottom: 8px;     /* sube los centavos al nivel superíndice */
  margin-left: 2px;
  align-self: flex-end;
}
.tlf-precio__ver {
  font-size: 12px;
  color: var(--tlf-ink3);
  text-decoration: none;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 4px;
}
.tlf-precio__ver:hover { color: var(--tlf-ink2); }

/* ── Lluvia (reutiliza precio) ── */
.tlf-lluvia__val {
  font-size: 52px;
  font-weight: 700;
  color: var(--tlf-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tlf-lluvia__unit {
  font-size: 18px;
  font-weight: 400;
  color: var(--tlf-ink2);
  padding-bottom: 7px;
  margin-left: 6px;
  align-self: flex-end;
}

/* ── Calendario ── */
.tlf-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tlf-cal-nav-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--tlf-ink2);
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.tlf-cal-nav-btn:hover { color: var(--tlf-ink); }
.tlf-cal-mes {
  font-size: 20px;
  font-weight: 700;
  color: var(--tlf-ink);
}
.tlf-cal-head {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  margin-bottom: 2px;
}
.tlf-cal-head span {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--tlf-ink2);
  padding: 2px 0;
}
.tlf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  row-gap: 1px;
}
.tlf-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--tlf-ink);
  border-radius: 50%;
  cursor: default;
  position: relative;
}
.tlf-cal-day--adj    { color: var(--tlf-ink3); font-weight: 400; }
.tlf-cal-day--today  { background: #e0e0e0; color: var(--tlf-ink); font-weight: 700; }
.tlf-cal-day--remate { background: var(--tlf-green); color: #fff; font-weight: 700; cursor: pointer; }
.tlf-cal-day--cancelado  { background: #f5c6c6; color: #c0392b; font-weight: 700; cursor: pointer; }
.tlf-cal-day--reprog { background: #fde8b0; color: #b7770d; font-weight: 700; cursor: pointer; }

.tlf-ev-dots { display: flex; gap: 2px; justify-content: center; margin-top: 1px; }
.tlf-ev-dot  { width: 4px; height: 4px; border-radius: 50%; }
.tlf-ev-dot--activo      { background: var(--tlf-green); }
.tlf-ev-dot--cancelado   { background: #c0392b; }
.tlf-ev-dot--reprogramado{ background: #b7770d; }

/* Tooltip calendario */
.tlf-cal-tooltip {
  display: none;
  position: absolute;
  z-index: 100;
  background: var(--tlf-ink);
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 220px;
  pointer-events: none;
  white-space: normal;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.tlf-cal-tooltip--vis { display: block; }
.tlf-tip-ev + .tlf-tip-ev { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; }
.tlf-tip-badge { display: inline-block; font-size: 10px; border-radius: 4px; padding: 1px 5px; margin-bottom: 3px; }
.tlf-tip-badge--cancelado   { background: #c0392b; }
.tlf-tip-badge--reprogramado{ background: #b7770d; }

/* ── Remate card ── */
.tlf-remate__label  { font-size: 13px; font-weight: 500; color: var(--tlf-ink2); margin-bottom: 6px; }
.tlf-remate__badge  { display: inline-block; font-size: 12px; border-radius: 6px; padding: 3px 10px; margin-bottom: 10px; }
.tlf-remate__badge--cancelado   { background: #fce8e8; color: #c0392b; }
.tlf-remate__badge--reprogramado{ background: #fef3e0; color: #b7770d; }
.tlf-remate__titulo { font-size: 22px; font-weight: 600; color: var(--tlf-ink); margin-bottom: 18px; line-height: 1.2; }
.tlf-remate--cancelado .tlf-remate__titulo { text-decoration: line-through; color: var(--tlf-ink2); }
.tlf-remate__row    { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--tlf-ink); }
.tlf-remate__nota   { font-size: 13px; color: #b7770d; margin-top: 8px; }
.tlf-remate__link   { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--tlf-ink3); text-decoration: none; }

/* ── Clima principal ── */
.tlf-clima-loc { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tlf-ink2); margin-bottom: 6px; }
.tlf-clima-temprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tlf-clima-tempval { font-size: 64px; font-weight: 300; color: var(--tlf-ink); letter-spacing: -0.03em; line-height: 1; }
.tlf-clima-mainicon { align-self: center; }
.tlf-clima-fecha { font-size: 12px; color: var(--tlf-ink2); margin-bottom: 18px; }
.tlf-clima-sep { border: none; border-top: 1px solid var(--tlf-bdr); margin: 16px 0; }
.tlf-clima-metrics { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tlf-clima-metric { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tlf-ink2); white-space: nowrap; }

/* ── Horas scroll ── */
.tlf-horas-scroll { overflow-x: auto; scrollbar-width: none; }
.tlf-horas-scroll::-webkit-scrollbar { display: none; }
.tlf-horas-inner { display: flex; gap: 0; min-width: max-content; }
.tlf-hora-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; min-width: 64px; }
.tlf-hora-label { font-size: 11px; color: var(--tlf-ink2); white-space: nowrap; }
.tlf-hora-icon { line-height: 1; }
.tlf-hora-temp { font-size: 12px; font-weight: 500; color: var(--tlf-ink); }

/* ── Pronóstico ── */
.tlf-fc-header { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tlf-ink3); margin-bottom: 14px; }
.tlf-fc-rows { display: flex; flex-direction: column; }
.tlf-fc-row { display: grid; grid-template-columns: 40px 32px 40px 1fr 40px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--tlf-bdr); }
.tlf-fc-row:last-child { border-bottom: none; }
.tlf-fc-dia  { font-size: 13px; font-weight: 500; color: var(--tlf-ink); }
.tlf-fc-icon { display: flex; align-items: center; }
.tlf-fc-min  { font-size: 13px; color: var(--tlf-ink3); text-align: right; }
.tlf-fc-max  { font-size: 13px; font-weight: 600; color: var(--tlf-ink); text-align: right; }
.tlf-fc-bar-wrap { position: relative; height: 4px; background: #e8e8e8; border-radius: 2px; overflow: hidden; }
.tlf-fc-bar { position: absolute; top: 0; height: 100%; border-radius: 2px; }

/* ── Descuentos ── */
.tlf-desc__label { font-size: 15px; font-weight: 500; color: var(--tlf-ink); margin-bottom: 14px; }
.tlf-desc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; }
.tlf-desc-item { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tlf-bdr); font-size: 13px; }
.tlf-desc-item:last-child { border-bottom: none; }
.tlf-desc-item__super { font-weight: 700; color: var(--tlf-ink); }
.tlf-desc-item__promo { color: var(--tlf-ink2); }
.tlf-desc-item__vig   { font-size: 11px; color: var(--tlf-ink3); white-space: nowrap; }

/* ── Skeleton ── */
.tlf-sk { background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%); background-size: 200% 100%; border-radius: 4px; animation: tlf-shimmer 1.5s infinite; display: inline-block; }
@keyframes tlf-shimmer { to { background-position: -200% 0; } }

/* ── Responsive ── */
@media (max-width: 700px) {
  .tl-front { grid-template-columns: 1fr; }
  .tlf-top-row { grid-template-columns: 1fr; }
  .tlf-precio__entero, .tlf-lluvia__val { font-size: 40px; }
  .tlf-clima-tempval { font-size: 50px; }
}
