/* Base legible del kit Redes. */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin-5.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-latin-1.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-3.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 0;
}
body {
  margin: 0;
  background: var(--ad-ink);
  color: #fff;
  font: 400 15px/1.5 var(--ad-sans);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.ad-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ad-grad);
  overflow: hidden;
}
.ad-background svg {
  width: 100%;
  height: 100%;
  opacity: 0.33;
}
.ad-background polygon {
  fill: #fff;
  fill-opacity: 0.08;
  stroke: #fff;
  stroke-opacity: 0.14;
}
.ad-background.is-still * {
  animation: none !important;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 54px);
  background: #141414ee;
  border-bottom: 1px solid #ffffff2e;
  backdrop-filter: blur(18px);
}
.brand {
  font: 700 24px var(--ad-serif);
  white-space: nowrap;
}
.brand i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ad-grad);
  margin-left: 4px;
}
.topnav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.topnav button,
.menu-toggle {
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: #ffffff12;
  color: #fff;
  padding: 8px 12px;
}
.power {
  border: 0;
  border-radius: 999px;
  background: #d91d5a;
  color: #fff;
  padding: 9px 14px;
}
.wrap {
  max-width: 1220px;
  margin: auto;
  padding: 38px clamp(14px, 4vw, 54px) 90px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  min-height: 330px;
}
.eyebrow,
.gl-mono {
  font: 11px var(--ad-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe1f1;
}
.hero h1 {
  max-width: 700px;
  margin: 10px 0;
  color: #fff;
  font: 400 clamp(42px, 6vw, 76px) / 0.96 var(--ad-serif);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 18px #3c0058;
}
.hero p {
  max-width: 590px;
  margin: 20px 0;
  color: #fff;
  font-size: 18px;
  text-shadow: 0 1px 6px #3c0058;
}
.hero em {
  font-style: normal;
  color: #ffe5f3;
}
.section {
  scroll-margin-top: 84px;
  margin: 34px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section h2 {
  margin: 0 0 14px;
  font: 400 32px var(--ad-serif);
  text-shadow: 0 1px 8px #3c0058;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gl-panel {
  color: #fff;
}
.card {
  min-height: 175px;
  padding: 22px;
  border-radius: 28px;
  background: #141414b8;
  box-shadow:
    0 0 0 1px #ffffff44 inset,
    0 24px 60px #0005;
  backdrop-filter: blur(18px);
}
.card h3 {
  margin: 6px 0;
  font: 400 24px var(--ad-serif);
}
.muted {
  color: #fff;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gl-cta {
  border: 0;
  border-radius: 999px;
  background: var(--ad-grad);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 12px 25px #56007866;
}
.gl-ghost {
  border: 1px solid #ffffff99;
  border-radius: 999px;
  background: #ffffff0d;
  color: #fff;
  padding: 10px 16px;
}
.gl-chip {
  display: inline-flex;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: #ffffff12;
}
.toggle {
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #777;
  padding: 3px;
}
.toggle.on {
  background: #e5097f;
}
.toggle:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.toggle.on:after {
  transform: translateX(20px);
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.day {
  min-height: 145px;
  padding: 12px;
  border: 1px solid #ffffff55;
  border-radius: 18px;
  background: #14141499;
  backdrop-filter: blur(15px);
}
.piece {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #141414;
  text-align: left;
}
.piece time,
.piece-title {
  display: block;
}
.piece time {
  color: #552864;
  font: 700 0.72rem/1.2 var(--ad-mono);
}
.piece-title {
  overflow: hidden;
  color: #141414;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.piece small {
  display: block;
  color: #75716b;
}
.gl-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.network {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ffffff55;
  border-radius: 16px;
  background: #14141488;
}
.network img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
}
.network span {
  min-width: 0;
  text-transform: capitalize;
}
.network small {
  display: block;
  margin-top: 3px;
  width: max-content;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
}
.network small.connected {
  background: #a8f0c1;
  color: #124f2c;
}
.network small.expired {
  background: #ffd48c;
  color: #603b00;
}
.network small.off {
  background: #ffffff33;
  color: #fff;
}
.progress {
  height: 10px;
  border-radius: 10px;
  background: #ffffff33;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ad-grad);
}
.empty {
  text-align: center;
  padding: 38px;
}
.empty p {
  color: #fff;
}
.menu-toggle {
  display: none;
  margin-left: auto;
}
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: #141414cc;
  backdrop-filter: blur(10px);
}
.side-menu.open {
  display: block;
}
.side-sheet {
  width: min(320px, 90vw);
  height: 100%;
  padding: 24px;
  background: #141414f5;
  box-shadow: 20px 0 70px #0008;
}
.side-sheet button {
  display: block;
  width: 100%;
  margin: 8px 0;
  border: 1px solid #ffffff33;
  border-radius: 14px;
  background: #ffffff0d;
  color: #fff;
  padding: 12px;
  text-align: left;
}
.search-wrap {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: #fff;
  transition: width 0.3s;
}
.search-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #552864;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
  padding: 0;
  transition: opacity 0.2s;
}
.search-wrap:focus-within {
  width: 180px;
}
.search-wrap input:focus {
  color: #141414;
  opacity: 1;
  padding: 0 12px 0 38px;
}
.search-wrap input::placeholder {
  color: transparent;
}
.search-wrap input:focus::placeholder {
  color: #75716b;
}
.switcher {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 9;
  display: none;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: #141414ee;
  backdrop-filter: blur(18px);
}
.switcher button {
  border: 0;
  border-radius: 999px;
  background: #ffffff12;
  color: #fff;
  padding: 8px 12px;
}
.preview-image {
  height: 130px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0 0 35%, #ffb5db 35% 60%, #8a00d4 60%);
  margin: 14px 0;
}
.status {
  display: block;
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
}
.status.connected {
  background: #a8f0c1;
  color: #124f2c;
}
.status.expired {
  background: #ffd48c;
  color: #603b00;
}
.status.off {
  background: #ffffff33;
  color: #fff;
}
@media (max-width: 760px) {
  .topnav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero h1 {
    font-size: 50px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .calendar {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .switcher {
    display: flex;
    gap: 4px;
  }
  .wrap {
    padding-bottom: 90px;
  }
  .side-sheet {
    padding-top: 80px;
  }
  .section h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .ad-background svg {
    opacity: 0.2;
  }
}
/* Búsqueda cerrada y control móvil compacto. */
.power {
  white-space: nowrap;
}
html,
body {
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .topbar {
    gap: 10px;
  }
  .topbar .brand {
    font-size: 18px;
  }
  .topbar .power {
    font-size: 11px;
    padding: 8px 10px;
  }
  .search-wrap:focus-within {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 180px;
  }
  .queue-card {
    overflow: hidden;
  }
  .queue-card .network {
    max-width: 100%;
  }
}
