/* ================================================================
   THE NORTH TRADERS — ADVERTORIAL (El Tiempo Style)
   Mobile-only | Merriweather + Inter
================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
  --et-blue:   #0B5891;
  --et-red:    #C8102E;
  --et-border: #E5E7EB;
  --et-text:   #1A1A1A;
  --et-muted:  #6B7280;
  --et-topbar: #F8F9FA;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: var(--et-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ================================================================
   SUPHEADER
================================================================ */
.supheader {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--et-topbar);
  border-bottom: 1px solid var(--et-border);
  overflow: hidden;
  min-height: 34px;
}

.supheader__temas-del-dia { flex: 1; overflow: hidden; }

.c-topics {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.c-topics__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--et-blue);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
}

.c-topics__wrap__list {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.c-topics__wrap__list__item {
  display: flex;
  align-items: center;
}

.c-topics__wrap__list__item::after {
  content: '•';
  font-size: 11px;
  color: var(--et-muted);
  margin: 0 7px;
}

.c-topics__wrap__list__item a {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

/* ================================================================
   HEADER
================================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--et-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header__principal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.header__principal__btn-hamburguesa {
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__principal__btn-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.header__principal__btn-logo svg { height: 24px; width: auto; }

.btn-header-cta { flex-shrink: 0; }

.btn-header-cta__text {
  display: inline-block;
  padding: 6px 14px;
  background: #28A745;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.header__principal__usuario { flex-shrink: 0; }

.header__principal__usuario__btn-usuario {
  background: none;
  border: 2px solid var(--et-blue);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ================================================================
   CATEGORY NAV
================================================================ */
.subheader__sub-menu {
  background: #fff;
  border-bottom: 2px solid var(--et-blue);
  overflow-x: auto;
  scrollbar-width: none;
}

.subheader__sub-menu::-webkit-scrollbar { display: none; }

.subheader__sub-menu__contenedor {
  display: flex;
  padding: 0 12px;
}

.subheader__sub-menu__item { flex-shrink: 0; }

.subheader__sub-menu__item a {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--et-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.subheader__sub-menu__item.sub-active a {
  color: var(--et-blue);
  border-bottom-color: var(--et-blue);
}

/* ================================================================
   MAIN CONTENT
================================================================ */
.content { padding: 0 12px 48px; }

.u-estructura { padding-top: 18px; }

/* ================================================================
   ARTICLE HEADER
================================================================ */
.c-articulo__epigrafe { margin-bottom: 12px; }

.epigraph-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--et-red);
  border-bottom: 2px solid var(--et-red);
  padding-bottom: 2px;
}

.c-articulo__titulo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 900;
  line-height: 1.22;
  color: #111;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.article-subheadline {
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 500;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--et-border);
}

/* Share bar */
.c-articulo__compartir {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: none;
  border: 1px solid var(--et-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--et-blue);
  white-space: nowrap;
}

/* ================================================================
   VIDEO SECTION
================================================================ */
.video-section {
  background: #fff;
  margin: 0 -12px;
  padding: 16px 12px 14px;
  border-top: 1px solid var(--et-border);
  border-bottom: 1px solid var(--et-border);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-wrapper vturb-smartplayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.social-dot {
  font-size: 10px;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ================================================================
   RETENTION BAR
================================================================ */
.ret-bar {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #EBF4FD;
  border: 2px solid var(--et-blue);
  box-shadow: 0 3px 12px rgba(11,88,145,0.14);
}

.ret-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
}

.ret-icon { font-size: 20px; flex-shrink: 0; }

.ret-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ret-title {
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 800;
  color: var(--et-blue);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.25;
}

.ret-sub {
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

.ret-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid var(--et-blue);
  border-radius: 8px;
  padding: 4px 10px;
  gap: 2px;
}

.ret-timer-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(11,88,145,0.65);
  text-transform: uppercase;
  white-space: nowrap;
}

.ret-timer-count {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  color: var(--et-blue);
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ret-track {
  height: 4px;
  background: rgba(11,88,145,0.12);
}

.ret-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--et-blue) 0%, #1877F2 100%);
  transition: width 1s linear;
}

/* State: unlocking */
.ret-bar.ret-unlocking { border-color: #1877F2; background: #EDF0FE; }
.ret-bar.ret-unlocking .ret-title       { color: #1877F2; }
.ret-bar.ret-unlocking .ret-timer       { border-color: #1877F2; }
.ret-bar.ret-unlocking .ret-timer-count { color: #1877F2; }
.ret-bar.ret-unlocking .ret-icon        { animation: icon-pulse 0.7s ease-in-out infinite; }

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* State: confirmed */
.ret-bar.ret-unlocked { border-color: #16A34A; background: #ECFDF5; }
.ret-bar.ret-unlocked .ret-title        { color: #15803D; }
.ret-bar.ret-unlocked .ret-fill         { background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%); }
.ret-bar.ret-unlocked .ret-timer        { border-color: #16A34A; }
.ret-bar.ret-unlocked .ret-timer-count  { color: #15803D; }

/* ================================================================
   COMMENTS
================================================================ */
.comment-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--et-blue);
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

.comment-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--et-text);
  margin-bottom: 18px;
}

.comments-sort {
  font-size: 13px;
  font-weight: 600;
  color: var(--et-blue);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Avatar */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; }

/* Comment item */
.fb-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.fb-comment__body { flex: 1; min-width: 0; }

.fb-comment__bubble {
  background: #F3F4F6;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--et-text);
  margin-bottom: 5px;
}

.fb-comment__name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  margin-bottom: 3px;
}

.fb-comment__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fb-like  { font-size: 13px; color: var(--et-muted); }
.fb-action { font-size: 12px; font-weight: 700; color: var(--et-muted); }
.fb-time  { font-size: 12px; color: var(--et-muted); }

/* Reply */
.fb-comment__reply {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
  border-left: 2px solid var(--et-border);
  margin-left: 4px;
}

.fb-comment__reply .fb-comment__bubble {
  background: #EEF2FF;
  font-size: 13px;
}

/* ================================================================
   VERY SMALL SCREENS (320–360px)
================================================================ */
@media (max-width: 360px) {
  .btn-header-cta__text { padding: 5px 10px; font-size: 9px; }
  .ret-timer-count { font-size: 16px; }
  .fb-comment__bubble { font-size: 13px; }
}
