/**
 * BLUE TENDENCIAS — SISTEMA EDITORIAL ARQUITECTÓNICO
 * Concepto: Blanco Puro · Plus Jakarta Sans · Tipografía Gigante
 * Estilo Editorial Suizo / Minimalista · Monocromático de Alto Contraste
 * Cero burbujas / Cero colores saturados · Tarjetas Unificadas de 2 Columnas
 * Blue Design Worldwide
 */

/* ===================================================
   VARIABLES DE SISTEMA (MONOCROMÁTICO & SOBRIO)
   =================================================== */
:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Paleta Monocromática Limpia */
  --bg-page:        #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-box:         #F8F8F9;
  --bg-subtle:      #F4F4F6;
  --bg-hover:       #EFEFF1;
  
  /* Bordes Arquitectónicos Precisos */
  --border-hairline:#E5E5E8;
  --border-subtle:  #ECECED;
  --border-dark:    #111111;
  
  /* Escala de Negros y Grises */
  --text-main:      #0C0C0E;
  --text-body:      #4A4A4F;
  --text-muted:     #76767D;
  --text-faint:     #A2A2AA;
  --text-white:     #FFFFFF;

  /* Geometría Editorial (Bordes precisos, sin burbujas) */
  --radius-xs:      3px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;

  /* Espaciado Generoso */
  --section-pad:    clamp(64px, 8vw, 120px);
  --container-max:  1260px;

  /* Sombras Sutiles de Alta Gama */
  --shadow-subtle:  0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card:    0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover:   0 16px 40px -8px rgba(0, 0, 0, 0.07), 0 0 0 1px #111111;

  /* Animaciones */
  --ease-spring:    cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast:     0.18s ease;
  --trans-smooth:   0.3s var(--ease-spring);
}

/* ===================================================
   RESET Y BASE
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button, input, select {
  font-family: inherit;
}

::selection {
  background: var(--text-main);
  color: var(--text-white);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* ===================================================
   ANIMACIONES
   =================================================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastSlide {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   TOAST DE COPIADO
   =================================================== */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: var(--text-main);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
}

.copy-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast-check {
  font-weight: 800;
  font-size: 13px;
}

/* ===================================================
   HEADER EDITORIAL
   =================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: #0A0A0B;
  color: #FFFFFF;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-icon {
  transform: scale(1.03);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand-title,
.brand-blue {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #556987;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 2px;
}

/* Estado discreto sin burbuja de juguete */
.header-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border-hairline);
  padding-left: 20px;
}

.chip-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--text-main);
  border-radius: 50%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-date-prefix {
  font-weight: 500;
  opacity: 0.85;
}

.header-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 10px;
  transition: var(--trans-fast);
}

.header-link:hover {
  color: var(--text-muted);
}

.btn-refresh-modern {
  background: var(--text-main);
  color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-refresh-modern:hover {
  background: #252528;
}

.btn-refresh-modern:active {
  transform: scale(0.97);
}

.btn-refresh-modern:disabled,
.btn-refresh-modern.is-cooling,
.btn-mobile-refresh:disabled,
.btn-mobile-refresh.is-cooling {
  background: #E4E4E7;
  color: #71717A;
  border-color: #D4D4D8;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none;
}

.copy-toast.toast-info {
  background: #18181B;
  color: #FAFAFA;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.copy-toast.toast-warning {
  background: #1C1917;
  color: #FDE047;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

/* ===================================================
   MENÚ HAMBURGUESA & NAVEGACIÓN MÓVIL EDITORIAL
   =================================================== */
.btn-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 250;
}

.btn-hamburger:hover {
  background: var(--bg-subtle);
  border-color: var(--border-dark);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.btn-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.btn-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
}

@media (max-width: 768px) {
  .btn-hamburger {
    display: inline-flex;
  }

  .header-actions {
    display: none !important;
  }

  .site-header .header-nav {
    display: none !important;
  }

  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 199;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .mobile-nav-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-inner {
    padding: 24px clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
  }

  .mobile-nav-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }

  .mobile-nav-chip {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-item {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-box);
    border: 1px solid transparent;
    transition: all 0.18s ease;
    text-decoration: none;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active {
    background: var(--bg-subtle);
    border-color: var(--border-hairline);
  }

  .mobile-nav-item.is-active {
    border-color: var(--text-main);
    background: #FFFFFF;
  }

  .mobile-nav-item.nav-highlight {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
  }

  .mobile-nav-item.nav-highlight:hover {
    background: #252528;
  }

  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-hairline);
  }

  .btn-mobile-refresh {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
  }

  .btn-mobile-refresh:active {
    background: var(--bg-subtle);
  }

  .mobile-nav-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
  }
}

