/* =========================
   NOTICIA INDIVIDUAL
========================= */

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.volver {
  display: inline-block;
  margin-bottom: 18px;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.volver:hover {
  color: #dc2626;
}

.noticia {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.categoria {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.noticia h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111827;
}

.bajada {
  font-size: 20px;
  color: #4b5563;
  margin-bottom: 18px;
  line-height: 1.45;
}

.meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.imagen {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 26px;
  background: #e5e7eb;
}

.cuerpo {
  font-size: 18px;
  line-height: 1.75;
  color: #1f2937;
}

.share-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 14px;
  border-radius: 16px;
  background: #f5f7fb;
  border: 1px solid #e2e8f0;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.btn-share:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-share.whatsapp {
  background: #16a34a;
}

.share-msg {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 24px, 980px);
    padding: 14px 0;
  }

  .noticia {
    padding: 18px;
    border-radius: 14px;
  }

  .noticia h1 {
    font-size: 28px;
  }

  .bajada {
    font-size: 17px;
  }

  .cuerpo {
    font-size: 16px;
  }

  .share-box {
    align-items: stretch;
  }

  .btn-share {
    width: 100%;
  }
}
.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  margin: 20px 0;
}

.video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.noticia-media {
  margin-top: 28px;
}

.noticia-media h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.media-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.media-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #4b5563;
}

.video-card {
  aspect-ratio: 16 / 9;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-link {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}
.media-admin-box {
  margin-top: 24px;
}

.media-admin-box h2 {
  margin: 0 0 6px;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.media-upload-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.media-list-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.media-item-admin {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.media-item-admin img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: 10px;
}

.media-link-preview {
  min-height: 120px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.media-link-preview strong {
  color: #111827;
}

.media-link-preview span {
  color: #2563eb;
  font-weight: 700;
}

.media-link-preview small {
  color: #6b7280;
  word-break: break-all;
}

.empty-media {
  background: #f9fafb;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  color: #6b7280;
  margin-top: 14px;
}
.noticia-media {
  margin-top: 26px;
}

.noticia-media h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.media-slider {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}

.media-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  background: #111827;
  border-radius: 14px;
  overflow: hidden;
}

.media-slide img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  display: block;
  background: #111827;
}

.media-video {
  aspect-ratio: 16 / 9;
}

.media-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.media-prev {
  left: 18px;
}

.media-next {
  right: 18px;
}

@media (max-width: 700px) {
  .media-slider {
    padding: 8px;
  }

  .media-nav {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .media-slide img {
    max-height: 300px;
  }
}
