/* ===== COMPONENTS STYLES ===== */
/* Este archivo contiene TODOS los estilos para alert, navbar y footer */

/* ALERT */
.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 38px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1001;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  padding: 8px 20px;
  text-align: center;
}

.top-alert-track {
  display: flex;
  align-items: center;
}

.top-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-alert-item[aria-hidden] {
  display: none;
}

.top-alert .tag {
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
  white-space: nowrap;
}

.top-alert a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: .3s;
}

.top-alert a:hover {
  color: #fff;
}

@keyframes alert-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .top-alert {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top-alert::-webkit-scrollbar {
    display: none;
  }

  .top-alert-track {
    animation: none;
  }

  .top-alert-item[aria-hidden] {
    display: none;
  }
}

/* FOOTER */
.footer-timezones-compact {
  max-width: 1180px;
  margin: 20px auto 60px;
  padding: 0px;
  display: grid;
  gap: 24px;
  align-items: center;
}

.tz-mini-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}

.tz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.tz-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  cursor: default;
}

.tz-chip:hover,
.tz-chip.is-demo,
.tz-chip:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .08);
}

.tz-chip.montevideo {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .06);
}

.tz-chip.montevideo:hover,
.tz-chip.montevideo.is-demo {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .38);
}

.tz-chip-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--orange-strong);
}

.tz-chip-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: .55;
  animation: ping 2s ease-out infinite;
  transform-origin: center;
}

.tz-chip.montevideo .tz-chip-dot {
  background: var(--teal-darker);
}

.tz-chip-text {
  position: relative;
  height: 18px;
  min-width: 134px;
  display: flex;
  align-items: center;
}

.tz-chip-city,
.tz-chip-time {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  transition: transform .55s cubic-bezier(.22, .8, .22, 1), opacity .55s cubic-bezier(.22, .8, .22, 1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
}

.tz-chip-city {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  color: rgba(255, 255, 255, .92);
}

.tz-chip-time {
  opacity: 0;
  transform: translateY(-50%) translateY(140%);
  color: #fff;
  font-weight: 600;
}

.tz-chip:hover .tz-chip-city,
.tz-chip.is-demo .tz-chip-city {
  opacity: 0;
  transform: translateY(-50%) translateY(-140%);
}

.tz-chip:hover .tz-chip-time,
.tz-chip.is-demo .tz-chip-time {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.tz-chip-arrow {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  opacity: .45;
  transform: translateX(0) rotate(0deg);
  transition: transform .32s ease, opacity .32s ease;
}

.tz-chip:hover .tz-chip-arrow,
.tz-chip.is-demo .tz-chip-arrow {
  opacity: .95;
  transform: translateX(1px) rotate(-45deg);
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: .55;
  }

  65% {
    transform: scale(2.65);
    opacity: 0;
  }

  100% {
    transform: scale(2.65);
    opacity: 0;
  }
}


/* SOCIAL ICONS */
.social-icons-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 40px var(--page-gutter);
  border-top: 1px solid var(--line);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.social-icon:hover {
  color: var(--orange);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  stroke: none;
  fill: currentColor;
}

.social-icons-footer {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 1120px) {
  .footer-timezones-compact {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .nav-wrap {
    top: 60px;
    width: calc(100% - 32px);
  }

  .mega-menu {
    grid-template-columns: 1fr;
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .top-alert {
    font-size: 9px;
    padding: 7px 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .top-alert .tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .top-alert-track {
    width: max-content;
    animation: alert-marquee 16s linear infinite;
  }

  .top-alert-item {
    padding-right: 56px;
  }

  .top-alert-item[aria-hidden] {
    display: flex;
  }

  .nav-wrap {
    top: 60px;
  }

  /* Fades scrolling content to white behind the alert + nav so it doesn't
     show through their translucent backgrounds. */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #fff 0%, #fff 80%, transparent 100%);
    z-index: 999;
    pointer-events: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .footer-timezones-compact {
    padding: 0 20px;
  }

  .tz-chip-row {
    gap: 8px;
  }

  .tz-chip {
    padding: 9px 12px;
  }

  .tz-chip-text {
    min-width: 128px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 10px;
  }

  .footer-timezones-compact {
    display: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .foot-col.foot-about,
  .foot-col:nth-child(2) {
    grid-column: 1 / -1;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--teal-soft);
  padding: 20px var(--page-gutter);
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -8px 24px rgba(26, 31, 46, .08);
}

.cookie-consent-banner.is-visible {
  transform: translateY(0);
}

.cookie-consent-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

.cookie-consent-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cookie-consent-link {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-link:hover {
  color: var(--ink);
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: .25s;
}

.cookie-consent-btn.is-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.cookie-consent-btn.is-reject:hover {
  background: #333333;
  border-color: #333333;
  color: #fff;
}

.cookie-consent-btn.is-accept {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
}

.cookie-consent-btn.is-accept:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.cookie-consent-btn.is-manage {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal-soft);
}

.cookie-consent-btn.is-manage:hover {
  border-color: var(--teal-dark);
  color: var(--ink);
}

.cookie-consent-btn.is-save {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
}

.cookie-consent-btn.is-save:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* Preferences panel: hidden until the user clicks "Manage". */
.cookie-consent-prefs {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--teal-soft);
}

.cookie-consent-banner.is-expanded .cookie-consent-prefs {
  display: block;
}

.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cookie-pref strong {
  color: var(--ink);
}

.cookie-pref input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

.cookie-pref input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.cookie-consent-prefs .cookie-consent-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .cookie-consent-main {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}