/* ═══════════════════════════════════════════════════════════════
   NUDO DESIGN SYSTEM — main.css
   Shared styles for the entire website
   Brand: NUDO · "Donde converge el sector"
   Colors: Primary #2563EB · Indigo #4F46E5 · Sky #3B82F6
═══════════════════════════════════════════════════════════════ */

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

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── TOKENS ── */
:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #3B82F6;
  --blue-pale:   #EFF6FF;
  --indigo:      #4F46E5;
  --indigo-pale: #EEF2FF;
  --purple-pale: #F5F3FF;
  --teal-pale:   #F0FDFA;
  --green:       #059669;
  --green-pale:  #ECFDF5;

  --text:        #0F172A;
  --text-mid:    #334155;
  --text-soft:   #576879;
  --text-muted:  #94A3B8;

  --white:       #FFFFFF;
  --surface:     #F8FAFC;
  --surface-2:   #F1F5F9;
  --border:      #E2E8F0;
  --border-soft: #F1F5F9;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-xs:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm:  0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md:  0 10px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.05);
  --shadow-lg:  0 20px 60px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);
  --shadow-xl:  0 40px 80px rgba(15,23,42,.14), 0 12px 24px rgba(15,23,42,.07);

  --nav-h: 68px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
h5 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--text-soft); line-height: 1.7; }

/* ── NAVBAR ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo-img { height: 38px; width: auto; display: block; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 32px; height: 32px; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 17px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
  border-radius: 10px;
}
.btn-sm  { font-size: 13px; padding: 8px 16px; }
.btn-md  { font-size: 14px; padding: 10px 22px; }
.btn-lg  { font-size: 15px; padding: 14px 30px; }

.btn-primary {
  color: white;
  background: #2563EB;
  box-shadow: 0 2px 8px rgba(37,99,235,0.28);
}
.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-ghost {
  color: var(--text-mid);
  background: transparent;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}
.btn-outline {
  color: var(--blue);
  background: var(--blue-pale);
  border: 1.5px solid rgba(37,99,235,0.2);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn-white {
  color: var(--text);
  background: white;
  border: 1.5px solid var(--border);
}
.btn-white:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; }
.section { padding: 88px 48px; }
.section-sm { padding: 60px 48px; }
.section-alt { background: var(--surface); }
.section-dark {
  background: #0F172A;
  color: white;
}

/* ── PAGE HEADER / HERO INNER ── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 48px 88px;
  background: linear-gradient(135deg, #0B1628 0%, #112244 55%, #1a2d5a 100%);
  position: relative;
  overflow: hidden;
}
/* Dot-grid texture */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}
/* Decorative glow orbs */
.page-hero::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 65%);
  top: -220px; right: -180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.58);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.58); text-decoration: none; transition: color 0.18s; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.68); }
/* breadcrumb also used as class "breadcrumb" inline */
.page-hero .breadcrumb { color: rgba(255,255,255,0.58); font-size: 13px; margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.58); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,0.42); }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #a5b4fc; margin-bottom: 16px;
}
.page-hero-tag::before { content: ''; width: 18px; height: 2px; background: #818cf8; border-radius: 2px; }
.page-hero h1 { margin-bottom: 20px; max-width: 720px; color: #ffffff; }
.page-hero p { font-size: 18px; max-width: 600px; color: rgba(255,255,255,0.75); }

/* ── HERO SOCIAL BUTTONS ── */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero-socials a:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-2px);
}
.hero-socials a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Standard internal pages: top-right of hero inner (under nav “Hazte socio” column) */
.page-hero-inner > .hero-socials--cta-side {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  justify-content: flex-end;
}

/* Homepage hero carousel: visible on every slide, aligned with nav CTA column */
.hero-carousel > .hero-socials--home-carousel {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  right: clamp(16px, 4vw, 56px);
  z-index: 25;
  justify-content: flex-end;
}

/* TELCOM / FESTELCO marketing heroes */
.telcom-hero > .hero-socials--event-hero,
.festelco-hero > .hero-socials--event-hero {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  right: clamp(16px, 4vw, 48px);
  z-index: 10;
  justify-content: flex-end;
}

/* Noticias article compact heroes */
.page-hero--has-hero-socials {
  position: relative;
}
.page-hero--has-hero-socials > .hero-socials--article-hero {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  right: clamp(16px, 4vw, 48px);
  z-index: 2;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero-carousel > .hero-socials--home-carousel {
    right: 72px;
  }
}

