/* Custom overrides and additional styles for Equacom News WordPress Theme */

/* ============================================
   STICKY HEADER
   ============================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  background: var(--card);
  transition: box-shadow 0.3s ease;
}
.sticky-header.scrolled {
  box-shadow: 0 12px 40px -10px rgba(30,42,58,0.15);
}

/* Mobile nav open state */
.nav-menu.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-menu.open li a {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

/* WordPress specific overrides */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 4px; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 16px; }
.alignright { float: right; margin-left: 16px; }

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* WordPress blocks */
.wp-block-image { margin: 24px 0; }
.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(0,119,204,0.05);
  font-style: italic;
}
.wp-block-quote cite {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: normal;
}

/* Gallery */
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* Sticky header behavior */
.topbar,
.logo-centered-row,
.ticker-bar,
.logo-row,
.main-nav {
  position: relative;
  z-index: 50;
}

/* Shimmer animation for ad banners */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.ad-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,119,204,0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Vertical scroll for side news ticker */
@keyframes verticalScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ============================================
   PERFORMANCE: GPU acceleration for animations
   ============================================ */
.hero-slide,
.hero-slide-img,
.news-card,
.featured-main img,
.featured-side-item img,
.trending-card-image img,
.multimedia-card img,
.lugar-card img {
  will-change: transform;
  backface-visibility: hidden;
}

/* ============================================
   HIDE EMPTY AD SPACES
   ============================================ */
.ad-banner:empty,
.side-ad-inner:empty {
  display: none !important;
}

/* Print styles */
@media print {
  .topbar, .ticker-bar, .main-nav, .site-footer, .ad-banner, .newsletter-block,
  .floating-buttons, .contact-popup-trigger, .popup-overlay, .popup-panel,
  .side-ad, .logo-centered-row, .sticky-header { position: static !important; }
  body::before { display: none; }
  .floating-buttons, .contact-popup-trigger, .popup-overlay, .popup-panel,
  .side-ad { display: none !important; }
}

/* ============================================
   WORDPRESS PARITY SHIELD
   ============================================ */
body.equacom-app {
  margin: 0 !important;
  background: var(--background);
  color: var(--foreground);
}

body.equacom-app::before {
  content: none !important;
  display: none !important;
}

body.equacom-app .container,
body.equacom-app .equacom-container {
  width: min(100%, 1280px) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

body.equacom-app .wp-site-blocks,
body.equacom-app .site,
body.equacom-app .site-content,
body.equacom-app .site-main,
body.equacom-app .entry-content,
body.equacom-app .post,
body.equacom-app .page,
body.equacom-app .site-wrapper,
body.equacom-app .elementor,
body.equacom-app .elementor-section-wrap,
body.equacom-app .elementor-location-header,
body.equacom-app .elementor-location-footer,
body.equacom-app .elementor-section,
body.equacom-app .elementor-container,
body.equacom-app .elementor-widget-wrap,
body.equacom-app .elementor-widget-container,
body.equacom-app .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  margin: 0 !important;
  padding: 0 !important;
}

body.equacom-app .elementor-section.elementor-section-boxed > .elementor-container,
body.equacom-app .elementor-container,
body.equacom-app .e-con,
body.equacom-app .e-con-inner {
  max-width: none !important;
}

body.equacom-app main,
body.equacom-app section,
body.equacom-app article,
body.equacom-app aside,
body.equacom-app nav,
body.equacom-app div {
  min-width: 0;
}

body.equacom-app img {
  max-width: 100%;
  height: auto;
}

body.equacom-app [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.equacom-app.admin-bar .sticky-header {
  top: 32px;
}

body.equacom-app .logo-row .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
}

body.equacom-app .header-action-buttons {
  max-width: 100%;
  justify-content: center;
}

body.equacom-app .date-info {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(26, 35, 50, 0.04);
  box-shadow: var(--shadow);
}

body.equacom-app .date-info-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

body.equacom-app .date-info-date {
  font-size: 12px;
  color: var(--foreground);
  text-transform: capitalize;
}

body.equacom-app .date-info-separator {
  color: var(--muted);
}

body.equacom-app .date-info-time {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

body.equacom-app .equacom-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(221, 225, 231, 0.9);
  box-shadow: 0 18px 40px -24px rgba(30, 42, 58, 0.35);
}

body.equacom-app .equacom-logo-badge img,
body.equacom-app .equacom-logo-badge .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  filter: none !important;
}

body.equacom-app .footer-logo-badge {
  max-width: max-content;
  margin-bottom: 8px;
}

body.equacom-app .footer-logo-badge .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

body.equacom-app .footer-logo-img,
body.equacom-app .footer-logo-badge .custom-logo {
  height: 48px;
  object-fit: contain;
}

body.equacom-app .category-logo-badge {
  padding: 12px 16px;
}

body.equacom-app .action-buttons {
  justify-self: end;
}

body.equacom-app .main-nav {
  background: var(--secondary) !important;
}

body.equacom-app .main-nav .container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

body.equacom-app .main-nav li a {
  color: var(--secondary-fg) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px;
}

