/* CSS Variables Exact Replica */
:root {
  /* Base Colors - Primitives */
  --color-black: #000000;
  --color-red: #c31411;
  --color-blue: #1a2ca8;

  /* Semantic Colors - Light Mode (Default) */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-header: #ffffff;
  --bg-topbar: #000000;
  --bg-menu: #e6e6e6;
  --bg-footer: #1a2ca8;
  /* Original footer blue */

  --text-main: #333333;
  --text-secondary: #666666;
  --text-inverse: #ffffff;
  --text-header-date: #444444;

  --border-color: #eeeeee;
  --border-input: #cccccc;

  /* Layout Variables */
  --width-container: 1086px;
  --width-col-left: 700px;
  --width-col-right: 336px;
  --gap: 50px;
}

[data-theme="dark"] {
  /* Semantic Colors - Dark Mode */
  --bg-body: #121212;
  --bg-card: #1e1e1e;
  --bg-secondary: #2d2d2d;
  --bg-header: #1a1a1a;
  --bg-topbar: #000000;
  /* Keep black */
  --bg-menu: #2d2d2d;
  --bg-footer: #0f1642;
  /* Darker blue/navy */

  --text-main: #ffffff;
  /* Pure white */
  --text-secondary: #eeeeee;
  /* Almost white */
  /* High contrast text */
  --text-inverse: #121212;
  --text-header-date: #dddddd;

  --border-color: #333333;
  /* Dark gray border */
  /* Darker separator line */
  --border-input: #444444;
}

/* Dark Mode Overrides for Hardcoded Colors */
[data-theme="dark"] .search-form input,
[data-theme="dark"] .secondary-search-form input,
[data-theme="dark"] .gsc-input {
  color: var(--text-main) !important;
}

[data-theme="dark"] .search-form input::placeholder,
[data-theme="dark"] .secondary-search-form input::placeholder {
  color: #bbbbbb !important;
}

[data-theme="dark"] .search-form button,
[data-theme="dark"] .secondary-search-form button,
[data-theme="dark"] .social-icon,
[data-theme="dark"] .header-right a,
[data-theme="dark"] .header-right i,
[data-theme="dark"] .social-top-inline a,
[data-theme="dark"] #search-trigger,
[data-theme="dark"] .mobile-toggle {
  /* Added Search Trigger & Mobile Toggle Force White */
  color: #ffffff !important;
  /* Force white icons in dark mode */
}

/* CSS Reset - Modern Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Swup Transitions */
.transition-fade {
  transition: 0.2s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  /* Original font stack */
  font-size: 14px;
  background-color: var(--bg-body);
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

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

ul {
  list-style: none;
}

/* Utility Classes */
.container-exact {
  width: 100%;
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 10px;
  /* Small padding for mobile edges */
}

/* Remove padding on desktop to allow full 1086px width for pixel-perfect alignment */
@media (min-width: 1100px) {
  .container-exact {
    padding: 0;
  }
}

/* Dynamic Logo Switching */
html:not([data-theme="dark"]) .logo-dark,
[data-theme="dark"] .logo-light {
  display: none !important;
}

html:not([data-theme="dark"]) .logo-light,
[data-theme="dark"] .logo-dark {
  display: block !important;
}

.footer-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Top Bar */
#top-bar {
  background-color: var(--bg-topbar);
  padding: 8px 0;
  color: #4da6ff;
  /* Cyan-ish blue from reference */
  font-size: 13px;
  font-weight: 500;
}

/* Hide Top Bar on Mobile */
@media (max-width: 768px) {
  #top-bar {
    display: none;
  }
}

.top-info {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: flex-start;
  /* Align to left matches image */
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info i {
  color: var(--color-red);
  /* Red icon as requested */
  font-size: 14px;
}

/* Specific icon colors */
.fa-phone,
.fa-mobile-screen {
  color: var(--color-red);
  /* Red */
}

.fa-whatsapp {
  color: #25d366;
  /* Keep WhatsApp Green */
}

/* Specific icon colors */
.fa-phone,
.fa-mobile-screen {
  color: #fca311;
  /* Orange */
}

.fa-whatsapp {
  color: #25d366;
  /* WhatsApp Green */
}

.social-top-inline {
  margin-left: auto;
  /* Push socials to right or keep inline? Image shows them inline. */
  display: flex;
  gap: 20px;
}

.social-top-inline a {
  color: #4da6ff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

.social-top-inline a:hover {
  color: white;
  text-decoration: underline;
}

/* Logo Section - Main Header */
#logo-section {
  background-color: var(--bg-header);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.main-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Left: Date & Weather */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-header-date);
}

