/* Tablero de avisos de la portada: carrusel con leyenda lateral. */
.notice-section { padding-block: 30px 10px; }

.notice-board {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.notice-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: 260px;
  isolation: isolate;
}

.notice-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(5, 17, 27, .5), transparent);
  pointer-events: none;
  z-index: 1;
}

.notice-slides { position: absolute; inset: 0; }

.notice-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .8s ease, transform 1.25s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.notice-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.notice-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-pin {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe18a, var(--yellow) 58%, #c98d12);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .28), inset 0 -1px 2px rgba(0, 0, 0, .18);
}

.notice-progress {
  position: absolute;
  inset: auto 20px 16px;
  z-index: 3;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.notice-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.notice-board.is-playing .notice-progress span {
  animation: notice-progress var(--notice-duration, 8s) linear forwards;
}

@keyframes notice-progress {
  from { width: 0; }
  to { width: 100%; }
}

.notice-legend {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 20px;
  border: 1px solid color-mix(in srgb, var(--yellow) 34%, var(--line));
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--yellow) 16%, transparent), transparent 55%),
    linear-gradient(150deg, var(--surface-solid), color-mix(in srgb, var(--yellow) 5%, var(--surface)));
  box-shadow: var(--shadow);
  transition: opacity .22s ease, transform .22s ease;
}

.notice-legend.is-swapping {
  opacity: 0;
  transform: translateY(7px);
}

.notice-legend::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe18a, var(--yellow) 58%, #c98d12);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .22), inset 0 -1px 2px rgba(0, 0, 0, .16);
}

.notice-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 11%, var(--surface-solid));
  color: color-mix(in srgb, var(--coral) 78%, var(--text-strong));
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.notice-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.notice-legend h3 {
  margin: 2px 0 0;
  color: var(--text-strong);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.notice-legend p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.notice-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.notice-meta::before {
  content: "";
  width: 17px;
  height: 1px;
  background: var(--line-strong);
}

.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.notice-nav { display: flex; align-items: center; gap: 9px; }

.notice-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, opacity .18s;
}

.notice-arrow:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--blue); }
.notice-arrow:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.notice-arrow:disabled { opacity: .4; cursor: default; transform: none; }

.notice-dots { display: flex; align-items: center; gap: 6px; }

.notice-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .22s ease, background .18s ease;
}

.notice-dot.is-active { width: 24px; background: var(--yellow); }
.notice-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.notice-count {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .notice-board { grid-template-columns: minmax(0, 1fr); }
  .notice-stage { aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  .notice-stage { aspect-ratio: 4 / 3; border-radius: 22px; }
  .notice-legend { padding: 24px 20px 18px; border-radius: 22px; }
  .notice-section { padding-block: 22px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .notice-slide { transition: none; transform: none; }
  .notice-legend { transition: none; }
  .notice-board.is-playing .notice-progress span { animation: none; width: 100%; }
}