@media (max-width: 768px) {
  .page-hero-inner > .hero-socials--cta-side {
    top: 4px;
    right: 12px;
  }

  .hero-carousel > .hero-socials--home-carousel {
    top: calc(var(--nav-h) + 14px);
    right: max(16px, env(safe-area-inset-right));
    flex-wrap: nowrap;
  }

  .telcom-hero > .hero-socials--event-hero,
  .festelco-hero > .hero-socials--event-hero {
    top: calc(var(--nav-h) + 8px);
    right: 14px;
  }

  .page-hero--has-hero-socials > .hero-socials--article-hero {
    position: static;
    justify-content: flex-end;
    margin: 0 16px 12px;
    padding-top: 4px;
  }

  .hero-socials a {
    width: 34px;
    height: 34px;
  }
}

/* ── SECTION LABEL ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ── CARDS ── */
.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(37,99,235,0.18);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.card:hover .card-icon { background: #DBEAFE; }
.card h4 { color: var(--text); margin-bottom: 10px; }
.card p { font-size: 14px; margin-bottom: 20px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--blue); text-decoration: none;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ── CONTENT (rich text from markdown) ── */
.prose { max-width: 800px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin: 2em 0 0.75em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 16px; }
.prose p { margin-bottom: 1.3em; font-size: 16px; color: var(--text-mid); line-height: 1.75; }
.prose ul, .prose ol { margin: 1em 0 1.5em 1.5em; }
.prose li { font-size: 15.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 6px; }
.prose a { color: var(--blue); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(37,99,235,0.25); transition: border-color 0.18s; }
.prose a:hover { border-color: var(--blue); }
.prose strong { font-weight: 700; color: var(--text); }
.prose blockquote { border-left: 3px solid var(--blue); padding: 12px 20px; background: var(--blue-pale); border-radius: 0 8px 8px 0; margin: 1.5em 0; }
.prose blockquote p { color: var(--text-mid); margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; }
.prose th { background: var(--surface); font-weight: 700; text-align: left; padding: 10px 14px; border: 1px solid var(--border); color: var(--text); }
.prose td { padding: 10px 14px; border: 1px solid var(--border); color: var(--text-mid); }
.prose tr:hover td { background: var(--surface); }
.prose img { border-radius: var(--radius-md); margin: 1.5em 0; box-shadow: var(--shadow-sm); }

/* ── NEWS CARD ── */
.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.15); }
.news-card-image {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #EFF6FF, #E0E7FF);
  overflow: hidden; position: relative;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-image--poster {
  aspect-ratio: 1/1;
  background: #fff;
}
.news-card-image--poster img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
}
.news-card:hover .news-card-image--poster img { transform: none; }
.news-card-image-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(37,99,235,0.2);
}
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 3px 9px; border-radius: 100px;
}
.news-date { font-size: 12px; color: var(--text-muted); }
.news-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px; font-weight: 700;
  color: var(--text); line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.18s;
  flex: 1;
}
.news-card:hover .news-card-title { color: var(--blue); }
.news-card-excerpt { font-size: 13px; color: var(--text-soft); line-height: 1.6; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.badge-blue { color: var(--blue); background: var(--blue-pale); border: 1px solid rgba(37,99,235,0.15); }
.badge-green { color: var(--green); background: var(--green-pale); }
.badge-gray { color: var(--text-soft); background: var(--surface-2); }

/* ── STATS BAR ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px; font-weight: 700;
  color: white; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 10px;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-number .plus { font-size: 30px; color: #60A5FA; font-weight: 700; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 400; line-height: 1.45; letter-spacing: 0.01em; }

/* ── PARTNER TICKER ── */
.ticker-wrap { overflow: hidden; position: relative; }
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 40s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.ticker-logo {
  height: 56px; padding: 0 40px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: color 0.2s;
  flex-shrink: 0;
}
.ticker-logo:hover { color: var(--blue); }
.ticker-logo img {
  height: auto; width: auto;
  max-height: 34px; max-width: 180px;
  object-fit: contain;
  transition: transform .25s;
}
.ticker-logo img:hover { transform: scale(1.06); }
.ticker-logo svg { height: 34px; width: auto; }
/* ── Per-logo optical balancing ──
   Different brand marks have different aspect ratios and visual weights.
   These modifiers size each container appropriately so the strip reads as
   balanced rather than uniform. */
.ticker-logo img.lg-wordmark { max-height: 30px; max-width: 200px; }
.ticker-logo img.lg-wide     { max-height: 32px; max-width: 220px; }
.ticker-logo img.lg-combo    { max-height: 38px; max-width: 180px; }
.ticker-logo img.lg-tall     { max-height: 44px; max-width: 130px; }
.ticker-logo img.lg-mark     { max-height: 42px; max-width: 100px; }
.ticker-logo img.lg-square   { max-height: 64px; max-width: 110px; }
@keyframes ticker { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ── Homepage trust logo band ──
   The homepage uses trust-* markup rather than the legacy ticker-* classes.
   Keep these rules scoped so large intrinsic logo assets cannot escape their
   cards or affect other image-heavy sections. */
.trust-section {
  padding: 48px 0 34px;
  background: #fff;
  overflow: hidden;
}
.trust-eyebrow {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-band {
  overflow: hidden;
  position: relative;
}
.trust-marquee {
  overflow: hidden;
  position: relative;
}
.trust-marquee + .trust-marquee {
  margin-top: 12px;
}
.trust-track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}
.trust-marquee--secondary .trust-track {
  animation-duration: 52s;
  animation-direction: reverse;
}
.trust-track:hover {
  animation-play-state: paused;
}
.trust-logo-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.trust-logo-card {
  width: 188px;
  min-width: 188px;
  flex: 0 0 188px;
  height: 76px;
  max-height: 76px;
  padding: 12px 24px;
  margin-right: 12px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-logo-card img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 140px;
  max-height: 46px;
  object-fit: contain;
  object-position: center;
}
.trust-logo-card img.lg-wordmark { max-width: 152px; max-height: 38px; }
.trust-logo-card img.lg-wide     { max-width: 158px; max-height: 42px; }
.trust-logo-card img.lg-combo    { max-width: 148px; max-height: 48px; }
.trust-logo-card--seteleco {
  width: 420px;
  min-width: 420px;
  flex-basis: 420px;
  height: 96px;
  max-height: 96px;
  padding: 10px 18px;
}
.trust-logo-card--seteleco img {
  max-width: 382px;
  max-height: 72px;
}
.trust-logo-card--crop img {
  width: 136px;
  height: 44px;
  max-width: 136px;
  max-height: 44px;
  object-fit: cover;
  object-position: center;
}
.trust-foot {
  max-width: 680px;
  margin: 26px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
}
.trust-cta {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.trust-cta:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .trust-section { padding: 40px 0 28px; }
  .trust-foot {
    max-width: 360px;
    margin-top: 22px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.65;
    gap: 6px 12px;
  }
  .trust-logo-card {
    flex: 0 0 156px !important;
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    height: 66px !important;
    max-height: 66px !important;
    padding: 10px 18px;
    margin-right: 10px;
    border-radius: 14px;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .trust-logo-card img {
    max-width: 120px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .trust-logo-card img.lg-wordmark { max-width: 130px !important; max-height: 32px !important; }
  .trust-logo-card img.lg-wide     { max-width: 134px !important; max-height: 34px !important; }
  .trust-logo-card img.lg-combo    { max-width: 124px !important; max-height: 40px !important; }
  .trust-logo-card--crop img {
    width: 112px !important;
    height: 36px !important;
    max-width: 112px !important;
    max-height: 36px !important;
    object-fit: cover !important;
  }
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.25s;
}
.testimonial-card:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  border-color: rgba(37,99,235,0.15);
}
.t-quote { font-size: 40px; color: var(--blue); font-family: Georgia, serif; opacity: .5; line-height: 1; margin-bottom: 14px; }
.t-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-pale); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; }
.t-text { font-size: 15px; line-height: 1.65; color: var(--text-mid); margin-bottom: 22px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#4F46E5); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
.t-author strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.t-author span { font-size: 12px; color: var(--text-soft); }


/* ── FEATURE GRID (Routespring-style numbered items) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--border);
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-item {
  background: white;
  padding: 30px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.18s;
  text-decoration: none;
  color: inherit;
}
.feature-item:hover { background: var(--surface); }
.feature-item.feature-dark {
  background: linear-gradient(145deg, #1E40AF, #3730A3);
}
.feature-item.feature-dark:hover { background: linear-gradient(145deg, #1E3A8A, #312E81); }
.feature-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 5px;
  min-width: 24px;
}
.feature-dark .feature-num { color: rgba(255,255,255,.35); }
.feature-icon-sm {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.feature-dark .feature-icon-sm { background: rgba(255,255,255,.12); }
.feature-body { flex: 1; }
.feature-body h4 { margin-bottom: 8px; font-size: 16px; color: var(--text); }
.feature-dark .feature-body h4 { color: white; }
.feature-body p { font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
.feature-dark .feature-body p { color: rgba(255,255,255,.65); }
.feature-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  color: var(--blue); text-decoration: none;
  transition: gap 0.2s;
}
.feature-link:hover { gap: 8px; }
.feature-dark .feature-link { color: rgba(255,255,255,.8); }
@media(max-width:768px){ .features-grid { grid-template-columns: 1fr; } }

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 60%, #1E3A5F 100%);
  border-radius: var(--radius-xl);
  padding: 72px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%); top: -200px; right: -200px; border-radius: 50%; pointer-events: none; }
.cta-box::after { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 65%); bottom: -150px; left: -100px; border-radius: 50%; pointer-events: none; }
.cta-box > * { position: relative; z-index: 1; }
.cta-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(147,197,253,.85); margin-bottom: 18px; }
.cta-box h2 { max-width: 480px; margin: 0 auto 18px; color: white; }
.cta-box p { max-width: 480px; margin: 0 auto 36px; font-size: 17px; color: rgba(255,255,255,.72); }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-perks { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.cta-perk { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.62); font-weight: 500; }
.cta-perk-check { width: 18px; height: 18px; background: rgba(16,185,129,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #34D399; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: #0F172A; color: rgba(255,255,255,.5); padding: 72px 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand-logo img { height: 44px; width: auto; background: white; padding: 6px 10px; border-radius: 6px; }
.footer-brand-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-brand-mark svg { width: 32px; height: 32px; }
.footer-brand-name { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700; font-size: 16px; color: rgba(255,255,255,.9); letter-spacing: -.02em; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.52); max-width: 280px; margin-bottom: 26px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
  color: rgba(255,255,255,.55);
  position: relative;
}
.footer-social::before {
  content: "";
  display: block;
  width: 16px; height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color .2s;
}
.footer-social[title="LinkedIn"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.36V9h3.42v1.56h.05c.48-.9 1.64-1.85 3.38-1.85 3.61 0 4.28 2.38 4.28 5.47v6.27zM5.34 7.43a2.07 2.07 0 1 1 0-4.14 2.07 2.07 0 0 1 0 4.14zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.13 1.45-2.13 2.94v5.67H9.36V9h3.42v1.56h.05c.48-.9 1.64-1.85 3.38-1.85 3.61 0 4.28 2.38 4.28 5.47v6.27zM5.34 7.43a2.07 2.07 0 1 1 0-4.14 2.07 2.07 0 0 1 0 4.14zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z'/></svg>");
}
.footer-social[title="X (Twitter)"]::before,
.footer-social[title="X"]::before,
.footer-social[title="Twitter"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2H21l-6.52 7.45L22.5 22h-6.84l-4.78-6.27L5.2 22H2.44l7-7.99L1.5 2h6.93l4.32 5.71L18.244 2zm-2.4 18.27h1.83L7.27 3.65H5.32l10.524 16.62z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2H21l-6.52 7.45L22.5 22h-6.84l-4.78-6.27L5.2 22H2.44l7-7.99L1.5 2h6.93l4.32 5.71L18.244 2zm-2.4 18.27h1.83L7.27 3.65H5.32l10.524 16.62z'/></svg>");
}
.footer-social[title="YouTube"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/></svg>");
}
.footer-social[title="Facebook"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.675 0H1.325C.593 0 0 .593 0 1.326v21.348C0 23.408.593 24 1.325 24H12.82V14.706h-3.13v-3.62h3.13V8.41c0-3.1 1.894-4.788 4.66-4.788 1.325 0 2.464.099 2.795.143v3.24h-1.918c-1.504 0-1.795.715-1.795 1.763v2.31h3.587l-.467 3.62h-3.12V24h6.116c.73 0 1.323-.592 1.323-1.326V1.326C24 .593 23.407 0 22.675 0z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.675 0H1.325C.593 0 0 .593 0 1.326v21.348C0 23.408.593 24 1.325 24H12.82V14.706h-3.13v-3.62h3.13V8.41c0-3.1 1.894-4.788 4.66-4.788 1.325 0 2.464.099 2.795.143v3.24h-1.918c-1.504 0-1.795.715-1.795 1.763v2.31h3.587l-.467 3.62h-3.12V24h6.116c.73 0 1.323-.592 1.323-1.326V1.326C24 .593 23.407 0 22.675 0z'/></svg>");
}
.footer-social:hover { background: rgba(37,99,235,.3); border-color: rgba(37,99,235,.4); color: white; transform: translateY(-1px); }
.footer-social:focus-visible { outline: 2px solid #60A5FA; outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-col-title { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700; font-size: 12px; color: rgba(255,255,255,.8); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .18s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.footer-bottom-links { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .18s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }
.footer-cookie-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  transition: color .18s;
}
.footer-cookie-link:hover { color: rgba(255,255,255,.8); }

/* ── COOKIE CONSENT ── */
.cookie-consent {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-consent-card {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 80px rgba(15,23,42,.24);
  pointer-events: auto;
}
.cookie-consent-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.cookie-consent h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text);
}
.cookie-consent p {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}
.cookie-consent p a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.cookie-consent p a:hover { text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-consent-reject {
  background: #0F172A;
  box-shadow: 0 2px 8px rgba(15,23,42,.22);
}
.cookie-consent-reject:hover {
  background: #1E293B;
  box-shadow: 0 4px 16px rgba(15,23,42,.28);
}
.cookie-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.cookie-consent-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.cookie-consent-option strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}
.cookie-consent-option small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }
.fade-up.d5 { transition-delay: .5s; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .18s;
}
.pagination a { color: var(--text-mid); border: 1.5px solid var(--border); }
.pagination a:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-pale); }
.pagination span { color: white; background: var(--blue); border: 1.5px solid var(--blue); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .18s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-soft { color: var(--text-soft); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── CONTENT PAGE LAYOUTS ── */

/* Two-column: text + feature image side-by-side */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.content-layout .prose { max-width: 100%; }
.content-image {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.content-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.content-image .multi-img { display: flex; flex-direction: column; gap: 16px; }

/* Feature card grid (image + heading pairs) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}
.feature-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.15);
  transform: translateY(-3px);
}
.feature-card img {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 16px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-xs);
}
.feature-card img[onerror] { background: var(--blue-pale); }
.feature-card h3, .feature-card h4 {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin: 0;
}

/* Logo grid (org logos / partner logos inline) */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.logo-row a, .logo-row span { display: flex; align-items: center; }
.logo-row img {
  max-height: 52px; max-width: 140px;
  object-fit: contain;
  transition: opacity .2s;
}
.logo-row img:hover { opacity: .8; }

/* Inline content images — float right inside prose */
.prose-img-right {
  float: right;
  max-width: 42%;
  margin: 4px 0 20px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  clear: right;
}
.prose-img-right img {
  width: 100%;
  display: block;
  border-radius: inherit;
}

/* Clearfix for prose with floated images */
.prose-with-float::after { content: ''; display: table; clear: both; }

/* CTA inside prose */
.prose-cta {
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #EFF6FF, #EEF2FF);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.prose-cta p { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-image { position: static; }
  .content-image .multi-img { flex-direction: row; flex-wrap: wrap; }
  .content-image .multi-img img { width: calc(50% - 8px); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .prose-img-right { max-width: 100%; float: none; margin: 16px 0; }
}
@media (max-width: 600px) {
  .feature-cards { grid-template-columns: 1fr; }
  .content-image .multi-img img { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL MOBILE: override ALL inline multi-column grids
   These rules use !important to beat inline style="" attributes.
   Desktop is completely unaffected (media-query gated).
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Named page classes with multi-col grids (from page inline styles) ── */
  .hero-inner,
  .article-layout, .edition-cards, .eligibility-grid,
  .howto-step, .key-topics, .opportunity-grid,
  .stats-row, .systems-grid, .threads, .timeline-item {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* hero visual panels → hide on mobile */
  .hero-visual, .hero-cards, .hero-arrow, .hero-counter {
    display: none !important;
  }
  /* timeline-item uses 3-col (left | dot | right) → make block */
  .timeline-item { display: block !important; }

  /* ── Any element with an inline grid that has 2+ columns ── */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.5fr"],
  [style*="grid-template-columns: 1fr 1.5fr"],
  [style*="grid-template-columns:1fr 260px"],
  [style*="grid-template-columns: 1fr 260px"],
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns:1fr 360px"],
  [style*="grid-template-columns: 1fr 360px"],
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns: 1fr 420px"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(2, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ── Sidebar layouts (narrow right col) → sidebar goes below ── */
  [style*="grid-template-columns:1fr 260px"] > *:last-child,
  [style*="grid-template-columns: 1fr 260px"] > *:last-child,
  [style*="grid-template-columns:1fr 280px"] > *:last-child,
  [style*="grid-template-columns: 1fr 280px"] > *:last-child {
    order: 2;
  }

  /* ── Force all inline-grid children to full width ── */
  [style*="grid-template-columns:1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > * {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ── Sticky sidebars → un-stick on mobile ── */
  [style*="position:sticky"],
  [style*="position: sticky"] { position: static !important; }

  /* ── Prevent fixed widths blowing out layout ── */
  [style*="min-width:"] { min-width: 0 !important; }
  [style*="width:"] > img,
  [style*="width:"] > svg { max-width: 100% !important; height: auto !important; }

  /* ── Any remaining inline flex rows that overflow ── */
  [style*="display:flex"][style*="gap"] { flex-wrap: wrap !important; }

  /* ── Tables ── */
  .prose table, table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
  }

  /* ── Images ── */
  img { max-width: 100% !important; height: auto !important; }

  /* Homepage trust band: the global img !important rule above would otherwise
     override .trust-logo-card img bounds and logos blow up to full card width
     (tablet/phone). Match desktop caps with equal !important precedence. */
  .trust-logo-card {
    flex: 0 0 188px !important;
    width: 188px !important;
    min-width: 188px !important;
    max-width: 188px !important;
    height: 76px !important;
    max-height: 76px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .trust-logo-card img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 140px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .trust-logo-card img.lg-wordmark { max-width: 152px !important; max-height: 38px !important; }
  .trust-logo-card img.lg-wide     { max-width: 158px !important; max-height: 42px !important; }
  .trust-logo-card img.lg-combo    { max-width: 148px !important; max-height: 48px !important; }
  .trust-logo-card--crop img {
    width: 136px !important;
    height: 44px !important;
    max-width: 136px !important;
    max-height: 44px !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  .trust-logo-card--seteleco {
    flex: 0 0 360px !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    height: 96px !important;
    max-height: 96px !important;
  }
  .trust-logo-card--seteleco img {
    max-width: 320px !important;
    max-height: 76px !important;
  }

  /* ── Exceptions: elements with fixed heights must be preserved ── */
  .nav-logo-img { height: 38px !important; width: auto !important; max-width: none !important; }
  .footer-brand-logo img { height: 44px !important; width: auto !important; max-width: none !important; }
  .ticker-logo img,
  .ticker-logo svg { width: auto !important; }
  .ticker-logo img { max-height: 30px !important; max-width: 160px !important; }
  .ticker-logo img.lg-wordmark { max-height: 26px !important; max-width: 170px !important; }
  .ticker-logo img.lg-wide     { max-height: 28px !important; max-width: 180px !important; }
  .ticker-logo img.lg-combo    { max-height: 32px !important; max-width: 150px !important; }
  .ticker-logo img.lg-tall     { max-height: 38px !important; max-width: 110px !important; }
  .ticker-logo img.lg-mark     { max-height: 36px !important; max-width: 86px !important; }
  .ticker-logo img.lg-square   { max-height: 56px !important; max-width: 96px !important; }
}

@media (max-width: 768px) {
  .trust-logo-card {
    flex: 0 0 156px !important;
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    height: 66px !important;
    max-height: 66px !important;
  }
  .trust-logo-card img {
    max-width: 120px !important;
    max-height: 38px !important;
  }
  .trust-logo-card img.lg-wordmark { max-width: 130px !important; max-height: 32px !important; }
  .trust-logo-card img.lg-wide     { max-width: 134px !important; max-height: 34px !important; }
  .trust-logo-card img.lg-combo    { max-width: 124px !important; max-height: 40px !important; }
  .trust-logo-card--crop img {
    width: 112px !important;
    height: 36px !important;
    max-width: 112px !important;
    max-height: 36px !important;
  }
  .trust-logo-card--seteleco {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 86px !important;
    max-height: 86px !important;
  }
  .trust-logo-card--seteleco img {
    max-width: 260px !important;
    max-height: 62px !important;
  }
}

@media (max-width: 600px) {
  /* ── Extra tight padding on phones ── */
  [style*="padding:72px"],
  [style*="padding: 72px"] { padding: 36px 20px !important; }
  [style*="padding:64px"],
  [style*="padding: 64px"] { padding: 32px 20px !important; }
  [style*="padding:56px"],
  [style*="padding: 56px"] { padding: 28px 18px !important; }
  [style*="padding:48px"],
  [style*="padding: 48px"] { padding: 24px 18px !important; }
  [style*="font-size:52px"],
  [style*="font-size: 52px"] { font-size: 36px !important; }
  [style*="font-size:46px"],
  [style*="font-size: 46px"] { font-size: 32px !important; }
}

/* ══════════════════════════════════════════════
   NAV BURGER
══════════════════════════════════════════════ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: 1.5px solid var(--border);
  cursor: pointer; padding: 0;
  border-radius: 10px;
  transition: background .18s, border-color .18s;
}
.nav-burger:hover { background: var(--surface-2); border-color: var(--text-soft); }
.nav-burger span {
  display: block;
  width: 20px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.nav-burger.open { border-color: transparent; background: var(--surface-2); }
.nav-burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 199;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 10px;
  transition: all .18s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--blue);
  background: var(--blue-pale);
}
.mobile-menu-divider {
  height: 1px; background: var(--border);
  margin: 12px 0;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.mobile-menu-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 56px 48px; }
  .container { padding: 0 24px; }
}

/* ── Mobile landscape / large phone ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 20px; }
  .nav-logo-img { height: 32px !important; max-width: none !important; }
  .section { padding: 56px 20px; }
  .section-sm { padding: 44px 20px; }
  .page-hero { padding: calc(var(--nav-h) + 44px) 20px 52px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 40px); }
  .page-hero p { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 20px; }
  .stat-number { font-size: 38px; }
  .cta-box { padding: 44px 24px; border-radius: var(--radius-lg); }
  .cta-box h2 { font-size: clamp(24px, 6vw, 36px); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 56px 20px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .cookie-consent { inset: auto 12px 12px 12px; }
  .cookie-consent-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1 1 130px; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(28px, 7vw, 42px); }
  h2 { font-size: clamp(24px, 6vw, 36px); }
  h3 { font-size: clamp(18px, 4.5vw, 24px); }
  /* Two-col layouts → single col */
  [style*="display:grid"][style*="grid-template-columns: 1fr"] { grid-template-columns: 1fr !important; }
  .content-layout { grid-template-columns: 1fr !important; }
  .content-image { position: static !important; }
  /* Service page two-col sidebars */
  .service-layout, .service-grid { grid-template-columns: 1fr !important; }
  /* Ticker */
  .ticker-logo { padding: 0 24px; }
  /* Hero carousel */
  .hero { min-height: 500px; }
  .hero-content { padding: 0 20px !important; max-width: 100% !important; }
}

/* ── Mobile portrait ── */
@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .section { padding: 44px 16px; }
  .section-sm { padding: 36px 16px; }
  .page-hero { padding: calc(var(--nav-h) + 32px) 16px 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 12px; }
  .stat-number { font-size: 32px; }
  .stat-number .plus { font-size: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 18px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .cta-perks { flex-direction: column; gap: 10px; align-items: flex-start; }
  footer { padding: 44px 16px 0; }
  .breadcrumb { font-size: 12px; }
  .card { padding: 20px; }
  .news-card-body { padding: 16px; }
  /* Collapse any inline 2-col grid to 1-col */
  .grid-auto { grid-template-columns: 1fr; }
  .prose-cta { flex-direction: column; }
  .btn-lg { font-size: 14px; padding: 12px 24px; }
}

/* ── Ensure no horizontal scroll ── */
@media (max-width: 1024px) {
  body { overflow-x: hidden; }
  .container, .section, .page-hero-inner { max-width: 100%; }
  /* Fix any hard-coded wide inline styles */
  [style*="min-width"] { min-width: 0 !important; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose table { font-size: 13px; }
}

/* ── LOGO TEXT (collaborator name pill when no image) */
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text-mid);
  letter-spacing: -0.02em;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
/* ── Colaboradores tile grid */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.collab-tile {
  background: white;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all .2s;
  text-decoration: none;
}
.collab-tile:hover {
  background: var(--blue-pale);
  z-index: 1;
}
.collab-tile img {
  max-height: 52px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .2s, filter .2s;
  /* no filter — show logos in full colour */
}
.collab-tile:hover img { transform: scale(1.06); }
.collab-tile:hover .logo-text { color: var(--blue); }

/* dark-bg logos (white logos like Keynet, Exmatra) */
.collab-tile .logo-on-dark {
  background: #1E293B;
  padding: 8px 14px;
  border-radius: 8px;
  max-height: 44px;
}

@media (max-width: 900px) {
  .collab-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .collab-grid { grid-template-columns: repeat(3, 1fr); }
  .collab-tile { min-height: 80px; padding: 20px 12px; }
}
@media (max-width: 440px) {
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ghost button on dark backgrounds (cta-box, dark slides) */
.cta-box .btn-ghost,
.slide-dark .hero-ctas .btn-ghost,
.page-hero .btn-ghost,
[style*="background:#0F172A"] .btn-ghost {
  color: white !important;
  border-color: rgba(255,255,255,.35) !important;
}
.cta-box .btn-ghost:hover,
.slide-dark .hero-ctas .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.6) !important;
}
/* Ghost button on light slides (default + warm) — ensure readable */
.hero-slide:not(.slide-dark) .btn-ghost {
  color: var(--text-mid) !important;
  border-color: var(--border) !important;
}
.hero-slide:not(.slide-dark) .btn-ghost:hover {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
  background: var(--blue-pale) !important;
}

/* ── ARTICLE PAGE: featured image + inline gallery ────────────────── */
.article-hero {
  max-width: 1080px;
  margin: 0 auto 8px;
  padding: 0 32px;
}
.article-hero figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px -18px rgba(15, 23, 42, .35);
  background: #f1f5f9;
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}
.article-hero figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  padding: 10px 4px 0;
  text-align: center;
}

.article-gallery {
  max-width: 800px;
  margin: 48px auto 64px;
  padding: 32px 32px 0;
  border-top: 1px solid var(--border);
}
.article-gallery-title {
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 18px;
  padding-top: 22px;
}
.article-gallery-title::before {
  content: "Cobertura fotográfica";
  position: absolute;
  top: 0; left: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
}
.article-gallery-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-soft, #64748B);
  margin: 14px 0 0;
  font-style: italic;
}
.article-source-credit {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-soft, #64748B);
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.article-source-credit a {
  color: var(--text-soft, #64748B);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color .15s, border-color .15s;
}
.article-source-credit a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.press-link {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 14px;
  margin: 4px 0;
  border-radius: 8px;
  background: rgba(37, 99, 235, .08);
  transition: background .15s, color .15s, transform .15s;
}
.press-link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.article-gallery-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border);
}
.article-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}
@media (max-width: 680px) {
  .article-hero { padding: 0 18px; }
  .article-hero img { max-height: 360px; }
  .article-gallery { padding: 28px 18px 0; margin: 36px auto 48px; }
  .article-gallery-grid { grid-template-columns: 1fr; }
}

/* When the article only has logos/banners as visuals, render small */
.article-hero.is-logo figure {
  background: white;
  box-shadow: none;
  border: 1px solid var(--border);
  max-width: 460px;
  margin: 0 auto;
}
.article-hero.is-logo img {
  max-height: 220px;
  object-fit: contain;
  padding: 32px;
}


/* ── DOCUMENTOS DESCARGABLES ──────────────────────────────────────── */
.docs-section { background: var(--surface, #F8FAFC); }
.docs-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text);
}
.docs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.docs-list a.docs-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.docs-list a.docs-link:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(37,99,235,.45);
}
.docs-link-icon {
  flex: 0 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  padding: 6px 10px;
  border-radius: 6px;
}
.docs-link-label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-mid);
}
.docs-list a.docs-link:hover .docs-link-label { color: var(--text); }