/* ===================================================
   HERO GIGANTE — EDITORIAL & AIREADO (SIN BURBUJAS)
   =================================================== */
.app-hero {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(64px, 7vw, 100px);
  border-bottom: 1px solid var(--border-hairline);
  background: #FFFFFF;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Eyebrow limpio, tipográfico, sin aspecto de burbuja/cápsula de IA */
.hero-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 32px);
  animation: heroFadeUp 0.6s var(--ease-spring);
}

/* GIGANTISMO EN EL TITULAR PRINCIPAL */
.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-main);
  max-width: 1060px;
  margin-bottom: clamp(20px, 3vw, 28px);
  overflow-wrap: break-word;
  animation: heroFadeUp 0.7s var(--ease-spring) 0.06s backwards;
}

.hero-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
  animation: heroFadeUp 0.7s var(--ease-spring) 0.12s backwards;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Fila de Estadísticas Gigantes (Limpio, Sin líneas grises) */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1040px;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: heroFadeUp 0.8s var(--ease-spring) 0.18s backwards;
  gap: clamp(16px, 3vw, 40px);
}

.stat-card {
  padding: clamp(12px, 1.8vw, 20px) 12px;
  text-align: center;
  border: none;
  background: transparent;
}

.stat-card:last-child {
  border: none;
}

.stat-number {
  display: block;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 6px;
}

.stat-desc {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ===================================================
   ENCABEZADOS DE SECCIÓN
   =================================================== */
.section-top-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: 20px;
}

.section-pre-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-main-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-main);
}

.section-lead-inline {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.55;
}

/* ===================================================
   TARJETAS UNIFICADAS DE TENDENCIAS
   (LAYOUT 2 COLUMNAS QUE LE GUSTA AL USUARIO)
   =================================================== */
.trends-container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 40px);
}

.trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring), border-color 0.2s ease;
  position: relative;
}

.trend-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-hover);
}

/* Tarjeta Destacada #1 */
.trend-card.featured-top1 {
  border: 1.5px solid var(--text-main);
}

/* Barra superior de la tarjeta (Sin colores chillones, sobria) */
.trend-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  flex-wrap: wrap;
  gap: 12px;
}

.trend-badges-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges arquitectónicos rectangulares con bordes sutiles (cero burbujas) */
.trend-rank-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
}

.trend-cat-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-box);
  color: var(--text-main);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.trend-growth-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: -0.01em;
}

/* CUERPO DE 2 COLUMNAS (EXACTO AL DISEÑO QUE EL USUARIO RESALTÓ) */
.trend-card-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* Columna Izquierda: Título Gigante + Metadatos */
.trend-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.trend-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-main);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.trend-title a {
  color: inherit;
  transition: color 0.15s ease;
}

.trend-title a:hover {
  color: var(--text-muted);
}

.trend-meta-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.trend-meta-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 80%;
}

.trend-format {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
}

.trend-format strong {
  font-weight: 700;
  color: var(--text-main);
}

/* Banderas de países (FlagCDN.com) */
.trend-countries-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.trend-countries-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 2px;
}

.country-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.country-flag-chip:hover {
  border-color: var(--text-main);
}

.country-flag-icon {
  width: 18px;
  height: 13.5px;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.country-flag-more {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 3px 6px;
  border-radius: var(--radius-xs);
}

.country-globe-icon {
  font-size: 13px;
  line-height: 1;
}

.trend-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans-fast);
  white-space: nowrap;
}

.trend-link:hover {
  color: var(--text-muted);
  gap: 10px;
}

/* Columna Derecha: Contenedor del Gancho */
.trend-col-right {
  display: flex;
  flex-direction: column;
}

.trend-hook-box {
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trend-hook-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Gancho en Letras Grandes y Negritas */
.trend-hook-quote {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

/* BOTÓN COPIAR GANCHO (NEGRO SÓLIDO, ELEGANTE) */
.btn-copy-hook {
  align-self: flex-start;
  background: var(--text-main);
  color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-hook:hover {
  background: #252528;
  transform: translateY(-1px);
}

.btn-copy-hook:active {
  transform: scale(0.97);
}

.btn-copy-hook.copied {
  background: #111111 !important;
  color: #FFFFFF !important;
}

/* ===================================================
   BARRA DE FILTROS (SIN BURBUJAS)
   =================================================== */
.sticky-filter-bar {
  position: sticky;
  top: 72px;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 0;
  overflow: visible !important;
}

.sticky-filter-bar .filter-container {
  max-width: 1400px;
  padding-left: 20px;
  padding-right: 20px;
}

.filter-container {
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible !important;
}

.filter-unified-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: visible !important;
}

.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pills-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
}

/* Botones de filtro rectangulares sobrios (no cápsulas redondas) */
.cat-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
  line-height: 1.4;
}