.header-date {
  margin-bottom: 5px;
  text-transform: capitalize;
}

.header-weather {
  font-weight: bold;
  color: #004085;
  /* Dark Blue */
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Header Center: Logo */
.header-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-logo {
  height: 110px;
  width: auto;
  max-width: 100%;
}

/* Header Right: Socials */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.follow-text {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-socials {
  display: flex;
  gap: 12px;
}

.header-socials a {
  color: #002b5c;
  /* Navy Blue Icon Color */
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.header-socials a:hover {
  color: var(--color-blue);
}

/* Responsive Header */
@media (max-width: 768px) {
  .main-header-grid {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .header-left {
    order: 2;
    /* Put info below logo on mobile */
    display: none;
  }

  .header-center {
    order: 1;
  }

  .header-right {
    order: 3;
    display: none;
    /* Often hidden on mobile to save space, or keep if preferred */
  }
}

.logo-container {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Menu */
#main-menu {
  background-color: var(--bg-menu);
  font-family: Arial, Helvetica, sans-serif;
  border-bottom: 4px solid var(--color-red);
  position: relative;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li a {
  display: block;
  padding: 20px 10px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--text-main);
  transition: color 0.2s;
  text-decoration: none;
}

.menu-list li a:hover,
#main-menu .menu-list li a.active {
  background-color: var(--color-red) !important;
  color: #fff !important;
  text-decoration: none;
}

/* Search Trigger in Menu */
#search-trigger {
  background: none;
  border: none;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  height: 100%;
  transition: all 0.2s;
}

#search-trigger:hover {
  color: var(--color-red);
}

#search-trigger i {
  font-size: 16px;
  color: var(--color-blue);
}

/* Search Container (Hidden by default) */
#search-container {
  background-color: var(--bg-secondary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  display: none;
  /* Hidden state */
  animation: slideDown 0.3s ease-out;
  width: 100%;
  /* Positioned naturally in flow to appear below menu */
}

#search-container.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  padding: 5px;
  border-radius: 4px;
}

.search-form input {
  flex-grow: 1;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
  background: transparent;
  color: var(--text-main);
}

.search-form button {
  background: none;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
}

.search-form button:hover {
  color: var(--color-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 15px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .nav-bar {
    padding: 0 10px;
  }

  .mobile-toggle {
    display: block;
  }

  .menu-list {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .menu-list.active {
    display: flex;
  }

  .menu-list li {
    width: 100%;
    border-top: 1px solid var(--border-color);
  }

  .mobile-only-switch {
    display: block !important;
    /* Show on mobile */
    border-top: 1px solid var(--border-color);
    display: flex !important;
    justify-content: center;
  }
}

/* Banner Home */
#banner-home {
  background-color: var(--bg-secondary);
  /* Un tono muy suave para destacar la zona */
  padding: 25px 0 25px;
  text-align: center;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.banner-placeholder {
  width: 49%;
  /* Roughly half width */
  display: flex;
  justify-content: center;
  align-items: center;
}

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

@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    gap: 10px;
  }

  .banner-placeholder {
    width: 100%;
  }
}

/* Home Top Banners Fixed Size */
/* Home Top Banners Fixed Size */
/* .banner-placeholder styles here if needed */

#banner-home .banner-placeholder img {
  width: 530px;
  height: 150px;
  /* Ensure no distortion if image isn't exact ratio */
}

@media (max-width: 768px) {
  #banner-home {
    padding: 18px 0;
  }

  #banner-home .banner-placeholder img {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto;
    object-fit: contain;
  }

  #banner-home .banner-placeholder a {
    width: 100%;
  }
}

.banner-slider {
  display: block !important;
}

/* Sidebar Modern Banner - Position 2 */
.sidebar-banner-modern {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-banner-modern .banner-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #bbb;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 1;
}

.sidebar-banner-modern .banner-placeholder {
  width: 100% !important;
  display: flex;
  justify-content: center;
}

.sidebar-banner-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sidebar-banner-modern img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease;
}

.sidebar-banner-modern:hover img {
  transform: scale(1.02);
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: var(--width-col-left) var(--width-col-right);
  gap: var(--gap);
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Sticky Sidebar */
/* Sticky Sidebar */
.main-col-right {
  position: sticky;
  top: 20px;
  /* Offset from top */
  align-self: start;
  /* Critical for sticky in grid */
  height: auto;
}

/* Titles Style - UNIFIED MINIMALIST */
.section-header,
.sidebar-header,
.footer-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid;
  margin-bottom: 20px;
  padding-bottom: 8px;
  position: relative;
  /* Ensure color inheritance for border/text */
}

