@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #262626;
  background-color: #fafafa;
}

html.menu-open {
  overflow: hidden;
}

body.menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

body.admin-bar .a24-header {
  margin-top: 32px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none !important;
  color: inherit;
  transition: color 0.3s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Ad Banner */
.ad-banner-top {
  background-color: #fef3c7;
  padding: 1.5rem 0;
  text-align: center;
}

.ad-banner-top p {
  color: #737373;
  font-size: 0.875rem;
}

/* Header Styles */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.menu-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
}

.header-top-bar {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.date-time {
  font-size: 0.75rem;
  color: #737373;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input {
  width: 10rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
}

.search-input:focus {
  outline: none;
  border-color: #dc2626;
}

.btn-live {
  background-color: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  height: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-live:hover {
  background-color: #b91c1c;
}

/* Search pill */
.search-pill {
  display: flex;
  align-items: center;
  gap: 0;
  height: 2.75rem;
  padding: 0 0.75rem 0 1rem;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.search-pill .search-icon {
  width: 48px;
  height: 100%;
  border-radius: 0;
  border: 0;
  border-left: 1px solid #d4d4d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  flex: 0 0 auto;
  background: transparent;
  cursor: pointer;
}

.search-pill .search-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.search-pill .search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 0.5rem 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
}

.search-pill .search-input:focus {
  outline: none;
}

/* Si querés que el foco pinte el borde como tu rojo */
.search-pill:focus-within {
  border-color: #dc2626;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.12);
}

@media screen and (max-width: 768px) {
  .header-top-left {
    width: 25%;
  }
  .header-actions {
    width: 70%;
    gap: 0.75rem;
  }
  .search-pill .search-input {
    width: 100%;
    min-width: 0;
  }
  .search-pill {
    flex: 1 1 auto;
  }
  .btn-live {
    flex: 0 0 auto;
  }
  .nav-menu.is-open {
    padding-top: calc(var(--a24-header-height, 0px) + 1rem);
  }

  .main-nav .container {
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    margin-left: auto;
  }
}

.header-logo {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.header-logo .container {
  display: flex;
  justify-content: center;
}

.logo {
  height: 4rem;
  width: auto;
}

/* Navigation */
.main-nav {
  border-bottom: 1px solid #e5e5e5;
}

.main-nav .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

/* Contenedor de la navegación */
.main-navigation {
  border-bottom: 1px solid #e5e5e5;
}

.main-navigation .container {
  position: relative;
}

/* Lista de ítems del menú (desktop) */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current_page_ancestor > a {
  color: #dc2626;
  border-bottom: 3px solid #dc2626;
}

.nav-menu {
  display: none;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 0;
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--a24-header-height, 0px);
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - var(--a24-header-height, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1100;
  gap: 1.25rem;
  text-align: center;
}

.site-header a,
.mobile-menu a {
  text-decoration: none;
}

.nav-menu a {
  font-size: 0.875rem;
  color: #404040;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #dc2626;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  display: block;
}

.hamburger {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: #262626;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background-color: #262626;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -0.5rem;
}

.hamburger::after {
  bottom: -0.5rem;
}

.mobile-menu-toggle.is-open .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle.is-open .hamburger::before {
  transform: translateY(0.5rem) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger::after {
  transform: translateY(-0.5rem) rotate(-45deg);
}

/* Breadcrumb */
.breadcrumb {
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: #737373;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #dc2626;
}

.breadcrumb span {
  color: #737373;
  font-size: 0.875rem;
}

.breadcrumb .current {
  color: #262626;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid #171717;
}

.red-square {
  width: 0.75rem;
  height: 2rem;
  background-color: #dc2626;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  flex-grow: 1;
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.red-bar {
  width: 0.25rem;
  min-height: 2.5rem;
  background-color: #dc2626;
  flex-shrink: 0;
}

.category-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
}

.section-header-with-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 2rem;
  height: 2rem;
  background-color: white;
  border: 1px solid #d4d4d4;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #525252;
}

.slider-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #a3a3a3;
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero Section - Home Page */
.main-content {
  background-color: white;
}

.hero-section {
  background-color: white;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  grid-template-areas:
    "center"
    "left"
    "right";
}

.hero-left {
  grid-area: left;
}
.hero-center {
  grid-area: center;
}
.hero-right {
  grid-area: right;
}

.hero-left,
.hero-center,
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Featured News Widget */
.featured-news-widget {
  flex-shrink: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item-simple {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.news-item-simple:last-child {
  border-bottom: none;
}

.news-item-simple:hover {
  background-color: #f9fafb;
}

.news-item-simple .category,
.category-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 0.25rem;
}

.news-item-simple h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #262626;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-item-simple:hover h3 {
  color: #dc2626;
}

.news-item-simple .date,
.date {
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* Nacionales Widget */
.nacionales-widget {
  flex-shrink: 0;
}

.section-title-small {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.news-item-with-image {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.news-item-with-image .news-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.news-item-with-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item-with-image:hover img {
  transform: scale(1.05);
}

.news-item-with-image h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-item-with-image:hover h3 {
  color: #dc2626;
}

/* Main Featured Article */
.main-featured-article {
  display: block;
  margin-bottom: 1.5rem;
}

.article-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0.75rem;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.main-featured-article:hover .article-title {
  color: #dc2626;
}

.article-excerpt {
  font-size: 0.875rem;
  color: #404040;
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.article-card {
  display: block;
}

.card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.article-card:hover h3 {
  color: #dc2626;
}

/* Tabs Widget */
.tabs-widget {
  background-color: #f5f5f5;
  border-radius: 0;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background-color: #f5f5f5;
}

.tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #404040;
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: #525252;
  color: white;
}

.tab-button:hover:not(.active) {
  background-color: #e5e5e5;
}

.tabs-content {
  background-color: white;
  padding: 1rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-news-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.tab-news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tab-news-item:hover {
  background-color: #f9fafb;
}

.news-thumb {
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  background-color: #e5e5e5;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-info {
  flex: 1;
  height: 5rem;
}

.span.news-category {
  font-size: 0.75rem;
}

.news-info h4 {
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

p.news-date {
  font-size: 0.65rem;
}

.tab-news-item:hover .news-info h4 {
  color: #dc2626;
}

/* Ad Spaces */
.ad-space,
.ad-space-large {
  background-color: #fef3c7;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  color: #737373;
  font-size: 0.875rem;
}

.ad-space-large {
  min-height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Publicidad: tamaños estándar por slot */
.a24-ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.a24-ad-slot a,
.a24-ad-picture {
  display: block;
  width: 100%;
}

.a24-ad-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Ocultar publicidad global desde Customizer */
body.a24-ads-hidden .ad-banner-top,
body.a24-ads-hidden .ad-space,
body.a24-ads-hidden .ad-space-large,
body.a24-ads-hidden .ad-space-mid,
body.a24-ads-hidden .ad-space-sidebar,
body.a24-ads-hidden .a24-ad-slot {
  display: none !important;
}

/* Desktop */
@media (min-width: 1024px) {
  /* 1630x138 */
  .a24-ad-slot--top-ad-banner .a24-ad-picture,
  .a24-ad-slot--top-ad-banner .a24-ad-image {
    width: min(100%, 1630px);
    height: 138px;
  }

  /* 738x138 */
  .a24-ad-slot--home-intl-ad .a24-ad-picture,
  .a24-ad-slot--home-intl-ad .a24-ad-image,
  .a24-ad-slot--category-ad-top .a24-ad-picture,
  .a24-ad-slot--category-ad-top .a24-ad-image,
  .a24-ad-slot--category-ad-bottom .a24-ad-picture,
  .a24-ad-slot--category-ad-bottom .a24-ad-image,
  .a24-ad-slot--article-mid-ad .a24-ad-picture,
  .a24-ad-slot--article-mid-ad .a24-ad-image,
  .a24-ad-slot--search-ad .a24-ad-picture,
  .a24-ad-slot--search-ad .a24-ad-image {
    width: min(100%, 738px);
    height: 138px;
  }

  /* 320x600 */
  .a24-ad-slot--home-sidebar-ad .a24-ad-picture,
  .a24-ad-slot--home-sidebar-ad .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-1 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-1 .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-2 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-2 .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-3 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-3 .a24-ad-image {
    width: min(100%, 320px);
    height: 600px;
  }
}

/* Mobile / Tablet */
@media (max-width: 1023.98px) {
  /* 767x104 */
  .a24-ad-slot--top-ad-banner .a24-ad-picture,
  .a24-ad-slot--top-ad-banner .a24-ad-image {
    width: min(100%, 767px);
    height: 104px;
  }

  /* 360x104 */
  .a24-ad-slot--home-intl-ad .a24-ad-picture,
  .a24-ad-slot--home-intl-ad .a24-ad-image,
  .a24-ad-slot--category-ad-top .a24-ad-picture,
  .a24-ad-slot--category-ad-top .a24-ad-image,
  .a24-ad-slot--category-ad-bottom .a24-ad-picture,
  .a24-ad-slot--category-ad-bottom .a24-ad-image,
  .a24-ad-slot--article-mid-ad .a24-ad-picture,
  .a24-ad-slot--article-mid-ad .a24-ad-image,
  .a24-ad-slot--search-ad .a24-ad-picture,
  .a24-ad-slot--search-ad .a24-ad-image {
    width: min(100%, 360px);
    height: 104px;
  }

  /* 320x250 */
  .a24-ad-slot--home-sidebar-ad .a24-ad-picture,
  .a24-ad-slot--home-sidebar-ad .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-1 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-1 .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-2 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-2 .a24-ad-image,
  .a24-ad-slot--article-sidebar-ad-3 .a24-ad-picture,
  .a24-ad-slot--article-sidebar-ad-3 .a24-ad-image {
    width: min(100%, 320px);
    height: 250px;
  }
}

/* Internacionales Section */
.internacionales-section {
  padding: 2rem 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

.internacionales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.internacional-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Slider genérico: imágenes sin bordes redondeados */
.section-slider .internacional-card,
.section-slider .slider-card .card-img,
.section-slider .featured-image-panoramic {
  border-radius: 0 !important;
}

.card-image-overlay {
  position: relative;
  aspect-ratio: 16 / 9;
}

.card-image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.internacional-card:hover .card-image-overlay img {
  transform: scale(1.05);
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  padding: 1.5rem;
}

.overlay-content h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.internacional-card:hover .overlay-content h3 {
  color: #fca5a5;
}

.overlay-content .date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Category Page */
.category-page {
  padding: 2rem 0;
  background-color: white;
  min-height: 70vh;
}

/* Featured Slider */
.featured-slider {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.slider-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.slider-wrapper {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.slider-card {
  flex: 0 0 calc(25% - 0.75rem);
  display: block;
}

.slider-card .card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider-card:hover img {
  transform: scale(1.05);
}

.slider-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.slider-card:hover h3 {
  color: #dc2626;
}

/* Featured Article */
.featured-article {
  margin-bottom: 3rem;
}

.featured-image-panoramic {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.featured-image-panoramic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article:hover .featured-image-panoramic img {
  transform: scale(1.05);
}

.featured-article .article-date {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-bottom: 0.5rem;
  display: block;
}

.featured-article .article-title {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.featured-article .article-excerpt {
  font-size: 1rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.news-card {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d4d4d4;
}

.news-card .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.news-card .card-content {
  padding: 1rem;
}

.news-card .card-date {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-bottom: 0.5rem;
  display: block;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover h3 {
  color: #dc2626;
}

/* Article Page */
.article-page {
  padding: 2rem 0;
  background-color: white;
  min-height: 70vh;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.article-content {
  max-width: 100%;
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
}

.article-header .article-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #737373;
}

.article-meta .separator {
  color: #d4d4d4;
}

/* Featured Image */
.featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Lead */
.article-lead {
  background-color: #f5f5f5;
  border-left: 4px solid #dc2626;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

.article-lead p {
  font-size: 1rem;
  font-weight: 500;
  color: #262626;
  line-height: 1.6;
}

/* Article Body */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #404040;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.ad-space-mid {
  background-color: #fef3c7;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Social Share */
.social-share {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #404040;
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-size: 1.25rem;
}

.share-btn.facebook {
  background-color: #1877f2;
  color: white;
}

.share-btn.twitter {
  background-color: #000000;
  color: white;
}

.share-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.share-btn:hover {
  opacity: 0.9;
}

/* Related News Section */
.related-news-section {
  margin-top: 3rem;
}

.section-header-simple {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header-simple h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  display: block;
}

.related-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.related-card:hover h3 {
  color: #dc2626;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #262626;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #171717;
}

.widget-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-item {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-item:hover {
  background-color: #f9fafb;
}

.sidebar-item .item-category {
  font-size: 0.75rem;
  color: #737373;
  display: block;
  margin-bottom: 0.25rem;
}

.sidebar-item .item-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.sidebar-item:hover .item-title {
  color: #dc2626;
}

.sidebar-item .item-date {
  font-size: 0.75rem;
  color: #a3a3a3;
}

.ad-space-sidebar {
  background-color: #fef3c7;
  border-radius: 0.375rem;
  padding: 2rem;
  text-align: center;
  color: #737373;
  font-size: 0.875rem;
}

/* Search Page */
.search-page {
  padding: 2rem 0;
  background-color: white;
  min-height: 70vh;
}

.search-header {
  margin-bottom: 2rem;
}

.search-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #262626;
}

.query-highlight {
  color: #dc2626;
}

.search-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 0.875rem;
  color: #737373;
}

.results-count strong {
  color: #262626;
  font-weight: 600;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-controls label {
  font-size: 0.875rem;
  color: #737373;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.375rem;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-result-card {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-result-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d4d4d4;
}

.result-link {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.result-image {
  width: 16rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.375rem;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s ease;
}

.search-result-card:hover .result-image img {
  transform: scale(1.05);
}

.result-details {
  flex: 1;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #737373;
}

.result-meta .separator {
  color: #d4d4d4;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.search-result-card:hover .result-title {
  color: #dc2626;
}

.result-excerpt {
  font-size: 0.875rem;
  color: #404040;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (min-width: 768px) {
  .search-input {
    display: block !important;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.5rem 0;
  }

  .nav-menu.is-open {
    display: flex;
    position: static;
    padding: 0.5rem 0;
    box-shadow: none;
    gap: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "left center right";
  }

  .internacionales-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 2fr 1fr;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-info {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .internacionales-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .result-link {
    flex-direction: column;
  }

  .result-image {
    width: 100%;
  }

  .slider-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* ===== Slider genérico de categorías (shortcode [a24_category_slider]) ===== */
.section-slider,
.internacionales-section {
  padding: 2rem 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

.section-slider-header .section-header {
  border-bottom: none;
}

/* Encabezado + línea negra + botones */
.section-slider .section-slider-header,
.internacionales-section .section-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 4px solid #111111;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Título de la sección (sin borde abajo) */
.section-slider .section-title,
.internacionales-section .section-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Contenedor de los botones del slider */
.section-slider .slider-controls,
.internacionales-section .slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botones redondos tipo V0 */
.section-slider .slider-btn,
.internacionales-section .slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease, border-color 0.15s ease;
}

.section-slider .slider-btn:hover:not(:disabled),
.internacionales-section .slider-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #cccccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.section-slider .slider-btn:disabled,
.internacionales-section .slider-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* Wrapper y track del slider */
.section-slider .a24-slider,
.internacionales-section .a24-slider {
  margin-top: 1.5rem;
}

.section-slider .slider-track,
.internacionales-section .slider-track {
  display: flex;
  gap: 1.5rem;
}

/* 4 tarjetas visibles en desktop */
.section-slider .slider-card,
.internacionales-section .slider-card {
  flex: 0 0 calc(25% - 1.125rem);
}

/* Mobile: slide horizontal */
@media (max-width: 1023.98px) {
  .section-slider .slider-track,
  .internacionales-section .slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .section-slider .slider-card,
  .internacionales-section .slider-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* Espacio respecto al bloque de publicidad */
.section-slider .ad-space,
.internacionales-section .ad-space {
  margin-top: 2.5rem;
}

/* ===== FOOTER A24 ===== */

.site-footer {
  background-color: #e5e5e5;
  padding: 32px 0;
  font-size: 14px;
  color: #4a4a4a;
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo en footer (imagen) */
.site-footer .footer-logo img {
  max-height: 40px;
  width: auto;
}

/* Fallback texto si no hay logo */
.site-footer .footer-logo-text {
  font-weight: 700;
  font-size: 16px;
}

/* Copyright */
.site-footer .footer-copy {
  white-space: nowrap;
}

/* Redes sociales */
.site-footer .footer-right {
  display: flex;
  align-items: center;
}

.site-footer .footer-social-list {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.site-footer .footer-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.site-footer .footer-social-link img {
  width: 2.5rem;
}

/* Responsive: en pantallas chicas, texto arriba y redes abajo centradas */
@media (max-width: 768px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-left {
    flex-direction: column;
  }

  .site-footer .footer-copy {
    white-space: normal;
  }
}
/* ===================================================================
   CATEGORY
   =================================================================== */

/* Margen desde el menú y fondo blanco solo en categorías */
.category-section {
  padding-top: 24px;
  padding-bottom: 40px;
  background: #ffffff !important;
}

/* Breadcrumb también en blanco */
.breadcrumb-wrapper {
  background: #ffffff !important;
}

/* Header de la categoría (título grande con la barra roja) */
.category-section .section-header {
  margin-bottom: 24px;
}

/* ===== Slider "Noticias destacadas" dentro de categoría ===== */

/* El bloque de slider NO debe heredar el gris de .section-slider global */
.category-section .section-slider {
  background-color: transparent !important;
  border-bottom: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Encabezado del slider (título + flechas) con la línea negra como en V0 */
.category-section .section-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  margin-bottom: 20px;
  border-bottom: 4px solid #111111;
  background: transparent !important;
}

/* Track del slider en categorías (podés ajustar el gap si querés más/menos aire) */
.category-section .slider-wrapper .slider-track {
  gap: 24px;
}

/* Cards del slider: usamos las clases genéricas del slider (.slider-card / .internacional-card) */
.category-section .slider-card,
.category-section .internacional-card {
  flex: 0 0 calc(25% - 18px); /* 4 por fila en desktop */
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Overlay de texto sobre la imagen (como en internacionales) */
.category-section .overlay-content {
  padding: 1rem !important;
}

/* ===== Bloque de publicidad en categorías ===== */

.category-section .ad-space-large {
  background-color: #fef3c7;
  margin-top: 32px !important;
  margin-bottom: 32px !important;
  padding: 1.75rem !important;
  min-height: auto !important;
}

/* Separación correcta entre el ad banner y el primer post grande */
.category-main-featured {
  margin-top: 32px !important;
}

/* ===== Responsive del slider de categoría ===== */

@media (max-width: 1023.98px) {
  .category-section .slider-wrapper .slider-track {
    gap: 16px;
  }

  .category-section .slider-card,
  .category-section .internacional-card {
    flex: 0 0 60%;
  }
}

@media (max-width: 599.98px) {
  .category-section .slider-card,
  .category-section .internacional-card {
    flex: 0 0 85%;
  }
}

/* Por si el tema dibuja la línea con pseudo-elementos */
.category-section .section-header::after {
  content: none !important;
}

/* 2) Quitar línea bajo "Noticias destacadas" en la home de categorías */
.category-section .section-slider-header,
.category-section .category-featured-section .section-slider-header {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 20px !important;
}

/* ============================================
   CATEGORY: PRIMER POST + GRID ESTILO V0
   ============================================ */

/* Enlace de todo el bloque, sin subrayado */
.category-section .category-main-featured > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Imagen grande arriba: menos alta y recortada tipo panorámica */
.category-section .category-main-featured .featured-large-image {
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

/* Forzar recorte panorámico */
@media (min-width: 1024px) {
  .category-section .category-main-featured .featured-large-image {
    aspect-ratio: 21 / 8;
  }
}

@media (max-width: 1023.98px) {
  .category-section .category-main-featured .featured-large-image {
    aspect-ratio: 16 / 9;
  }
}

/* Imagen dentro del contenedor panorámico */
.category-section .category-main-featured .featured-large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta del primer post (categoría, fecha, título, excerpt) */
.category-section .category-main-featured .category-label {
  display: block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

.category-section .category-main-featured .date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4px;
}

.category-section .category-main-featured .category-main-title {
  margin: 8px 0 12px;
  font-size: 1.9rem;
  line-height: 1.25;
}

.category-section .category-main-featured .category-main-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Grilla de noticias debajo del primer post:
   3 columnas en desktop como en V0 */
.category-section .news-grid {
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .category-section .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Card de noticia en la grilla */
.category-section .news-card {
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Contenedor de imagen con formato 16:9 */
.category-section .news-card .news-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Imagen dentro de la card */
.category-section .news-card .news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido textual de la card */
.category-section .news-card .news-card-content {
  padding: 14px 18px 18px;
}

/* Excerpt debajo del título */
.news-card-content .news-card-excerpt {
  font-size: 15px;
  line-height: 1.45;
  color: #444;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Un poco más de “aire” abajo del primer post */
.category-main-featured {
  margin-bottom: 40px !important;
}

/* =========================
   PAGINACIÓN (ESTILO V0)
   ========================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Enlaces generados por paginate_links(): 
   .page-numbers, .current, .prev, .next, .dots */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #111111;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* Hover general */
.pagination .page-numbers:hover {
  background-color: #f5f5f5;
  border-color: #d4d4d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* Página actual (botón rojo) */
.pagination .page-numbers.current {
  background-color: #e02020; /* rojo A24 */
  border-color: #e02020;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 32, 32, 0.4);
}

/* Botones Anterior / Siguiente más anchos */
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  padding-inline: 18px;
}

/* Puntos suspensivos "..." sin pill */
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: auto;
  height: auto;
  padding: 0;
  margin-inline: 2px;
  transform: none;
}

/* ============================================
   SINGLE ARTICLE (POST) – ESTILO V0
   ============================================ */

/* Contenedor general de la nota */
.single-section {
  background: #ffffff;
  padding: 32px 0 64px;
}

/* Layout: contenido + sidebar */
.single-layout {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Columna principal */
.single-main {
  flex: 1 1 0;
  max-width: 820px;
}

/* Sidebar derecha */
.single-sidebar {
  flex: 0 0 380px;
}

/* =======================
   HEADER DE LA NOTA
   ======================= */

.single-header {
  margin-bottom: 24px;
}

.single-category {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.single-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

.single-meta-separator {
  color: #d1d5db;
}

/* =======================
   IMAGEN DESTACADA
   ======================= */

.single-featured-image {
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.single-featured-image .featured-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =======================
   EXCERPT / BAJADA
   ======================= */

.single-excerpt {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #f9fafb;
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

/* =======================
   CUERPO DEL ARTÍCULO
   ======================= */

.single-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #111827;
}

/* Article Content: imágenes sin redondeo */
.single-content img,
.entry-content img {
  border-radius: 0 !important;
}

.single-content p {
  margin-bottom: 1.1rem;
}

.single-content blockquote,
.single-content .wp-block-quote,
.entry-content blockquote,
.entry-content .wp-block-quote {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem 1.1rem 1.25rem;
  background: #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);

  border: none;
  border-left: 6px solid #dc2626;
  quotes: none;
}

/* Gutenberg a veces mete <cite> */
.single-content .wp-block-quote cite,
.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #737373;
  font-style: normal;
}

/* Texto */
.single-content blockquote p,
.single-content .wp-block-quote p,
.entry-content blockquote p,
.entry-content .wp-block-quote p {
  margin: 0;
  line-height: 1.45;
}

/* Si hay varios párrafos dentro del quote */
.single-content blockquote p + p,
.single-content .wp-block-quote p + p,
.entry-content blockquote p + p,
.entry-content .wp-block-quote p + p {
  margin-top: 0.75rem;
}

.single-content blockquote::before,
.single-content .wp-block-quote::before,
.entry-content blockquote::before,
.entry-content .wp-block-quote::before,
.single-content blockquote::after,
.single-content .wp-block-quote::after,
.entry-content blockquote::after,
.entry-content .wp-block-quote::after {
  content: none !important;
}

/* Banner amarillo en medio del texto */
.ad-space-mid {
  margin: 24px 0 32px;
  padding: 18px 20px;
  background: #fef3c7;
  border-radius: 14px;
  text-align: center;
}

/* =======================
   SHARE BLOCK
   ======================= */

.share-block {
  margin-top: 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  margin: 0;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.share-button .icon {
  width: 16px;
  height: 16px;
}

/* Por defecto oculto (desktop) */
.share-native-mobile {
  display: none;
}

/* Solo mobile */
@media (max-width: 768px) {
  .share-native-mobile {
    display: inline-flex;
  }
}

/* =======================
   NOTICIAS RELACIONADAS
   ======================= */

.related-section {
  margin-top: 40px;
}

.related-section .section-header {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.related-card {
  display: block;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.related-card .card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}

.related-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 16px 4px;
}

.related-card .date {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 16px 14px;
}

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

.single-sidebar .sidebar-widget {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-news-item {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
}

.sidebar-news-item:first-of-type {
  border-top: none;
}

.sidebar-news-item .category-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.sidebar-news-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.sidebar-news-item .date {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* Bloques de publicidad en la sidebar */
.ad-space-sidebar {
  background: #fef3c7;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 16px;
}

@media (max-width: 1023.98px) {
  .single-layout {
    flex-direction: column;
  }

  .single-main,
  .single-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .single-sidebar {
    margin-top: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* 1) Quitar la línea gris arriba de "Compartir:" */
.single-section .share-block {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 32px; /* deja un poco de aire respecto al texto */
}

/* Por si la línea viene de algún pseudo-elemento */
.single-section .share-block::before,
.single-section .share-block::after {
  content: none !important;
}

/* 2) "Noticias relacionadas" con línea negra tipo V0 */
.single-section .related-section .section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 4px solid #111111;
}

/* Aseguramos que el título quede bien pegado al red-square */
.single-section .related-section .section-header .section-title {
  margin: 0;
}

/* 3) Bloques de publicidad del sidebar iguales a V0 */
.single-sidebar .ad-space-sidebar {
  background-color: #fef3c7;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 24px;
}

/* Quitar márgenes internos de widgets dentro del ad */
.single-sidebar .ad-space-sidebar p {
  margin: 0;
}

/* ===========================
   SEARCH PAGE (RESULTADOS)
   =========================== */

.search-wrapper {
  padding: 32px 0 48px;
  background: #ffffff;
}

.search-wrapper .container {
  max-width: 1160px;
  margin: 0 auto;
}

/* Breadcrumb de búsqueda alineado como el resto */
.search-wrapper .breadcrumb-wrapper {
  margin-bottom: 16px;
}

/* Header: título + meta + orden */
.search-header {
  margin-bottom: 24px;
}

.search-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.search-title .highlight {
  color: #dc2626;
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #4b5563;
}

.search-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.search-sort label {
  color: #4b5563;
}

.sort-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
}

/* Lista de resultados */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

/* Card de resultado */
.search-result-item {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.search-thumb {
  width: 260px;
  min-width: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Info */
.search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-info .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
}

.search-info .meta .dot {
  margin: 0 4px;
}

.search-info .title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}

.search-info .excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

/* Ad de búsqueda con mismo estilo que en categorías */
.search-wrapper .ad-space-large {
  margin-top: 32px;
  margin-bottom: 24px;
  padding: 1.75rem;
  border-radius: 18px;
  background-color: #fef3c7;
  text-align: center;
}

/* Paginación igual que en categorías */
.search-wrapper .pagination {
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .search-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-result-item {
    flex-direction: column;
  }

  .search-thumb {
    width: 100%;
    min-width: 0;
  }
}

/* ===============================
   HOME – BLOQUE DE ENCUESTAS
   =============================== */

.home-polls {
  margin: 40px 0;
  background-color: #f3f4f6; /* gris clarito del fondo */
}

.home-polls__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* Título "Queremos saber tu opinión" con barra roja y subrayado */

.home-polls__header {
  flex: 0 0 45%;
}

.home-polls__eyebrow {
  margin: 0;
  padding-left: 20px;
  border-left: 6px solid #dc2626; /* rojo A24 */
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  position: relative;
}

.home-polls__eyebrow::after {
  content: "";
  display: block;
  width: 220px;
  height: 4px;
  background-color: #374151;
  margin-top: 10px;
}

/* Contenedor de la encuesta (lado derecho) */

.home-polls__polls {
  flex: 0 0 55%;
}

/* Usamos el markup de WP-Polls y lo acomodamos en flex */

.home-polls .wp-polls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Pregunta (primer <p> que pinta WP-Polls) a la izquierda */
.home-polls .wp-polls > p {
  flex: 1;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: #111827;
  text-align: left !important; /* sobreescribir inline center */
}

/* Lista de opciones a la derecha */
.home-polls .wp-polls-ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cada opción */
.home-polls .wp-polls-ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #111827;
}

/* Radio custom */
.home-polls .wp-polls-ul input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  background-color: #ffffff;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.home-polls .wp-polls-ul input[type="radio"]:checked {
  border-color: #111827;
}

.home-polls .wp-polls-ul input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background-color: #111827;
}

/* Botón de votar de WP-Polls */
.home-polls .wp-polls .Buttons,
.home-polls .wp-polls input[type="button"],
.home-polls .wp-polls input[type="submit"] {
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background-color: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.home-polls .wp-polls .Buttons:hover,
.home-polls .wp-polls input[type="submit"]:hover,
.home-polls .wp-polls input[type="button"]:hover {
  background-color: #b91c1c;
}

/* Texto “Ver resultados” etc. más discreto */
.wp-polls-view-results {
  display: none !important;
}

.wp-polls a[href*="ViewPollResults"],
.wp-polls a[onclick*="poll_result"] {
  display: none !important;
}

.home-polls .wp-polls .wp-polls-footer,
.home-polls .wp-polls .wp-polls-loading {
  font-size: 13px;
  color: #6b7280;
}

.home-polls .wp-polls .wp-polls-view-results {
  display: none !important;
}

.home-polls .wp-polls a[href*="ViewPollResults"],
.home-polls .wp-polls a[onclick*="poll_result"] {
  display: none !important;
}

.poll-unique-notice {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}

.wp-polls .wp-polls-footer a {
  display: none !important;
}

.poll-thanks-message {
  font-size: 16px;
  color: #111827;
  line-height: 1.5;
}

.poll-thanks-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.poll-thanks-choice {
  font-style: italic;
  color: #4b5563;
  margin-top: 4px;
}

/* ===============================
   Página de resultados de encuestas
   =============================== */
.poll-results-page {
  background: #f3f4f6;
  padding: 48px 0 64px;
  font-family: "Roboto", sans-serif;
}

.poll-results-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.poll-results-page h1,
.poll-results-page h2,
.poll-results-page h3,
.poll-results-page h4,
.poll-results-page h5 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

.poll-results-page p,
.poll-results-page li,
.poll-results-page span {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.poll-results-header {
  margin-bottom: 24px;
}

.poll-results-meta {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 8px;
}

.poll-results-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
}

.poll-results-subtitle {
  margin: 6px 0 16px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  color: #1f2937;
}

.poll-results-card-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: #1f2937;
}

.poll-results-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.poll-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #1f2937;
  font-weight: 700;
  min-width: 260px;
}

.poll-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d1d5db;
}

.poll-results-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.poll-results-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.poll-results-content .wp-polls {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.poll-results-content .wp-polls-ans {
  width: 100%;
}

.poll-results-content .wp-polls-ans ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.poll-results-content .wp-polls-ans li {
  font-size: 16px;
  margin-bottom: 10px;
}

.poll-results-content .pollbar {
  border: none !important;
  height: 18px !important;
  border-radius: 999px;
  overflow: hidden;
}

.poll-results-content .wp-polls-ans small {
  font-weight: 600;
  color: #111827;
}

.poll-results-content .wp-polls > p {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.poll-pie-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  flex: 0 0 320px;
}

.poll-pie {
  width: min(320px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  position: relative;
  box-shadow: inset 0 0 0 12px #ffffff;
  background: #e5e7eb;
}

.poll-pie-slice-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 700;
}

.poll-pie-center {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.poll-pie-total {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.poll-pie-label {
  font-size: 12px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.poll-legend-values {
  color: #4b5563;
  font-weight: 700;
}

@media (max-width: 900px) {
  .poll-results-content {
    flex-direction: column;
    align-items: stretch;
  }

  .poll-pie-wrapper {
    flex: 0 0 auto;
  }
}

.poll-results-previous {
  margin-top: 48px;
}

.poll-results-previous h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 800;
}

.poll-results-previous ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================
   Shortcode: Noticias Destacadas (sin imagen)
   ========================================= */
.ynt-featured-simple {
  max-width: 1100px;
  width: 100%;
  position: relative;
  clear: both;
  z-index: 2;
  background: #f3f4f6;
}

.ynt-featured-simple__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 4px solid #111827;
  padding-bottom: 8px;
}

.ynt-featured-simple__marker {
  width: 10px;
  height: 34px;
  background: #dc2626;
  flex: 0 0 12px;
}

.ynt-featured-simple__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
  padding-bottom: 0;
  border-bottom: 0;
}

.ynt-featured-slider .slider-controls {
  margin-left: auto;
}

.ynt-featured-simple__list {
  display: grid;
  gap: 0;
}

.ynt-featured-simple__slider {
  overflow: hidden;
}

@media (min-width: 992px) {
  .ynt-featured-simple__list {
    display: flex;
    gap: 14px;
  }

  .ynt-featured-slider .ynt-featured-simple__item.slider-card {
    flex: 0 0 calc(33.333% - 9.34px);
  }
}

.ynt-featured-simple__item {
  border-bottom: 0;
  padding: 0 0 8px;
}

.ynt-featured-simple__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ynt-featured-simple__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ynt-featured-simple__category {
  display: block;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.15;
  font-style: italic;
  color: #4b5563;
  margin-bottom: 6px;
}

.ynt-featured-simple__post-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

.ynt-featured-simple__date {
  display: block;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
  font-style: italic;
  color: #9ca3af;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .ynt-featured-simple {
    margin-top: 14px;
  }

  .ynt-featured-simple__slider .slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ynt-featured-slider .ynt-featured-simple__item.slider-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }

  .ynt-featured-slider .slider-controls {
    position: relative;
    z-index: 3;
  }
}

.poll-results-previous li {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.poll-prev-date {
  color: #6b7280;
}
/* Responsive */

@media (max-width: 1023.98px) {
  .home-polls__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px;
    gap: 24px;
  }

  .home-polls__header,
  .home-polls__polls {
    flex: 1 1 auto;
  }

  .home-polls .wp-polls {
    flex-direction: column;
    gap: 16px;
  }

  .home-polls__eyebrow {
    font-size: 22px;
  }

  .home-polls__eyebrow::after {
    width: 160px;
  }
}

/* 404 Error Page */
.error-404-page {
  padding: 3rem 0;
  background-color: white;
  min-height: 70vh;
}

.error-404-content {
  text-align: center;
  margin-bottom: 3rem;
}

.error-404-number {
  margin-bottom: 1.5rem;
}

.error-number {
  font-size: 8rem;
  font-weight: 700;
  color: #dc2626;
  line-height: 1;
}

.error-404-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #262626;
}

.error-404-description {
  font-size: 1.25rem;
  color: #737373;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-search {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-form-404 {
  display: flex;
  gap: 0.5rem;
}

.search-input-404 {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d4d4d4;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}

.search-input-404:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-button-404 {
  padding: 0.75rem 1.5rem;
  background-color: #dc2626;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button-404:hover {
  background-color: #b91c1c;
}

.error-404-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-404 {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-404-primary {
  background-color: #262626;
  color: white;
}

.btn-404-primary:hover {
  background-color: #404040;
}

.btn-404-secondary {
  background-color: transparent;
  color: #262626;
  border: 1px solid #d4d4d4;
}

.btn-404-secondary:hover {
  background-color: #f5f5f5;
}

.error-404-recent {
  max-width: 1200px;
  margin: 0 auto;
}

/* 404 - Recent posts grid + cards (mínimo) */
.error-404-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.error-404-card {
  display: block;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.error-404-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.error-404-card-image {
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.error-404-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.error-404-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.error-404-card-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.error-404-card-cat {
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.error-404-card-date {
  color: #737373;
}

.error-404-card-title {
  margin: 0;
  color: #262626;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

/* responsive */
@media (max-width: 1024px) {
  .error-404-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .error-404-grid {
    grid-template-columns: 1fr;
  }
}
/* 404 - Recent posts grid + cards (mínimo) */
.error-404-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.error-404-card {
  display: block;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.error-404-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.error-404-card-image {
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.error-404-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.error-404-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.error-404-card-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.error-404-card-cat {
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.error-404-card-date {
  color: #737373;
}

.error-404-card-title {
  margin: 0;
  color: #262626;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

/* responsive */
@media (max-width: 1024px) {
  .error-404-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .error-404-grid {
    grid-template-columns: 1fr;
  }
}

.hero-fixed-image {
  margin: 16px 0 24px;
  text-align: center;
}

.hero-fixed-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-fixed-link,
.hero-fixed-link picture {
  display: block;
}

@media (max-width: 767px) {
  .poll-legend-item {
    min-width: 100%;
  }
}
