@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

/* --- Base & Fonts --- */
:root {
  --primary: #2563eb;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-main: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-main: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(15, 23, 42, 0.85);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

html,
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

.serif {
  font-family: 'Playfair Display', serif;
}

/* --- Shared Typography --- */
.article-content h2,
.article-content h3 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800;
}

.news-card h2,
.news-card h3 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
}

/* --- Layout Components --- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-glass {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 40px -15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  background: var(--header-bg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.header-scrolled .logo-img {
  height: 3rem !important; /* h-12 */
}

@media (min-width: 768px) {
  .header-scrolled .logo-img {
    height: 4.5rem !important; /* h-18 */
  }
}

/* Expandable Search Fix */
.search-expandable-input {
  width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
}

.search-expandable-container:hover,
.search-expandable-container:focus-within {
  padding-left: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.search-expandable-container:hover .search-expandable-input,
.search-expandable-container:focus-within .search-expandable-input {
  width: 220px !important;
  opacity: 1 !important;
  padding-left: 14px !important;
  padding-right: 8px !important;
  pointer-events: auto !important;
}
.dark .search-expandable-container {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .search-expandable-container:hover,
.dark .search-expandable-container:focus-within {
  background: var(--bg-card);
  border-color: rgba(37, 99, 235, 0.4);
}
.dark .header-glass {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 50px -10px rgba(0, 0, 0, 0.5);
}

/* --- Theme Utilities --- */
.dark-show {
  display: none;
}

.dark .dark-show {
  display: flex;
}

.dark .dark-hide {
  display: none;
}

/* --- News Cards (Home) --- */
.news-card .content-box {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card:hover .content-box {
  transform: translateY(-10px);
}

/* --- Article Content (Page) --- */
.article-content iframe,
.video-container iframe {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-main);
  font-size: 1.125rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-main);
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* --- Legacy Styles --- */
.img-noticia {
  width: 100%;
  border-radius: 8px;
}

.post-style2 {
  margin-bottom: 30px;
}

.category-headding {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

.headding-border {
  height: 2px;
  background: #000;
  margin-bottom: 20px;
}

/* --- Utilities --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}


.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  border: 1px solid var(--border-main);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Slick Slider Base --- */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slick-list:focus {
  outline: none;
}

.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.slick-track:before,
.slick-track:after {
  display: table;
  content: '';
}

.slick-track:after {
  clear: both;
}

.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}

[dir='rtl'] .slick-slide {
  float: right;
}

.slick-slide img {
  display: block;
}

.slick-slide.slick-loading img {
  display: none;
}

.slick-slide.dragging img {
  pointer-events: none;
}

.slick-initialized .slick-slide {
  display: block;
}

.slick-loading .slick-slide {
  visibility: hidden;
}

.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
  display: none;
}

/* --- Premium Slick Dots --- */
.slick-dots {
  position: absolute;
  bottom: -35px;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.slick-dots li {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

.slick-dots li button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--text-muted);
  opacity: 0.3;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
}

.slick-dots li.slick-active button {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  border: none;
  outline: none;
  bottom: 120px; /* Higher on mobile to avoid radio */
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 30px;
    z-index: 1000;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #128c7e;
  box-shadow: 2px 10px 25px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
  display: block;
}

/* --- Mobile Menu Navigation --- */
#mobile-menu {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu.show {
  max-height: 90vh;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-bottom: 2rem;
  overflow-y: auto;
}

#mobile-menu a {
  transition: all 0.2s ease;
  padding: 10px 0;
}

#mobile-menu a:hover {
  padding-left: 8px;
  color: #2563eb;
}

/* --- Weather Widget Customization --- */
#TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE {
  background: transparent !important;
  transition: filter 0.3s ease;
}

#TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE div,
#TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE span,
#TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE a {
  background: transparent !important;
  color: #a1a1aa !important;
  /* zinc-400 */
}

#TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE img {
  filter: grayscale(0.5) brightness(1.2);
}

/* Fix for dark mode: Tutiempo uses an iframe with white background.
   We use invert(1) to make the white box dark and the blue text light. 
   hue-rotate(180deg) helps restore the icon colors like the orange sun. */
.dark #TT_yiB251dEkfd9CaLAKfVCIdLpt6uAaEjlo1tkE {
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(0.9);
}

/* --- News Marquee --- */
.news-marquee-section {
  background: var(--bg-sidebar);
  color: var(--text-main);
  padding: 12px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-main);
  box-shadow: var(--card-shadow);
}

.news-marquee-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.marquee-label {
  background: #2563eb;
  /* Vibrant Blue */
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-right: 20px;
  flex-shrink: 0;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.marquee-container {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  max-width: calc(100vw - 120px); /* Account for label and gaps on small screens */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

@media (min-width: 768px) {
  .marquee-container {
    max-width: none;
  }
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  gap: 80px;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.marquee-item:hover {
  color: #60a5fa;
  text-decoration: none;
  transform: scale(1.02);
}

.marquee-item::after {
  content: "•";
  margin-left: 40px;
  color: #4a5568;
  font-size: 18px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


img {
  max-width: 100%;
  height: auto;
}

/* Radio Player Modern Styles */
#radio-sticky-container {
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.2), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
}

.glass-v2 {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.dark .glass-v2 {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#radio-toggle-btn i {
  transition: transform 0.2s ease;
}

#radio-toggle-btn:hover i {
  transform: scale(1.1);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.8; transform: scaleX(0.95); }
}

.radio-playing-animation {
  animation: pulse-soft 2s infinite ease-in-out;
  transform-origin: left;
}