/* ─────────────────────────────────────────────
   novedades.css — Novedades Guaraní Tour App
   Lista con acordeón: todos los ítems colapsados
   al abrir, cada uno se expande de forma
   independiente al tocarlo.
───────────────────────────────────────────── */

/* ── Overlay ───────────────────────────────────────────── */
.nov-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background .35s ease;
  pointer-events: none;
}
.nov-overlay.nov-visible {
  background: rgba(0, 0, 0, .55);
  pointer-events: all;
}

/* ── Sheet ─────────────────────────────────────────────── */
.nov-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 1.2rem 1.4rem 1.6rem;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, .22);
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32, .72, 0, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.nov-overlay.nov-visible .nov-sheet {
  transform: translateY(0);
}

/* ── Header ────────────────────────────────────────────── */
.nov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  flex-shrink: 0;
}
.nov-header-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nov-close {
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: var(--bg2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.nov-close:hover { background: var(--border); color: var(--text); }

.nov-intro {
  font-size: .85rem;
  color: var(--text-mid);
  margin: 0 0 1rem;
  flex-shrink: 0;
}

/* ── Lista ─────────────────────────────────────────────── */
.nov-lista {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-bottom: .2rem;
}

.nov-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg, var(--bg2));
  transition: border-color .15s;
}
.nov-item.abierto { border-color: var(--accent2); }

.nov-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .8rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
}

.nov-item-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light, rgba(45,106,79,.12));
  color: var(--accent, #2d6a4f);
}

.nov-item-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.nov-item-etiqueta {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nov-item-titulo {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nov-item-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .2s ease;
}
.nov-item.abierto .nov-item-chevron {
  transform: rotate(180deg);
  color: var(--accent2);
}

/* Acordeón: max-height se anima vía transición CSS, pero el valor real
   en píxeles lo setea _novToggleItem() en JS (scrollHeight), porque
   una fila de grid en 1fr o un max-height fijo no garantizan mostrar
   el alto real del contenido en todos los navegadores. */
.nov-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.nov-item-texto {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  padding: 0 .8rem .9rem calc(.8rem + 38px + .7rem);
}

/* ── Botón de cierre ───────────────────────────────────── */
.nov-btn-cerrar {
  flex-shrink: 0;
  margin-top: 1.1rem;
  width: 100%;
  padding: .78rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: var(--accent2);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.nov-btn-cerrar:hover {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(45, 106, 79, .28);
  transform: translateY(-1px);
}
.nov-btn-cerrar:active { transform: translateY(0); }

/* ── Responsive: pantallas muy chicas, texto no corta la etiqueta ── */
@media (max-width: 360px) {
  .nov-item-texto { padding-left: .8rem; }
}