/* ───── ARTICLE / NEWS / REVISTA READING-COLUMN NORMALIZATION ────────
   Migrated article-style pages (≈207 of them) render the body as:
     <section class="section">
       <div class="container">                  ← max-width 1280, centered
         <div style="max-width:800px;">         ← inline width, NO margin
           <div class="prose fade-up">…</div>
         </div>
       </div>
     </section>
   The inline `style="max-width:800px;"` was set without `margin:auto`,
   so the reading column glued itself to the LEFT edge of the 1280-wide
   container — making the article feel empty / left-biased and visually
   disconnected from the centered 1080-wide hero image above.
   Center the wrapper so the body sits directly under the hero image.

   Inline `style` only sets `max-width`; with no `margin` declared in
   the inline rule, our external margin declaration applies cleanly
   without needing `!important`.
   ─────────────────────────────────────────────────────────────────── */
.section > .container > div[style*="max-width:800px"],
.section > .container > div[style*="max-width: 800px"] {
  margin-left: auto;
  margin-right: auto;
}

/* `.prose` as a free-standing reading column directly inside .container
   (revista pages do this, no inner wrapper). Inside grid layouts (e.g.
   /actualidad/* uses `.article-layout` with sidebar) the parent column
   is already ≤800px so margin:auto is a visual no-op — safe broadly. */
.section > .container > .prose {
  margin-left: auto;
  margin-right: auto;
}

/* Slightly tighter rhythm between the wider hero image and the body. */
.article-hero { margin-bottom: 14px; }

/* ───── AGENCY CREDIT (footer-bottom + minimalist /guias footer) ─────────
   Discrete "Diseño y desarrollo: YOOM Digital" line.
   Subtle, low-contrast, never competes with the FENITEL copyright.
   Inherits the footer's color tokens so it looks consistent across both
   the standard dark footer and the minimalist /guias footer. */
.footer-agency {
  margin: 0;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.35);
  letter-spacing: .01em;
}
.footer-agency a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-bottom: none;
  transition: color .15s ease, border-color .15s ease;
}
.footer-agency a:hover {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.4);
}
