/* ═══════════════════════════════════════════════════════════
   LITASO.COM — announcements.css
   Tablón de anuncios + popup de novedades + notificaciones
═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════
   TABLÓN DE ANUNCIOS
══════════════════════════════ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 680px) { .board-grid { grid-template-columns: 1fr; } }
@media (min-width: 681px) and (max-width: 860px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }

/* tarjeta destacada ocupa 2 columnas en escritorio */
.ann-card.featured {
  grid-column: span 2;
}
@media (max-width: 680px) {
  .ann-card.featured { grid-column: span 1; }
}

.ann-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; overflow: hidden;
  text-decoration: none; color: #fff;
  transition: border-color .3s, transform .25s, box-shadow .3s;
  opacity: 0; transform: translateY(26px);
  will-change: transform;
}
.ann-card.vis { animation: ru .52s ease forwards; }
.ann-card:hover {
  border-color: rgba(255,255,255,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}

/* imagen */
.ann-img-wrap {
  width: 100%; overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.04);
}
.ann-img-wrap.has-img { aspect-ratio: 16/9; }
.ann-img-wrap.no-img  { height: 6px; background: rgba(255,255,255,.08); }

.ann-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.85);
  transition: filter .35s, transform .35s;
}
.ann-card:hover .ann-img { filter: brightness(1); transform: scale(1.04); }

/* badge tipo */
.ann-badge {
  position: absolute; top: .7rem; left: .7rem;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 3px;
  font-weight: 600;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

/* cuerpo */
.ann-body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }

.ann-meta {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.ann-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: .04em; line-height: 1.1;
}

.ann-desc {
  font-size: .82rem; line-height: 1.6;
  color: rgba(255,255,255,.6);
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ann-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 1px;
  width: fit-content;
  transition: border-color .25s, color .25s;
}
.ann-link:hover { border-color: #fff; }
.ann-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* tablón vacío */
.board-empty {
  grid-column: 1/-1; text-align: center;
  color: rgba(255,255,255,.25); font-size: .88rem; padding: 3rem 0;
}


/* ══════════════════════════════
   POPUP DE NOVEDADES
══════════════════════════════ */
#popup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#popup-overlay.open {
  opacity: 1; pointer-events: all;
}

#popup {
  position: relative;
  max-width: 480px; width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  overflow: hidden;
  transform: scale(.92) translateY(12px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
#popup-overlay.open #popup {
  transform: scale(1) translateY(0);
}

.popup-img-wrap {
  width: 100%; overflow: hidden;
  background: rgba(255,255,255,.04);
}
.popup-img-wrap.has-img { aspect-ratio: 16/9; }
.popup-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popup-eyebrow {
  position: absolute; top: .8rem; left: .8rem;
  font-size: .58rem; letter-spacing: .25em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 3px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-weight: 600;
}

.popup-body { padding: 1.6rem 1.8rem 1.8rem; }

.popup-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: .05em; line-height: 1.05;
  margin-bottom: .7rem;
}

.popup-desc {
  font-size: .87rem; line-height: 1.65;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.4rem;
}

.popup-actions {
  display: flex; gap: .7rem; flex-wrap: wrap;
}

.popup-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.4rem;
  background: #fff; color: #111;
  border: none; border-radius: 4px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.popup-btn-primary:hover { background: #e5e5e5; transform: translateY(-1px); }
.popup-btn-primary svg { width: 14px; height: 14px; fill: currentColor; }

.popup-btn-close {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.2rem;
  background: transparent; color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.popup-btn-close:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* X de cierre esquina */
.popup-x {
  position: absolute; top: .7rem; right: .7rem;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); border-radius: 50%;
  cursor: pointer; border: none;
  color: rgba(255,255,255,.7);
  transition: color .2s, background .2s;
  z-index: 5;
}
.popup-x:hover { color: #fff; background: rgba(0,0,0,.85); }
.popup-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }


/* ══════════════════════════════
   NOTIFICACIONES PUSH — botón
══════════════════════════════ */
.notif-bar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 1.4rem 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(26px);
  will-change: transform;
}
.notif-bar.vis { animation: ru .52s ease forwards; }

.notif-copy { display: flex; align-items: center; gap: 1rem; }
.notif-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border-radius: 6px;
}
.notif-icon svg { width: 20px; height: 20px; fill: #fff; }
.notif-texts h3 { font-size: .95rem; font-weight: 600; margin-bottom: .15rem; }
.notif-texts p  { font-size: .78rem; color: rgba(255,255,255,.4); }

#notif-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.4rem;
  background: #fff; color: #111;
  border: none; border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s, opacity .2s;
  flex-shrink: 0;
}
#notif-btn:hover:not(:disabled) { background: #e5e5e5; transform: translateY(-1px); }
#notif-btn:disabled { opacity: .5; cursor: default; transform: none; }
#notif-btn svg { width: 15px; height: 15px; fill: currentColor; }

.notif-status {
  font-size: .75rem; margin-top: .3rem;
  color: rgba(255,255,255,.35); text-align: right;
}

/* ══════════════════════════════
   TOAST de confirmación
══════════════════════════════ */
#toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #222; border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 6px;
  padding: .75rem 1.4rem;
  font-size: .82rem; white-space: nowrap;
  z-index: 11000;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: .5rem;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#toast svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
