/* ==========================================================================
   DESIGN SYSTEM & BOOTSTRAP OVERRIDES
   ========================================================================== */
:root {
  --green: #7eb326;
  --green-dark: #6a9920;
  --green-muted: #b5d47a;
  --green-light: #ebffc4;
  --green-wash: #f1f7e6;
  --paper: #f8f7f4;
  --paper-warm: #f3f1ec;
  --ink: #1a1816;
  --ink-soft: #302d28;
  --gray-700: #504b43;
  --gray-500: #8a8378;
  --gray-400: #a39d94;
  --gray-300: #c7c2ba;
  --gray-200: #ddd9d3;
  --gray-100: #eae7e2;
  --white: #ffffff;

  --blue: #337ab7;
  --blue-dark: #2b669a;
  --blue-muted: #89b2d5;

  --earth: #a1887f;
  --earth-dark: #87726b;
  --earth-muted: #c8bab5;

  --river: #6db3d8;
  --river-dark: #5c96b5;
  --river-muted: #aad3e8;

  --orange: #ff9e40;
  --orange-dark: #d68536;
  --orange-muted: #ffc790;

  --blue-green: #0d927a;
  --blue-green-dark: #0b7b66;
  --blue-green-muted: #73c0b2;

  --grey: #666666;
  --grey-dark: #565656;
  --grey-muted: #a6a6a6;

  --yellow: #f9cc3a;
  --yellow-dark: #d1ab31;
  --yellow-muted: #fce18d;

  --purple: #b68eff;
  --purple-dark: #9977d6;
  --purple-muted: #d5bdff;

  --font-serif: 'Roboto Slab', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);

  /* Layout variables (used by article page & shared components) */
  --max-w: 1280px;
  --nav-h: 62px;
  --sidebar-w: 340px;
  --radius: 6px;
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px;  --s8: 64px;
  --s9: 96px; --s10: 128px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.bg-paper { background: var(--paper) !important; }

.banner_skyscraper {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 92px);  /* below sticky nav */
    width: 160px;
    height: 600px;
    z-index: 50;
  }
@media(min-width: 1648px) {
  .banner_skyscraper {
    display: block;
  }
}
.banner_skyscraper.left {
    left: calc((100vw - var(--max-w)) / 2 - 190px - 16px);
  }
  .banner_skyscraper.right {
    right: calc((100vw - var(--max-w)) / 2 - 190px - 16px);
  }
  
/* ==========================================================================
   BOOTSTRAP
   ========================================================================== */

/*-- Buttons ---*/
.btn-success {
    color: #fff;
    background-color: #7eb326;
    border-color: #7eb326;
}

.btn-outline-wp {
    color:#25d366!important;
    border-color:#25d366!important;
}
.btn-outline-wp:hover {
    background-color:#25d366!important;
    color:#fff!important;
}

.btn-group-xs>.btn, .btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* ==========================================================================
   RESTORED: TOPBAR & NAV STRUCTURE
   ========================================================================== */
.topbar {
  font-size: 12px;
  color: var(--gray-500);
}
.topbar__links a {
  text-decoration: none;
  color: var(--gray-500);
  transition: color .2s var(--ease);
}
.topbar__links a:hover {
  color: var(--green-dark);
}

.nav__logo img {
  margin-bottom: 8px; /* Restores the baseline visual alignment */
}

