/* =====================================================
   MAAT — Newspaper Layout Extension
   Agregar al final de style.css del tema MAAT
   o subir como archivo separado y enqueue en functions.php
===================================================== */

/* ─── TICKER DE NOTICIAS ─────────────────────────── */
.news-ticker {
  background: var(--maat-navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.news-ticker__label {
  background: var(--maat-cyan);
  color: var(--maat-navy);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.news-ticker__track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  position: relative;
}
.news-ticker__inner {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.news-ticker__inner:hover { animation-play-state: paused; }
.news-ticker__item {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  padding: 0 32px;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.news-ticker__item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--maat-cyan);
  flex-shrink: 0;
}
.news-ticker__item a {
  color: inherit;
  transition: color .2s;
}
.news-ticker__item a:hover { color: var(--maat-cyan); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECCIÓN NEWSPAPER GENERAL ─────────────────── */
.newspaper-section {
  padding: 48px 0;
  background: var(--maat-white);
}
.newspaper-section + .newspaper-section {
  border-top: 0.5px solid rgba(0,0,0,0.07);
}
.newspaper-section--alt {
  background: var(--maat-cream);
}
.newspaper-section--dark {
  background: var(--maat-navy);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-divider__bar {
  width: 4px;
  height: 22px;
  background: var(--maat-cyan);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-divider__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--maat-navy);
}
.section-divider__line {
  flex: 1;
  height: 0.5px;
  background: rgba(0,0,0,0.1);
}
.section-divider__link {
  font-size: 10px;
  color: var(--maat-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-body);
  white-space: nowrap;
}

/* ─── LAYOUT HERO NEWSPAPER (1 grande + 3 pequeños) ─ */
.np-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto;
  gap: 0;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.np-hero-main {
  position: relative;
  overflow: hidden;
  border-right: 0.5px solid rgba(0,0,0,0.08);
}
.np-hero-main__thumb {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.np-hero-main__thumb-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(160deg, #1B4B4F 0%, #3D8B8B 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.np-hero-main:hover .np-hero-main__thumb { transform: scale(1.03); }
.np-hero-main__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,75,79,0.92) 0%, rgba(27,75,79,0.4) 60%, transparent 100%);
  padding: 28px 24px 20px;
}
.np-hero-main__cat {
  display: inline-block;
  background: var(--maat-cyan);
  color: var(--maat-navy);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.np-hero-main__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px;
}
.np-hero-main__title a { color: inherit; }
.np-hero-main__title a:hover { color: var(--maat-cyan); }
.np-hero-main__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  display: flex;
  gap: 10px;
}

/* Columna de artículos pequeños */
.np-hero-sidebar {
  display: flex;
  flex-direction: column;
}
.np-hero-side-item {
  flex: 1;
  padding: 16px 18px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background .2s;
}
.np-hero-side-item:last-child { border-bottom: none; }
.np-hero-side-item:hover { background: var(--maat-cream); }
.np-hero-side-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.np-hero-side-thumb-placeholder {
  width: 72px;
  height: 72px;
  background: var(--maat-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--maat-gray);
}
.np-hero-side-body { flex: 1; min-width: 0; }
.np-hero-side-cat {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 4px;
  display: block;
}
.np-hero-side-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--maat-navy);
  line-height: 1.3;
  font-weight: 700;
}
.np-hero-side-title a { color: inherit; }
.np-hero-side-title a:hover { color: var(--maat-blue); }
.np-hero-side-meta {
  font-size: 10px;
  color: var(--maat-gray);
  font-family: var(--font-body);
  margin-top: 5px;
}

/* ─── GRID 3 COLUMNAS (artículos) ───────────────── */
.np-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.np-grid-3 .np-article {
  border-right: 0.5px solid rgba(0,0,0,0.08);
  border-bottom: none;
}
.np-grid-3 .np-article:last-child { border-right: none; }