/* Color Modifiers apply to text and border */
.section-header.red,
.sidebar-header.red,
.footer-header.red {
  color: var(--color-red);
  border-color: var(--color-red);
}

.section-header.blue,
.sidebar-header.blue,
.footer-header.blue {
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.section-header.purple,
.sidebar-header.purple,
.footer-header.purple {
  color: #7c3aed;
  border-color: #7c3aed;
}

/* Sidebar Specific Default */
.sidebar-header.black,
.footer-header.black {
  color: var(--color-black);
  border-color: var(--color-black);
}

/* Vertical Marker (The little rectangle on the left) */
.section-header::before,
.sidebar-header::before,
.footer-header::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  background-color: currentColor;
  /* Inherits red or blue */
  margin-right: 12px;
  border-radius: 1px;
}

/* Title Text */
.section-header span,
.sidebar-header span,
.footer-header span {
  font-size: 20px;
  font-weight: 800;
  text-transform: none;
  /* Let the HTML dictate or use simple Capitalize */
  padding: 0;
  background: none;
  /* Remove old solid background */
  color: inherit;
  /* Inherit red/blue */
  line-height: 1;
}

/* "+ ver más" Link */
.section-header .view-more,
.sidebar-header .view-more,
.footer-header .view-more {
  margin-left: auto;
  /* Pushes to the far right */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  /* Inherit red/blue */
  background: transparent;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.section-header .view-more:hover,
.sidebar-header .view-more:hover,
.footer-header .view-more:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Legacy overrides removed to enforce unified minimalist style */

/* Final cleanup of legacy styles */

/* Left Column Content */
.section-block {
  margin-bottom: 30px;
}

/* Slider (Lo Ultimo) */
/* Slider Card Style Redesign */
.slider-container.card-style {
  background: #000;
  padding: 0;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  position: relative;
}

.featured-swiper {
  border-radius: 16px;
  height: 100%;
}

.slide-content {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Removed Blur Background completely */
.blur-bg {
  display: none;
}

.main-img-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Fill the entire area */
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.7s ease;
}

/* Gradient Overlay for Text Readability */
.slide-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.swiper-slide:hover .main-img-full {
  transform: scale(1.05);
  /* Gentle zoom */
}

.swiper-slide:hover .slide-content img {
  transform: scale(1.05);
  /* Zoom effect on hover */
}

/* Internal Badge "LO ULTIMO" */
.slider-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background-color: var(--color-red);
  color: white;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Info Overlay */
.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Stronger, taller gradient for perfect text readability */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.9) 25%,
    rgba(0, 0, 0, 0.5) 60%,
    transparent 100%
  );
  padding: 80px 30px 20px 30px;
  /* Reduced bottom padding to push text down */
  color: white;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide-info h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-swiper,
.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

/* DESKTOP SPECIFIC OVERRIDES - Fix cutoff issues on PC */
/* DESKTOP SPECIFIC OVERRIDES - Fix cutoff issues on PC */
@media (min-width: 769px) {
  .slide-info {
    /* Reduced bottom padding from 110px to 40px */
    padding: 100px 40px 40px 40px;
  }

  .slider-container.card-style {
    height: 550px;
    /* Height increased by 150px as requested (from 400px to 550px) */
  }

  .slide-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.1;
  }
}

.slide-info a {
  color: white;
  text-decoration: none;
}

.slide-info a:hover {
  text-decoration: none;
  /* No underline on title hover for clean look */
  color: #e0e0e0;
}

/* Metadata Row */
.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  /* Bold metadata */
  text-transform: uppercase;
  opacity: 0.9;
  padding-top: 10px;
}

.slide-meta .meta-cat {
  color: #f0f0f0;
}

.slide-meta .meta-time {
  color: #d0d0d0;
}

/* Navigation Arrows (Hidden by default, show on hover) */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.5);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  opacity: 0;
  /* Hidden initially */
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(200, 0, 0, 0.8);
  /* Red hover effect */
}

/* Show arrows on hover over container */
.featured-swiper:hover .swiper-button-next,
.featured-swiper:hover .swiper-button-prev {
  opacity: 1;
}

/* Cleaned up duplicate rules */

/* Articles Grid (Locales/Nacionales similar layout) */
/* Articles Grid (Locales/Nacionales similar layout) */
.articles-grid {
  display: flex;
  gap: 30px;
  /* Reduced gap to fit better */
  align-items: flex-start;
  width: 100%;
}

.news-column {
  flex: 1.2;
  /* Slightly wider column for Big Article */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  /* Flexbox fix */
}

.article-big {
  width: 100%;
  flex-shrink: 0;
}

.article-big .article-img {
  height: 240px;
  /* Taller image for big article */
  margin-bottom: 12px;
}

