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

/* iOS Safari fix: NEVER put overflow-x:hidden on html or body */
html { width: 100%; background: #f2f2f2; }
body {
  width: 100%;
  background: #F7F4EE;
  -webkit-text-size-adjust: 100%;
}
/* overflow-x containment on inner wrapper only */
/* overflow-x:clip (not hidden) preserves sticky positioning — hidden creates a block formatting context that breaks sticky */
.pg-wrap { width: 100%; max-width: 100%; overflow-x: clip; display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --primary:   #003087;  /* Denver Flag Blue — PMS 281 */
  --red:       #C8102E;  /* Denver Flag Red — PMS 193 */
  --orange:    #FFD100;  /* Denver Flag Gold — PMS 116 */
  --text:      #333333;  /* Process Black CMYK 0/0/0/80 */
  --gray:      #767676;
  --gray-light:#ddd;
  --bg:        #F7F4EE;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:    'Manrope', Helvetica, sans-serif;

  /* ── Standardized variables (derived from palette above) ── */
  --text-muted:    #767676;
  --primary-100:   #CCE0F5;  /* light Denver Blue tint */
  --primary-500:   #003087;  /* Denver Flag Blue */
  --primary-700:   #002268;  /* dark Denver Blue */
  --primary-800:   #001545;  /* very dark Denver Blue */
  --accent-400:    #FFD100;  /* Denver Flag Gold */
  --accent-500:    #C8102E;  /* Denver Flag Red */
  --white:         #ffffff;
  --gray-300:      #ddd;
  --gray-600:      #767676;
  --background:    #F7F4EE;
  --border:        #e8e8e8;
  --surface-100:   #f4f1eb;
  --box-shadow-sm: 0 1px 3px 0 rgba(34, 40, 42, 0.1);
  --box-shadow-md: 0 4px 20px 0 rgba(33, 37, 41, 0.05);
  --box-shadow-lg: 0 4px 20px 0 rgba(33, 37, 41, 0.15);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }

/* ── LOGO ────────────────────────────────── */
.logo {
  max-width: 120px;
}

.logo a {
  display: flex;
}

/* ── TOP BAR ─────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* ── SITE HEADER ─────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid var(--gray-light);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hamburger {
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
}

/* ── HAMBURGER BUTTON ────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-logo {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.site-logo .dot { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-member {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-login {
  background: #f4f2ed;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ── MAIN NAV ────────────────────────────── */
.main-nav {
  background: var(--primary);
}
.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a {
  display: block;
  padding: 14px 15px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.active a { color: #fff; }

/* ── CONTENT WRAPPER ─────────────────────── */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION TITLE ───────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 6px;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── 3-COLUMN TOP LAYOUT ─────────────────── */
.homepage-top {
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

/* ── EN VIVO SIDEBAR ─────────────────────── */
.envivo-sidebar {
  border-top: 2px solid #1a1a1a;
  padding-top: 10px;
  padding-right: 20px;
  padding-left: 12px;
  padding-bottom: 20px;
  background: #E8E4D9;
}
.envivo-list {
  position: relative;
}
.envivo-list::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 9px;
  width: 2px;
  background: var(--orange);
}
.envivo-item {
  position: relative;
  padding: 10px 0 10px 24px;
}
.envivo-item:first-child { padding-top: 2px; }
.envivo-item::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 100%;
}
.envivo-item:first-child::before { top: 8px; }
.envivo-content { }
.envivo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
}
.envivo-title:hover { color: var(--primary); }
.envivo-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── FEATURED ARTICLE ────────────────────── */
.featured-article {
  padding-top: 0;
}
.featured-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.featured-img-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(160deg, #c8d6e0 0%, #a8b8c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7a8f9a;
}
.featured-cat {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.featured-title:hover { color: var(--primary); }
.featured-excerpt {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.featured-secondary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}
.featured-secondary-placeholder {
  width: 88px;
  height: 60px;
  background: linear-gradient(160deg, #c8d6e0 0%, #a8b8c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #7a8f9a;
  flex-shrink: 0;
}
.featured-secondary-img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}
.featured-secondary-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.featured-secondary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.featured-secondary-title:hover { color: var(--primary); }

/* ── RECOMENDADOS SIDEBAR ─────────────────── */
.recomendados-sidebar {
  border-top: 2px solid #1a1a1a;
  padding-top: 10px;
  padding-left: 0;
}
.rec-item {
  padding: 13px 0;
}
.rec-item:first-child { padding-top: 0; }
.rec-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rec-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.rec-title:hover { color: var(--primary); }

/* ── SECTION BLOCK WRAPPER ───────────────── */
.section-block { padding-top: 28px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #1a1a1a;
  padding-top: 8px;
  margin-bottom: 4px;
}
.ver-mas {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--primary);
  border: 1px solid var(--primary);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.ver-mas span { padding: 6px 11px; }
.ver-mas .arrow-btn {
  background: var(--primary);
  color: #fff;
  padding: 6px 9px;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
}
.ver-mas:hover { background: var(--primary); color: #fff; }

/* ── HISTORIAS GRID ──────────────────────── */
.historias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 16px;
}
.historia-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.historia-img {
  width: 120px;
  height: 82px;
  object-fit: cover;
}
.historia-img-placeholder {
  width: 120px;
  height: 82px;
  background: linear-gradient(160deg, #c8d6e0 0%, #a8b8c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #7a8f9a;
}
.historia-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.historia-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.historia-title:hover { color: var(--primary); }

/* ── BOTTOM: DETECTOR + PODCAST ──────────── */
.bottom-sections {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  padding-bottom: 48px;
}
.detector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 16px;
}
.detector-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detector-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.detector-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(160deg, #cfd9e0 0%, #b0bfc8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #7a8f9a;
}
.detector-card-body { padding-top: 10px; }
.badge-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.detector-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}
.detector-title:hover { color: var(--primary); }

/* Podcast sidebar */
.podcast-sidebar {
  padding-left: 24px;
  padding-top: 16px;
}
.podcast-item {
  padding: 14px 0;
}
.podcast-item:first-child { padding-top: 0; }
.podcast-show {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.3;
}
.podcast-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}
.podcast-title:hover { color: var(--primary); }