body.equacom-app .main-nav li a:hover,
body.equacom-app .main-nav li.current-menu-item a {
  color: var(--primary-fg) !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero with side ticker layout */
body.equacom-app .hero-with-ticker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

body.equacom-app .hero-slider-shell {
  width: 100%;
  padding: 0;
}

body.equacom-app .hero-slider-main {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

body.equacom-app .hero-slider-main .hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.equacom-app .hero-side-ticker {
  display: none;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

body.equacom-app .side-ticker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.equacom-app .side-ticker-pulse {
  margin-left: auto;
  width: 8px;
  height: 8px;
  background: var(--ticker-bg);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

body.equacom-app .side-ticker-body {
  height: calc(100% - 40px);
  overflow: hidden;
  position: relative;
}

body.equacom-app .side-ticker-scroll {
  animation: verticalScroll 40s linear infinite;
}
body.equacom-app .side-ticker-scroll:hover {
  animation-play-state: paused;
}

body.equacom-app .side-ticker-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}
body.equacom-app .side-ticker-item:hover {
  background: rgba(0,0,0,0.03);
}

body.equacom-app .side-ticker-thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
body.equacom-app .side-ticker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.equacom-app .side-ticker-info h4 {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

body.equacom-app .side-ticker-date {
  font-size: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Quick access bar - 4 items */
body.equacom-app .quick-access-bar {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  width: 100%;
}

body.equacom-app .quick-access-item {
  min-height: 112px;
  height: 100%;
  padding: 16px 12px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

body.equacom-app .quick-access-item span {
  line-height: 1.25;
}

/* WhatsApp floating button */
.wa-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.wa-floating-label {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.wa-floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* Ticker stability + speed */
body.equacom-app .ticker-bar {
  position: relative !important;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background: var(--ticker-bg) !important;
}

body.equacom-app .ticker-scroll {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body.equacom-app .ticker-track {
  width: max-content;
  animation-duration: 140s !important;
  will-change: transform;
  transform: translateZ(0);
}

body.equacom-app .ticker-track:hover {
  animation-play-state: paused;
}

body.equacom-app .ticker-label {
  padding: 10px 16px;
}

body.equacom-app .ticker-label span {
  font-size: 12px;
}

body.equacom-app .ticker-track a {
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  color: var(--ticker-fg);
}

body.equacom-app .ticker-news-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.equacom-app .ticker-news-thumb {
  width: 48px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 8px 20px -14px rgba(0,0,0,0.45);
}

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

body.equacom-app .ticker-news-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.equacom-app .ticker-news-text strong {
  font-size: 12px;
  font-weight: 700;
}

body.equacom-app .ticker-news-text small {
  display: none;
}

body.equacom-app .scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.equacom-app .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.equacom-app .sticky-header,
body.equacom-app .logo-centered-row,
body.equacom-app .logo-row,
body.equacom-app .main-nav,
body.equacom-app .ticker-bar {
  backface-visibility: visible;
  transform: none !important;
}

body.equacom-app .topbar,
body.equacom-app .main-nav,
body.equacom-app .logo-row,
body.equacom-app .logo-centered-row,
body.equacom-app .ticker-bar {
  background: var(--card) !important;
}

body.equacom-app .topbar {
  z-index: 48;
  background: var(--secondary) !important;
}

body.equacom-app .main-nav {
  z-index: 45;
}

body.equacom-app .logo-row {
  z-index: 46;
}

body.equacom-app .logo-centered-row {
  z-index: 47;
}

body.equacom-app .ticker-bar {
  z-index: 44;
  background: var(--ticker-bg) !important;
  border-bottom-color: rgba(0, 0, 0, 0.16);
}

body.equacom-app .header-scrolled .logo-row {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
}

body.equacom-app .header-scrolled .topbar {
  max-height: none;
  opacity: 1;
  padding: 8px 0;
}

body.equacom-app .header-scrolled .header-action-buttons {
  display: flex !important;
}

body.equacom-app .header-scrolled .action-buttons {
  display: flex !important;
}

body.equacom-app .hero-slider.hero-slider-main {
  height: auto !important;
  min-height: 340px;
  aspect-ratio: 16 / 9;
}

body.equacom-app .hero-with-side-ads {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
  gap: 16px;
  align-items: stretch;
}

body.equacom-app .hero-with-side-ads:not(.has-left-ad) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
}

body.equacom-app .hero-with-side-ads:not(.has-right-ad) {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

body.equacom-app .hero-with-side-ads:not(.has-left-ad):not(.has-right-ad) {
  grid-template-columns: minmax(0, 1fr);
}

body.equacom-app .home-side-ad {
  display: none;
}

body.equacom-app .has-left-ad .home-side-ad-left,
body.equacom-app .has-right-ad .home-side-ad-right {
  display: block;
}

body.equacom-app .home-side-ad-card {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

body.equacom-app .home-side-ad-link {
  display: grid;
  gap: 14px;
  color: inherit;
}

body.equacom-app .home-side-ad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

body.equacom-app .home-side-ad-media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

body.equacom-app .home-side-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

body.equacom-app .home-side-ad-card:hover .home-side-ad-media img {
  transform: scale(1.04);
}

body.equacom-app .home-side-ad-copy {
  display: grid;
  gap: 8px;
}

body.equacom-app .home-side-ad-copy h4 {
  font-size: 18px;
  line-height: 1.3;
}

body.equacom-app .home-side-ad-copy p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

body.equacom-app .home-side-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 1279px) {
  body.equacom-app .hero-with-side-ads,
  body.equacom-app .hero-with-side-ads:not(.has-left-ad),
  body.equacom-app .hero-with-side-ads:not(.has-right-ad),
  body.equacom-app .hero-with-side-ads:not(.has-left-ad):not(.has-right-ad) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.equacom-app .home-side-ad {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.equacom-app .date-info {
    padding: 6px 10px;
    border-radius: 12px;
  }

  body.equacom-app .header-scrolled .logo-row .container {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.equacom-app .header-scrolled .date-info {
    justify-self: start;
  }

  body.equacom-app .ticker-news-thumb {
    width: 40px;
    height: 30px;
  }
}

body.equacom-app .quick-access-item img {
  height: 40px !important;
  width: auto;
}

body.equacom-app .quick-access-item-store {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.equacom-app .home-news-grid-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) 320px !important;
  gap: 20px !important;
  align-items: start;
}

body.equacom-app .home-news-grid-stack,
body.equacom-app .home-sidebar-shell,
body.equacom-app .home-side-ticker-col {
  min-width: 0;
}

body.equacom-app .home-news-grid-stack {
  display: grid;
  gap: 20px;
}

body.equacom-app .home-news-grid-layout .news-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.equacom-app .latest-news-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.equacom-app .featured-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 4px;
}

body.equacom-app .featured-side {
  display: grid;
  gap: 4px;
}

body.equacom-app .home-sidebar-shell aside {
  display: grid;
  gap: 20px;
}

body.equacom-app .home-side-ticker-col .side-news-ticker {
  height: 380px;
  display: flex;
  flex-direction: column;
}

body.equacom-app .home-side-ticker-col .side-ticker-viewport {
  height: calc(100% - 44px);
}

body.equacom-app .home-side-ticker-col .side-ticker-track {
  display: flex;
  flex-direction: column;
  animation-duration: 30s !important;
}

body.equacom-app .home-side-ticker-col .side-ticker-item {
  min-height: 84px;
  box-sizing: border-box;
  align-items: center;
}

body.equacom-app .home-side-ticker-col .side-ticker-thumb {
  width: 72px;
  height: 52px;
}

body.equacom-app .hero-with-ticker {
  align-items: stretch;
}

body.equacom-app .hero-side-ticker {
  height: var(--equacom-hero-height, auto);
}

body.equacom-app .hero-side-ticker .side-ticker-body {
  height: calc(var(--equacom-hero-height, 420px) - 40px);
}

body.equacom-app .hero-side-ticker .side-ticker-scroll {
  display: flex;
  flex-direction: column;
}

body.equacom-app .hero-side-ticker .side-ticker-item {
  min-height: calc((var(--equacom-hero-height, 420px) - 40px) / 4);
  box-sizing: border-box;
  align-items: stretch;
}

body.equacom-app .hero-side-ticker .side-ticker-thumb {
  width: 78px;
  height: auto;
}

body.equacom-app .hero-side-ticker .side-ticker-thumb img {
  height: 100%;
}

body.equacom-app .hero-side-ticker .side-ticker-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.equacom-app .ticker-store-link {
  display: inline-flex;
}

body.equacom-app .audiovisual-shell {
  display: grid;
  gap: 16px;
}

body.equacom-app .av-player-shell {
  display: grid;
  gap: 16px;
}

body.equacom-app .av-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: var(--secondary);
  box-shadow: var(--shadow-lg);
}

body.equacom-app .av-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.equacom-app .av-playlist-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

body.equacom-app .av-playlist-info h3 {
  font-size: 18px;
}

body.equacom-app .av-grid-group {
  display: none;
}

body.equacom-app .av-grid-group.active {
  display: block;
}

body.equacom-app .av-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.equacom-app .av-video-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.equacom-app .av-video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 119, 204, 0.35);
}

body.equacom-app .av-video-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.12);
}

body.equacom-app .av-video-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--background);
}

body.equacom-app .av-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.equacom-app .av-video-card:hover .av-video-thumb img {
  transform: scale(1.04);
}

body.equacom-app .av-video-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

body.equacom-app .av-video-meta strong {
  font-size: 12px;
  line-height: 1.45;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.equacom-app .av-video-meta small {
  font-size: 10px;
  color: var(--muted);
}

/* WhatsApp expanded panel */
.wa-expanded-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  width: 288px;
  overflow: hidden;
}

body.equacom-app .equacom-page-description {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

body.equacom-app .equacom-page-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--card);
  text-align: center;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (min-width: 1024px) {
  body.equacom-app .hero-with-ticker {
    grid-template-columns: 1fr 320px;
  }

  body.equacom-app .hero-side-ticker {
    display: block;
  }

  body.equacom-app .quick-access-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.equacom-app .av-player-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: end;
  }

  body.equacom-app .av-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body.equacom-app .topbar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.equacom-app .topbar-left {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }

  body.equacom-app .topbar-right {
    order: -1;
    justify-content: center;
  }

  body.equacom-app .logo-row .container {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  body.equacom-app .date-info {
    justify-content: center;
    text-align: center;
  }

  body.equacom-app .action-buttons {
    justify-self: center;
  }

  body.equacom-app .main-nav .container {
    justify-content: space-between !important;
  }

  body.equacom-app .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body.equacom-app .home-news-grid-layout {
    grid-template-columns: 1fr !important;
  }

  body.equacom-app .home-side-ticker-col {
    display: none;
  }

  body.equacom-app .quick-access-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.equacom-app .latest-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.equacom-app .latest-news-item {
    flex-direction: row;
  }

  body.equacom-app .latest-news-image {
    width: 96px;
    height: 80px;
    flex-shrink: 0;
  }

  body.equacom-app .featured-grid {
    grid-template-columns: 1fr;
  }

  body.equacom-app .ticker-store-link {
    display: none !important;
  }
}

@media (max-width: 782px) {
  body.equacom-app.admin-bar .sticky-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  body.equacom-app .equacom-logo-badge {
    padding: 10px 14px;
    border-radius: 18px;
  }

  body.equacom-app .logo-centered-img {
    height: 56px;
    max-width: 220px;
  }

  body.equacom-app .topbar-left a {
    font-size: 10px;
  }

  body.equacom-app .date-info {
    width: 100%;
    justify-content: center;
    gap: 6px 10px;
  }

  body.equacom-app .date-info-date,
  body.equacom-app .date-info-time {
    width: 100%;
  }

  body.equacom-app .date-info-separator {
    display: none;
  }

  body.equacom-app .header-action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.equacom-app .header-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  body.equacom-app .header-action-buttons .header-btn:last-child {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: center;
  }

  body.equacom-app .hero-slider-shell .hero-content,
  body.equacom-app .hero-slider-shell .hero-dots {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.equacom-app .hero-slider-shell .hero-author-box {
    max-width: 100%;
  }

  body.equacom-app .quick-access-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.equacom-app .quick-access-item-store {
    grid-column: 1 / -1;
    max-width: 240px;
    width: 100%;
    justify-self: center;
  }

  body.equacom-app .home-news-grid-layout .news-grid {
    grid-template-columns: 1fr;
  }

  body.equacom-app .latest-news-grid {
    grid-template-columns: 1fr;
  }

  body.equacom-app .latest-news-item {
    flex-direction: row;
  }

  body.equacom-app .latest-news-image {
    width: 96px;
    height: 80px;
    flex-shrink: 0;
  }

  body.equacom-app .ticker-label {
    padding: 10px 12px;
  }

  body.equacom-app .ticker-track a {
    font-size: 12px;
  }

  body.equacom-app .av-video-grid,
  body.equacom-app .av-video-grid-full {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ALBUM-STYLE GALLERY
   ============================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 768px) {
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.album-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.album-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  background: rgba(0,0,0,0.03);
}
.album-thumb-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
}
.album-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.album-card:hover .album-thumb-item img {
  transform: scale(1.1);
}

.album-info {
  padding: 12px;
}
.album-info h4 {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.album-date {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* ============================================
   FULL VIDEO GRID (Audiovisual)
   ============================================ */
.av-video-grid-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .av-video-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .av-video-grid-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.av-video-card-full {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.av-video-card-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.av-video-thumb-full {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--muted);
}
.av-video-thumb-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.av-video-card-full:hover .av-video-thumb-full img {
  transform: scale(1.05);
}

.av-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.av-video-card-full:hover .av-play-overlay {
  opacity: 1;
}
.av-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ticker-bg, #dc2626);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Hover preview iframe */
.av-hover-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}
.av-video-card-full:hover .av-hover-preview {
  opacity: 1;
}
.av-video-card-full:hover .av-play-overlay {
  opacity: 0;
}

.av-video-meta-full {
  padding: 12px;
}
.av-video-meta-full strong {
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.av-video-card-full:hover .av-video-meta-full strong {
  color: var(--primary);
}
.av-video-meta-full small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* ============================================
   FINAL FIXES — sticky solid bg, ticker speed, mobile compact, side ads
   ============================================ */

/* Sticky header: always solid background — fixes "scraping/transparent" bug */
body.equacom-app .sticky-header {
  background: var(--card) !important;
  isolation: isolate;
  z-index: 80 !important;
  box-shadow: 0 1px 0 var(--border);
}
body.equacom-app .sticky-header .topbar { background: var(--secondary) !important; }
body.equacom-app .sticky-header .ticker-bar { background: var(--ticker-bg) !important; z-index: 35; }

/* Slow & smooth ticker (overrides earlier 95s) */
body.equacom-app .ticker-track {
  animation-duration: 140s !important;
  animation-timing-function: linear !important;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* MOBILE: compact action buttons in single row */
@media (max-width: 640px) {
  body.equacom-app .header-action-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100%;
  }
  body.equacom-app .header-btn {
    min-height: 38px !important;
    padding: 6px 4px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
    flex-direction: column;
    gap: 2px;
  }
  body.equacom-app .header-btn .btn-text-full { display: none !important; }
  body.equacom-app .header-btn .btn-text-short { display: inline !important; font-size: 9px; line-height: 1.1; }
  body.equacom-app .header-action-buttons .header-btn:last-child {
    grid-column: auto !important;
    max-width: none !important;
  }

  /* Compact topbar contacts in single row scroll */
  body.equacom-app .topbar .container {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px !important;
    padding: 6px 8px !important;
  }
  body.equacom-app .topbar-left {
    gap: 4px 10px !important;
    font-size: 9.5px !important;
  }
  body.equacom-app .topbar-left a { font-size: 9.5px !important; }
  body.equacom-app .topbar-social a {
    width: 24px !important;
    height: 24px !important;
  }

  /* Smaller centered logo */
  body.equacom-app .logo-centered-img {
    height: 44px !important;
    max-width: 180px !important;
  }
  body.equacom-app .equacom-logo-badge {
    padding: 6px 10px !important;
    border-radius: 14px !important;
  }

  /* Hide centered logo when scrolled (mobile compact mode) */
  body.equacom-app .header-scrolled .logo-centered-row {
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
  }
  body.equacom-app .header-scrolled .topbar { display: none !important; }
}

/* DESKTOP: side ads (Revista left, Boletines right) flanking hero */
@media (min-width: 1280px) {
  body.equacom-app .hero-with-side-ads {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 16px;
    align-items: start;
  }
}
body.equacom-app .home-side-ad {
  display: none;
}
@media (min-width: 1280px) {
  body.equacom-app .home-side-ad { display: block; }
  body.equacom-app .home-side-ad .home-side-ad-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
  }
  body.equacom-app .home-side-ad .home-side-ad-card h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
  }
  body.equacom-app .home-side-ad .home-side-ad-empty {
    font-size: 11px;
    color: var(--muted);
    padding: 24px 8px;
    border: 1px dashed var(--border);
    border-radius: 12px;
  }
}
/* ============================================
   PREMIUM DOCS: Slider, cards, viewer, modal
   ============================================ */
body.equacom-app .equacom-docs-section{padding:32px 1rem 12px;}
body.equacom-app .equacom-docs-header{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px;flex-wrap:wrap;}
body.equacom-app .equacom-docs-header h2{margin:6px 0 4px;font-size:clamp(1.6rem,3vw,2.1rem);font-weight:800;}
body.equacom-app .equacom-docs-header p{margin:0;color:var(--muted);font-size:14px;}
body.equacom-app .equacom-docs-eyebrow{display:inline-block;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--primary);font-weight:700;}
body.equacom-app .equacom-docs-tabs{display:flex;gap:8px;background:var(--card);border:1px solid var(--border);border-radius:999px;padding:4px;}
body.equacom-app .equacom-docs-tab{border:0;background:transparent;padding:8px 18px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;transition:all .25s;}
body.equacom-app .equacom-docs-tab.is-active{background:var(--primary);color:#fff;}
body.equacom-app .equacom-docs-slider{position:relative;}
body.equacom-app .equacom-docs-slider.is-hidden{display:none;}
body.equacom-app .equacom-docs-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:8px 4px 24px;scrollbar-width:none;}
body.equacom-app .equacom-docs-track::-webkit-scrollbar{display:none;}
body.equacom-app .equacom-docs-track > .equacom-doc-card{flex:0 0 calc((100% - 36px)/3);scroll-snap-align:start;}
@media(max-width:1100px){body.equacom-app .equacom-docs-track > .equacom-doc-card{flex-basis:calc((100% - 18px)/2);}}
@media(max-width:680px){body.equacom-app .equacom-docs-track > .equacom-doc-card{flex-basis:82%;}}
body.equacom-app .equacom-docs-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:24px;line-height:1;font-weight:700;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.18);z-index:5;transition:transform .2s,background .2s;display:flex;align-items:center;justify-content:center;}
body.equacom-app .equacom-docs-arrow:hover{transform:translateY(-50%) scale(1.08);background:var(--primary-glow,#1976d2);}
body.equacom-app .equacom-docs-arrow:disabled{opacity:.35;cursor:not-allowed;transform:translateY(-50%);}
body.equacom-app .equacom-docs-prev{left:-12px;}
body.equacom-app .equacom-docs-next{right:-12px;}
body.equacom-app .equacom-docs-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:12px;}

/* Card */
body.equacom-app .equacom-doc-card{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s;}
body.equacom-app .equacom-doc-card:hover{transform:translateY(-6px);box-shadow:0 22px 50px -20px rgba(0,0,0,.25);}
body.equacom-app .equacom-doc-cover{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;background:#0f172a;}
body.equacom-app .equacom-doc-cover img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.8,.2,1);}
body.equacom-app .equacom-doc-card:hover .equacom-doc-cover img{transform:scale(1.06);}
body.equacom-app .equacom-doc-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.55));pointer-events:none;}
body.equacom-app .equacom-doc-kicker{position:absolute;top:10px;left:10px;background:rgba(255,255,255,.92);color:var(--primary);font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;padding:5px 10px;border-radius:999px;z-index:2;}
body.equacom-app .equacom-doc-body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px;flex:1;}
body.equacom-app .equacom-doc-date{font-size:11px;color:var(--muted);font-weight:600;}
body.equacom-app .equacom-doc-body h3{margin:0;font-size:15px;line-height:1.35;font-weight:700;}
body.equacom-app .equacom-doc-body h3 a{color:var(--foreground);text-decoration:none;}
body.equacom-app .equacom-doc-body h3 a:hover{color:var(--primary);}
body.equacom-app .equacom-doc-body p{margin:0;font-size:13px;color:var(--muted);line-height:1.5;flex:1;}
body.equacom-app .equacom-doc-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px;}