.article-big .article-img img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  /* Nicer rounding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-big h3 {
  font-size: 20px;
  font-weight: 800;
  /* Bolder title */
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-big p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.small-articles-col {
  flex: 1;
  /* Standard width for list */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-small {
  display: flex;
  margin-bottom: 20px;
}

/* Shared Modern Thumbnail Style */
.small-img,
.sidebar-thumb,
.f-thumb {
  width: 110px;
  /* Slightly wider */
  height: 75px;
  margin-right: 15px;
  flex-shrink: 0;
}

.small-img img,
.sidebar-thumb img,
.f-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image style: Full fill, rounded corners, no white frame */
.small-img img,
.sidebar-thumb img,
.f-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Restored to prevent distortion */
  border-radius: 8px;
  /* Visual match with user reference */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-small h4 {
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
  color: var(--text-main);
}

/* Police List */
.police-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.police-item {
  display: flex;
  background-color: var(--bg-card);
}

.police-img {
  width: 260px;
  height: 220px;
  /* Original height */
  /* overflow: hidden; Removed */
  margin-right: 40px;
  flex-shrink: 0;
  /* border-radius: 8px; Moved to img */
}

.police-img img {
  object-fit: cover;
  /* Restored to prevent distortion */
  height: 100%;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.police-content {
  width: 400px;
}

.police-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.police-content p {
  font-size: 15px;
  margin-bottom: 10px;
}

.btn-read-more {
  display: inline-block;
  padding: 10px;
  background-color: var(--color-blue);
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-read-more:hover {
  background-color: #253dde;
  text-decoration: none;
}

/* Sidebar Right */
/* Sidebar Right */
.sidebar-block,
.widget-box {
  margin-bottom: 30px;
  background: var(--bg-card);
  /* Ensure it has background if needed, or transparent */
  color: var(--text-main);
}

[data-theme="dark"] .sidebar-block,
[data-theme="dark"] .widget-box {
  background: transparent;
  box-shadow: none;
  border: none;
  padding-left: 0;
  padding-right: 0;
}

/* Gray Background Helper */
.gray-bg {
  background-color: var(--bg-secondary);
  padding: 15px;
  /* Add padding so text doesn't touch edges */
  border-radius: 8px;
  /* Soften edges */
}

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

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  /* Fix overlaps */
}

/* Sidebar thumb handled by shared class above */

.sidebar-item h4 {
  font-size: 14px;
  font-weight: normal;
  margin: 0;
}

.sidebar-item.highlight {
  flex-direction: column;
}

.sidebar-item.highlight .sidebar-thumb-large {
  width: 100%;
  /* Fill the widget width */
  height: 180px;
  /* Fixed height for 16:9-ish on desktop */
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 8px;
}

.sidebar-item.highlight .sidebar-thumb-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-item.highlight .excerpt {
  font-size: 14px;
  margin-top: 5px;
}

/* Video */
.video-title {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: normal;
}

.video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: black;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
#main-footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
  font-size: 15px;
  background-color: var(--bg-secondary);
  /* Original has background image repeat-x */
}

/* Footer Grid */
.footer-content {
  display: grid;
  grid-template-columns: 336px 325px 325px;
  gap: 50px;
}

.footer-col.brand img {
  margin-bottom: 20px;
}

.contact-data {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-main);
}

.footer-social-icons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

/* Social Icons Styled */
/* Social Icons Styled - Redesign */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  /* Slightly rounded squares */
  color: white;
  font-size: 20px;
  transition: all 0.2s ease;
}

.social-icon:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook {
  background-color: #3b5998;
}

.social-icon.twitter {
  background-color: #00acee;
}

.social-icon.whatsapp {
  background-color: #25d366;
  color: white !important;
  /* Ensure content is white */
}

/* Footer Brand & Contact */
.brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 15px 0;
}

.contact-data p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-data strong {
  color: var(--text-main);
}

/* Conflicting footer background styles removed */

/* Footer List */
.footer-item {
  display: flex;
  margin-bottom: 20px;
}

/* f-thumb handled by shared class above */

.footer-item h4 {
  font-size: 14px;
  font-weight: normal;
}

/* Sections List */
.sections ul li {
  background-color: var(--bg-secondary);
  margin-bottom: 1px;
}

.sections ul li a {
  display: block;
  padding: 10px;
  color: var(--text-main);
}

/* Bottom Pie */
#bottom-pie {
  background-color: var(--color-blue);
  color: white;
  text-align: center;
  padding: 20px;
}

[data-theme="dark"] #bottom-pie {
  background-color: #232222;
}

#bottom-pie a {
  color: white;
  text-decoration: underline;
}

