/* ============================================================
   Cuenta regresiva NomiTime · Reforma de la jornada laboral
   Componente: .ntc (todo lo de la barra lleva prefijo ntc-)
   ============================================================ */
:root {
  --ntc-teal: #008180;
  --ntc-teal-2: #0a9a97;
  --ntc-deep: #063a38;
  --ntc-night: #041f1e;
  --ntc-orange: #d87625;
  --ntc-orange-2: #ee8d3a;
  --ntc-gold: #d39e29;
  --ntc-h: 64px;
}

/* ---------- Barra ---------- */
.ntc {
  position: sticky;
  top: 0;
  z-index: 1040;
  overflow: hidden;
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(120% 220% at 0% 0%, rgba(10, 154, 151, .55) 0%, transparent 55%),
    linear-gradient(100deg, var(--ntc-night) 0%, var(--ntc-deep) 45%, #075a57 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 20px rgba(4, 31, 30, .25);
  transition: max-height .45s ease, opacity .35s ease;
  max-height: 200px;
}
.ntc *, .ntc *::before, .ntc *::after { box-sizing: border-box; }
.ntc.is-closing { max-height: 0; opacity: 0; }

/* Vidrio estriado + anillo de 12 puntos dorados del reloj NomiTime */
.ntc::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.ntc__ring {
  position: absolute;
  width: 150px; height: 150px;
  right: 18%; top: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle, var(--ntc-gold) 0 3px, transparent 3.5px) 50% 0 / 8px 8px no-repeat;
  opacity: .5;
  pointer-events: none;
  animation: ntc-spin 60s linear infinite;
}
.ntc__ring::before, .ntc__ring::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(211, 158, 41, .35);
}
.ntc__ring::after { inset: 22px; border-style: dotted; border-color: rgba(255,255,255,.12); }
.ntc__glow {
  position: absolute;
  width: 380px; height: 160px;
  right: -60px; top: -40px;
  background: radial-gradient(closest-side, rgba(216, 118, 37, .45), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.ntc__inner {
  position: relative;
  max-width: 1280px;
  min-height: var(--ntc-h);
  margin: 0 auto;
  padding: 8px 56px 8px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ntc__brand { flex: none; display: block; line-height: 0; }
.ntc__brand img { height: 26px; width: auto; display: block; }

.ntc__msg {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .86);
}
.ntc__msg strong { color: #fff; font-weight: 600; }
.ntc__tag {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: #1b1405;
  background: linear-gradient(135deg, #f1c867, var(--ntc-gold));
  box-shadow: 0 0 0 3px rgba(211, 158, 41, .18);
}
.ntc__tag i { font-size: 14px; }

/* ---------- Reloj ---------- */
.ntc__clock {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ntc__unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 50px;
}
.ntc__num {
  display: block;
  min-width: 50px;
  padding: 3px 8px 2px;
  border-radius: 10px;
  font-size: 22px; font-weight: 600;
  line-height: 1.25;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.ntc__unit:first-child .ntc__num {
  color: #1b1405;
  background: linear-gradient(180deg, #f6d27a, var(--ntc-gold));
  border-color: rgba(255, 233, 170, .6);
}
.ntc__num.is-tick { animation: ntc-tick .45s cubic-bezier(.2, .8, .2, 1); }
.ntc__lbl {
  margin-top: 2px;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.ntc__sep {
  font-size: 20px; font-weight: 300;
  line-height: 34px;
  color: rgba(255, 255, 255, .45);
  animation: ntc-blink 1s steps(2, start) infinite;
}

/* ---------- CTA ---------- */
.ntc__cta {
  position: relative;
  flex: none;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--ntc-orange-2), var(--ntc-orange));
  box-shadow: 0 8px 18px rgba(216, 118, 37, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.ntc__cta::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: ntc-shine 3.6s ease-in-out infinite;
}
.ntc__cta i { font-size: 18px; transition: transform .2s ease; }
.ntc__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(216, 118, 37, .45); }
.ntc__cta:hover i { transform: translateX(3px); }
.ntc__cta:focus-visible, .ntc__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ntc__close {
  position: absolute;
  right: 14px; top: 50%;
  translate: 0 -50%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .75);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ntc__close:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Avance de diciembre: línea dorada que se llena hacia el 1 de enero */
.ntc__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .07);
}
.ntc__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--ntc-teal-2), var(--ntc-gold), var(--ntc-orange));
  transition: width 1s linear;
}

.ntc__sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Estado: la reforma ya está en vigor */
.ntc.is-live .ntc__clock, .ntc.is-live .ntc__bar { display: none; }

@keyframes ntc-tick {
  0% { transform: translateY(-35%); opacity: 0; filter: blur(2px); }
  100% { transform: none; opacity: 1; filter: none; }
}
@keyframes ntc-blink { 50% { opacity: .15; } }
@keyframes ntc-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes ntc-spin { to { rotate: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ntc__hide-sm { display: none; }
}
@media (max-width: 900px) {
  .ntc__inner { gap: 14px; padding-left: 16px; }
  .ntc__brand img { height: 22px; }
  .ntc__tag { display: none; }
  .ntc__ring { right: 30%; }
}
@media (max-width: 720px) {
  :root { --ntc-h: 0px; }
  .ntc__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "msg   msg"
      "clock cta";
    gap: 8px 10px;
    padding: 10px 46px 12px 16px;
  }
  .ntc__brand { display: none; }
  .ntc__msg { grid-area: msg; font-size: 12.5px; }
  .ntc__clock { grid-area: clock; gap: 3px; }
  .ntc__unit, .ntc__num { min-width: 40px; }
  .ntc__num { font-size: 17px; padding: 2px 4px 1px; border-radius: 8px; }
  .ntc__lbl { font-size: 8.5px; letter-spacing: .08em; }
  .ntc__sep { font-size: 15px; line-height: 27px; }
  .ntc__cta { grid-area: cta; align-self: center; padding: 9px 12px 9px 14px; font-size: 12.5px; }
  .ntc__cta-more { display: none; }
  .ntc__close { top: 10px; translate: none; width: 28px; height: 28px; }
  .ntc__ring { width: 110px; height: 110px; right: -20px; }
}
@media (max-width: 330px) {
  .ntc__cta-txt { display: none; }
  .ntc__cta { padding: 9px; }
  .ntc__cta i { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ntc__ring, .ntc__sep, .ntc__cta::after, .ntc__num.is-tick { animation: none; }
}
/* ==================== FIN CUENTA REGRESIVA ==================== */


/* Base de la página */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; background: #fff; overflow-x: hidden; }