/* ─── GRID 4 COLUMNAS (noticias pequeñas) ───────── */
.np-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── ARTÍCULO INDIVIDUAL ───────────────────────── */
.np-article {
  background: #fff;
  overflow: hidden;
  transition: background .2s;
}
.np-article:hover { background: var(--maat-cream); }

.np-article__thumb-wrap {
  overflow: hidden;
  position: relative;
}
.np-article__thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.np-article__thumb-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #aaa;
}
.np-article:hover .np-article__thumb { transform: scale(1.04); }

.np-article__body { padding: 16px 18px 20px; }
.np-article__cat {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 6px;
  display: block;
}
.np-article__title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--maat-navy);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 8px;
}
.np-article__title a { color: inherit; }
.np-article__title a:hover { color: var(--maat-blue); }
.np-article__excerpt {
  font-size: 12px;
  color: var(--maat-gray);
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-article__meta {
  font-size: 10px;
  color: #bbb;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
}

/* Artículo pequeño (sin imagen) */
.np-article--list {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
  background: transparent;
}
.np-article--list:last-child { border-bottom: none; }
.np-article--list:hover { background: transparent; }
.np-article--list .np-article__count {
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(0,0,0,0.07);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: right;
}
.np-article--list .np-article__body { padding: 0; flex: 1; }
.np-article--list .np-article__title { font-size: 14px; margin-bottom: 4px; }

/* ─── LAYOUT CON SIDEBAR ─────────────────────────── */
.np-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.np-sidebar { }
.np-sidebar-widget {
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
}
.np-sidebar-widget__header {
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-sidebar-widget__bar {
  width: 3px;
  height: 16px;
  background: var(--maat-cyan);
  border-radius: 2px;
}
.np-sidebar-widget__title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--maat-navy);
}
.np-sidebar-widget__body { padding: 12px 16px; }

/* Widget: artículos más leídos */
.np-popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.np-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.np-popular-item__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(0,0,0,0.08);
  font-weight: 700;
  line-height: 1;
  width: 24px;
  flex-shrink: 0;
}
.np-popular-item__title {
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--maat-navy);
  font-weight: 700;
  line-height: 1.3;
}
.np-popular-item__title a { color: inherit; }
.np-popular-item__title a:hover { color: var(--maat-blue); }
.np-popular-item__meta {
  font-size: 10px;
  color: var(--maat-gray);
  font-family: var(--font-body);
  margin-top: 3px;
}

