/* ==========================================================================
   Galeno Red News - Design System & Stylesheet
   Stack: Bootstrap 5.3 + BoxIcons + Google Fonts (Outfit & Inter) + AOS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Primary Palette - Medical Deep Blues & Teal */
  --primary: #0a4b6c;
  --primary-dark: #062f44;
  --primary-light: #e8f4f8;
  --primary-glow: rgba(10, 75, 108, 0.15);

  --accent: #00a896;
  --accent-hover: #028090;
  --accent-light: #e6f7f5;

  --secondary: #0284c7;
  --secondary-light: #f0f9ff;

  /* Neutrals */
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  /* Status Colors */
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --success: #10b981;

  /* Social Colors */
  --color-whatsapp: #25D366;
  --color-facebook: #1877F2;
  --color-twitter: #0f1419;
  --color-linkedin: #0A66C2;
  --color-telegram: #229ED9;
  --color-copy: #64748b;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 168, 150, 0.25);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

.navbar-logo {
  height: 140px;
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.footer-logo {
  height: 140px;
  max-height: 140px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   3. READING PROGRESS BAR
   -------------------------------------------------------------------------- */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1050;
}

#reading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent);
}

/* --------------------------------------------------------------------------
   4. TOP BAR & NAVIGATION
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--dark);
  color: var(--gray-400);
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .date-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar .date-indicator i {
  color: var(--accent);
  font-size: 1rem;
}

.top-bar .trending-tag {
  background: rgba(0, 168, 150, 0.2);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-bar .social-links a {
  color: var(--gray-400);
  font-size: 1rem;
  padding: 0 6px;
  transition: var(--transition-fast);
}

.top-bar .social-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding-top: 0;
  padding-bottom: 0;
}

.main-header.scrolled nav.navbar {
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}

.navbar-logo {
  height: 140px;
  max-height: 140px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.main-header.scrolled .navbar-logo {
  height: 70px !important;
  max-height: 70px !important;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  padding: 0.75rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.dropdown-menu {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 0.75rem;
  animation: fadeInDown 0.2s ease-out;
}

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

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

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: var(--gray-700);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(3px);
}

.btn-header-action {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-header-action:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   4.1. NEWS TICKER (ÚLTIMA HORA EN TIEMPO REAL)
   -------------------------------------------------------------------------- */
.news-ticker-wrap {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.news-ticker-wrap .ticker-badge {
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 16px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.news-ticker-wrap .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: tickerPulse 1.5s infinite;
}

@keyframes tickerPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.news-ticker-wrap .ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  flex-grow: 1;
  mask-image: linear-gradient(to right, transparent, black 1%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 1%, black 97%, transparent);
}

.news-ticker-wrap .ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}

.news-ticker-wrap .ticker-track:hover {
  animation-play-state: paused;
}

.news-ticker-wrap .ticker-item {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.news-ticker-wrap .ticker-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   5. BREADCRUMBS & ARTICLE HERO HEADER
   -------------------------------------------------------------------------- */
.article-header-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--gray-600);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--gray-500);
  font-weight: 400;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: '›';
  color: var(--gray-400);
  font-size: 1.1rem;
  line-height: 1;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-category {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-subcat {
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-main-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Meta Bar */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-details {
  line-height: 1.35;
}

.author-name {
  font-weight: 700;
  color: var(--dark);
  display: block;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 600;
}

.review-badge i {
  color: var(--accent);
  font-size: 0.95rem;
}

.article-quick-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--gray-600);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-item i {
  font-size: 1.1rem;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   6. SOCIAL SHARE BAR (FLOATING & INLINE)
   -------------------------------------------------------------------------- */
.share-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white) !important;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.btn-share i {
  font-size: 1.15rem;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-share-whatsapp {
  background-color: var(--color-whatsapp);
}

.btn-share-whatsapp:hover {
  background-color: #1eb956;
}

.btn-share-facebook {
  background-color: var(--color-facebook);
}

.btn-share-facebook:hover {
  background-color: #1464cc;
}

.btn-share-twitter {
  background-color: var(--color-twitter);
}

.btn-share-twitter:hover {
  background-color: #2c3640;
}

.btn-share-linkedin {
  background-color: var(--color-linkedin);
}

.btn-share-linkedin:hover {
  background-color: #084e96;
}

.btn-share-telegram {
  background-color: var(--color-telegram);
}

.btn-share-telegram:hover {
  background-color: #1b85b8;
}

.btn-share-copy {
  background-color: var(--gray-100);
  color: var(--gray-800) !important;
  border: 1px solid var(--gray-300);
}

.btn-share-copy:hover {
  background-color: var(--gray-200);
  color: var(--dark) !important;
}

/* --------------------------------------------------------------------------
   7. FEATURED IMAGE
   -------------------------------------------------------------------------- */
.featured-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.25rem;
  background-color: var(--gray-200);
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-image-wrapper:hover img {
  transform: scale(1.02);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  color: var(--white);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-caption i {
  color: var(--accent);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   8. ARTICLE BODY TYPOGRAPHY & CALLOUTS
   -------------------------------------------------------------------------- */
.article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--gray-800);
}

/* Font Size Control Toolbar */
.reading-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  width: fit-content;
  margin-left: auto;
}

.reading-controls span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 4px;
}

