/* Reloj: status pill, top left. Mirrors the .langs pill on the right. Built by /js/reloj.js */
.reloj{position:fixed;z-index:61;top:16px;left:16px;font-size:15px;line-height:1;color:var(--ink)}
.reloj [hidden]{display:none!important}
.rj-pill{display:flex;align-items:center;gap:8px;height:46px;margin:0;padding:0 13px 0 11px;background:var(--papel);border:var(--b);border-radius:999px;box-shadow:var(--hs);font:inherit;color:inherit;text-align:left;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .16s,box-shadow .16s}
.rj-pill:active{transform:translate(2px,2px);box-shadow:3px 3px 0 var(--ink)}
.rj-pill:focus-visible{outline:3px solid var(--azul);outline-offset:3px;border-radius:999px}

/* live light and its word */
.rj-light{position:relative;flex:none;width:12px;height:12px;box-sizing:content-box;border:2.5px solid var(--ink);border-radius:50%;background:var(--roja)}
.reloj.is-on .rj-light{background:var(--nopal)}
.reloj.is-on .rj-light::after{content:"";position:absolute;inset:-2.5px;border-radius:50%;box-shadow:0 0 0 3px rgba(46,125,50,.22)}   /* a still halo: no pulsing light */
@keyframes rj-pulse{0%{box-shadow:0 0 0 0 rgba(46,125,50,.55)}70%,100%{box-shadow:0 0 0 8px rgba(46,125,50,0)}}
@media (prefers-reduced-motion:reduce){.reloj.is-on .rj-light::after{animation:none}.rj-pill{transition:none}}
.rj-word{font-size:14px;font-weight:800;line-height:1}
.rj-mean{font-size:10.5px;font-weight:700;line-height:1}

/* label over value */
.rj-blk{display:flex;flex-direction:column;justify-content:center;gap:3px}
.rj-lab{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;line-height:1}
.rj-t{font-size:15px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.rj-ap{font-size:.68em;font-weight:800;margin-left:2px}

/* weather */
.rj-wx{display:flex;align-items:center;gap:3px}
.rj-ico{display:block;flex:none;width:28px;height:28px}
.rj-ico svg{display:block;width:100%;height:100%;overflow:visible}
.rj-deg{font-size:15px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.rj-deg::after{content:attr(data-u);font-size:10px;font-weight:800;margin-left:1px;vertical-align:.38em}

.rj-sep{flex:none;width:2px;height:24px;background:var(--ink);border-radius:2px}

/* popover with the full sentences */
.rj-pop{position:absolute;left:0;top:calc(100% + 11px);width:max-content;max-width:min(290px,calc(100vw - 26px));padding:11px 14px 12px;background:var(--papel);border:var(--b);border-radius:14px;box-shadow:var(--hs);font-size:13px;line-height:1.35;font-weight:600}
.rj-pop p{margin:0}
.rj-pop p+p{margin-top:4px}
.rj-pop .rj-pop-s{font-weight:800;padding-bottom:7px;margin-bottom:7px;border-bottom:2px solid var(--ink)}
.rj-pop b{font-weight:800;font-variant-numeric:tabular-nums}

/* Desktop: one row. Order: light + word | Campeche + weather | visitor.
   reloj.js adds .rj-N when the pill would touch header.top or nav.langs:
   1 = the small meaning line goes (the word stays), still beside the header;
   2 = everything, labels included, on a second row under the header;
   3 = second row without the meaning line. */
@media (min-width:761px){
  .rj-times,.rj-times-in{display:contents}
  .rj-light{order:1}.rj-stat{order:2}.rj-sep1{order:3}.rj-camp{order:4}.rj-wx{order:5}.rj-sep2{order:6}.rj-you{order:7}
  .reloj.rj-1 .rj-mean,.reloj.rj-3 .rj-mean{display:none}
  .reloj.rj-1 .rj-pill{gap:6px;padding:0 10px 0 9px}
  .reloj.rj-1 .rj-sep2{display:none}
  .reloj.rj-1 .rj-word{font-size:13px}
  .reloj.rj-1 .rj-lab{font-size:9.5px;letter-spacing:0}
  .reloj.rj-1 .rj-ico{width:25px;height:25px}
  .reloj.rj-1 .rj-wx{gap:2px;margin-right:3px}
  .reloj.rj-2,.reloj.rj-3{top:74px}
}

/* Phone: two short rows, top left, never wider than the room left by the flags pill (--rj-max set by reloj.js) */
@media (max-width:760px){
  .reloj{top:10px;left:10px}
  .rj-pill{flex-wrap:wrap;height:auto;gap:4px 6px;max-width:var(--rj-max,calc(100vw - 168px));padding:5px 9px 6px 8px;border-radius:17px}
  .rj-pill:focus-visible{border-radius:17px}
  .rj-light{width:10px;height:10px;order:1}
  .rj-stat{order:2}
  .rj-word{font-size:13px}
  .rj-mean,.rj-sep{display:none}
  .rj-wx{order:3;margin-left:auto;gap:2px}
  .rj-ico{width:22px;height:22px}
  .rj-deg{font-size:13px}
  .rj-deg::after{font-size:9px}
  .rj-times{order:4;flex:0 0 100%;overflow:hidden}
  .rj-times-in{display:flex;flex-wrap:wrap;gap:3px 0;margin-left:-13px}
  .rj-camp,.rj-you{position:relative;display:block;padding-left:13px;font-size:10px;font-weight:700;line-height:1.1}
  .rj-camp::before,.rj-you::before{content:"";position:absolute;left:5px;top:50%;width:3px;height:3px;margin-top:-1.5px;border-radius:50%;background:var(--ink)}
  .rj-lab{font-size:10px;letter-spacing:0;text-transform:none;font-weight:700}
  .rj-t{font-size:10.5px}
  .rj-pop{top:calc(100% + 9px);font-size:12.5px;padding:9px 12px 10px}
}
@media print{.reloj{display:none}}