.cat-pill:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.cat-pill.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

/* Separador vertical entre píldoras y buscador */
.filter-bar-separator {
  width: 1px;
  height: 22px;
  background: var(--border-hairline);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Cluster de acciones: Buscador + Filtro País */
.filter-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

/* Buscador inline contiguo a GEO/SEO */
.inline-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 0 10px;
  height: 35px;
  width: 175px;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

.inline-search-box:focus-within {
  width: 220px;
  border-color: var(--text-main);
  box-shadow: 0 0 0 1px var(--text-main);
}

.search-inline-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.inline-search-box:focus-within .search-inline-icon {
  color: var(--text-main);
}

.inline-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  padding: 0;
}

.inline-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-clear-search {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s ease;
  border-radius: 3px;
  flex-shrink: 0;
}

.btn-clear-search:hover {
  color: var(--text-main);
  background: var(--bg-box);
}

/* Selector de País con Banderas FlagCDN */
.country-filter-dropdown {
  position: relative;
  flex-shrink: 0;
  z-index: 200;
}

.country-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 0 12px;
  height: 35px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.country-dropdown-btn:hover {
  border-color: var(--text-main);
  background: #FAFAFA;
}

.country-dropdown-btn[aria-expanded="true"] {
  border-color: var(--text-main);
  background: #F8FAFC;
  box-shadow: 0 0 0 1px var(--text-main);
}

.country-btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.country-btn-flag .globe-svg {
  stroke: var(--text-muted);
}

.country-btn-flag img.country-flag-icon {
  width: 18px;
  height: 13.5px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  display: block;
}

.country-btn-label {
  letter-spacing: -0.01em;
}

.dropdown-chevron {
  stroke: var(--text-muted);
  transition: transform 0.2s ease;
}

.country-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

/* Menú flotante del país */
.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 250px;
  max-width: calc(100vw - 32px);
  max-height: 380px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
  padding: 6px;
  z-index: 9999;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.country-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.country-dropdown-menu::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.country-dropdown-menu.open {
  display: block !important;
  animation: countryMenuFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countryMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-menu-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 8px 4px 8px;
}

.country-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 8px 8px 4px 8px;
  border-top: 1px solid var(--border-hairline);
  margin-top: 4px;
}

.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.14s ease;
}

.country-option:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.country-option.active {
  background: var(--text-main);
  color: #FFFFFF;
}

.country-opt-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}

.country-opt-flag img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;
}

.country-opt-flag .globe-svg {
  stroke: currentColor;
}

.country-opt-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-opt-check {
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  color: inherit;
  flex-shrink: 0;
}

.country-option.active .country-opt-check {
  opacity: 1;
}

@media (max-width: 900px) {
  .filter-unified-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-bar-separator {
    display: none;
  }
  .filter-actions-cluster {
    width: 100%;
    justify-content: flex-start;
  }
  .inline-search-box {
    flex: 1;
    min-width: 140px;
  }
}

.no-results-state {
  text-align: center;
  padding: clamp(48px, 6vw, 72px) 24px;
  background: var(--bg-box);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-md);
  margin: 32px 0;
  animation: heroFadeUp 0.35s ease;
}

.no-results-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-results-title {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.no-results-desc {
  font-size: 14px;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 20px auto;
  line-height: 1.55;
}

.no-results-desc strong {
  color: var(--text-main);
}

.btn-reset-filters {
  background: var(--text-main);
  color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background: #252528;
  transform: translateY(-1px);
}

/* ===================================================
   SECCIÓN DEL FEED Y PESTAÑAS TEMPORALES
   =================================================== */
.feed-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background: #FFFFFF;
}

.temporal-tabs-group {
  display: flex;
  gap: 4px;
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 3px;
  border-radius: var(--radius-xs);
}

.tab-temporal-btn {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab-temporal-btn:hover {
  color: var(--text-main);
}

.tab-temporal-btn.active {
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   PULSO GOOGLE TRENDS HOY (MONOCROMÁTICO & SOBRIO)
   =================================================== */
.pulse-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background: var(--bg-box);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.pulse-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.pulse-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s var(--ease-spring), border-color 0.18s ease;
}

.pulse-visual-card:hover {
  transform: translateY(-3px);
  border-color: var(--text-main);
}

.pulse-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pulse-country-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pulse-country-tag .country-flag-icon {
  width: 16px;
  height: 12px;
}

.pulse-live-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.pulse-topic-title {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pulse-angle-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.pulse-visual-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

.pulse-format-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-extra-item.hidden {
  display: none !important;
}

.pulse-more-container {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
}

.btn-modern-toggle {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modern-toggle:hover {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

/* ===================================================
   MACROTENDENCIAS (LIMPIO & GIGANTE)
   =================================================== */
.macro-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--border-hairline);
  background: #FFFFFF;
}

.macro-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
}

.macro-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}