#bottom-pie img {
  display: inline-block;
  max-height: 100px;
  width: auto;
  margin-top: 10px;
}

.sidebar-radio-player {
  margin-bottom: 24px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.86);
  color: white;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Left Group */
.player-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.station-name-player {
  font-weight: bold;
  font-size: 15px;
  color: white;
  line-height: 1.2;
}

.btn-escribenos {
  border: 1px solid #666;
  border-radius: 20px;
  padding: 5px 15px;
  color: #ddd;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.05);
}

.btn-escribenos:hover {
  background: white;
  color: #000;
  border-color: white;
  text-decoration: none;
}

.btn-escribenos i {
  font-size: 14px;
}

/* Right Group */
.player-actions,
.player-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.player-vol {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888;
}

.player-vol input[type="range"] {
  width: 76px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
}

.player-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ddd;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-red);
  animation: blink 2s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.play-btn-red {
  width: 48px;
  height: 48px;
  background-color: var(--color-red);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
  transition: transform 0.2s;
}

.play-btn-red:hover {
  transform: scale(1.05);
  background-color: #c82333;
}

/* Mobile / Tablet Fixed Player */
@media (max-width: 1100px) {
  body {
    padding-bottom: 84px;
  }

  .sidebar-radio-player {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9998;
    width: auto;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  }

  .player-bar {
    flex: 1;
    gap: 10px;
    min-width: 0;
  }

  .player-logo {
    width: 34px;
    height: 34px;
  }

  .station-name-player {
    font-size: 13px;
  }

  .live-indicator {
    font-size: 11px;
  }

  .live-dot {
    width: 8px;
    height: 8px;
  }

  .player-actions {
    flex-shrink: 0;
    margin-top: 0;
    gap: 8px;
  }

  .player-vol {
    display: none;
  }

  .btn-escribenos {
    padding: 4px 10px;
    white-space: nowrap;
  }

  .scroll-top-btn {
    bottom: 94px;
  }
}