/* Widget: Doctor del mes */
.np-doctor-widget {
  text-align: center;
  padding: 20px 16px;
}
.np-doctor-widget__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 10px;
  display: block;
  border: 3px solid var(--maat-light);
}
.np-doctor-widget__photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--maat-light);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--maat-blue);
}
.np-doctor-widget__name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--maat-navy);
  font-weight: 700;
  margin-bottom: 3px;
}
.np-doctor-widget__spec {
  font-size: 9px;
  color: var(--maat-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 6px;
}
.np-doctor-widget__hosp {
  font-size: 11px;
  color: var(--maat-gray);
  font-family: var(--font-body);
  margin-bottom: 14px;
}
.np-doctor-widget__btn {
  display: inline-block;
  background: var(--maat-navy);
  color: #fff;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background .2s;
}
.np-doctor-widget__btn:hover { background: var(--maat-blue); color: #fff; }

/* Widget: publicidad sidebar */
.np-ad-widget {
  padding: 0;
  text-align: center;
  background: var(--maat-cream);
}
.np-ad-widget__label {
  font-size: 8px;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 8px;
  display: block;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.np-ad-widget__space {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
  font-family: var(--font-body);
  padding: 16px;
}

/* ─── STRIP DE CATEGORÍA (row horizontal) ─────────── */
/* ─── STRIP DE CATEGORÍA (row horizontal) ─────────── */
.np-category-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* antes: 260px 1fr — ahora la destacada pesa más */
  gap: 0;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.np-category-strip__featured {
  position: relative;
  overflow: hidden;
}
.np-category-strip__featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px; /* antes 240px */
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.np-category-strip__featured-img-placeholder {
  width: 100%;
  height: 320px; /* antes 240px */
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
}
.np-category-strip__featured:hover .np-category-strip__featured-img { transform: scale(1.04); }
.np-category-strip__featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,75,79,0.88) 0%, transparent 100%);
  padding: 20px 16px 16px;
}
.np-category-strip__featured-title {
  font-family: var(--font-display);
  font-size: 20px; /* antes 18px, para que acompañe el bloque más grande */
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}
.np-category-strip__featured-title a { color: inherit; }
.np-category-strip__featured-title a:hover { color: var(--maat-cyan); }
.np-category-strip__list {
  border-left: 0.5px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.np-category-strip__list-item {
  display: flex;
  gap: 14px; /* antes 12px */
  padding: 16px 20px; /* antes 14px 16px */
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  transition: background .2s;
  align-items: flex-start;
}
.np-category-strip__list-item:last-child { border-bottom: none; }
.np-category-strip__list-item:hover { background: var(--maat-cream); }
.np-category-strip__list-thumb {
  width: 84px; /* antes 64px */
  height: 84px; /* antes 64px */
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.np-category-strip__list-thumb-placeholder {
  width: 84px; /* antes 64px */
  height: 84px; /* antes 64px */
  background: var(--maat-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.np-category-strip__list-title {
  font-family: var(--font-display);
  font-size: 15px; /* antes 14px */
  color: var(--maat-navy);
  font-weight: 700;
  line-height: 1.3;
}
.np-category-strip__list-title a { color: inherit; }
.np-category-strip__list-title a:hover { color: var(--maat-blue); }
.np-category-strip__list-excerpt {
  font-size: 12px;
  color: var(--maat-gray);
  line-height: 1.55;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-category-strip__list-meta {
  font-size: 10px;
  color: var(--maat-gray);
  font-family: var(--font-body);
  margin-top: 6px;
}

/* ─── REVISTA STRIP (CTA comprar) ───────────────── */
.np-magazine-strip {
  background: var(--maat-navy);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
  margin: 32px 0;
}
.np-magazine-strip::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(242,200,121,0.08);
  top: -60px;
  right: 200px;
}
.np-magazine-strip__cover {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.np-magazine-strip__cover-placeholder {
  width: 80px;
  height: 110px;
  background: linear-gradient(160deg, #3D8B8B, #F2C879);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.np-magazine-strip__text { flex: 1; position: relative; z-index: 1; }
.np-magazine-strip__eyebrow {
  font-size: 9px;
  color: var(--maat-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 6px;
}
.np-magazine-strip__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.np-magazine-strip__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  line-height: 1.6;
}
.np-magazine-strip__cta {
  background: var(--maat-cyan);
  color: var(--maat-navy);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background .2s;
}
.np-magazine-strip__cta:hover { background: #e0b45c; color: var(--maat-navy); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .np-hero-grid { grid-template-columns: 1fr; }
  .np-hero-sidebar { flex-direction: row; flex-wrap: wrap; }
  .np-hero-side-item { width: 50%; border-right: 0.5px solid rgba(0,0,0,0.07); }
  .np-with-sidebar { grid-template-columns: 1fr; }
  .np-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .np-category-strip { grid-template-columns: 1fr; }
  .np-category-strip__featured-img,
  .np-category-strip__featured-img-placeholder { min-height: 200px; }
  .np-category-strip__list { border-left: none; border-top: 0.5px solid rgba(0,0,0,0.07); }
}

@media (max-width: 768px) {
  .np-grid-3 { grid-template-columns: 1fr; }
  .np-grid-3 .np-article { border-right: none; border-bottom: 0.5px solid rgba(0,0,0,0.07); }
  .np-hero-sidebar { flex-direction: column; }
  .np-hero-side-item { width: 100%; border-right: none; }
  .np-grid-4 { grid-template-columns: 1fr; }
  .np-magazine-strip { flex-direction: column; text-align: center; padding: 24px 20px; }
  .np-magazine-strip__cta { width: 100%; text-align: center; }

}
