/*!
Theme Name: Hugo Contreras Informa Primero
Theme URI: https://hugocontrerasinforma.com
Author: Hugo Contreras
Author URI: https://hugocontrerasinforma.com
Description: Tema personalizado para el portal de noticias Hugo Contreras Informa Primero - La Laguna, Coahuila
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hcinforma1
Tags: news, blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo

Slogan: Primero la gente. Primero la verdad.
*/

/* ==========================================================================
   STYLES.CSS - Hugo Contreras Informa Primero
   Tema personalizado para portal de noticias
   ========================================================================== */

/* ==========================================================================
   GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222222;
  background-color: #FFFFFF;
  padding-top: 76px; /* Navbar height */
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.badge,
.nav-link {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

a {
  color: #0D3B66;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #7A001C;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

/* WordPress Admin Bar Adjustments */
.admin-bar .navbar.fixed-top {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navbar.fixed-top {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .navbar.fixed-top {
    top: 0;
  }
}

/* Adjust body padding when admin bar is present */
.admin-bar body {
  padding-top: 32px;
}

.navbar {
  background: linear-gradient(135deg, #0D3B66 0%, #154563 100%);
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding: 0;
  margin-right: 1rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  font-size: 0.625rem;
  font-weight: 500;
  color: #FFD166;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -2px;
}

/* Responsive brand */
@media (max-width: 575.98px) {
  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.5625rem;
  }
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

/* More spacing on larger screens */
@media (min-width: 1200px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a,
.navbar-nav .current-menu-ancestor > a,
.navbar-nav .current-page-ancestor > a {
  color: #FFD166;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: #FFD166;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .current-menu-item > a::after,
.navbar-nav .current_page_item > a::after,
.navbar-nav .current-menu-ancestor > a::after,
.navbar-nav .current-page-ancestor > a::after {
  transform: translateX(-50%) scaleX(1);
}

/* Search toggle button - Modern & Minimal */
.btn-search-toggle {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-search-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-search-toggle:hover {
  color: #FFD166;
  transform: scale(1.1);
}

.btn-search-toggle:hover::before {
  background: rgba(255, 209, 102, 0.15);
}

.btn-search-toggle i {
  font-size: 1.125rem;
}

/* Expandable search form - Elegant & Modern */
.navbar-search-expanded {
  display: none;
  width: 100%;
  margin: 0;
  position: relative;
  flex: 1;
  max-width: none;
  padding: 0 1rem;
}

.navbar-search-expanded.active {
  display: block;
  animation: searchFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-form-expanded {
  width: 100%;
  max-width: none;
}

.search-expanded-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 0.375rem 0.5rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-expanded-wrapper:focus-within {
  background: white;
  border: 2px solid #FFD166;
  box-shadow:
    0 8px 32px rgba(255, 209, 102, 0.3),
    0 0 0 3px rgba(255, 209, 102, 0.1);
}

.search-input-expanded {
  flex: 1;
  background: transparent;
  border: none;
  color: #0D3B66;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.search-input-expanded::placeholder {
  color: rgba(13, 59, 102, 0.5);
  font-weight: 300;
}

.search-input-expanded:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #0D3B66;
}

/* Search button - Integrated & Clean style */
.btn-search-expanded {
  background: #0D3B66;
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-search-expanded:hover {
  background: #0A2D4D;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.3);
}

.btn-search-expanded:active {
  transform: translateY(0);
  background: #0D3B66;
}

.btn-search-expanded i {
  font-size: 1rem;
}

/* Close button - Integrated & Minimal */
.btn-search-close {
  background: rgba(13, 59, 102, 0.1);
  color: #0D3B66;
  border: none;
  padding: 0.625rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
  flex-shrink: 0;
}

.btn-search-close:hover {
  background: rgba(13, 59, 102, 0.15);
  color: #0D3B66;
  transform: rotate(90deg) scale(1.1);
}

.btn-search-close i {
  font-size: 1rem;
}

/* Hide menu when search is active (desktop only) */
@media (min-width: 992px) {
  #navbar-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.search-active #navbar-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    transform: translateY(-10px);
  }

  body.search-active .navbar-search-expanded {
    display: block;
  }

  body.search-active .btn-search-toggle {
    display: none;
  }

  body.search-active .btn-facebook {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  body:not(.search-active) .navbar-search-expanded {
    display: none;
  }

  .d-flex.align-items-center.gap-2 {
    transition: all 0.3s ease;
  }
}

/* Mobile behavior - Elegant responsive design */
@media (max-width: 991.98px) {
  .btn-search-toggle {
    display: none;
  }

  .navbar-search-expanded {
    display: block;
    margin-top: 1rem;
  }

  .search-expanded-wrapper {
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 0.5rem;
  }

  .search-input-expanded {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
  }

  .btn-search-expanded {
    flex: 1;
    justify-content: center;
  }

  .btn-search-close {
    display: none;
  }
}

/* Mobile search in offcanvas header - Clean & Integrated */
.offcanvas-header-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.4) 0%, rgba(13, 59, 102, 0.2) 100%);
  border-bottom: 2px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form-mobile {
  margin: 0;
}

.offcanvas-header-search .btn-close {
  opacity: 0.8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.offcanvas-header-search .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .navbar-search-expanded {
    display: none;
  }
}

@media (min-width: 992px) {
  .offcanvas-header-search .search-form-mobile {
    display: none;
  }
}

.search-mobile-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.25rem;
  transition: all 0.3s ease;
}

.search-mobile-wrapper:focus-within {
  background: white;
  border-color: #FFD166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2);
}

.search-input-mobile {
  flex: 1;
  background: transparent;
  border: none;
  color: #0D3B66;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  font-weight: 400;
}

.search-input-mobile::placeholder {
  color: rgba(13, 59, 102, 0.5);
  font-weight: 300;
}

.search-input-mobile:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #0D3B66;
}

.btn-search-mobile {
  background: #0D3B66;
  color: white;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-search-mobile:hover {
  background: #0A2D4D;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-search-mobile i {
  font-size: 1rem;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .navbar.fixed-top {
  top: 32px;
}

body.admin-bar .ad-leaderboard-container {
  margin-top: 32px;
}

/* Fix offcanvas position when admin bar is present */
body.admin-bar .offcanvas {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar.fixed-top {
    top: 46px;
  }

  body.admin-bar .ad-leaderboard-container {
    margin-top: 46px;
  }

  body.admin-bar .offcanvas {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* Facebook button in navbar */
.btn-facebook {
  background-color: #1877F2;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-facebook:hover {
  background-color: #145dbf;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-facebook i {
  font-size: 1.125rem;
}

/* Offcanvas mobile menu */
.offcanvas {
  background-color: #0D3B66;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  color: #FFFFFF;
  font-weight: 600;
}

.offcanvas .navbar-nav .nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.offcanvas .btn-facebook {
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 2rem);
}

/* ==========================================================================
   AD CONTAINERS
   ========================================================================== */

.ad-container {
  background-color: #f8f9fa;
  padding: 0.35rem 0;
  margin-bottom: 0.75rem;
}

.ad-leaderboard-container {
  margin-top: 32px;
  margin-bottom: 0.25rem;
}

.ad-billboard-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* Single Ad Styles (from shortcode) */
.hci-single-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hci-single-ad img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hci-single-ad a {
  display: block;
  text-align: center;
  width: 100%;
}

.hci-single-ad picture {
  display: block;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 500px;
  background: linear-gradient(135deg, #0D3B66 0%, #7A001C 100%);
  background-image: url('https://via.placeholder.com/1920x600/0D3B66/FFFFFF?text=La+Laguna');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.9) 0%, rgba(122, 0, 28, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.025em;
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #FFD166;
  font-style: italic;
  font-family: 'Lora', Georgia, serif;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.btn-primary-custom {
  background-color: #FFD166;
  color: #222222;
  border: none;
}

.btn-primary-custom:hover {
  background-color: #ffc233;
  color: #222222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

.btn-outline-light {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}

.btn-outline-light:hover {
  background-color: #FFFFFF;
  color: #0D3B66;
  transform: translateY(-2px);
}

/* ========================================
   HERO ENHANCED - Breaking News & Stats
   ======================================== */

/* Enhanced Hero Background */
.hero-enhanced {
  min-height: 65vh;
  background-image: linear-gradient(rgba(13, 59, 102, 0.88), rgba(122, 0, 28, 0.92)),
                    url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Breaking News Ticker */
.breaking-news-ticker {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
  overflow: hidden;
}

.badge-live {
  background: linear-gradient(135deg, #DC2626, #7A001C);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

.breaking-scroll {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ticker-item {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  display: inline-block;
  animation: scroll-ticker 30s linear infinite;
}

.ticker-item:hover {
  color: #FFD166;
  text-decoration: underline;
}

.ticker-separator {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  margin: 0 0.5rem;
}

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

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD166;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Hero CTAs Enhanced */
.hero-ctas .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-ctas .btn-hero i {
  font-size: 1.125rem;
}

@media (min-width: 992px) {
  .ad-container {
    padding: 0.3rem 0;
    margin-bottom: 0.5rem;
  }

  .ad-leaderboard-container {
    margin-top: 24px;
    margin-bottom: 0.2rem;
  }
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-slogan {
    font-size: 1.125rem;
  }

  .btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
  padding: 3rem 0;
}

.contact-hero-band {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(135deg, #0D3B66 0%, #7A001C 100%);
  background-image: url('../../../images/contacto.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 4rem 0;
}

.contact-hero-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.9) 0%, rgba(122, 0, 28, 0.85) 100%);
  z-index: 1;
}

.contact-hero-band .container {
  position: relative;
  z-index: 10;
}

.contact-hero-band .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.025em;
  color: #ffffff;
}

.contact-hero-band .hero-slogan {
  font-size: 1.5rem;
  font-weight: 400;
  color: #FFD166;
  font-style: italic;
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact-hero-band {
    padding: 3rem 0;
    min-height: 40vh;
    background-attachment: scroll;
  }

  .contact-hero-band .hero-title {
    font-size: 2.25rem;
  }

  .contact-hero-band .hero-slogan {
    font-size: 1.25rem;
  }
}

.content-section {
  margin-bottom: 4rem;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0D3B66;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #7A001C, #FFD166);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.lora-text {
  font-family: 'Lora', Georgia, serif;
}

.lora-text strong {
  font-weight: 600;
}

.lora-text ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.lora-text ul li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   AD TEXT CARDS (Anuncios en modo texto)
   ========================================================================== */

.hci-ad-text-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #FFD166;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.15);
  transition: all 0.3s ease;
}

.hci-ad-text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #0D3B66, #FFD166, #7A001C);
}

.hci-ad-text-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.25);
  border-color: #ffc233;
}

.hci-ad-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A001C;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.hci-ad-headline {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0D3B66;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.hci-ad-body {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'Lora', Georgia, serif;
}

.hci-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #0D3B66 0%, #0b2f54 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.2);
}

.hci-ad-cta:hover {
  background: linear-gradient(135deg, #7A001C 0%, #6a0018 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 0, 28, 0.3);
}

.hci-ad-cta i {
  font-size: 0.875rem;
}

/* Variante para anuncios individuales (sidebar, etc) */
.hci-ad-text-card--single {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hci-ad-text-card--single .hci-ad-headline {
  font-size: 1.5rem;
}

.hci-ad-text-card--single .hci-ad-body {
  font-size: 0.9375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hci-ad-text-card {
    padding: 1.5rem;
  }

  .hci-ad-headline {
    font-size: 1.5rem;
  }

  .hci-ad-text-card--single .hci-ad-headline {
    font-size: 1.25rem;
  }

  .hci-ad-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* Carousel integration */
.hci-ads-header-carousel .hci-ad-text-card {
  min-height: 90px;
  max-height: 90px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 1rem 2rem;
  text-align: left;
}

.hci-ads-header-carousel .hci-ad-text-card::before {
  display: none;
}

.hci-ads-header-carousel .hci-ad-eyebrow {
  display: none;
}

.hci-ads-header-carousel .hci-ad-headline {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.hci-ads-header-carousel .hci-ad-body {
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.3;
  color: #6b7280;
  display: block;
}

.hci-ads-header-carousel .hci-ad-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.hci-ads-header-carousel .hci-ad-cta {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hci-ads-header-carousel .hci-ad-text-card {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    text-align: center;
  }

  .hci-ads-header-carousel .hci-ad-content {
    gap: 0.125rem;
  }

  .hci-ads-header-carousel .hci-ad-headline {
    font-size: 1rem;
    line-height: 1.2;
  }

  .hci-ads-header-carousel .hci-ad-body {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .hci-ads-header-carousel .hci-ad-cta {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */

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

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

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

.category-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  z-index: 1;
}

/* Badges en imágenes de noticias/tarjetas */
.news-card-image .category-badge,
.post-thumbnail .category-badge,
.featured-story .category-badge,
.trending-card .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: 6px;
}

.contact-type-card .category-badge {
  margin-bottom: 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Category badge colors */
.badge-politica {
  background-color: #0D3B66;
  color: #FFFFFF;
}

.badge-seguridad {
  background-color: #7A001C;
  color: #FFFFFF;
}

.badge-comunidad {
  background-color: #FFD166;
  color: #222222;
}

.badge-economia {
  background-color: #06A77D;
  color: #FFFFFF;
}

.badge-deportes {
  background-color: #D65108;
  color: #FFFFFF;
}

.badge-nacional {
  background-color: #8B5CF6;
  color: #FFFFFF;
}

.badge-opinion {
  background-color: #EC4899;
  color: #FFFFFF;
}

.badge-multimedia {
  background-color: #10B981;
  color: #FFFFFF;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.news-card-excerpt {
  font-size: 0.9375rem;
  color: #4b5563;
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0D3B66;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
  background: none;
  border: none;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  color: #7A001C;
  gap: 0.75rem;
}

.btn-share-fb {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background-color: #1877F2;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-share-fb:hover {
  background-color: #145dbf;
  transform: scale(1.1);
}

/* ==========================================================================
   FEATURED NEWS CARD
   ========================================================================== */

.news-grid-container {
  margin-bottom: 3rem;
}

.news-card-featured {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FFFFFF;
}

.news-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 59, 102, 0.15);
}

.news-card-featured .news-card-image {
  aspect-ratio: 16 / 10;
}

.news-card-featured .news-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-title-large {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0D3B66;
}

.news-card-title-large a {
  color: #0D3B66;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title-large a:hover {
  color: #7A001C;
}

.news-card-excerpt-large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.news-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-read-more-large {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0D3B66, #7A001C);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-read-more-large:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(13, 59, 102, 0.3);
  color: white;
}

.news-grid-regular {
  margin-top: 2rem;
}

/* Meta separator */
.meta-separator {
  color: #d1d5db;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-fill-mode: both;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .news-card:hover,
  .news-card-featured:hover,
  .stat-item:hover,
  .ticker-item,
  .btn-share-fb:hover,
  .btn-read-more:hover,
  .btn-read-more-large:hover {
    animation: none;
    transform: none;
    transition: none;
  }
}

/* Improved hover effects */
.news-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.15);
}

.news-card:hover .news-card-title a {
  color: #7A001C;
}

/* ==========================================================================
   RESPONSIVE - MOBILE ENHANCEMENTS
   ========================================================================== */

@media (max-width: 767px) {
  .hero-enhanced {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-slogan {
    font-size: 1.125rem;
  }

  .breaking-news-ticker {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem 1.5rem;
  }

  .stat-number {
    font-size: 1.875rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .news-card-featured .news-card-body {
    padding: 1.5rem;
  }

  .news-card-title-large {
    font-size: 1.5rem;
  }

  .news-card-excerpt-large {
    font-size: 1rem;
  }

  .btn-read-more-large {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   OPINION CARD
   ========================================================================== */

.opinion-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.opinion-card-body {
  padding: 2rem;
}

.opinion-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222222;
  margin: 1rem 0;
  line-height: 1.3;
}

.opinion-excerpt {
  font-size: 1.0625rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .opinion-card .row {
    flex-direction: column;
  }

  .opinion-image {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   VIDEO CARDS
   ========================================================================== */

.video-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.btn-play {
  background: none;
  border: none;
  color: white;
  font-size: 4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.btn-play:hover {
  transform: scale(1.15);
  opacity: 1;
}

.badge-live {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #DC2626;
  color: white;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.video-card-body {
  padding: 1.25rem;
}

.video-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #222222;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.4;
}

.video-duration {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

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

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0D3B66;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #FFD166;
}

.ad-sidebar {
  margin-bottom: 2rem;
}

/* Facebook Widget */
.facebook-widget {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.facebook-box {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #1877F2 0%, #145dbf 100%);
  color: white;
}

.fb-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.fb-text {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn-facebook-lg {
  background-color: white;
  color: #1877F2;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-facebook-lg:hover {
  background-color: #f0f2f5;
  color: #145dbf;
  transform: translateY(-2px);
}

.fb-followers {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Categories list */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background-color: #F2F2F2;
  color: #222222;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.category-link:hover {
  background-color: #0D3B66;
  color: white;
  transform: translateX(4px);
}

.category-link i {
  font-size: 1.125rem;
  opacity: 0.8;
}

/* ==========================================================================
   SPONSORS SECTION - Carrusel Minimalista con Imágenes Circulares
   ========================================================================== */

section.sponsors-section {
  background: #ffffff;
  padding: 3rem 0;
  margin: 2rem 0 0;
  position: relative;
  overflow: hidden;
}

.sponsors-section .sponsors-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.sponsors-section .sponsors-title {
  color: #0D3B66;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  font-size: 1.75rem;
}

/* Sponsors Swiper Container */
.sponsors-section .sponsors-swiper-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 20px;
}

.sponsors-section .sponsors-swiper {
  padding: 1rem 0;
  overflow: visible;
}

/* Swiper Slides */
.sponsors-section .swiper-slide {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.sponsors-section .sponsor-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.sponsors-section .sponsor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: #ffffff;
  border: 3px solid #f1f3f5;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sponsors-section .sponsor-link:hover {
  transform: scale(1.1);
  border-color: #0D3B66;
  box-shadow: 0 8px 20px rgba(13, 59, 102, 0.15);
}

.sponsors-section .sponsor-no-link {
  cursor: default;
}

.sponsors-section .sponsor-no-link:hover {
  transform: scale(1.05);
  border-color: #dee2e6;
}

.sponsors-section .sponsor-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sponsors-section .sponsor-link:hover .sponsor-logo {
  transform: scale(1.05);
}

/* Responsive adjustments - Sponsors Section */
@media (max-width: 992px) {
  .sponsors-section .sponsor-link {
    width: 140px;
    height: 140px;
    border-width: 2.5px;
  }
}

@media (max-width: 768px) {
  section.sponsors-section {
    padding: 2.5rem 0;
  }

  .sponsors-section .sponsors-title {
    font-size: 1.5rem;
  }

  .sponsors-section .sponsor-link {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  .sponsors-section .sponsors-swiper-container {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  section.sponsors-section {
    padding: 2rem 0;
  }

  .sponsors-section .sponsors-title {
    font-size: 1.25rem;
  }

  .sponsors-section .sponsor-link {
    width: 100px;
    height: 100px;
  }

  .sponsors-section .sponsors-swiper-container {
    padding: 0 10px;
  }
}

/* ==========================================================================
   MORE NEWS SECTION
   ========================================================================== */

.more-news-section {
  padding: 4rem 0;
  background: #ffffff;
}

.more-news-section .section-header {
  margin-bottom: 3rem;
}

.more-news-section .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0D3B66;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.more-news-section .section-title::before {
  content: '▸';
  color: #7A001C;
  margin-right: 0.5rem;
}

.more-news-section .section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0D3B66, #7A001C);
  margin: 0 auto;
  border-radius: 2px;
}

/* Compact News Cards */
.news-card-compact {
  height: 100%;
}

.news-card-compact .news-card-image {
  aspect-ratio: 16 / 10;
}

.news-card-compact .news-card-body {
  padding: 1.25rem;
}

.news-card-compact .news-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-card-compact .news-card-excerpt {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-compact .btn-read-more {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
  .more-news-section {
    padding: 3rem 0;
  }

  .more-news-section .section-title {
    font-size: 1.875rem;
  }
}

@media (max-width: 767px) {
  .more-news-section {
    padding: 2.5rem 0;
  }

  .more-news-section .section-header {
    margin-bottom: 2rem;
  }

  .more-news-section .section-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  background: linear-gradient(135deg, #0D3B66 0%, #154563 100%);
  padding: 4rem 0;
  color: white;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form .form-label {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border-radius: 6px;
  padding: 0.875rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #FFD166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2);
}

.contact-form textarea.form-control {
  resize: vertical;
}

.contact-form .btn-lg {
  padding: 0.875rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 8px;
}

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

.footer {
  background-color: #0D3B66;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.footer-brand h3 {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-slogan {
  color: #FFD166;
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-heading {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cat-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #0D3B66 0%, #154563 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  transform: skew(-10deg);
}

.footer-cat-btn,
.footer-cat-btn:visited,
.footer-cat-btn:hover {
  color: #ffffff;
}

.footer-cat-btn span {
  transform: skew(10deg);
}

.footer-cat-btn:hover {
  background: linear-gradient(135deg, #123f6e 0%, #0D3B66 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: skew(-10deg) translateY(-1px) scale(1.01);
}

.footer-cat-btn-contact {
  background: linear-gradient(135deg, #7A001C 0%, #a8032a 100%);
}

.footer-cats-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-cat-menu {
  display: contents;
}

.footer-cat-menu li {
  display: contents;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* Mobile footer adjustments */
@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

  .footer .row > div {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .footer-category-buttons {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   FOOTER BOTTOM BAR - Modern Design
   ========================================================================== */

.footer-bottom-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

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

/* Copyright Section */
.footer-copyright {
  flex: 1;
  min-width: 250px;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

.footer-copyright strong {
  color: #ffffff;
  font-weight: 600;
}

/* Credits Section */
.footer-credits {
  flex: 0 0 auto;
}

.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credits-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 209, 102, 0.3);
  color: #FFD166;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.credits-logo {
  height: 24px;
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.credits-link:hover .credits-logo {
  transform: scale(1.1) rotate(5deg);
}

.credits-link strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 767px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-copyright {
    min-width: 100%;
  }

  .footer-copyright p {
    font-size: 0.8125rem;
  }

  .credits-link {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
  }

  .credits-logo {
    height: 20px;
    width: 20px;
  }
}

/* ==========================================================================
   VIDEO POPUP (sticky mini-player)
   ========================================================================== */

.video-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  overflow: hidden;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.video-popup-content {
  position: relative;
}

.video-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-popup-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.video-popup-player {
  position: relative;
  aspect-ratio: 16 / 9;
}

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

.video-popup-controls {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.btn-mute {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mute:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .video-popup {
    width: 280px;
    bottom: 15px;
    right: 15px;
  }
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 992px) {
  .sidebar-section {
    margin-top: 3rem;
  }

  .ad-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .content-section {
    margin-bottom: 3rem;
  }

  .news-card-title {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
.form-control:focus {
  outline: 2px solid #FFD166;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0D3B66;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* High contrast for better readability */
@media (prefers-contrast: high) {
  body {
    color: #000000;
  }

  .news-card-excerpt,
  .opinion-excerpt {
    color: #222222;
  }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .ad-container,
  .video-popup,
  .footer {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .news-card,
  .opinion-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ========================================
   MEGA MENU SEARCH OVERLAY
   ======================================== */

.search-mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-mega-menu.active {
  opacity: 1;
  visibility: visible;
}

.search-mega-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 102, 0.97);
  backdrop-filter: blur(10px);
}

.search-mega-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-mega-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.search-mega-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.search-mega-inner {
  max-width: 800px;
  width: 100%;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-mega-menu.active .search-mega-inner {
  transform: translateY(0);
}

.search-mega-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD166;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-mega-form {
  margin-bottom: 1.5rem;
}

.search-mega-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 60px;
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.search-mega-input-wrapper:focus-within {
  border-color: #FFD166;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(255, 209, 102, 0.2);
}

.search-mega-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  padding: 1.25rem 2rem;
  color: #0D3B66;
  font-weight: 400;
  outline: none;
}

.search-mega-input::placeholder {
  color: rgba(13, 59, 102, 0.4);
}

.search-mega-submit {
  background: #0D3B66;
  color: white;
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-mega-submit:hover {
  background: #0A2D4D;
  transform: scale(1.1);
}

.search-mega-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  .search-mega-close {
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .search-mega-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .search-mega-input {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .search-mega-submit {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
}

/* Prevent body scroll when mega menu is open */
body.search-mega-open {
  overflow: hidden;
}


/* Hide old expandable search system (we use mega menu now) */
.navbar-search-expanded {
  display: none !important;
}

#navbar-menu {
  transition: none !important;
}

body.search-active #navbar-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  position: static !important;
  transform: none !important;
}

body.search-active .btn-facebook {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  position: static !important;
  transform: none !important;
}

/* ==========================================================================
   PAGE NOTICIAS - FILTROS Y LAYOUT
   ========================================================================== */

/* Category Filters */
.category-filters {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.filter-buttons {
  gap: 0.75rem !important;
}

.filter-buttons .btn {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.filter-buttons .btn i {
  font-size: 1rem;
}

.filter-buttons .btn .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.filter-buttons .btn-primary-custom {
  background: linear-gradient(135deg, #0D3B66 0%, #0a2d4d 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.2);
}

.filter-buttons .btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.3);
}

.filter-buttons .btn-primary-custom .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.filter-buttons .btn-outline-secondary {
  background: #fff;
  border: 1px solid #dee2e6;
  color: #495057;
}

.filter-buttons .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #0D3B66;
  color: #0D3B66;
  transform: translateY(-1px);
}

.filter-buttons .btn-outline-secondary .badge {
  background: #e9ecef;
  color: #495057;
}

/* Alert de filtro activo */
.alert-info {
  background: #cfe2ff;
  border-color: #9ec5fe;
  color: #084298;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-info i {
  font-size: 1.25rem;
}

.alert-info .alert-link {
  color: #084298;
  font-weight: 600;
  text-decoration: underline;
}

.alert-info .alert-link:hover {
  color: #052c65;
}

/* Paginación personalizada */
.pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #495057;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: #f8f9fa;
  border-color: #0D3B66;
  color: #0D3B66;
  transform: translateY(-2px);
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #0D3B66 0%, #0a2d4d 100%);
  border-color: #0D3B66;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.2);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

.pagination .page-numbers.prev i,
.pagination .page-numbers.next i {
  font-size: 0.875rem;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
  color: #adb5bd;
}

/* Buscador del sidebar */
.search-form .input-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.search-form .form-control {
  border: 1px solid #dee2e6;
  border-right: none;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.search-form .form-control:focus {
  border-color: #0D3B66;
  box-shadow: none;
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.75rem 1.25rem;
}

/* No results state */
.no-results {
  padding: 4rem 2rem;
  text-align: center;
}

.no-results i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.no-results h2 {
  color: #495057;
  margin-bottom: 1rem;
}

.no-results p {
  color: #6c757d;
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

/* Search suggestions */
.search-suggestions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
}

.suggestions-title {
  color: #495057;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.suggestions-title i {
  color: #ffc107;
  font-size: 1.5rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item i {
  color: #28a745;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.suggestion-item span {
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Search form in no results */
.search-again-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.search-again-form h3 {
  color: #495057;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input-group input {
  flex: 1;
  min-width: 250px;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.search-input-group button {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-filters {
    padding: 1rem;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .filter-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }

  .pagination {
    justify-content: center;
    margin-top: 2rem;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    padding: 0.5rem 0.875rem;
  }
}

@media (max-width: 576px) {
  .category-filters {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .filter-buttons .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.375rem);
  }

  .no-results {
    padding: 3rem 1rem;
  }

  .no-results i {
    font-size: 3rem;
  }

  .search-suggestions {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

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

  .search-again-form {
    padding: 1.5rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input-group input {
    min-width: 100%;
  }

  .search-input-group button {
    width: 100%;
  }
}