@media (max-width: 768px) {
  .play-btn-red {
    width: 35px;
    height: 35px;
    font-size: 20px;
    box-shadow: 0 0 25px rgba(214, 29, 46, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Visibility Utilities */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* Responsiveness - Critical for modernizing while keeping original look on desktop */
@media (max-width: 1100px) {
  :root {
    --width-container: 100%;
    --width-col-left: 100%;
    --width-col-right: 100%;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .articles-grid {
    flex-direction: column;
    gap: 30px;
  }

  .article-big,
  .small-articles-col,
  .news-column {
    width: 100%;
  }

  /* Mobile Fix for Large Article: List View Layout */
  .article-big {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .article-big .article-img {
    width: 100px;
    /* Match .small-img */
    height: 80px;
    /* Match .small-img */
    flex-shrink: 0;
    aspect-ratio: auto;
    margin-bottom: 0;
    border-radius: 8px;
    /* Match aesthetic */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Match aesthetic */
    overflow: hidden;
  }

  .article-big .article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article-big h3 {
    font-size: 15px;
    /* Match .article-small h4 approx */
    margin-top: 0;
    line-height: 1.4;
  }

  .article-big p {
    display: none;
  }

  .police-item {
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .police-img {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .police-content {
    width: 100%;
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 40px;
  }

  /* HIDE Main Footer completely on Mobile as requested */
  #main-footer {
    display: none;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-list {
    text-align: left;
  }

  .footer-item {
    justify-content: center;
  }

  .footer-item h4 {
    text-align: left;
  }

  /* Modern Mobile Menu */
  .nav-bar {
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  .mobile-toggle {
    display: block;
    font-size: 1.2rem;
    color: #333;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-menu);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform-origin: top;
    animation: slideDown 0.3s ease-out;
  }

  .menu-list.active {
    display: flex;
  }

  .menu-list li a {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
  }

  .menu-list li a:hover {
    background-color: #f9f9f9;
    padding-left: 25px;
    /* Modern slide effect */
  }

  /* Top bar adjustments */
  .top-info {
    justify-content: center;
    font-size: 11px;
    text-align: center;
  }

  .social-top {
    display: block;
    width: 100%;
    margin-top: 5px;
  }

  .banner-placeholder img {
    width: 100%;
    height: auto;
  }

  /* Fixes for video and sidebar images */
  .video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio (Modern Standard) */
    position: relative;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .sidebar-item.highlight .sidebar-thumb-large {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .sidebar-item.highlight .sidebar-thumb-large img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
  }

  /* Slider Responsive Fix */
  .slider-container {
    width: 100%;
    height: 0;
    padding-bottom: 62%;
    /* Ratio similar to original 700x430 */
    position: relative;
  }

  .featured-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .container-exact {
    padding: 0 15px;
  }

  .logo-container {
    height: 100px;
  }

  .main-logo {
    height: 70px;
  }

  .slider-container {
    height: 250px;
  }

  /* Player Bar Mobile simplified to inherit row layout from 768px */

  .player-viz,
  .player-vol {
    display: none;
  }

  /* Simplify on very small screens */
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Animations & Modern Touches */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Hover Effects Desktop */
@media (min-width: 1101px) {
  .menu-list li a {
    position: relative;
  }

  .menu-list li a::after {
    content: "";
    position: absolute;
    bottom: 15px;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: width 0.3s ease;
  }

  .menu-list li a:hover::after {
    width: calc(100% - 20px);
  }

  .article-big img,
  .small-img img,
  .sidebar-thumb img,
  .police-img img,
  .f-thumb img {
    transition: transform 0.5s ease;
  }

  .article-big:hover img,
  .article-small:hover img,
  .sidebar-item:hover img,
  .police-item:hover img,
  .footer-item:hover img {
    transform: scale(1.05);
  }

  .btn-read-more {
    transition: all 0.3s ease;
    border-radius: 4px;
  }
}

/* =========================================
   SINGLE NEWS PAGE STYLES
   ========================================= */
.single-news {
  background: transparent;
  /* border-radius: 8px; Removed as no background */
  padding: 0;
  /* Remove padding if it was relying on card padding, usually good to reset */
}

.fb-comments-section {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-meta-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.news-intro {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 25px;
  font-family: Arial, Helvetica, sans-serif;
}

.news-media {
  margin: 30px 0;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.media-label {
  font-size: 13px;
  font-weight: bold;
  color: #666;
  margin-bottom: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-media audio {
  width: 100%;
}

.news-media video {
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-cat {
  background: var(--color-black);
  color: #fff;
  padding: 2px 8px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
}

.badge-cat.red {
  background-color: var(--color-red);
}

/* News Gallery Section */
.news-gallery {
  margin-top: 50px;
  padding-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  border-top: 1px solid #f0f0f0;
}

/* Lightbox System */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--color-red);
}

.lightbox-caption {
  margin-top: 20px;
  color: #ccc;
  font-size: 16px;
  text-align: center;
  max-width: 80%;
}

.badge-cat.blue {
  background-color: var(--color-blue);
}

.news-title-main {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.news-main-img {
  margin-bottom: 20px;
}

.news-main-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.img-caption {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.news-share span {
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

.share-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: opacity 0.2s;
}

.share-btn i {
  color: #fff !important;
}

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

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.twitter {
  background-color: #00acee;
}

.share-btn.whatsapp {
  background-color: #25d366;
  color: white !important;
}

/* =========================================
   CATEGORY PAGE STYLES (Horizontal List)
   ========================================= */
.category-list-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* Category List Layout Redesign */
.cat-item-horizontal {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  padding-bottom: 25px;
}

.cat-thumb {
  width: 320px;
  /* Larger image as in reference */
  flex-shrink: 0;
}

.cat-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  /* Rounded corners */
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cat-item-horizontal:hover .cat-thumb img {
  transform: scale(1.02);
}

.cat-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.badge-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  /* Background color inline per category */
}

.badge-cat.red {
  background-color: var(--color-red);
}

.badge-cat.blue {
  background-color: var(--color-blue);
}

.time-ago {
  font-size: 12px;
  color: var(--text-secondary);
  /* Dynamic color */
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cat-info h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.cat-info h3 a {
  color: var(--text-main);
  /* Dynamic color (White in dark mode) */
  text-decoration: none;
  transition: color 0.2s;
}

.cat-info h3 a:hover {
  color: var(--color-red);
}

.cat-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  /* Grey text */
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-separator {
  border: 0;
  height: 1px;
  background: #333;
  /* Darker separator for dark mode default, or use var */
  background: var(--border-color);
  margin: 0 0 25px 0;
}

/* Responsive List */
@media (max-width: 600px) {
  .cat-item-horizontal {
    flex-direction: column;
  }

  .cat-thumb {
    width: 100%;
  }

  .cat-thumb img {
    height: 200px;
  }

  .cat-info h3 {
    font-size: 20px;
  }
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  color: #333;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
  background: var(--color-red);
  color: #fff;
  text-decoration: none;
}

.page-link.next {
  width: auto;
  padding: 0 15px;
}

.dots {
  color: #999;
  padding: 0 5px;
}

.news-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}

.news-body *,
.news-intro * {
  background-color: transparent !important;
}

.news-body p {
  margin-bottom: 20px;
}

.news-body .lead {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
}

.news-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.news-body img {
  max-width: 660px;
  width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
}

/* Horizontal Articles (LO ULTIMO section) */
.article-horizontal-wide {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  /* Fixed: Use variable for Dark Mode support */
}

.article-img-wide {
  width: 250px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

.article-img-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info-wide {
  flex-grow: 1;
}

.article-info-wide h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.article-info-wide p {
  font-size: 15px;
  color: var(--text-secondary);
  /* Fixed: Use variable for Dark Mode support */
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more-blue {
  display: inline-block;
  background-color: #1a3fb5;
  color: white;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  transition: background 0.3s;
}

.btn-read-more-blue:hover {
  background-color: #0d2a8c;
  color: white;
}

@media (max-width: 768px) {
  .article-horizontal-wide {
    flex-direction: column;
  }

  .article-img-wide {
    width: 100%;
    height: 200px;
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: var(--bg-card);
  border: 2px solid var(--color-red);
  color: var(--color-red);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: var(--color-red);
  color: white !important;
  transform: translateY(-5px);
}

.scroll-top-btn.show {
  display: flex;
  animation: fadeInScrollTop 0.3s ease;
}

@keyframes fadeInScrollTop {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    width: 40px;
    height: 40px;
    right: 15px;
  }
}

/* =========================================
   RELATED NEWS REDESIGN (Te puede interesar)
   ========================================= */
.related-news-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.rel-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rel-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--color-red);
}

.rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rel-card:hover .rel-img img {
  transform: scale(1.1);
}

.rel-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rel-info h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.rel-info h4 a {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-card:hover .rel-info h4 a {
  color: var(--color-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-news-grid {
    grid-template-columns: 1fr;
  }

  .rel-img {
    height: 180px;
  }
}

/* =========================================
   SEARCH PAGE STYLES (Google Style)
   ========================================= */
.search-page-container {
  background: transparent;
  /* Use body background */
  padding: 30px 0 60px;
  min-height: 600px;
}

.search-results-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.search-stats {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 15px;
}

.secondary-search-form {
  display: flex;
  max-width: 1086px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 5px 20px;
  box-shadow: none;
  transition: box-shadow 0.2s;
}

.secondary-search-form:hover,
.secondary-search-form:focus-within {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
  border-color: var(--color-blue);
}

.secondary-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  background: transparent;
  color: var(--text-main);
}

.secondary-search-form button {
  background: none;
  border: none;
  color: var(--color-blue);
  cursor: pointer;
  font-size: 18px;
}

.google-results-list {
  max-width: 1080px;
}

.g-result-item {
  margin-bottom: 30px;
}

.g-url {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-title {
  margin: 0;
  line-height: 1.3;
}

.g-title a {
  font-size: 20px;
  color: var(--color-blue);
  /* Was #1a0dab */
  text-decoration: none;
  font-weight: 500;
}

.g-title a:hover {
  text-decoration: underline;
}

.g-result-content {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.g-thumb {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

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

.g-snippet {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.58;
}

.g-date {
  color: #70757a;
}

.no-results {
  padding: 20px 0;
  color: #3c4043;
}

.no-results ul {
  margin-top: 15px;
  margin-left: 20px;
}

.no-results li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .g-result-content {
    flex-direction: column-reverse;
  }

  .g-thumb {
    width: 100%;
    height: 180px;
  }
}

/* =========================================
   CATEGORY SIMPLE LIST STYLE
   ========================================= */
.simple-list .cat-item-simple {
  padding: 20px 0;
}

.simple-list .cat-item-simple h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.simple-list .cat-item-simple h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

.simple-list .cat-item-simple h3 a:hover {
  color: var(--color-blue);
}

.simple-list .cat-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.simple-list .cat-time {
  font-size: 12px;
  color: #999;
}

.simple-list .cat-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* =========================================
   CATEGORY EXCERPT (texto1)
   ========================================= */
.cat-info h3 {
  font-size: 18px !important;
}

.cat-excerpt {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 0;
}

/* =========================================
   TAGS POPULARES WIDGET
   ========================================= */
.tags-container {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  color: #555;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: white;
}

/* RSS Icon in footer */
.social-icon.rss {
  background: #ff6600;
}

.social-icon.rss:hover {
  background: #cc5200;
}

/* Fix WhatsApp icon visibility */
.social-icon.whatsapp i,
.footer-social-icons .social-icon.whatsapp i {
  color: white !important;
}

/* Sidebar highlight item - bigger title with bold */
.sidebar-item.highlight h4 {
  font-size: 16px;
  font-weight: bold;
}

/* =========================================
   WEATHER FORECAST PANEL
   ========================================= */
.header-left {
  position: relative;
}

.weather-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 400px;
  margin-top: 10px;
  overflow: hidden;
}

.weather-panel.active {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-panel-header {
  background: var(--color-blue);
  color: white;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: bold;
}

.forecast-container {
  display: flex;
  padding: 15px;
  gap: 10px;
}

.forecast-loading {
  padding: 30px;
  text-align: center;
  color: #666;
  width: 100%;
}

.forecast-day {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  background: #f9f9f9;
  border-radius: 6px;
}

.forecast-day-name {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.forecast-icon {
  font-size: 24px;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.forecast-temps {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
  font-weight: bold;
}

.temp-min {
  color: #666;
}

.temp-max {
  color: #222;
}

.forecast-labels {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 10px;
  color: #999;
  margin-top: 3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .weather-panel {
    min-width: 280px;
    right: auto;
    left: 0;
  }

  .forecast-temps {
    font-size: 14px;
    gap: 10px;
  }

  .forecast-day {
    padding: 8px 3px;
  }

  .forecast-day-name {
    font-size: 9px;
  }
}

/* Weather source credit */
.forecast-source {
  width: 100%;
  text-align: right;
  font-size: 10px;
  color: #bbb;
  padding: 8px 10px 5px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* Force pointer cursor on all links */
a,
a:hover,
a:visited,
a:active,
button,
.btn,
[role="button"] {
  cursor: pointer;
}

/* --- Theme Switch Toggle Styles --- */
.theme-switch-wrapper {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 46px;
  margin-bottom: 0px;
  cursor: pointer;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 16px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-red);
  /* Active color */
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Theme Pill Switch */
.theme-pill-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #000000;
  border: 1px solid #333;
  border-radius: 20px;
  width: 160px;
  height: 34px;
  margin-left: 15px;
  cursor: pointer;
  overflow: hidden;
}

.pill-option {
  flex: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  /* Default inactive color */
  transition: color 0.3s ease;
  user-select: none;
  height: 100%;
}

.pill-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background-color: #ffffff;
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Icons within options */
.pill-option i {
  font-size: 13px;
}

/* Active Text Colors handled by JS class or parent state */
.theme-pill-container.dark-active #opt-dark {
  color: #000000;
}

.theme-pill-container.dark-active #opt-light {
  color: #888888;
}

.theme-pill-container.dark-active .pill-slider {
  transform: translateX(0);
}

.theme-pill-container.light-active #opt-dark {
  color: #888888;
}

.theme-pill-container.light-active #opt-light {
  color: #000000;
}

.theme-pill-container.light-active .pill-slider {
  transform: translateX(100%);
  /* Full width shift minus padding calc handled by math normally, or 100% of its own width approx? 
    Container is 160. Slider is roughly 78. 
    Let's use left: 2px. 
    If we move it, we move it by 100% of flex box? 
    It's easier to use specific px or percentage relative to container.
    Let's refine slider logic.
    width: calc(50% - 2px).
    translateX(0) is left.
    translateX(100%) of itself? No, we need it to move to the other side.
    If container is width W, slider is W/2. 
    Move by W/2 roughly.
    Actually: 100% of its own width is close enough, plus specific adjustment.
    Let's use a simpler approach:
    left: 2px.
    .light-active .pill-slider { transform: translateX(calc(100% + 1px)); } (Adjust visually)
    */
  transform: translateX(104%);
  /* 78px * 1.04 approx 80px */
}

/* Better Slider Calc */
/* Container 160px. Slider ~78px. Gap 2px/side.
Left pos: 2px.
Right pos: 160 - 78 - 2 = 80px.
Delta = 80 - 2 = 78px.
Slider width is ~78px.
So translateX(100%) should be perfect if width is exactly half-ish.
Width: calc(50% - 4px); -> 76px.
Left: 2px.
Target Right: left: 162px (no). 
Target Right: 160 - 76 - 2 = 82px.
Start: 2px.
Translate: 80px.
76px * X = 80px -> X = 1.05
Let's just use specific Left/Right classes or CSS variables if possible, but pure CSS transform is smoother.
Let's stick to transform: translateX(100%) and tweak width.
If I make slider width exactly 50%, left 0.
Then transform 100% works perfectly.
But we want margin.
*/

/* --- Page Loader --- */
#swup-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Spinner */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #e60000;
  border-radius: 50%;
  animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Show when Swup is changing page */
html.is-changing #swup-loader {
  opacity: 1;
  visibility: visible;
}

[data-theme="dark"] #swup-loader {
  background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .loader-spinner {
  border-color: #333;
  border-top-color: #ff3333;
}