/* Hide scrollbar for nav links on mobile */
.nav__links {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav__links::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   RESTORED: HERO HEIGHTS (CRITICAL)
   Because child elements use position:absolute, parents will collapse
   without explicit min-heights.
   ========================================================================== */
.hero-main {
  min-height: 360px;
  aspect-ratio: 16/9;
}

.hero-card {
  min-height: 180px;
  aspect-ratio: 16/9;
}

@media(min-width: 1024px) {
  /* Restores the exact "broadsheet" aspect ratio from your original Grid */
  .hero-main {
    min-height: 576px;
    aspect-ratio: auto;
  }
  .hero-card {
    min-height: 280px;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   BREAKING TICKER
   ========================================================================== */
.ticker {
  background: var(--gray-700);
  color: #fff;
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}
.ticker__label {
  background: rgba(0,0,0,.2);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 2;
}
.ticker__pulse {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.ticker__rail { flex: 1; overflow: hidden; }
.ticker__scroll {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding-left: 16px;
}
.ticker__scroll span::before {
  content: '—';
  margin-right: 12px;
  opacity: .4;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav__rule {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
  flex-shrink: 0;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 12px;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); font-weight: 600; }
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--green);
}
.nav__cta {
  background: var(--green);
  transition: background .2s var(--ease);
}
.nav__cta:hover { background: var(--green-dark); }
.nav__search:hover { border-color: var(--gray-400) !important; color: var(--ink); }

/* ==========================================================================
   COMPONENTS: CARDS & TYPOGRAPHY
   ========================================================================== */
.card-img__inner { transition: transform .7s var(--ease); }
.hero-main:hover .card-img__inner,
.hero-card:hover .card-img__inner,
.feat:hover .card-img__inner,
.col-card:hover .card-img__inner {
  transform: scale(1.04);
}

.card-grad {
  background: linear-gradient(0deg, rgba(20,18,14,.88) 0%, rgba(20,18,14,.35) 45%, rgba(20,18,14,.05) 100%);
}

.card-cat, .feat__cat, .col-card__cat, .side-item__cat, .strip-card__cat, .trend-item__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.card-cat {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid rgba(126,179,38,.4);
}
.feat__cat, .col-card__cat, .side-item__cat, .strip-card__cat, .trend-item__cat {
  color: var(--green-dark);
}

.card-title--xl {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.card-title--md {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.feat__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.strip-card__title, .side-item__title, .col-card__title, .trend-item__title, .playlist-item__title {
  font-family: var(--font-serif);
  line-height: 1.25;
  transition: color .2s var(--ease);
  font-size: 0.95rem;
}
.col-card__title { font-size: 1.1rem; font-weight: 500; }
.strip-card__title, .side-item__title, .trend-item__title { font-size: .95rem; }

.strip-card:hover .strip-card__title,
.side-item:hover .side-item__title,
.col-card:hover .col-card__title,
.feat:hover .feat__title {
  color: var(--green-dark);
}

.card-meta, .strip-card__time, .side-item__time, .col-card__time, .feat__meta, .trend-item__time, .playlist-item__meta {
  font-size: 11px;
  color: var(--gray-400);
}
.card-meta { color: rgba(255,255,255,.45); }

/* Strip Card specific */
.strip-card { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.strip-card:hover {
  border-color: var(--green-muted) !important;
  box-shadow: 0 2px 12px rgba(126,179,38,.08);
}

/* Section Header */
.sec-head::before {
  content: '';
  width: 3px;
  height: 18px;
  margin-right: 0.6rem;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-flex;
}
.sec-head__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0;
  display: inline-flex;
}
.sec-head__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green)!important;
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.sec-head__link:hover { gap: 8px !important; }

/* ==========================================================================
   MULTIMEDIA & VIDEO
   ========================================================================== */
.multimedia { background: var(--ink); }
.multimedia::before {
  content: '';
  position: absolute;
  top: -40%; left: 20%; width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(126,179,38,.06) 0%, transparent 70%);
  pointer-events: none;
}
.video-main:hover .card-img__inner { transform: scale(1.02); }
.video-main__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: var(--green);
  z-index: 2;
  transition: transform .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.video-main:hover .video-main__play { transform: translate(-50%, -50%) scale(1.1); }
.video-main .card-grad { background: linear-gradient(0deg, rgba(20,18,14,.8) 0%, transparent 50%); }
.multi-sidebar__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.playlist-item { transition: transform .15s var(--ease); cursor: pointer; }
.playlist-item:hover { transform: translateX(4px); }
.playlist-item__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}
.playlist-item__play svg { opacity: .8; }
.playlist-item:hover .playlist-item__title { color: #fff; }

/* ==========================================================================
   TRENDING & OPINION
   ========================================================================== */
.trend-item { transition: transform .15s var(--ease); }
.trend-item:hover { transform: translateX(3px); }
.trend-item__num {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--gray-300); width: 32px;
  transition: color .2s var(--ease);
}
.trend-item:hover .trend-item__num { color: var(--green); }

.opin-card {
  border-left: 3px solid var(--green);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.opin-card:hover {
  background: var(--green-wash) !important;
  transform: translateY(-2px);
}
.opin-card__quote {
  font-family: var(--font-serif); font-size: 1.15rem;
  font-style: italic; font-weight: 500; line-height: 1.35;
  color: var(--ink-soft);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter__box {
  background: var(--green-dark);
  background-image: linear-gradient(135deg, #5a8318 0%, var(--green) 50%, #96c93d 100%);
}
.newsletter__title { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
.newsletter__input {
    flex: 1;
    padding: 8px 14px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 100px;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color .2s var(--ease);
}
.newsletter__input:focus { background: rgba(255,255,255,.2); border-color: #fff !important; box-shadow: none; color: white;}
.newsletter__input::placeholder { color: rgba(255,255,255,.7); }
.newsletter__btn:hover { transform: scale(1.04); }
.newsletter__btn {
    padding: 8px 20px;
    background: var(--paper);
    color: var(--green-dark)!important;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 100px;
    transition: transform .15s var(--ease);
}

/* ==========================================================================
   TOPICS
   ========================================================================== */
.topics__tag {
  padding: 5px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all .15s var(--ease);
}
.topics__tag:hover {
  border-color: var(--green); background: var(--green-wash); color: var(--green-dark);
}

/* ==========================================================================
   UTILITIES & ANIMATIONS
   ========================================================================== */

.shade { text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); }
.shade-lg { text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6); }

.transition-all { transition: all .15s var(--ease); }
.hover-bg-success:hover { background-color: var(--green) !important; border-color: var(--green) !important; }
.hover-text-white:hover { color: #fff !important; }

.ph { display: flex; align-items: center; justify-content: center; font-size: 0; color: transparent; }
.ph--forest  { background: linear-gradient(145deg, #1a3c28 0%, #2d6a4f 40%, #40916c 100%); }
.ph--river   { background: linear-gradient(145deg, #0b3d5b 0%, #1d6fa5 50%, #6db3d8 100%); }
.ph--earth   { background: linear-gradient(145deg, #3e2723 0%, #795548 50%, #a1887f 100%); }
.ph--canopy  { background: linear-gradient(145deg, #1b3a1b 0%, #2e7d32 50%, #66bb6a 100%); }
.ph--mist    { background: linear-gradient(145deg, #37474f 0%, #607d8b 50%, #90a4ae 100%); }
.ph--stone   { background: linear-gradient(145deg, #2c2c2c 0%, #616161 50%, #9e9e9e 100%); }
.ph--amber   { background: linear-gradient(145deg, #4a3000 0%, #8d6e00 50%, #c9a000 100%); }
.ph--deep    { background: linear-gradient(145deg, #0d1b2a 0%, #1b2838 50%, #2d4a5e 100%); }
.ph--dusk    { background: linear-gradient(145deg, #1a1040 0%, #4a2080 50%, #7c4dff 100%); }
.ph--sunset  { background: linear-gradient(145deg, #4a1c00 0%, #bf5700 50%, #ff9e40 100%); }


/*
.side-item__cat.salud { color:#f42515 }
.side-item__cat.negocios-en-ecuador { color:#f42515 }
.side-item__cat.internacional { color:#438a00!important }
.side-item__cat.informe-de-vias-en-ecuador { color:#f42515 }
.side-item__cat.actualidad { color:#44810e }
.side-item__cat.vias { color:#337ab7 }
.side-item__cat.deportes { color:#3fa5eb }
.side-item__cat.opinion { color:#3fa5eb }
.side-item__cat.seguridad { color:#ff4d1d }
.side-item__cat.petroleo-y-minas { color:#999 }
.side-item__cat.energia { color:#0d927a }
.side-item__cat.economia { color:#7eb326 }
.side-item__cat.turismo { color:#f87e1c }
.side-item__cat.ciencia { color:#f9cc3a }
.side-item__cat.medio-ambiente { color:#f9cc3a }
.side-item__cat.indigenas { color:#b68eff }
.side-item__cat.pueblos-indigenas { color:#b68eff }
.side-item__cat.politica { color:#b68eff }
.side-item__cat.imagenes { color:#333 }
.side-item__cat.videos { color:#333 }
.side-item__cat.multimedia { color:#333 }
*/

.prov-card.provincia-de-sucumbios .prov-card__label {
  background: var(--river-muted);
  border-left: 3px solid var(--river);
}
.prov-card.provincia-de-napo .prov-card__label {
  background: var(--purple-muted);
  border-left: 3px solid var(--purple);
}
.prov-card.provincia-de-orellana .prov-card__label {
  background: var(--orange-muted);
  border-left: 3px solid var(--orange);
}
.prov-card.provincia-de-pastaza .prov-card__label {
  background: var(--earth-muted);
  border-left: 3px solid var(--earth);
}
.prov-card.provincia-de-morona-santiago .prov-card__label {
  background: var(--blue-muted);
  border-left: 3px solid var(--blue);
}
.prov-card.provincia-de-zamora-chinchipe .prov-card__label {
  background: var(--blue-green-muted);
  border-left: 3px solid var(--blue-green);
}

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }
.reveal-d4 { transition-delay: .24s; }

@media(prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__scroll { animation: none; }
}

/* ==========================================================================
   ARTICLE PAGE STYLES
   All styles below are article-specific. They do not duplicate or
   override any homepage styles above.
   ========================================================================== */

/* --- Reading progress bar (renamed from .progress-bar to avoid Bootstrap conflict) --- */
.reading-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--green);
  z-index: 101;
  transition: width .1s linear;
}

/* --- Breadcrumb (renamed from .breadcrumb to avoid Bootstrap conflict) --- */
.article-breadcrumb {
  padding: var(--s4) 0;
  font-size: 12px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
}

.article-breadcrumb a {
  text-decoration: none;
  transition: color .15s var(--ease);
  color: var(--gray-700);
}

.article-breadcrumb a:hover { color: var(--green-dark); }

.article-breadcrumb > span { margin: 0 6px; opacity: .4; }

/* --- Article layout grid --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  padding: var(--s6) 0 var(--s8);
}

@media(min-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr var(--sidebar-w);
    gap: var(--s8);
  }
}

/* --- Section tag --- */
.article__section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: var(--s4);
  text-decoration: none;
  transition: color .15s var(--ease);
}

.article__section::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
}

.article__section:hover { color: var(--green); }

/* --- Headline --- */
.article__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: var(--s5);
}

/* --- Meta bar (date, source, reading time) --- */
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  font-size: 13px;
  color: var(--gray-500);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--s5);
}

.article__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 50%;
}

.article__source {
  font-weight: 600;
  color: var(--ink-soft);
}

/* --- Summary / Lead --- */
.article__summary {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: var(--s6);
  max-width: 60ch;
  padding-left: var(--s4);
  border-left: 3px solid var(--green);
}

/* --- Main image --- */
.article__hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--s2);
}

.article__hero-img img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.article__hero-caption {
  font-size: 12px;
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: var(--s6);
  line-height: 1.5;
}

/* --- Share bar (floating left on desktop) --- */
.share-bar {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

@media(min-width: 1200px) {
  .share-bar {
    position: fixed;
    left: max(var(--s5), calc((100vw - var(--max-w)) / 2 - 90px));
    top: calc(var(--nav-h) + var(--s10));
    flex-direction: column;
    margin-bottom: 0;
    z-index: 50;
    transition: opacity .3s var(--ease);
  }
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-500);
  transition: all .15s var(--ease);
}

.share-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-wash);
}

.share-btn--wa:hover { border-color: #25d366; color: #25d366; background: #e8fdf0; }
.share-btn--fb:hover { border-color: #1877f2; color: #1877f2; background: #e8f0fe; }
.share-btn--x:hover  { border-color: var(--ink); color: var(--ink); background: var(--gray-100); }
.share-btn--tg:hover { border-color: #0088cc; color: #0088cc; background: #e6f5fc; }
.share-btn--link:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-wash); }

/* --- Article body --- */
.article__body {
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article__body p {
  margin-bottom: 1.5em;
}

.article__body p:last-child {
  margin-bottom: 0;
}

.article__body strong {
  color: var(--ink);
  font-weight: 600;
}

.article__body a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: var(--green-muted);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s var(--ease);
}

.article__body a:hover {
  text-decoration-color: var(--green-dark);
}

/* --- Tags below article --- */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-top: var(--s6);
  margin-top: var(--s6);
  border-top: 1px solid var(--gray-200);
}

.article__tags-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  width: 100%;
  margin-bottom: var(--s1);
}

.article__tag {
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all .15s var(--ease);
}

.article__tag:hover {
  border-color: var(--green);
  background: var(--green-wash);
  color: var(--green-dark);
}

/* --- Follow channels --- */
.article__follow {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}

.article__follow-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-bottom: var(--s3);
}

.article__follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s var(--ease);
}

.follow-link--google { background: #f1f3f4; color: #444; }
.follow-link--google:hover { background: #e2e5e8; color: #444; }
.follow-link--wa { background: #e8fdf0; color: #128c50; }
.follow-link--wa:hover { background: #d0f5e0; color: #128c50; }
.follow-link--tg { background: #e6f5fc; color: #0088cc; }
.follow-link--tg:hover { background: #cceaf7; color: #0088cc; }

/* --- Related article (below body) --- */
.related-main {
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--gray-200);
}

.related-main__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-bottom: var(--s4);
}

.related-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  cursor: pointer;
}

@media(min-width: 640px) {
  .related-card {
    grid-template-columns: 1fr 2fr;
    gap: var(--s5);
  }
}

.related-card__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.related-card__img img,
.related-card__img .ph {
  width: 100%; height: 100%;
  object-fit: cover;
  overflow: hidden;
  transition: transform .3s var(--ease);
}

.related-card:hover .related-card__img img,
.related-card:hover .related-card__img .ph { transform: scale(1.03); }

.related-card__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.related-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color .15s var(--ease);
}

.related-card:hover .related-card__title { color: var(--green-dark); }

.related-card__excerpt {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-top: var(--s2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: var(--s2);
}

/* --- Article sidebar (sticky) --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

@media(min-width: 1024px) {
  .sidebar {
    /*position: sticky;
    top: calc(var(--nav-h) + var(--s5));
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - var(--s7));
    overflow-y: auto;
    overflow-x: hidden;
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;*/
  }
}

.sidebar__head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.sidebar__head::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--green);
  border-radius: 2px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  padding-top: 15px;
}

.sidebar-item {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  position: relative;
  transition: transform .1s var(--ease);
}

.sidebar-item:first-child { padding-top: 0; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { transform: translateX(3px); }

.sidebar-item__img {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-item__img img,
.sidebar-item__img .ph {
  width: 100%; height: 100%;
  object-fit: cover;
}

.sidebar-item__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-dark);
}

.sidebar-item__title {
  font-family: var(--font-serif);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1px;
  transition: color .15s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-item:hover .sidebar-item__title { color: var(--green-dark); }

.sidebar-item__time {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- Sidebar newsletter --- */
.sidebar-newsletter {
  background: var(--green-dark);
  background-image: linear-gradient(145deg, #5a8318, var(--green));
  border-radius: var(--radius);
  padding: var(--s5);
  color: var(--white);
}

.sidebar-newsletter__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--s2);
}

.sidebar-newsletter__desc {
  font-size: 12px;
  opacity: .8;
  margin-bottom: var(--s3);
  line-height: 1.5;
}

.sidebar-newsletter__input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  margin-bottom: var(--s2);
  transition: border-color .2s var(--ease);
}

.sidebar-newsletter__input::placeholder { color: rgba(255,255,255,.5); }
.sidebar-newsletter__input:focus { border-color: var(--white); background: rgba(255,255,255,.2); box-shadow: none; }

.sidebar-newsletter__btn {
  width: 100%;
  padding: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  transition: transform .1s var(--ease);
}

.sidebar-newsletter__btn:hover { transform: scale(1.02); }

/* --- Sidebar trending --- */
.sidebar-trend {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: transform .1s var(--ease);
}

.sidebar-trend:hover { transform: translateX(3px); }

.sidebar-trend__num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-300);
  width: 28px;
  flex-shrink: 0;
  transition: color .15s var(--ease);
}

.sidebar-trend:hover .sidebar-trend__num { color: var(--green); }

.sidebar-trend__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-dark);
}

.sidebar-trend__title {
  font-family: var(--font-serif);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1px;
}

/* --- Footer compact variant (article pages) --- */
.footer--compact {
  background: var(--ink);
  color: var(--gray-400);
  padding: var(--s6) 0 var(--s5);
  font-size: 12px;
  margin-top: var(--s7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: center;
  text-align: center;
}

@media(min-width:768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/*---CHATBOT---*/

.chat-message-div ul {
    list-style: none;
    margin-top: 1rem;
}
.chat-message-div ul li {
    border-bottom:1px solid #ccc;
    position: relative;
}
.chat-message-div ul li:before {
    font-family: FontAwesome;
    content: "\f138";
    margin-right: 0.5em;
    color: #337ab7;
    position:absolute;
    left:0;
    top: 8px;
}
.chat-message-div ul li a {
    padding: 8px 0 8px 20px;
    display: block;
}

#chatbot {
  z-index: 9999;
}

@media (min-width: 180px) {
.main-card {
    right: 12px;
    top: 90px;
    width: 94%;
    height: calc(100% - 110px) !important;
    border-radius: 8px !important;
/*margin: 16px!important;*/
}
}
@media (min-width: 450px) {
.main-card {
    width: 96%;
    height: calc(100% - 32px) !important;
    border-radius: 8px !important;
    max-height: 600px;
/*margin: 16px!important;*/
}
}
@media (min-width: 576px) {
    .main-card {
        max-width: 400px;
    }
}

.main-card.collapsed {
width: 180px !important;
height: 40px !important;
border-radius: 20px !important;
/*margin: 16px!important;*/
}

.main-card {
background: white;
color: white;
height: 100%;
margin: 0px;
border-radius: 0px;
display: flex;
flex-direction: column;
overflow: hidden;
position: fixed;
z-index: 100;
transition: all 0.5s;
box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2),0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media (min-width: 1048px) {
    .main-card {
    right: 12px;
    top: 45px;
    }
}
#chatbot_toggle {
position: absolute;
right: 0;
border: none;
height: 40px;
width: 40px;
background: #7eb326;
/*padding: 14px;*/
color:white;
}
#chatbot_toggle:hover {
background: #5f8e13;
}
.line {
height: 1px;
background-color: #7eb326;
width: 100%;
opacity: 0.2;
}
.main-title {
background-color: #7eb326;
/*font-size: large;*/
font-weight: bold;
display: flex;
height: 40px;
}
.main-title>div{
height:40px;
width:40px;
display:flex;
margin-left:8px;
}
.main-title svg {
height: 24px;
margin: auto;
}
.main-title > span {
margin: auto auto auto 8px;
height: 40px;
line-height: 40px;
padding-left: 16px;
}
.chat-area {
flex-grow: 1;
overflow: auto;
border-radius: 8px;
padding: 16px;
display: flex;
flex-direction: column;
}
.input-message {
padding: 8px 40px 8px 16px;
flex-grow: 1;
border: none;
}
.input-message:focus {
outline: none;
}
.input-div {
height: 40px;
display: flex;
}

.input-send {
background: transparent;
width: 40px;
height: 40px;
right: 0%;
border: none;
cursor: pointer;
}
.input-send:hover {
background: #dff0d8;
}
.input-send svg {
fill: #7eb326;
}
.chat-message-div {
display: flex;
}

.chat-message-sent {
background-color: white;
margin: 8px 16px 8px 64px;
padding: 8px 16px;
animation-name: fadeIn;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 100ms;
color: black;
border-radius: 8px 8px 2px 8px;
background-color: #dff0d8;
}

.chat-message-received {
background-color: white;
margin: 8px 64px 8px 16px;
padding: 8px 16px;
animation-name: fadeIn;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 100ms;
color: black;
border-radius: 8px 8px 8px 2px;
background-color: #f4f4f4;
}

@keyframes fadeIn {
from {
  opacity: 0;
}

to {
  opacity: 1;
}
}

::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
background: #888;
}

::-webkit-scrollbar-thumb:hover {
background: #555;
}

/*---Search Input Groupo ---*/

.search-input-group {
    display: flex;
    align-items: center;
    height: 14px;
    padding-top: .25rem;
    padding-bottom: .25rem;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    background-color: #fff;
    box-sizing: content-box; /* keeps height:14px as the inner content area */
}

.search-input-group .search-query {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 .75rem;
    font-size: .875rem;
    line-height: 14px;
}

.search-input-group .btn {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0 .75rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

/*---Historias---*/

.banner_story:hover,
.banner_story:focus,
.banner_story:active,
.banner_story:visited {
text-decoration:none!important;
color:#fff!important
}

.banner_story { 
height:380px; color:#fff; padding:25px; text-align:center;
display:block;
background-repeat:no-repeat;
background-position:center;
background-size: cover;
margin-bottom:15px;
border-radius:5px;
}
.banner_story h1 { 
font-size:30px!important;
line-height:1.2em!important
}
.banner_story h4,.banner_story h3 { 
font-family: var(--font-serif);
}
.banner_story.kichwas { 
background-image:url(https://www.eloriente.com/historias/tradiciones-kichwas-en-tamia-yura-ecuador/img/banner.jpg);
}
.banner_story.texaco { 
background-image:url(https://www.eloriente.com/historias/texaco-un-gran-socio-para-ecuador/img/banner.jpg);
}
.banner_story.yasuni { 
background-image:url(https://www.eloriente.com/historias/yasuni-joya-de-la-biodiversidad/img/banner.jpg);
}
.banner_story.cuyabeno { 
background-image:url(https://www.eloriente.com/historias/reserva-cuyabeno/img/banner.jpg);
}
.banner_story.covid { 
background-image:url(https://www.eloriente.com/historias/covid-19/img/banner.jpg);
}
.banner_story.sangay { 
    background-image:url(https://www.eloriente.com/historias/volcan-sangay/img/banner.jpg);
    }
.banner_story.caso_chevron { 
background-image:url(https://www.eloriente.com/historias/caso-chevron-ecuador/img/banner.jpg);
}
.banner_story.naturaleza { 
    background-image:url(https://www.eloriente.com/historias/naturaleza-y-diversidad-cultural/img/banner.jpg);
    }
.banner_story.lostayos { 
    background-image:url(https://www.eloriente.com/historias/cueva-de-los-tayos/img/banner.jpg);
    }
.banner_story.sentencia { 
    background-image:url(https://www.eloriente.com/historias/sentencia-chevron/img/banner.jpg);
    }
.banner_story.hoteles { 
    background-image:url(https://www.eloriente.com/historias/hoteles-amazonia/img/banner.jpg);
    }
.banner_story .btn-success {
    color: #fff!important;
    background-color: #7eb326;
    border-color: #7eb326;
}
.banner_story .btn-success:hover,
.banner_story .btn-success:focus,
.banner_story .btn-success:active,
.banner_story .btn-success:visited {
    color: #fff!important;
    background-color: #6b9a1d;
    border-color: #6b9a1d;
}
.aligner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.aligner.end {
    align-items: end!important;
}
.aligner_wrap {
    display: flex;
    align-content: space-between!important;
    justify-content: center;
    flex-wrap: wrap!important;
}

/* ==========================================================================
   PROVINCIAS BLOCK — 6 provinces in 2×3 grid
   ========================================================================== */

/* Section intro row */
.provincias__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.provincias__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.01em;
}

.provincias__title span {
  color: var(--green-dark);
}

.provincias__subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.provincias__subtitle a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s var(--ease);
}

.provincias__subtitle a:hover {
  color: var(--green);
}

/* Grid */
.provincias__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}

@media (min-width: 640px) {
  .provincias__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .provincias__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual province card */
.prov-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Province name bar */
.prov-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s1) var(--s2);
  background: var(--green-wash);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) 0 0;
  text-decoration: none;
  transition: background .15s var(--ease);
}

.prov-card__label:hover {
  background: var(--green-muted);
}

.prov-card__name {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.prov-card__arrow {
  color: var(--white);
  flex-shrink: 0;
  transition: transform .15s var(--ease);
}

.prov-card__label:hover .prov-card__arrow {
  transform: translateX(3px);
}

/* Article row */
.prov-card__article {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  cursor: pointer;
  position: relative;
  transition: transform .1s var(--ease);
}

.prov-card__article:hover {
  transform: translateX(3px);
}

.prov-card__article a {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.prov-card__thumb {
  width: 88px;
  height: 66px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.prov-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prov-card__date {
  font-size: 10px;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.prov-card__headline {
  font-family: var(--font-serif);
  font-size: .88rem;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s var(--ease);
}

.prov-card__article:hover .prov-card__headline {
  color: var(--green-dark);
}

/*---OVERIDES---*/
iframe .pencraft {
  color: #fff!important;
}