/* Doc buttons */
body.equacom-app .doc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;border:0;cursor:pointer;text-decoration:none;transition:transform .2s,background .2s,box-shadow .2s;line-height:1;}
body.equacom-app .doc-btn-primary{background:var(--primary);color:#fff;flex:1;}
body.equacom-app .doc-btn-primary:hover{background:var(--primary-glow,#1976d2);transform:translateY(-1px);}
body.equacom-app .doc-btn-ghost{background:transparent;border:1px solid var(--border);color:var(--foreground);}
body.equacom-app .doc-btn-ghost:hover{background:var(--accent,#f1f5f9);}
body.equacom-app .doc-btn-accent{background:#dc2626;color:#fff;}
body.equacom-app .doc-btn-accent:hover{background:#b91c1c;transform:translateY(-1px);box-shadow:0 8px 20px -8px rgba(220,38,38,.6);}
body.equacom-app .doc-btn-lg{padding:12px 20px;font-size:14px;}

/* Grid (revista/boletin pages) */
body.equacom-app .equacom-docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;}

/* Single doc page */
body.equacom-app .equacom-doc-single{background:var(--background);}
body.equacom-app .equacom-doc-hero{padding:24px 1rem 64px;}
body.equacom-app .equacom-doc-back{display:inline-block;margin-bottom:18px;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none;}
body.equacom-app .equacom-doc-back:hover{color:var(--primary);}
body.equacom-app .equacom-doc-layout{display:grid;grid-template-columns:380px 1fr;gap:32px;align-items:start;}
@media(max-width:980px){body.equacom-app .equacom-doc-layout{grid-template-columns:1fr;}}
body.equacom-app .equacom-doc-info{position:sticky;top:140px;}
@media(max-width:980px){body.equacom-app .equacom-doc-info{position:static;}}
body.equacom-app .equacom-doc-title{font-size:clamp(1.6rem,3vw,2.4rem);margin:14px 0 6px;line-height:1.2;font-weight:800;}
body.equacom-app .equacom-doc-subtitle{margin:0 0 16px;color:var(--muted);font-size:13px;}
body.equacom-app .equacom-doc-excerpt{font-size:15px;line-height:1.65;color:var(--foreground);margin:0 0 14px;font-weight:500;}
body.equacom-app .equacom-doc-description{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:20px;}
body.equacom-app .equacom-doc-info-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;}
body.equacom-app .equacom-doc-share-list{display:flex;flex-wrap:wrap;gap:8px;}
body.equacom-app .equacom-doc-share-list a{font-size:12px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:var(--foreground);background:var(--card);transition:all .2s;}
body.equacom-app .equacom-doc-share-list a:hover{background:var(--primary);color:#fff;border-color:var(--primary);}

/* PDF viewer */
body.equacom-app .equacom-doc-viewer-wrap{background:#1a1a1a;border-radius:14px;overflow:hidden;box-shadow:0 30px 60px -30px rgba(0,0,0,.5);}
body.equacom-app .equacom-pdf-toolbar{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#0f0f0f;color:#fff;border-bottom:1px solid #2a2a2a;}
body.equacom-app .pdf-nav{background:rgba(255,255,255,.08);color:#fff;border:0;width:34px;height:34px;border-radius:8px;font-size:18px;font-weight:700;cursor:pointer;transition:background .2s;display:flex;align-items:center;justify-content:center;}
body.equacom-app .pdf-nav:hover{background:rgba(255,255,255,.18);}
body.equacom-app .pdf-nav:disabled{opacity:.35;cursor:not-allowed;}
body.equacom-app .pdf-page-info{font-size:13px;color:#cbd5e1;font-weight:600;padding:0 10px;}
body.equacom-app .pdf-divider{flex:1;}
body.equacom-app .equacom-pdf-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:520px;padding:24px;background:#1a1a1a;background-image:linear-gradient(45deg,#222 25%,transparent 25%),linear-gradient(-45deg,#222 25%,transparent 25%);background-size:20px 20px;background-position:0 0,10px 10px;}
body.equacom-app .equacom-pdf-canvas{max-width:100%;height:auto;background:#fff;box-shadow:0 25px 50px -10px rgba(0,0,0,.7);border-radius:4px;animation:pdfPageFlip .45s cubic-bezier(.2,.8,.2,1);}
@keyframes pdfPageFlip{from{opacity:0;transform:perspective(1200px) rotateY(-8deg) scale(.96);}to{opacity:1;transform:perspective(1200px) rotateY(0) scale(1);}}
body.equacom-app .pdf-edge{position:absolute;top:0;bottom:0;width:60px;border:0;background:linear-gradient(90deg,rgba(0,0,0,.35),transparent);color:#fff;font-size:36px;cursor:pointer;opacity:0;transition:opacity .25s;display:flex;align-items:center;justify-content:flex-start;padding:0 12px;}
body.equacom-app .pdf-edge-right{right:0;background:linear-gradient(-90deg,rgba(0,0,0,.35),transparent);justify-content:flex-end;}
body.equacom-app .equacom-pdf-stage:hover .pdf-edge{opacity:1;}
body.equacom-app .equacom-pdf-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:14px;background:#1a1a1a;}
body.equacom-app .equacom-pdf-loading.is-hidden{display:none;}
body.equacom-app .equacom-doc-fallback{padding:40px;text-align:center;background:#fff;color:#0f172a;}
body.equacom-app .equacom-doc-fallback img{max-width:280px;border-radius:8px;margin-bottom:16px;box-shadow:0 12px 30px -10px rgba(0,0,0,.3);}

/* Lead modal — IMPORTANTE: respetar atributo HTML [hidden] para no mostrar overlay al cargar la web */
body.equacom-app .equacom-lead-modal[hidden]{display:none !important;}
body.equacom-app .equacom-lead-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .25s ease-out;}
body.equacom-app .equacom-lead-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.7);backdrop-filter:blur(4px);}
body.equacom-app .equacom-lead-dialog{position:relative;background:var(--card);border-radius:16px;padding:28px;max-width:440px;width:100%;box-shadow:0 30px 80px -20px rgba(0,0,0,.4);animation:scaleIn .3s cubic-bezier(.2,.8,.2,1);}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
@keyframes scaleIn{from{opacity:0;transform:scale(.92) translateY(10px);}to{opacity:1;transform:scale(1) translateY(0);}}
body.equacom-app .equacom-lead-close{position:absolute;top:12px;right:12px;background:transparent;border:0;font-size:28px;color:var(--muted);cursor:pointer;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .2s;}
body.equacom-app .equacom-lead-close:hover{background:var(--accent,#f1f5f9);}
body.equacom-app .equacom-lead-dialog h3{margin:0 0 6px;font-size:20px;font-weight:800;color:var(--foreground);}
body.equacom-app .equacom-lead-sub{margin:0 0 18px;font-size:13px;color:var(--muted);line-height:1.5;}
body.equacom-app .equacom-lead-form{display:flex;flex-direction:column;gap:10px;}
body.equacom-app .equacom-lead-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted);}
body.equacom-app .equacom-lead-form input{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--background);color:var(--foreground);transition:border .2s,box-shadow .2s;}
body.equacom-app .equacom-lead-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(33,150,243,.15);}
body.equacom-app .equacom-lead-form button[type=submit]{margin-top:6px;}
body.equacom-app .equacom-lead-form small{font-size:11px;color:var(--muted);text-align:center;margin-top:4px;}
body.equacom-app .equacom-lead-error{margin:0;padding:10px;background:#fee2e2;color:#991b1b;border-radius:8px;font-size:13px;}

/* Page wide layout for boletines (más ancho) */
body.equacom-app .home-side-ad-left{max-width:none;}
@media(min-width:1280px){body.equacom-app .hero-with-side-ads.has-left-ad{grid-template-columns:340px 1fr 280px;}}


/* ============================================
   FIX FINAL — sin Última Hora, banner 16:9 limpio,
   boletines sola portada, botones modernos, scroll estable
   ============================================ */

/* 1. Eliminar TICKER ÚLTIMA HORA por completo */
body.equacom-app .ticker-bar,
body .ticker-bar,
.ticker-bar { display: none !important; }

/* 2. Banner principal: imagen visible, texto compacto */
body.equacom-app .hero-slider,
body.equacom-app .hero-slider-main,
body.equacom-app .hero-slider.hero-slider-main {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.35);
}
body.equacom-app .hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
body.equacom-app .hero-overlay {
  background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.32) 32%, transparent 58%) !important;
}
body.equacom-app .hero-content {
  padding: 14px 18px 18px !important;
}
body.equacom-app .hero-content h2 {
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.equacom-app .hero-excerpt {
  font-size: 12px !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 1 !important;
}
@media (min-width: 768px) {
  body.equacom-app .hero-content { padding: 18px 24px 22px !important; }
  body.equacom-app .hero-content h2 { font-size: 18px !important; }
  body.equacom-app .hero-excerpt { -webkit-line-clamp: 2 !important; font-size: 13px !important; }
}
@media (min-width: 1024px) {
  body.equacom-app .hero-content h2 { font-size: 20px !important; max-width: 720px; }
}

/* 3. Boletín / Revista: portada SOLA (no doble página) */
body.equacom-app .home-side-ad-media,
body.equacom-app .equacom-doc-cover {
  aspect-ratio: 210 / 297 !important; /* A4 vertical, una sola hoja */
  background: #f4f6fa !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.25);
}
body.equacom-app .home-side-ad-media img,
body.equacom-app .equacom-doc-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}

/* 4. Botones modernos modo oscuro / búsqueda */
body.equacom-app .header-action-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.equacom-app .header-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
body.equacom-app .header-icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(33,150,243,.45);
}
body.equacom-app .header-icon-btn .icon-moon { display: inline-block; }
body.equacom-app .header-icon-btn .icon-sun { display: none; }
body.dark-mode.equacom-app .header-icon-btn .icon-moon { display: none; }
body.dark-mode.equacom-app .header-icon-btn .icon-sun { display: inline-block; }

body.equacom-app .search-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.equacom-app .header-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  outline: none;
  transition: width .3s ease, opacity .3s ease, padding .3s ease;
}
body.equacom-app .header-search-input.is-open {
  width: 220px;
  opacity: 1;
  padding: 9px 14px;
}

/* 5. Scroll estable — sin saltos al cargar imágenes / sticky */
html { scroll-behavior: smooth; overflow-anchor: auto; }
body.equacom-app { overflow-anchor: auto; }
body.equacom-app img { content-visibility: auto; }
body.equacom-app .sticky-header { will-change: auto; transform: none !important; }

/* ============================================
   FIX FINAL v1.3 — sin boletín lateral, banner perfecto,
   categorías siempre visibles, modo día/noche coherente,
   sin saltos visuales ni superposiciones
   ============================================ */

/* 6. Eliminar definitivamente cualquier boletín lateral en home */
body.equacom-app .home-side-ad,
body.equacom-app .home-side-ad-left,
body.equacom-app .home-side-ad-right,
body.equacom-app .hero-with-side-ads { display: none !important; }
body.equacom-app .hero-with-side-ads {
  display: block !important;
  grid-template-columns: none !important;
}
/* Restaurar visibilidad del propio hero por si el padre tenía display:none heredado */
body.equacom-app .hero-with-side-ads,
body.equacom-app .container > div:has(> .hero-slider-shell) { display: block !important; }
body.equacom-app .hero-slider-shell { display: block !important; }

/* 7. Banner principal — refuerzo 16:9 estable */
body.equacom-app .hero-with-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  body.equacom-app .hero-with-ticker { grid-template-columns: 1fr; }
  body.equacom-app .hero-side-ticker { display: none; }
}
body.equacom-app .hero-slider,
body.equacom-app .hero-slider-main {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* 8. Categorías SIEMPRE visibles en día y noche */
body.equacom-app .category-bar { display: flex !important; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 0; }
body.equacom-app .category-bar a,
body.equacom-app .category-badge {
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  border: 1px solid transparent;
}
/* Badges de color: texto blanco SIEMPRE (tanto día como noche) */
body.equacom-app .category-bar a[class*="badge-"]:not(.badge-default),
body.equacom-app .category-badge[class*="badge-"]:not(.badge-default),
body.equacom-app .category-bar a.badge-default,
body.equacom-app .category-badge.badge-default {
  color: #fff !important;
}
body.equacom-app .category-bar a.badge-default,
body.equacom-app .category-badge.badge-default { background: var(--primary) !important; }

/* Día: enlaces de categoría sin badge → texto oscuro legible */
body.equacom-app:not(.dark-mode) .category-bar a:not([class*="badge-"]) {
  color: #0f172a !important;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
body.equacom-app:not(.dark-mode) .category-bar a:not([class*="badge-"]):hover {
  background: #e2e8f0;
}
/* Noche: enlaces de categoría sin badge → texto claro legible */
body.equacom-app.dark-mode .category-bar a:not([class*="badge-"]) {
  color: #f1f5f9 !important;
  background: #1e2736;
  border-color: #2a3444;
}
body.equacom-app.dark-mode .category-bar a:not([class*="badge-"]):hover {
  background: #2a3444;
}

/* 9. Modo Día / Noche coherente */
body.equacom-app:not(.dark-mode) {
  background: #ffffff;
  color: #0f172a;
}
body.equacom-app:not(.dark-mode) .news-card,
body.equacom-app:not(.dark-mode) .equacom-doc-card,
body.equacom-app:not(.dark-mode) .card,
body.equacom-app:not(.dark-mode) .equacom-doc-body { color: #0f172a; }
body.equacom-app:not(.dark-mode) .equacom-doc-body h3 a { color: #0f172a; }

body.equacom-app.dark-mode {
  background: #141a24;
  color: #e5e7eb;
}
body.equacom-app.dark-mode .news-card,
body.equacom-app.dark-mode .equacom-doc-card,
body.equacom-app.dark-mode .card { background: #1e2736; color: #e5e7eb; border-color: #2a3444; }
body.equacom-app.dark-mode .equacom-doc-body h3 a,
body.equacom-app.dark-mode h1, body.equacom-app.dark-mode h2,
body.equacom-app.dark-mode h3, body.equacom-app.dark-mode h4 { color: #f1f5f9; }
body.equacom-app.dark-mode p,
body.equacom-app.dark-mode .equacom-doc-body p { color: #cbd5e1; }
body.equacom-app.dark-mode .header-icon-btn,
body.equacom-app.dark-mode .equacom-docs-tab { color: #e5e7eb; }
body.equacom-app.dark-mode .doc-btn-ghost { color: #e5e7eb; border-color: #334155; }

/* 10. Scroll estable — sin saltos de sticky/logo/categorías */
html { scroll-behavior: auto; overflow-anchor: auto; }
body.equacom-app, body.equacom-app * { overflow-anchor: auto; }
body.equacom-app .sticky-header,
body.equacom-app .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transform: none !important;       /* nunca mover por transform */
  will-change: auto !important;
  contain: layout style;            /* aísla layout shifts */
  backface-visibility: hidden;
}
/* Logo no se mueve solo: bloquear cualquier transform/animación heredada */
body.equacom-app .logo-centered-row,
body.equacom-app .logo-centered-img,
body.equacom-app .header-logo-badge {
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
/* Categorías ancladas: no se reordenan al hacer scroll */
body.equacom-app .category-bar {
  position: relative;
  transform: none !important;
  animation: none !important;
}
body.equacom-app .hero-slider-shell { isolation: isolate; }
body.equacom-app .equacom-docs-section { isolation: isolate; }
/* Reservar altura del hero para evitar reflow al cargar imagen */
body.equacom-app .hero-slider { contain: layout paint; }

/* 11. Slider docs: arrows visibles también con autoplay */
body.equacom-app .equacom-docs-arrow { opacity: .95; }
body.equacom-app .equacom-docs-slider:hover .equacom-docs-arrow { opacity: 1; }

/* 12. Visor PDF proporcional A4/A3 — sin deformar */
body.equacom-app .equacom-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
body.equacom-app .equacom-pdf-stage {
  min-height: clamp(420px, 70vh, 820px);
  align-items: flex-start;
  overflow: auto;
}


/* ============================================
   v1.5 — Cabecera premium: logo limpio, ticker restaurado,
   social oficial, action bar moderna, modo dia/noche coherente
   ============================================ */

/* RESTAURAR Última Hora (anula el display:none anterior) */
body.equacom-app .ticker-bar,
body .ticker-bar,
.ticker-bar { display: flex !important; }

body.equacom-app .ticker-bar {
  align-items: stretch;
  background: var(--ticker-bg, #0f172a) !important;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 35;
}
body.equacom-app .ticker-label {
  background: #dc2626;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  /* Alineado a la IZQUIERDA del rincón */
  order: 0;
  flex: 0 0 auto;
}
body.equacom-app .ticker-scroll {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}
body.equacom-app .ticker-track {
  display: inline-flex;
  gap: 36px;
  padding: 8px 16px;
  white-space: nowrap;
  animation: equacomTickerScroll 90s linear infinite;
  will-change: transform;
}
body.equacom-app .ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes equacomTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
body.equacom-app .ticker-news-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
body.equacom-app .ticker-news-thumb {
  width: 28px; height: 28px; border-radius: 6px; overflow: hidden; flex: 0 0 auto;
}
body.equacom-app .ticker-news-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
body.equacom-app .ticker-news-text strong { font-weight: 700; }
body.equacom-app .ticker-news-text small { color: #94a3b8; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* ===== LOGO: sin bordes, sin fondo blanco permanente ===== */
body.equacom-app .equacom-logo-badge,
body.equacom-app .header-logo-badge {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
  border-radius: 12px;
  transition: background .25s ease, box-shadow .25s ease;
}
/* Solo en modo NOCHE: fondo blanco detrás del logo para mantener contraste */
body.equacom-app.dark-mode .equacom-logo-badge,
body.equacom-app.dark-mode .header-logo-badge {
  background: #ffffff !important;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.45) !important;
  padding: 10px 14px !important;
}
body.equacom-app .logo-centered-img { height: 64px; width: auto; object-fit: contain; }
@media (max-width: 640px) {
  body.equacom-app .logo-centered-img { height: 48px; }
}

/* ===== ICONOS REDES SOCIALES — colores oficiales en hover ===== */
body.equacom-app .topbar-social { display: inline-flex; gap: 6px; align-items: center; }
body.equacom-app .social-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(255,255,255,.04);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
body.equacom-app .social-ico:hover { transform: translateY(-1px); color:#fff; }
body.equacom-app .social-fb:hover { background:#1877F2; }
body.equacom-app .social-ig:hover { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
body.equacom-app .social-li:hover { background:#0A66C2; }
body.equacom-app .social-x:hover  { background:#000; }
body.equacom-app .social-tt:hover { background:#000; }
body.equacom-app .social-yt:hover { background:#FF0000; }
body.equacom-app .social-wa:hover { background:#25D366; }

/* ===== FECHA / HORA — alineación moderna y responsive ===== */
body.equacom-app .logo-row .container {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 12px;
  align-items: center;
}
body.equacom-app .date-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #64748b);
  background: rgba(33,150,243,.08);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.equacom-app .date-info-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--primary, #2196F3);
  letter-spacing: .02em;
}
body.equacom-app .date-info-separator { opacity: .5; }
@media (max-width: 768px) {
  body.equacom-app .logo-row .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  body.equacom-app .date-info { font-size: 11px; }
}

/* ===== BARRA DE ACCESOS (Revista/Boletín/Audiovisual/Galería) ===== */
body.equacom-app .header-action-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}
body.equacom-app .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,.12);
}
body.equacom-app .header-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0,0,0,.25); }
body.equacom-app .header-btn-primary    { background:#2196F3; color:#fff; }
body.equacom-app .header-btn-destructive{ background:#dc2626; color:#fff; }
body.equacom-app .header-btn-accent     { background:#1a2332; color:#fff; }
body.equacom-app .header-btn-secondary  { background:#f1f5f9; color:#0f172a; border-color:#e2e8f0; }
body.equacom-app.dark-mode .header-btn-secondary { background:#1e2736; color:#f1f5f9; border-color:#2a3444; }
body.equacom-app .header-btn .btn-text-short { display: none; }
@media (max-width: 900px) {
  body.equacom-app .header-action-buttons { grid-template-columns: repeat(4, minmax(0,1fr)); }
  body.equacom-app .header-btn { padding: 8px 6px; font-size: 11px; }
  body.equacom-app .header-btn .btn-text-full { display: none; }
  body.equacom-app .header-btn .btn-text-short { display: inline; }
}
@media (max-width: 480px) {
  body.equacom-app .header-btn { font-size: 10.5px; padding: 7px 4px; }
}

/* ===== Modo día: forzar legibilidad fecha/menus ===== */
body.equacom-app:not(.dark-mode) .topbar { background: #0f172a !important; }
body.equacom-app:not(.dark-mode) .topbar a { color: #e2e8f0; }
body.equacom-app:not(.dark-mode) .main-nav .nav-menu a { color: #f1f5f9 !important; }
body.equacom-app.dark-mode .main-nav .nav-menu a { color: #f1f5f9 !important; }


/* ============================================================
   HEADER V2 — Logo left · Date/Time center · Actions right
   Restored 'Última Hora' ticker · Day/Night safe categories
   v1.6 — 2026-04-20
   ============================================================ */

body.equacom-app .equacom-header-v2 { background: var(--card) !important; }

/* Topbar slimmer */
body.equacom-app .equacom-header-v2 .topbar { background: var(--secondary) !important; padding: 6px 0 !important; }
body.equacom-app .equacom-header-v2 .topbar .container {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 12px; padding: 0 1rem;
}
body.equacom-app .equacom-header-v2 .topbar a { color: var(--secondary-fg) !important; font-size: 11.5px; opacity: .9; }
body.equacom-app .equacom-header-v2 .topbar a:hover { opacity: 1; }
body.equacom-app .equacom-header-v2 .topbar-left { display: flex; flex-wrap: wrap; gap: 14px; }
body.equacom-app .equacom-header-v2 .topbar-right { display: flex; gap: 6px; }
body.equacom-app .equacom-header-v2 .social-ico {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff !important;
  transition: background .2s, transform .2s;
}
body.equacom-app .equacom-header-v2 .social-ico:hover { transform: translateY(-1px); }
body.equacom-app .equacom-header-v2 .social-fb:hover { background: #1877f2; }
body.equacom-app .equacom-header-v2 .social-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
body.equacom-app .equacom-header-v2 .social-li:hover { background: #0a66c2; }
body.equacom-app .equacom-header-v2 .social-x:hover  { background: #000; }
body.equacom-app .equacom-header-v2 .social-tt:hover { background: #010101; }
body.equacom-app .equacom-header-v2 .social-yt:hover { background: #ff0000; }
body.equacom-app .equacom-header-v2 .social-wa:hover { background: #25d366; }

/* Main header row grid */
body.equacom-app .equacom-header-v2 .header-main {
  background: var(--card) !important;
  border-bottom: 1px solid var(--border);
}
body.equacom-app .equacom-header-v2 .header-main-grid {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(0, 2fr);
  align-items: center;
  gap: 16px;
  padding: 12px 1rem !important;
}

/* LEFT zone: logo */
body.equacom-app .equacom-header-v2 .header-zone-left { justify-self: start; }
body.equacom-app .equacom-header-v2 .header-logo-v2 {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.equacom-app .equacom-header-v2 .header-logo-v2:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.18); }
body.equacom-app .equacom-header-v2 .header-logo-v2 img {
  height: 48px; width: auto; display: block; object-fit: contain;
}
/* Dark mode keeps white plate (logo readable) */
body.equacom-app.dark-mode .equacom-header-v2 .header-logo-v2 { background: #ffffff; border-color: rgba(255,255,255,.6); }

/* CENTER zone: date+time pill */
body.equacom-app .equacom-header-v2 .header-zone-center { justify-self: center; min-width: 0; }
body.equacom-app .equacom-header-v2 .datetime-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33,150,243,.08), rgba(26,35,50,.06));
  border: 1px solid var(--border);
  color: var(--foreground, #1a2332);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
body.equacom-app .equacom-header-v2 .datetime-pill .dt-icon { color: var(--primary, #2196F3); flex-shrink: 0; }
body.equacom-app .equacom-header-v2 .datetime-pill .dt-sep { opacity: .4; padding: 0 2px; }
body.equacom-app .equacom-header-v2 .datetime-pill .dt-time { color: var(--primary, #2196F3); letter-spacing: .5px; }
body.equacom-app.dark-mode .equacom-header-v2 .datetime-pill { color: #f1f5f9; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

/* RIGHT zone: quick nav + tools */
body.equacom-app .equacom-header-v2 .header-zone-right {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
body.equacom-app .equacom-header-v2 .header-quick-nav {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap;
}
body.equacom-app .equacom-header-v2 .hqn-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
  color: #fff !important;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
body.equacom-app .equacom-header-v2 .hqn-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 18px -8px rgba(0,0,0,.3); }
body.equacom-app .equacom-header-v2 .hqn-red    { background: #dc2626; }
body.equacom-app .equacom-header-v2 .hqn-blue   { background: #2563eb; }
body.equacom-app .equacom-header-v2 .hqn-amber  { background: #f59e0b; color: #1a2332 !important; }
body.equacom-app .equacom-header-v2 .hqn-purple { background: #7c3aed; }

body.equacom-app .equacom-header-v2 .header-tools {
  display: inline-flex; align-items: center; gap: 6px;
  padding-left: 10px; margin-left: 4px;
  border-left: 1px solid var(--border);
}
body.equacom-app .equacom-header-v2 .header-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground, #1a2332);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s;
}
body.equacom-app .equacom-header-v2 .header-icon-btn:hover { background: var(--primary, #2196F3); color: #fff; border-color: transparent; }
body.equacom-app.dark-mode .equacom-header-v2 .header-icon-btn { background: rgba(255,255,255,.06); color: #e5e7eb; border-color: rgba(255,255,255,.12); }

body.equacom-app .equacom-header-v2 .search-toggle-wrap { display: inline-flex; align-items: center; gap: 6px; }
body.equacom-app .equacom-header-v2 .header-search-input {
  width: 0; padding: 0; border: 0; opacity: 0; transition: width .25s ease, opacity .2s ease, padding .25s ease;
  height: 36px; border-radius: 10px; font-size: 13px;
}
body.equacom-app .equacom-header-v2 .search-toggle-wrap.open .header-search-input {
  width: 200px; padding: 0 12px; opacity: 1; border: 1px solid var(--border); background: var(--card); color: var(--foreground);
}

/* Dark/light moon-sun toggle visuals (uses existing .icon-sun/.icon-moon hookup from main.js) */
body.equacom-app .equacom-header-v2 .icon-moon { display: none; }
body.equacom-app.dark-mode .equacom-header-v2 .icon-sun { display: none; }
body.equacom-app.dark-mode .equacom-header-v2 .icon-moon { display: inline-block; }

/* Categories nav (always visible day/night) */
body.equacom-app .equacom-header-v2 .header-categories-nav {
  background: var(--card) !important;
  border-bottom: 1px solid var(--border);
}
body.equacom-app .equacom-header-v2 .header-categories-nav .container {
  display: flex !important; align-items: center !important; gap: 8px;
  padding: 6px 1rem !important;
  overflow-x: auto;
}
body.equacom-app .equacom-header-v2 .header-categories-nav .nav-menu {
  display: flex !important; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; list-style: none;
}
body.equacom-app .equacom-header-v2 .header-categories-nav .nav-menu li a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  color: #1a2332 !important; background: transparent !important;
  text-decoration: none; transition: background .2s, color .2s;
}
body.equacom-app .equacom-header-v2 .header-categories-nav .nav-menu li a:hover,
body.equacom-app .equacom-header-v2 .header-categories-nav .nav-menu li.current-menu-item a {
  background: var(--primary, #2196F3) !important; color: #fff !important;
}
body.equacom-app.dark-mode .equacom-header-v2 .header-categories-nav { background: #0f1622 !important; border-bottom-color: rgba(255,255,255,.08); }
body.equacom-app.dark-mode .equacom-header-v2 .header-categories-nav .nav-menu li a { color: #e5e7eb !important; }
body.equacom-app.dark-mode .equacom-header-v2 .header-categories-nav .nav-menu li a:hover,
body.equacom-app.dark-mode .equacom-header-v2 .header-categories-nav .nav-menu li.current-menu-item a {
  background: var(--primary, #2196F3) !important; color: #fff !important;
}
body.equacom-app .equacom-header-v2 .header-categories-nav .menu-toggle {
  display: none; background: transparent; border: 0; color: var(--foreground, #1a2332); font-size: 22px; cursor: pointer; padding: 6px 10px;
}

/* Última Hora ticker */
body.equacom-app .equacom-header-v2 .header-ticker {
  background: #1a2332 !important;
  color: #fff;
  z-index: 30;
  position: relative;
}
body.equacom-app .equacom-header-v2 .ticker-container {
  display: flex !important; align-items: center !important; gap: 12px;
  padding: 8px 1rem !important; min-height: 36px;
}
body.equacom-app .equacom-header-v2 .ticker-label {
  background: #dc2626; color: #fff; padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
  letter-spacing: .3px;
}
body.equacom-app .equacom-header-v2 .ticker-viewport {
  flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
body.equacom-app .equacom-header-v2 .ticker-track {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  animation: equacomHeaderTicker 60s linear infinite;
  will-change: transform;
}
body.equacom-app .equacom-header-v2 .ticker-track:hover { animation-play-state: paused; }
body.equacom-app .equacom-header-v2 .ticker-item {
  color: #fff !important; font-size: 13px; font-weight: 500; text-decoration: none;
  transition: color .2s;
}
body.equacom-app .equacom-header-v2 .ticker-item:hover { color: #60a5fa !important; }
body.equacom-app .equacom-header-v2 .ticker-dot { color: rgba(255,255,255,.35); font-weight: 700; padding: 0 4px; }

@keyframes equacomHeaderTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stability: prevent jitter on header zones */
body.equacom-app .equacom-header-v2,
body.equacom-app .equacom-header-v2 .header-main,
body.equacom-app .equacom-header-v2 .header-zone,
body.equacom-app .equacom-header-v2 .header-logo-v2,
body.equacom-app .equacom-header-v2 .datetime-pill,
body.equacom-app .equacom-header-v2 .header-categories-nav,
body.equacom-app .equacom-header-v2 .header-ticker {
  transform: none !important;
  contain: layout style;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  body.equacom-app .equacom-header-v2 .hqn-btn .hqn-text { display: none; }
  body.equacom-app .equacom-header-v2 .hqn-btn { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  body.equacom-app .equacom-header-v2 .header-main-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo tools"
      "datetime datetime"
      "quick quick";
    gap: 10px;
  }
  body.equacom-app .equacom-header-v2 .header-zone-left { grid-area: logo; justify-self: start; }
  body.equacom-app .equacom-header-v2 .header-zone-center { grid-area: datetime; justify-self: center; }
  body.equacom-app .equacom-header-v2 .header-zone-right {
    display: contents;
  }
  body.equacom-app .equacom-header-v2 .header-quick-nav {
    grid-area: quick; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  }
  body.equacom-app .equacom-header-v2 .header-tools {
    grid-area: tools; justify-self: end; border-left: 0; padding-left: 0; margin-left: 0;
  }
}
@media (max-width: 640px) {
  body.equacom-app .equacom-header-v2 .topbar-left a:nth-child(n+3) { display: none; }
  body.equacom-app .equacom-header-v2 .header-logo-v2 img { height: 40px; }
  body.equacom-app .equacom-header-v2 .datetime-pill { font-size: 11.5px; padding: 6px 12px; }
  body.equacom-app .equacom-header-v2 .hqn-btn { padding: 7px 9px; font-size: 13px; }
  body.equacom-app .equacom-header-v2 .ticker-label { font-size: 11px; padding: 5px 10px; }
}

/* ============================================================
   PDF VIEWER — toolbar pinned to LEFT, no centered dark band
   ============================================================ */
body.equacom-app .equacom-pdf-toolbar {
  justify-content: flex-start !important;
  padding: 10px 14px !important;
  background: linear-gradient(90deg, #0f0f0f 0%, #1a1a1a 60%, transparent 100%) !important;
  border-bottom: 1px solid #2a2a2a !important;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
body.equacom-app .equacom-pdf-toolbar .pdf-page-info { margin: 0 8px; font-variant-numeric: tabular-nums; }
body.equacom-app .equacom-pdf-toolbar .pdf-divider {
  display: inline-block; width: 1px; height: 22px; background: rgba(255,255,255,.15); margin: 0 6px;
}

/* ============================================================
   FOOTER — smaller, more elegant logo
   ============================================================ */
body.equacom-app .footer-logo-badge {
  display: inline-flex !important; align-items: center; justify-content: center;
  background: #fff;
  padding: 6px 12px !important;
  border-radius: 10px;
  max-width: 180px;
}
body.equacom-app .footer-logo-badge img,
body.equacom-app .footer-logo-img,
body.equacom-app .footer-logo-badge .custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}
