/* ============================================================
   EDITORIAL LAYOUT — Noticias y videos estilo noticiero
   ============================================================ */

/* ════════════════════════════════════════════════
   NOTICIAS — Layout editorial (featured + grid)
   ════════════════════════════════════════════════ */

.news-editorial {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}
.news-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── Empty state ────────────────────────────────── */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f6fcf8 0%, #fff 100%);
  border: 1.5px dashed #c4ddd0;
  border-radius: 16px;
}
.news-empty-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
  opacity: .5;
}
.news-empty h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #003F5C;
  margin: 0 0 .3rem;
}
.news-empty p {
  color: #4a6b5d;
  font-size: .9rem;
  margin: 0;
}

/* ── Featured news (la principal) ───────────────── */
.news-featured {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 30, 15, .08);
  border: 1px solid rgba(0, 30, 15, .04);
  transition: all .3s;
}
.news-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 30, 15, .15);
}
.news-featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #003F5C, #00B14F);
}
.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.news-featured:hover .news-featured-media img { transform: scale(1.04); }
.news-featured-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: #fff;
  background: linear-gradient(135deg, #003F5C, #00B14F);
}
.news-featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #FFD700;
  color: #003F5C;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.news-featured-body {
  padding: 1.5rem 1.5rem 1.6rem;
}
.news-cat {
  display: inline-block;
  background: rgba(0, 177, 79, .12);
  color: #006B2F;
  padding: .25rem .7rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.news-featured-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #003F5C;
  margin: 0 0 .7rem;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.news-featured-excerpt {
  font-size: .95rem;
  line-height: 1.55;
  color: #4a6b5d;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem;
  color: #6b8088;
}
.news-featured-meta time { font-weight: 600; }
.news-featured-dot { opacity: .5; }

/* ── News card (secundarias) ────────────────────── */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
  border: 1px solid rgba(0, 30, 15, .05);
  transition: all .25s;
}
.news-card:hover {
  transform: translateX(2px);
  border-color: rgba(0, 177, 79, .35);
  box-shadow: 0 6px 18px rgba(0, 30, 15, .08);
}
.news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #003F5C, #00B14F);
}
.news-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card:hover .news-card-media img { transform: scale(1.08); }
.news-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #003F5C, #00B14F);
}
.news-card-cat {
  position: absolute;
  bottom: .35rem; left: .35rem;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: .15rem .45rem;
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.news-card-body {
  padding: .8rem 1rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.news-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: #003F5C;
  margin: 0 0 .35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: .76rem;
  color: #4a6b5d;
  line-height: 1.4;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-date {
  font-size: .7rem;
  color: #6b8088;
  font-weight: 600;
}

/* ── Responsive — news editorial ───────────────── */
@media (max-width: 900px) {
  .news-editorial { grid-template-columns: 1fr; }
  .news-featured-title { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .news-featured-title { font-size: 1.15rem; }
  .news-featured-excerpt { font-size: .85rem; }
  .news-featured-body { padding: 1.1rem 1.1rem 1.2rem; }
  .news-card { grid-template-columns: 90px 1fr; }
  .news-card-body { padding: .6rem .8rem; }
  .news-card-title { font-size: .82rem; }
  .news-card-excerpt { -webkit-line-clamp: 1; }
}

/* ════════════════════════════════════════════════
   VIDEOS — Cards mejoradas con badges + metadata
   (Estilo noticiero: media + headline + excerpt + meta)
   ════════════════════════════════════════════════ */

.video-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 30, 15, .08);
  border: 1px solid rgba(0, 30, 15, .04);
  transition: all .3s;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 15, .15);
}
.video-card-media {
  position: relative;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .3s;
  background: #003F5C;
}
.video-card:hover .video-card-thumb {
  transform: scale(1.06);
  filter: brightness(.85);
}
.video-card-cat-badge {
  position: absolute;
  top: .6rem; left: .6rem;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: .25rem .55rem;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.video-card-duration {
  position: absolute;
  bottom: .6rem; right: .6rem;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  font-family: 'Montserrat', monospace;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}
.video-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, transparent 50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-card-play {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .92);
  color: #003F5C;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .3s;
  pointer-events: none;
}
.video-card:hover .video-card-play { transform: scale(1.12); }

