/* ==========================================================================
   NEWS · VISUAL STYLE
   Tipografía, colores, sombras y efectos.
   Carga después de main.css — solo estilo visual.
   ========================================================================== */

:root {
  --font-size-xs: 0.75rem;
}

/* ===== SECTION TITLE ===== */

.noticias-page .section-title h1 {
  color: var(--color-primary);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 var(--space-md) 0;
  line-height: var(--line-height-tight);
}

.noticias-page .section-title p {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin: 0;
}
/* ===== FEATURED ARTICLE (HERO) ===== */

.news-featured-card {
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.news-featured-card img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-featured-card:hover img {
  transform: scale(1.06);
}

.news-featured-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.news-featured-content {
  color: var(--pdp-white);
}

.news-featured-content .date {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-featured-content h2 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-md) 0;
  color: var(--pdp-white);
  font-weight: var(--font-weight-extrabold);
  max-width: 900px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-featured-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--space-2xl) 0;
  line-height: 1.7;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.news-featured-content .btn {
  align-self: flex-start;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: background 0.25s ease-out, transform 0.25s ease-out,
              box-shadow 0.25s ease-out;
  border: none;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 92, 158, 0.35);
}

.news-featured-content .btn:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 92, 158, 0.45);
}

.news-featured-content .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 92, 158, 0.2);
}

/* ===== SIDEBAR CARDS ===== */

.sidebar-card {
  background: var(--pdp-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pdp-8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.sidebar-card-thumb {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.sidebar-card-thumb img {
  border-radius: 0;
  transition: transform 0.5s ease;
}

.sidebar-card:hover .sidebar-card-thumb img {
  transform: scale(1.06);
}

.sidebar-card-body .date {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-card-body h4 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.sidebar-card-body h4 a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.sidebar-card-body h4 a:hover {
  color: var(--color-primary-deep);
}

.sidebar-card-body p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== SECONDARY CARDS (listing page) ===== */

.news-list .home-news-card {
  background: var(--pdp-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pdp-8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  cursor: pointer;
}

.news-list .home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--pdp-5);
}

.news-list .home-news-card img {
  transition: transform 0.5s ease;
}

.news-list .home-news-card:hover img {
  transform: scale(1.06);
}

.news-list .home-news-card-content {
  background: var(--pdp-white);
}

.news-list .home-news-card-content .date {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-list .home-news-card-content h3 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
}

.news-list .home-news-card-content h3 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.news-list .home-news-card-content h3 a:hover {
  color: var(--color-primary-deep);
}

.news-list .home-news-card::before {
  display: none;
}

.news-list .home-news-card-content p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: none;
  opacity: 1;
}

.news-list .home-news-card:hover .home-news-card-content p {
  max-height: none;
  margin-top: 0;
  opacity: 1;
  transform: none;
}

.news-list .home-news-card:hover .home-news-card-content h3 {
  transform: none;
}

/* ===== LOAD MORE BUTTON ===== */

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 52px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  background: var(--pdp-white);
  color: var(--color-primary);
  transition: background 0.25s ease-out, color 0.25s ease-out,
              transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.load-more-btn:hover {
  background: var(--color-primary);
  color: var(--pdp-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 92, 158, 0.25);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.load-more-btn::after {
  content: "↓";
  font-size: 1.1em;
  transition: transform 0.25s ease;
}

.load-more-btn:hover::after {
  transform: translateY(2px);
}

/* ===== ERROR MESSAGE ===== */

.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  background: var(--pdp-5);
  border-radius: var(--radius-lg);
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .news-featured-card,
  .news-featured-card img,
  .news-featured-card:hover,
  .news-featured-card:hover img,
  .sidebar-card,
  .sidebar-card-thumb img,
  .sidebar-card:hover,
  .sidebar-card:hover .sidebar-card-thumb img,
  .sidebar-card-body h4 a,
  .sidebar-card-body h4 a:hover,
  .news-list .home-news-card,
  .news-list .home-news-card::before,
  .news-list .home-news-card img,
  .news-list .home-news-card:hover,
  .news-list .home-news-card:hover img,
  .news-list .home-news-card:hover .home-news-card-content p,
  .news-list .home-news-card:hover .home-news-card-content h3,
  .load-more-btn,
  .load-more-btn:hover,
  .load-more-btn::after,
  .load-more-btn:hover::after {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE: VISUAL ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  .news-featured-content h2 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 560px) {
  .news-featured-content h2 {
    font-size: var(--font-size-2xl);
  }
  .news-featured-content p {
    display: block;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
  }
  .news-featured-content .btn {
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-lg);
  }
}