/* ── FOOTER ──────────────────────────────── */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 36px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand .site-logo { color: #fff; font-size: 22px; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: #aaa; line-height: 1.6; max-width: 340px; }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  align-items: center;
  padding-top: 4px;
}
.footer-nav a { font-size: 14px; color: #aaa; white-space: nowrap; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #2e2e2e;
  font-size: 13px;
  color: #555;
}
.footer-disclaimer {
  font-size: 11px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 12px;
}
.site-disclaimer {
  font-size: 11px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 12px;
  text-align: center;
}
.footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-copyright a { color: #555; }
.footer-copyright a:hover { color: #888; }

/* ── OPINION SECTION ─────────────────────── */
.opinion-section { padding-top: 28px; }
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 16px;
}
.opinion-card {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.opinion-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(160deg, #4a5568 0%, #2d3748 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 13px;
}
.opinion-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
}
.opinion-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  opacity: 0.85;
}
.opinion-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.opinion-title:hover { opacity: 0.85; }

/* ── EXPERT NETWORK SECTION ──────────────── */
.experts-section { padding-top: 28px; padding-bottom: 28px; }
.experts-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
.experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 16px;
}
.experts-featured-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(160deg, #c8d6e0 0%, #a8b8c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7a8f9a;
  margin-bottom: 14px;
}
.experts-feat-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.experts-feat-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.experts-feat-title:hover { color: var(--primary); }
.experts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.expert-item {
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}
.expert-item:first-child { padding-top: 0; }
.expert-item:last-child { border-bottom: none; }
.expert-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.expert-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.expert-title:hover { color: var(--primary); }

/* ── 4-COLUMN MULTI-CATEGORY STRIP ─────────── */
.quad-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 16px;
}
.quad-col-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 4px;
}

/* ── SPAN DISPLAY FIX (converted from block elements) ── */
.featured-title,
.featured-secondary-title,
.rec-title,
.historia-title,
.detector-title,
.podcast-title,
.opinion-title,
.experts-feat-title,
.expert-title { display: block; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .top-bar { justify-content: space-between; }
  .hamburger-btn { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav-inner { flex-direction: column; padding: 0; }
  .main-nav-list { flex-direction: column; overflow-x: visible; width: 100%; }
  .main-nav-list li a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .homepage-top { grid-template-columns: 1fr; }
  .featured-article { order: -1; }
  .envivo-sidebar { padding-right: 0; padding-bottom: 20px; }
  .recomendados-sidebar { padding-left: 0; }
  .historias-grid { grid-template-columns: 1fr; }
  .bottom-sections { grid-template-columns: 1fr; }
  .detector-grid { grid-template-columns: 1fr; }
  .quad-cols { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .experts-split { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .opinion-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .quad-cols { grid-template-columns: 1fr; }
  .podcast-sidebar { padding-left: 0; }

  /* ── Content centering ── */
  .section-title { text-align: left; }
  .historia-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .historia-img { width: 100%; height: 160px; }
  .envivo-item { text-align: center; }
  .envivo-content { align-items: center; }
  .rec-item { text-align: center; }
  .detector-card { text-align: center; }
  .featured-article { text-align: center; }
  .featured-secondary { justify-content: center; }
  .expert-item { text-align: center; }
  .podcast-item { text-align: center; }
  .quad-col-head { text-align: center; }

  /* ── Footer ── */
  .footer-inner { align-items: center; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { text-align: center; }
  .footer-nav { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .footer-nav a { white-space: normal; text-align: center; }
  .footer-bottom { text-align: center; }
  .footer-copyright { flex-direction: column; align-items: center; gap: 8px; }
  .site-disclaimer { text-align: center; }
}

/* ══════════════════════════════════════════
   LAYOUT RESET
══════════════════════════════════════════ */
.home .container.main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0;
}

.container.layout .row.layout {
  margin: 0;
}

.container.layout .row.layout > .cols {
  overflow-x: hidden;
}

.home .container.layout .row.layout > .cols {
  padding: 0;
}

.pages .main-wrapper .container.main {
  padding: 24px 16px;
}

/* ══════════════════════════════════════════
   FONTS RESET
══════════════════════════════════════════ */
.main-paragraph h1,
.main-paragraph h2 {
  font-weight: 700;
  color: var(--text);
}

.main-paragraph h1,
.main-paragraph h2,
.main-paragraph h3,
.main-paragraph p,
.main-paragraph strong {
  color: var(--text);
}

.main-paragraph h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.main-paragraph h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

.main-paragraph h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 24px 0 10px;
}

.main-paragraph p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.main-paragraph strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .main-paragraph h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .main-paragraph h2 {
    font-size: 25px;
    margin: 32px 0 16px;
  }

  .main-paragraph h3 {
    font-size: 20px;
    margin: 22px 0 8px;
  }

  .main-paragraph p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
}

/* ══════════════════════════════════════════
   TABLE RESET
══════════════════════════════════════════ */
table { margin: 32px 0; }

table th, table td {
  border-color: var(--border) !important;
  padding: 8px 16px !important;
}

table td {
  color: var(--text) !important;
}

table th {
  background: var(--primary-500) !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: bold !important;
}

table tbody tr:nth-child(even) td {
  background: var(--surface-100) !important;
}

@media (max-width: 992px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    border: 0 !important;
  }
}

/* ══════════════════════════════════════════
   CONTACT US FORM
══════════════════════════════════════════ */
#contact-form {
  margin: 45px auto 0;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  flex: 1;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  outline: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  min-width: 100%;
}