.video-card-body {
  padding: .85rem 1rem 1rem;
  display: flex; flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.video-card-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #003F5C;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-excerpt {
  font-size: .82rem;
  color: #4a6b5d;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem;
  color: #6b8088;
  margin-top: auto;
  padding-top: .25rem;
}
.video-card-meta time { font-weight: 600; }

/* ── Featured video (la principal) ─────────────── */
.video-featured {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 30, 15, .15);
  border: 1px solid rgba(0, 30, 15, .04);
  transition: all .35s;
  margin-bottom: 1.2rem;
}
.video-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 30, 15, .25);
}
.video-featured .video-card-headline { font-size: 1.5rem; -webkit-line-clamp: 3; }
.video-featured .video-card-excerpt { font-size: .95rem; -webkit-line-clamp: 3; }
.video-featured .video-card-body { padding: 1.2rem 1.4rem 1.4rem; }
.video-featured .video-card-meta { font-size: .8rem; }

/* ── Video card grid (debajo del featured) ─────── */
.video-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.video-grid-modern .video-card-info {
  padding: .7rem 0 0;
}
.video-grid-modern .video-card-info h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: #003F5C;
  margin: 0 0 .25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-grid-modern .video-card-info p {
  font-size: .76rem;
  color: #6b8088;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive — videos ──────────────────────── */
@media (max-width: 768px) {
  .video-grid-modern { grid-template-columns: 1fr 1fr; }
  .video-featured .video-card-title { font-size: 1rem; }
  .video-featured .video-card-play { width: 60px; height: 60px; font-size: 1.6rem; }
  .video-featured .video-card-overlay { padding: 1rem; }
}
@media (max-width: 480px) {
  .video-grid-modern { grid-template-columns: 1fr; }
  .video-featured { aspect-ratio: 16/9; }
  .video-featured .video-card-title { font-size: .92rem; -webkit-line-clamp: 2; }
}

/* ── Categorías de video (jornadas/control/edu) ─ */
.video-categorias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.video-categorias-grid .video-categoria {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 30, 15, .06);
  border-top: 4px solid;
  transition: all .3s;
}
.video-categorias-grid .video-categoria[data-cat="jornadas"]  { border-top-color: #00B14F; }
.video-categorias-grid .video-categoria[data-cat="control"]   { border-top-color: #FF7A00; }
.video-categorias-grid .video-categoria[data-cat="educacion"] { border-top-color: #00AEEF; }
.video-categorias-grid .video-categoria:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 30, 15, .12);
}
.video-categorias-grid .video-cat-header { margin-bottom: .9rem; }
.video-categorias-grid .video-cat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.video-categorias-grid .video-categoria[data-cat="jornadas"] .video-cat-icon {
  background: linear-gradient(135deg, rgba(0, 177, 79, .15), rgba(0, 177, 79, .05));
}
.video-categorias-grid .video-categoria[data-cat="control"] .video-cat-icon {
  background: linear-gradient(135deg, rgba(255, 122, 0, .15), rgba(255, 122, 0, .05));
}
.video-categorias-grid .video-categoria[data-cat="educacion"] .video-cat-icon {
  background: linear-gradient(135deg, rgba(0, 174, 239, .15), rgba(0, 174, 239, .05));
}
.video-categorias-grid .video-cat-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #003F5C;
  margin: 0 0 .15rem;
}
.video-categorias-grid .video-cat-header p {
  font-size: .76rem;
  color: #6b8088;
  margin: 0;
  line-height: 1.4;
}
.video-categorias-grid .video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
}

@media (max-width: 900px) {
  .video-categorias-grid { grid-template-columns: 1fr; }
}