.macro-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-main);
}

.macro-card-num {
  font-size: clamp(2.4rem, 3.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 16px;
}

.macro-feature-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 12px;
}

.macro-feature-desc {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.macro-feature-impact {
  background: var(--bg-box);
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

.impact-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.impact-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

/* ===================================================
   CTA EDITORIAL
   =================================================== */
.cta-premium-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background: #FFFFFF;
}

.cta-banner-card {
  background: var(--text-main);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  text-align: center;
}

.cta-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.cta-banner-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-desc {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-cta-glow {
  display: inline-block;
  background: #FFFFFF;
  color: var(--text-main);
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: all 0.25s ease;
}

.btn-cta-glow:hover {
  background: #EFEFEF;
  transform: translateY(-2px);
}

/* ===================================================
   FOOTER
   =================================================== */
.app-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.footer-motto {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.55;
}

.footer-version-build {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.footer-col-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-col-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}

.footer-col-nav a:hover {
  color: var(--text-main);
}

.footer-bottom-line {
  width: 100%;
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===================================================
   OVERLAY DE CARGA
   =================================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.loading-brand-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.loading-stage-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}

.loading-progress-track {
  width: 100%;
  height: 3px;
  background: var(--border-hairline);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
}

.loading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--text-main);
  animation: sweep 1.6s infinite ease-in-out;
}

@keyframes sweep {
  0%   { left: -30%; width: 30%; }
  50%  { width: 60%; }
  100% { left: 100%; width: 30%; }
}

/* ===================================================
   PÁGINAS DE DETALLE (INDIVIDUALES & METODOLOGÍA)
   =================================================== */
body.page-detail {
  background-color: #FFFFFF;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header .header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.brand-divider {
  color: var(--border-hairline);
}

.brand-section {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-btn-back {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  padding: 7px 16px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.nav-btn-back:hover {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.trend-detail {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(72px, 9vw, 120px);
  max-width: 1140px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.bc-sep {
  color: var(--border-hairline);
}

.bc-current {
  color: var(--text-main);
  font-weight: 700;
}

.detail-hero {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border-hairline);
}

.detail-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.detail-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--text-main);
  color: #FFFFFF;
}

.detail-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.detail-updated {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-mega-title {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text-main);
  margin-bottom: 28px;
}

.detail-lead-quote {
  max-width: 860px;
  margin-bottom: 28px;
}

.detail-lead-quote blockquote {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-body);
  background: #F4F4F6;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  border-left: none;
  margin: 0;
}

.detail-geos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.geos-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.geos-list {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
}

.body-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.highlight-section {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3.5vw, 40px);
}

.trend-brief-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}

.brief-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brief-text {
  font-size: 15.5px;
  color: var(--text-main);
  line-height: 1.6;
}

.conv-board {
  display: grid;
  gap: 12px;
}

.conv-item {
  background: var(--bg-box);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conv-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.conv-ind {
  font-size: 13.5px;
  font-weight: 800;
}

.detail-side-col {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
}

.widget-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.widget-sources {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-sources li {
  font-size: 13.5px;
  color: var(--text-body);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.widget-sources li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-sources li strong {
  color: var(--text-main);
  font-weight: 700;
}

.callout-widget {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.callout-widget .widget-title {
  color: rgba(255, 255, 255, 0.5);
}

.widget-callout-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-side-cta {
  display: block;
  background: #FFFFFF;
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-side-cta:hover {
  background: #EFEFEF;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1024px) {
  .trend-card-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pulse-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-date,
  .header-status-chip {
    display: none;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .stat-card {
    border: none;
  }
  .macro-modern-grid {
    grid-template-columns: 1fr;
  }
  .pulse-visual-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  .footer-col-nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .trend-badges-left {
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-hero {
    margin-bottom: 32px;
    padding-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stat-card {
    border: none !important;
  }
  .btn-copy-hook {
    width: 100%;
    justify-content: center;
  }
  .country-dropdown-menu {
    width: calc(100vw - 32px);
    right: -8px;
  }
  .detail-mega-title {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 1.02;
  }
}

/* ===================================================
   BOTÓN FLOTANTE VOLVER ARRIBA (SCROLL TO TOP)
   =================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #0C0C0E;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 25px -4px rgba(12, 12, 14, 0.28), 0 2px 6px rgba(12, 12, 14, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: #252528;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(12, 12, 14, 0.38);
}

.btn-scroll-top:active {
  transform: scale(0.95);
}

.btn-scroll-top svg {
  stroke: #FFFFFF;
  transition: transform 0.2s ease;
}

.btn-scroll-top:hover svg {
  transform: translateY(-2px);
}

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