.btn-font-size {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-font-size:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Drop Cap for first paragraph */
.article-content .dropcap-p::first-letter {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

/* Headings in Content */
.article-content h2 {
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.6rem;
  color: var(--dark);
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

/* Key Takeaways Box */
.key-takeaways-card {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--accent-light) 100%);
  border: 1px solid rgba(0, 168, 150, 0.2);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.key-takeaways-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.key-takeaways-header i {
  font-size: 1.5rem;
  color: var(--accent);
}

.key-takeaways-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.key-takeaways-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark-soft);
}

.key-takeaways-list li:last-child {
  margin-bottom: 0;
}

.key-takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Medical Callout / Quote Box */
.medical-callout {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.medical-callout::before {
  content: '\e9f8';
  font-family: 'boxicons';
  font-size: 2.5rem;
  color: var(--secondary-light);
  position: absolute;
  top: 10px;
  right: 15px;
  pointer-events: none;
}

.medical-callout p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.medical-callout cite {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  font-style: normal;
  display: block;
}

/* Symptoms & Checklist Styling */
.symptoms-checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}

.symptoms-checklist li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.symptoms-checklist li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.symptoms-checklist li i {
  color: var(--danger);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Source Card */
.source-citation-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.source-citation-card i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.source-details {
  font-size: 0.9rem;
}

.source-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.source-details a {
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

.source-details a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. EXTERNAL SOURCE CLARIFICATION & MEDICAL DISCLAIMER CARD
   -------------------------------------------------------------------------- */
.disclaimer-editorial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 3rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.disclaimer-icon-badge {
  background: var(--primary-light);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.medical-notice-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. RELATED / SUGGESTED ARTICLES (3 CARDS)
   -------------------------------------------------------------------------- */
.related-articles-section {
  padding: 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.section-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.related-news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.related-thumb-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: var(--gray-200);
}

.related-thumb-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-news-card:hover .related-thumb-container img {
  transform: scale(1.06);
}

.related-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-meta {
  font-size: 0.775rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.65rem;
}

.related-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--dark);
  flex: 1;
}

.related-title a {
  color: inherit;
}

.related-title a:hover {
  color: var(--accent);
}

.related-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.related-link i {
  transition: transform 0.2s ease;
}

.related-news-card:hover .related-link i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. WHATSAPP & TELEGRAM BROADCAST CARD
   -------------------------------------------------------------------------- */
.channel-promo-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  color: var(--white);
  margin: 3.5rem 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.channel-promo-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Sidebar Widget: Alertas Sanitarias Galenored con Colores de Marca */
.widget-alertas-galenored {
  background: linear-gradient(145deg, #0a4b6c 0%, #062f44 55%, #008779 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #ffffff;
  padding: 1.75rem;
  box-shadow: 0 12px 30px -5px rgba(10, 75, 108, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.widget-alertas-galenored::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.45) 0%, rgba(0, 168, 150, 0) 70%);
  pointer-events: none;
}

.widget-alertas-galenored::after {
  content: '\ec54';
  /* BoxIcons bx-plus-medical */
  font-family: 'boxicons';
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.widget-alertas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 168, 150, 0.25);
  border: 1px solid rgba(0, 168, 150, 0.5);
  color: #5eead4;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.widget-alertas-badge i {
  color: #2dd4bf;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

.widget-alertas-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.widget-alertas-desc {
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-alert-tg {
  background: #ffffff;
  color: #0a4b6c;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.btn-alert-tg i {
  color: #229ED9;
  font-size: 1.2rem;
}

.btn-alert-tg:hover {
  background: #f8fafc;
  color: #062f44;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-alert-wa {
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-alert-wa i {
  font-size: 1.2rem;
}

.btn-alert-wa:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------------
   Widget: Síganos Social Counter
   -------------------------------------------------------------------------- */
.widget-siganos-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.widget-siganos-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #00b4d8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1;
}

.social-counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.9rem 0.35rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.social-counter-box:hover {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.social-counter-box.sc-facebook {
  background-color: #4b6b94;
}

.social-counter-box.sc-instagram {
  background-color: #3b5c77;
}

.social-counter-box.sc-twitter {
  background-color: #17b6ec;
}

.social-counter-box.sc-youtube {
  background-color: #d94943;
}

.social-counter-box i {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.social-counter-box .sc-number {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.social-counter-box .sc-label {
  font-size: 0.68rem;
  opacity: 0.92;
  margin-top: 2px;
  font-weight: 500;
}

.channel-promo-card h3 {
  color: var(--white);
  font-size: 1.65rem;
  margin-bottom: 0.65rem;
}

.channel-promo-card p {
  color: var(--gray-300);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 550px;
}

.btn-promo-wa {
  background-color: var(--color-whatsapp);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition-bounce);
}

.btn-promo-wa:hover {
  background-color: #1eb956;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-promo-tg {
  background-color: var(--color-telegram);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.4);
  transition: var(--transition-bounce);
}

.btn-promo-tg:hover {
  background-color: #1b85b8;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
}

/* --------------------------------------------------------------------------
   12. COMPREHENSIVE FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: #0b1320;
  color: var(--gray-400);
  padding-top: 4.5rem;
  font-size: 0.9rem;
  position: relative;
}

.footer-top-glow {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  width: 100%;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 88px;
  max-height: 88px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: all 0.25s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.footer-heading {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Medical Disclaimer Highlight */
.medical-disclaimer-banner {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--gray-300);
}

.medical-disclaimer-banner strong {
  color: var(--warning);
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

/* Footer Bottom Copyright */
.footer-bottom {
  background-color: #060b13;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--gray-500);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   13. FLOATING BACK TO TOP & TOASTS
   -------------------------------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-bounce);
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Custom Floating Toast */
.custom-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-toast i {
  color: var(--accent);
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVENESS & UTILITIES
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .author-eeat-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-large-avatar {
    margin: 0 auto;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-bar-container {
    justify-content: flex-start;
  }

  .reading-controls {
    width: 100%;
    justify-content: space-between;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   15. PORTAL HOME / INDEX SPECIFIC STYLES
   -------------------------------------------------------------------------- */

/* Breaking Ticker */
.breaking-ticker-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
  font-size: 0.85rem;
}

.ticker-badge {
  background: var(--danger);
  color: var(--white);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.ticker-item {
  color: var(--dark-soft);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ticker-item:hover {
  color: var(--primary);
}

/* Bento Grid */
.bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.bento-card-main {
  height: 480px;
}

.bento-card-secondary {
  height: 228px;
}

.bento-img-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bento-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 70%, rgba(15, 23, 42, 0.98) 100%);
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.75rem;
  color: var(--white);
}

.bento-title {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.bento-title a {
  color: var(--white);
}

.bento-title a:hover {
  color: var(--accent);
}

.bento-title-secondary {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.bento-title-secondary a {
  color: var(--white);
}

.bento-title-secondary a:hover {
  color: var(--accent);
}

.bento-excerpt {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.bento-meta {
  font-size: 0.775rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Blocks */
.category-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-view-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-view-all:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.hover-elevate {
  transition: var(--transition-fast);
}

.hover-elevate:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

.hover-primary:hover {
  color: var(--primary) !important;
}

/* Sidebar Widgets */
.widget-card {
  position: relative;
}

/* --------------------------------------------------------------------------
   16. SOURCE CITATION & MEDICAL DISCLAIMER CARDS
   -------------------------------------------------------------------------- */
.source-citation-card {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 168, 150, 0.08);
}

.source-citation-card i {
  color: var(--accent);
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.source-citation-card .source-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.source-citation-card .source-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.source-citation-card .source-link:hover {
  color: var(--accent);
}

.disclaimer-editorial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.medical-notice-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

/* --------------------------------------------------------------------------
   17. MEGAMENU & SPECIALTY COVER PAGES
   -------------------------------------------------------------------------- */
.megamenu-dropdown {
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 75, 108, 0.1) !important;
  box-shadow: 0 20px 40px -10px rgba(10, 75, 108, 0.15) !important;
  animation: megaFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes megaFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.megamenu-heading {
  font-size: 0.75rem;
  letter-spacing: 0.75px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.4rem;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.megamenu-item-link {
  background: transparent;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.megamenu-item-link:hover {
  background: #f0fdfa;
  border-color: #ccfbf1;
  transform: translateX(4px);
}

.megamenu-item-link:hover .fw-medium {
  color: var(--primary) !important;
  font-weight: 700;
}

.specialty-hero-banner {
  position: relative;
  overflow: hidden;
}

.specialty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.specialty-hero-card .bento-card-main {
  height: 420px;
}

.hover-accent:hover {
  color: var(--accent) !important;
}

/* Galenored News - Stylesheet Updated */