#contact-form input:active,
#contact-form input:focus,
#contact-form textarea:active,
#contact-form textarea:focus {
  border: 2px solid var(--primary-500);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--gray-600);
}

#contact-form button {
  background: var(--primary-500);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

#contact-form button:hover {
  background: var(--accent-500);
}

/* ═══════════════════════════════════
           WIDGETS
═══════════════════════════════════ */

/* IMAGE STYLE RESET */
.item-current-image img {
  box-shadow: none !important;
  border-radius: 4px !important;
  border-color: var(--gray-300) !important;
}

/* SUBLIST */
.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 500;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  color: var(--primary-800);
  background: var(--surface-100);
  border-color: var(--primary-100);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--accent-500);
  color: var(--white);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

/* ── SIBLING LINK-BUTTON: envivo-style ── */
.sibling.link-button {
  background: #E8E4D9;
  border-top: 2px solid #1a1a1a;
  padding-top: 10px;
  padding-right: 20px;
  padding-left: 12px;
  padding-bottom: 20px;
}

.sibling.link-button h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 20px;
  padding-top: 6px;
  display: flex;
  align-items: center;
}

.sibling.link-button repeat {
  display: block;
  position: relative;
}

.sibling.link-button repeat::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 9px;
  width: 2px;
  background: var(--orange);
}

.sibling.link-button .bubbles-link {
  display: block;
  position: relative;
  padding: 10px 0 10px 24px;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
}

.sibling.link-button .bubbles-link:first-child {
  padding-top: 2px;
}

.sibling.link-button .bubbles-link::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 100%;
  z-index: 1;
}

.sibling.link-button .bubbles-link:first-child::before {
  top: 8px;
}

.sibling.link-button .bubbles-outer {
  height: auto;
  padding: 0;
}

.sibling.link-button .bubbles-chip {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 700;
  height: auto;
  line-height: 1.4;
  padding: 0;
  position: static;
  transition: color 0.15s;
}

.sibling.link-button .bubbles-chip:hover {
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 0;
}

.sibling.link-button .bubbles-chip:active,
.sibling.link-button .bubbles-chip:focus {
  background: transparent;
  color: var(--primary);
}

.sibling.link-button .bubbles-chip::after {
  display: none;
}

.sibling.link-button .bubbles-chip-text {
  display: block;
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%23177A49'/%3E%3C/svg%3E%0A");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* SUBLIST CARDS */
.item-sublist:has(.sublist.card) .row > div {
  padding: 5px !important;
}

.sublist.card {
  border: none;
  border-radius: 6px;
  box-shadow: var(--box-shadow-md);
  transition: 0.2s ease-in;
}

.sublist.card:hover {
  box-shadow: var(--box-shadow-lg);
  color: var(--primary-500);
  transform: translateY(-4px);
}

.sublist.card h5 {
  margin-bottom: 0;
  font-weight: 500;
}

.sublist.card .card-body {
  padding: 16px;
}

@media (max-width: 767.98px) {
  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
    gap: 10px;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .sublist.card .card-img-top {
    border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
    padding: 1rem;
  }

  .sublist.card .card-body * {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card .card-body h5 {
    font-size: 16px;
  }
}

/* ── Semibold headings on non-homepage pages ── */
.pages h1,
.pages h2,
.pages h3,
.pages h4,
.pages h5,
.pages h6 {
  font-weight: 600;
}
