* { box-sizing: border-box; }

:root {
  --bg-main: #030405;
  --bg-card: #0d0f10;
  --bg-card-soft: #151719;
  --text-main: #f4f4f1;
  --text-soft: #b7b7b1;
  --text-muted: #74746f;
  --line-soft: rgba(255,255,255,.08);
  --acid: #c9e600;
  --acid-soft: #a9c900;
  --acid-green: #c9e600;
  --diagram-accent: #e8ff2a;
  --diagram-bg: #000000;
  --status-success-bg: rgba(201, 230, 0, 0.16);
  --status-success-text: #e2ff5c;
  --status-success-border: rgba(201, 230, 0, 0.38);
  --status-pending-bg: rgba(243, 154, 0, 0.22);
  --status-pending-text: #ffcc66;
  --status-pending-border: rgba(243, 154, 0, 0.48);
  --status-error-bg: rgba(220, 60, 60, 0.2);
  --status-error-text: #ff9b9b;
  --status-error-border: rgba(255, 100, 100, 0.42);
  --orange: #f39a00;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 80px rgba(0,0,0,.55);
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  background:
    radial-gradient(circle at 78% 18%, rgba(201,230,0,.18), transparent 24%),
    radial-gradient(circle at 55% 42%, rgba(201,230,0,.08), transparent 28%),
    #030405;
  min-height: 100vh;
  overflow: hidden;
}

.container-135 {
  --page-gutter: 96px;
  --mobile-nav-clearance: 64px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 36px var(--page-gutter) 56px;
}

.nav-135 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 5;
  margin-bottom: 64px;
}

.nav-135__desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* ── Solapa móvil (menú superior centrado) ── */
.nav-flap {
  display: none;
}

.nav-flap__shell {
  background: rgba(6, 7, 8, 0.94);
  border: 1px solid rgba(201, 230, 0, 0.28);
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-flap__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  font: inherit;
  min-width: 108px;
}

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

@media (min-width: 993px) {
  .nav-mobile-brand {
    display: none !important;
  }
}

.nav-flap__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acid);
}

.nav-flap__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.nav-flap--open .nav-flap__chevron {
  transform: rotate(-135deg) translateY(2px);
}

.nav-flap__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 360px);
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(201, 230, 0, 0.22);
  background: rgba(8, 9, 10, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.nav-flap--open .nav-flap__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-flap__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.nav-flap__links a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-flap__links a:hover,
.nav-flap__links a.nav-active {
  background: rgba(201, 230, 0, 0.1);
  color: var(--acid);
}

.nav-flap__cta {
  width: 100%;
  justify-content: center;
}

.nav-flap--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
}

@media (prefers-reduced-motion: reduce) {
  .nav-flap,
  .nav-flap__panel,
  .nav-flap__chevron,
  .nav-mobile-brand {
    transition: none;
  }
}

.logo-135 { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo-135 .logo-img { height: 56px; width: auto; display: block; }

@media (min-width: 993px) {
  .nav-135__desktop .logo-135 .logo-img {
    height: 68px;
  }
}

.footer-logo .logo-img { height: 48px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .25s ease;
}

.nav-links a:hover {
  color: var(--acid);
}
.nav-links a.nav-active {
  color: var(--acid);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acid);
  border-radius: 1px;
}

.btn-acid, .btn-outline-dark135 { display: inline-flex; align-items: center; gap: 14px; height: 42px; border-radius: 999px; padding: 0 18px 0 22px; font-size: 14px; font-weight: 700; text-decoration: none; transition: all .25s ease; }

.btn-acid {
  background: linear-gradient(135deg, #e8ff1f, var(--acid));
  color: #060606;
  box-shadow: 0 0 0 1px rgba(201,230,0,.45), 0 8px 28px rgba(201,230,0,.22);
}

.btn-acid:hover {
  transform: translateY(-2px);
  color: #000;
  box-shadow: 0 0 0 1px rgba(201,230,0,.75), 0 12px 40px rgba(201,230,0,.3);
}

.btn-outline-dark135 {
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text-main);
  background: rgba(255,255,255,.02);
}

.btn-outline-dark135:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #090909;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.hero-135 { min-height: 560px; display: grid; grid-template-columns: 42% 58%; align-items: center; position: relative; border-bottom: 1px solid var(--line-soft); }

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow { color: var(--acid); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; }

.hero-title {
  font-size: clamp(50px, 5.4vw, 88px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 700;
  margin: 0 0 26px;
}

.hero-title em {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08em;
  line-height: .72;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--acid);
}

.hero-text { max-width: 430px; color: var(--text-soft); font-size: 17px; line-height: 1.65; margin-bottom: 34px; }

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0 0 34px;
  max-width: min(640px, 100%);
}

.hero-highlight {
  min-width: 0;
}

.hero-highlight__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.hero-highlight__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(201, 230, 0, 0.35));
}

.hero-highlight__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.hero-highlight__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-subscribe-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 12px;
}

.hero-subscribe__pointer {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto -12px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(-28px);
}

.hero-subscribe-stack .hero-subscribe {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 430px;
  margin-bottom: 40px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-subscribe-stack .hero-subscribe__row {
  flex-direction: column;
}

.hero-subscribe-stack .hero-subscribe__btn {
  width: 100%;
  height: 44px;
}

.hero-subscribe {
  max-width: 430px;
  margin-bottom: 40px;
}

.hero-subscribe__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--acid);
}

.hero-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-subscribe__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.hero-subscribe__input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}

.hero-subscribe__input:focus {
  border-color: rgba(201,230,0,.55);
}

.hero-subscribe__btn {
  flex-shrink: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8ff1f, var(--acid-green));
  color: #060606;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.hero-subscribe__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,230,0,.22);
}

.hero-subscribe__btn:disabled {
  opacity: .65;
  cursor: wait;
}

.hero-subscribe__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.55);
  cursor: pointer;
}

.hero-subscribe__consent input[type="checkbox"] {
  margin-top: 2px;
  width: auto;
  flex-shrink: 0;
}

.hero-subscribe__consent a {
  color: var(--acid);
  text-decoration: underline;
}

.hero-subscribe__status.cw-nl-status {
  margin-top: 4px;
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 12px;
}

.hero-subscribe__status.cw-nl-status.success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}

.hero-subscribe__status.cw-nl-status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.hero-subscribe__status.cw-nl-status.error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border: 1px solid var(--status-error-border);
}

.trusted-title {
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.trusted-logos { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.38); font-size: 18px; font-weight: 700; filter: grayscale(1); opacity: .7; }

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 560px;
}

.hero-person { position: absolute; right: 5%; bottom: 0; width: min(58%, 520px); filter: grayscale(1) contrast(1.1); z-index: 2; }

.floating-product {
  position: absolute;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 25px 70px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  z-index: 3;
  object-fit: cover;
}

.product-flow { top: 80px; left: 18%; width: 180px; transform: rotate(-8deg); }
.product-continuity { top: 225px; left: 12%; width: 205px; transform: rotate(-13deg); }
.product-ux { top: 155px; right: 5%; width: 160px; transform: rotate(9deg); }
.product-book { bottom: 55px; left: 34%; width: 190px; transform: rotate(-2deg); }
.product-timebox { bottom: 150px; left: 18%; width: 150px; transform: rotate(-7deg); }

.hand-note {
  position: absolute; left: 4%; bottom: 78px; color: #f1f1ec; font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-size: 32px; line-height: .95; transform: rotate(-6deg); z-index: 4;
}
.hand-note span { display: block; width: 150px; height: 4px; background: var(--acid); margin-top: 14px; transform: rotate(-3deg); }

.hero-135--full-image,
.hero-135--full-video {
  display: block;
  min-height: clamp(560px, 85vh, 900px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  padding-bottom: 56px;
}

.hero-135--full-image.hero-135--width-contained,
.hero-135--full-video.hero-135--width-contained {
  border-radius: var(--radius-lg);
}

.hero-135--full-image.hero-135--width-full,
.hero-135--full-video.hero-135--width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.site-wrapper--hero-under-nav {
  --hero-header-overlap: calc(36px + 56px);
}

.site-wrapper--hero-under-nav .nav-135 {
  z-index: 50;
  margin-bottom: 0;
}

.site-wrapper--hero-under-nav .nav-flap {
  z-index: 1200;
}

.site-wrapper--hero-under-nav .nav-135 + .hero-135--width-full {
  margin-top: calc(-1 * var(--hero-header-overlap));
}

.site-wrapper--hero-under-nav .nav-135 + .hero-135--width-full .hero-full-inner {
  padding-top: calc(var(--hero-header-overlap) + 72px);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-bg-media--image {
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: var(--hero-bg-position, 50% 50%);
}

.hero-bg-media--video {
  object-position: var(--hero-bg-position, 50% 50%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, .55) + .15)) 0%,
    rgba(0, 0, 0, var(--hero-overlay-opacity, .55)) 45%,
    rgba(0, 0, 0, calc(var(--hero-overlay-opacity, .55) + .05)) 100%
  );
  pointer-events: none;
}

.hero-full-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: 72px 0 48px;
}

.hero-full-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.hero-full-grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-full-grid__main .hero-copy {
  max-width: none;
}

.hero-full-grid__aside {
  align-self: center;
  width: min(100%, 380px);
}

.hero-full-grid__aside .hero-subscribe-stack {
  width: 100%;
}

.hero-full-grid__aside .hero-subscribe-stack .hero-subscribe {
  max-width: none;
  margin-bottom: 0;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 12;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: var(--acid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.hero-scroll-hint:hover {
  border-color: rgba(201, 230, 0, .65);
  background: rgba(0, 0, 0, .55);
  transform: translateX(-50%) translateY(2px);
}

.hero-scroll-hint__icon {
  font-size: 22px;
  line-height: 1;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero-scroll-hint__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 230, 0, .22);
  animation: hero-scroll-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes hero-scroll-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint__icon,
  .hero-scroll-hint__ring {
    animation: none;
  }
}

.hero-135--width-full .hero-full-inner {
  width: min(100%, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.hero-135--width-contained .hero-full-inner {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.hero-135--full-image .hero-copy,
.hero-135--full-video .hero-copy {
  max-width: min(640px, 100%);
}

.hero-135--full-image .hero-full-grid--solo .hero-copy,
.hero-135--full-video .hero-full-grid--solo .hero-copy {
  max-width: min(720px, 100%);
}

.hero-135--width-contained.hero-135--full-image .hero-copy,
.hero-135--width-contained.hero-135--full-video .hero-copy {
  padding-left: 0;
}

.hero-135--full-image .hero-text,
.hero-135--full-video .hero-text {
  max-width: none;
  color: rgba(255, 255, 255, .82);
}

.hero-135--full-image .btn-outline-dark135,
.hero-135--full-video .btn-outline-dark135 {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.hero-135--full-image .btn-outline-dark135:hover,
.hero-135--full-video .btn-outline-dark135:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.services-135 {
  padding: 0;
  border-bottom: none;
}

.section-header-135 {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title { font-size: 26px; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid transparent;
}

.service-card {
  padding: 0 26px;
  min-height: 118px;
  border-left: 1px solid var(--line-soft);
}

.service-card:first-child {
  border-left: 0;
}

.service-icon {
  font-size: 42px;
  color: var(--acid);
  margin-bottom: 14px;
  line-height: 1;
}

.service-card:nth-child(4) .service-icon {
  color: var(--orange);
}

.service-title { font-size: 17px; line-height: 1.2; font-weight: 700; margin-bottom: 10px; }

.service-text { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0; }

.projects-135 {
  padding: 26px 0 10px;
}

.home-rich-text {
  padding: 0 0 12px;
}

.home-rich-text--advanced .article-advanced-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.home-rich-text--advanced .article-advanced-root {
  display: block;
  width: 100%;
}

.projects-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.view-all { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; font-weight: 600; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.project-card {
  background: linear-gradient(180deg, #151719 0%, #0b0d0e 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  min-height: 210px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,230,0,.5);
}

.project-image { height: 106px; background: #17191b; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 15px 16px 18px;
  position: relative;
}

.project-category { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }

.project-title { font-size: 17px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 8px; }

.project-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); margin: 0; max-width: 88%; }

.project-arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-posts-135 {
  padding: 42px 0 18px;
}

.home-posts-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #141618 0%, #0a0c0d 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.home-post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,230,0,.45);
  box-shadow: 0 22px 44px rgba(0,0,0,.22);
}

.home-post-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #151719;
}

.home-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-post-card__body {
  padding: 18px 18px 20px;
}

.home-post-card__date {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-post-card__body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.home-post-card__body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-post-card__link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .container-135 {
    --page-gutter: 48px;
    padding: 32px var(--page-gutter);
  }

  .projects-grid,
  .services-grid,
  .home-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 24px 18px;
  }
}

@media (max-width: 992px) {
  .container-135 {
    --page-gutter: 32px;
    --mobile-nav-clearance: 72px;
    padding-top: 28px;
  }

  .nav-mobile-brand {
    display: flex;
    align-items: center;
    position: fixed;
    top: 10px;
    left: var(--page-gutter);
    z-index: 1201;
    text-decoration: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-mobile-brand--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .nav-mobile-brand .logo-img {
    height: clamp(46px, 13vw, 56px);
    width: auto;
    display: block;
  }

  .nav-flap {
    display: block;
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  }

  .nav-flap.nav-flap--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
  }

  .nav-flap__shell {
    padding: 10px 18px;
  }

  .nav-135 {
    margin-bottom: 0;
    min-height: var(--mobile-nav-clearance);
  }

  .site-wrapper--hero-under-nav {
    --hero-header-overlap: 0;
  }

  .site-wrapper--hero-under-nav .nav-135 + .hero-135--width-full {
    margin-top: 0;
  }

  .site-wrapper--hero-under-nav .nav-135 + .hero-135--width-full .hero-full-inner {
    padding-top: 16px;
  }

  .nav-135__desktop {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero-full-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-full-grid__aside {
    max-width: none;
  }

  .hero-full-grid:not(.hero-full-grid--solo) .hero-full-grid__main .hero-copy {
    padding-inline: clamp(20px, 3vw, 28px);
  }

  .hero-135--full-image .hero-full-inner,
  .hero-135--full-video .hero-full-inner,
  .hero-135--width-contained .hero-full-inner {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero-135 {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-person { right: 10%; width: 48%; }

  .hero-title {
    font-size: clamp(54px, 11vw, 84px);
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .container-135 {
    --page-gutter: 22px;
    --mobile-nav-clearance: 68px;
    padding: 28px var(--page-gutter);
  }

  .site-wrapper--hero-under-nav .nav-135 + .hero-135--width-full .hero-full-inner {
    padding-top: 20px;
  }

  .hero-actions,
  .section-header-135,
  .projects-top,
  .home-posts-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-subscribe__row {
    flex-direction: column;
  }

  .hero-subscribe__btn {
    width: 100%;
    height: 44px;
  }

  .trusted-logos {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 15px;
  }

  .services-grid,
  .projects-grid,
  .home-posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-135--full-image,
  .hero-135--full-video {
    min-height: 460px;
    padding-bottom: 52px;
  }

  .hero-full-inner {
    padding-top: 24px;
    padding-bottom: 40px;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero-full-grid__aside {
    max-width: none;
    padding: 20px;
  }

  .hero-full-grid:not(.hero-full-grid--solo) .hero-full-grid__main .hero-copy {
    padding-inline: 20px;
  }

  .hero-scroll-hint {
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .floating-product { width: 120px !important; }
  .hand-note { font-size: 24px; }
}

.content-shell { min-height: 100vh; }
.content-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--line-soft); }
.content-title { margin: 0 0 14px; font-size: clamp(38px, 5vw, 72px); letter-spacing: -.05em; line-height: .95; }
.content-intro { max-width: 760px; margin: 0; color: var(--text-soft); font-size: 18px; line-height: 1.6; }
.content-grid { padding: 30px 0 24px; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.content-card {
  background: linear-gradient(180deg, #151719 0%, #0b0d0e 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.content-card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.content-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.content-cta-wrap { padding: 10px 0 30px; }

@media (max-width: 1200px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
}

.footer-135 {
  margin-top: 34px;
  padding: 0 0 24px;
}

.footer-135-top-line {
  height: 1px;
  background: var(--line-soft);
  margin-bottom: 26px;
}

.footer-135-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr .9fr;
  gap: 26px;
}

.footer-logo { margin-bottom: 12px; display: inline-block; }

.footer-brand p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.45;
}

.footer-script {
  color: var(--acid) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.05 !important;
}

.footer-col h4 {
  margin: 3px 0 12px;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 16px;
  margin: 0 0 8px;
  transition: color .25s ease;
}

.footer-col a:hover { color: var(--acid); }

.footer-social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-social-links a {
  color: var(--text-main);
  font-size: 30px;
  line-height: 1;
}

.footer-copy {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 1200px) {
  .footer-135-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-135-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══════════════════════════════════════
   Listing Pages (dynamic_listing widget)
   ═══════════════════════════════════════ */

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: transparent;
  text-decoration: none;
  transition: all .2s;
}
.pill:hover { color: var(--text-main); border-color: #444; }
.pill.active {
  color: var(--bg-dark);
  background: var(--acid-green);
  border-color: var(--acid-green);
  font-weight: 600;
}

.listing-search {
  position: relative;
  width: 260px;
}
.listing-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.listing-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.listing-search input:focus { border-color: var(--acid-green); }
.listing-search input::placeholder { color: var(--text-muted); }

/* ── Listing Grid ── */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--acid-green);
  box-shadow: 0 8px 32px rgba(124, 255, 79, .08);
}

.lc-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
}
.lc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.listing-card:hover .lc-image img { transform: scale(1.04); }

.lc-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 36px;
}

.lc-body { padding: 20px; }

.lc-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--acid-green);
  margin-bottom: 8px;
}

.lc-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}

.lc-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Empty state ── */

.listing-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.listing-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: .35;
}
.listing-empty p { font-size: 16px; margin-bottom: 24px; }

/* ── Pagination ── */

.listing-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 56px;
}

.pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: all .2s;
}
.pg-link:hover { color: var(--text-main); border-color: #444; }
.pg-active {
  color: var(--bg-dark) !important;
  background: var(--acid-green);
  border-color: var(--acid-green);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   Detail Page
   ═══════════════════════════════════════ */

.detail-hero-bg {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 40px;
  min-height: 240px;
  height: clamp(240px, 42vw, 480px);
  max-height: 480px;
  overflow: hidden;
  background-color: #121416;
}

.detail-hero-bg--compact {
  min-height: 160px;
  height: clamp(160px, 26vw, 300px);
  max-height: 300px;
  margin-bottom: 28px;
}

.detail-header { margin: 0 auto 48px; max-width: 960px; }

.detail-back {
  display: inline-block;
  font-size: 13px;
  color: var(--acid-green);
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity .2s;
}
.detail-back:hover { opacity: .7; }

.detail-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--acid-green);
  margin-bottom: 12px;
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
}

.detail-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 12px;
}

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

.detail-content {
  margin: 0 auto 64px;
  max-width: 960px;
}

/* ── WYSIWYG rendered output ── */

.wysiwyg-output { line-height: 1.8; font-size: 16px; color: var(--text-main); }
.wysiwyg-output h2 { font-size: 28px; margin: 40px 0 16px; font-weight: 700; }
.wysiwyg-output h3 { font-size: 22px; margin: 32px 0 12px; font-weight: 600; }
.wysiwyg-output p  { margin: 0 0 20px; }
.wysiwyg-output img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}
.wysiwyg-output blockquote {
  border-left: 3px solid var(--acid-green);
  padding: 16px 24px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(255,255,255,.02);
  border-radius: 0 8px 8px 0;
}
.wysiwyg-output blockquote.cw-quote {
  font-size: 1.12em;
  line-height: 1.65;
}
.wysiwyg-output blockquote.cw-quote p:last-child {
  margin-bottom: 0;
}
.wysiwyg-output blockquote.cw-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--acid-green);
}
.wysiwyg-output hr.cw-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
  height: 0;
  background: none;
}
.wysiwyg-output aside.cw-callout {
  display: block;
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(124, 255, 79, 0.28);
  background: rgba(124, 255, 79, 0.07);
  color: var(--text-main);
  font-style: normal;
}
.wysiwyg-output aside.cw-callout p {
  margin: 0 0 12px;
}
.wysiwyg-output aside.cw-callout p:last-child {
  margin-bottom: 0;
}
.wysiwyg-output aside.cw-callout .cw-callout__label {
  margin: 0 0 8px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid-green);
}
.wysiwyg-output aside.cw-callout--note {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
}
.wysiwyg-output aside.cw-callout--note .cw-callout__label {
  color: #93c5fd;
}
.wysiwyg-output aside.cw-callout--tip {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}
.wysiwyg-output aside.cw-callout--tip .cw-callout__label {
  color: #fcd34d;
}
.wysiwyg-output pre {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}
.wysiwyg-output pre.cw-code-block {
  padding: 0;
  background: #121316;
  border: 1px solid rgba(124, 255, 79, 0.18);
}
.wysiwyg-output pre.cw-code-block code {
  display: block;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e8ffe0;
  white-space: pre-wrap;
  word-break: break-word;
}
.wysiwyg-output code { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.wysiwyg-output code.cw-code-inline,
.wysiwyg-output :not(pre) > code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  color: #d7ffd0;
  border: 1px solid rgba(124, 255, 79, 0.15);
}
.wysiwyg-output pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
  font-size: inherit;
}
.wysiwyg-output a { color: var(--acid-green); }
.wysiwyg-output ul,
.wysiwyg-output ol { padding-left: 24px; margin: 16px 0; }
.wysiwyg-output li  { margin-bottom: 8px; }
.wysiwyg-output iframe {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

/* ── Responsive listing + detail ── */

@media (max-width: 992px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-toolbar { flex-direction: column; align-items: stretch; }
  .listing-search { width: 100%; }
}

@media (max-width: 768px) {
  .listing-grid { grid-template-columns: 1fr; }
  .detail-hero-bg {
    border-radius: 12px;
    max-height: 320px;
    height: clamp(200px, 52vw, 320px);
    min-height: 200px;
  }
  .detail-hero-bg--compact {
    max-height: 220px;
    height: clamp(140px, 40vw, 220px);
    min-height: 140px;
  }
}

/* ═══════════════════════════════════════
   Content Widgets (.cw-*)
   WYSIWYG-inserted rich content blocks
   ═══════════════════════════════════════ */

/* ── Width Control ── */
.cw-block { margin: 32px 0; }
.cw-block:first-child { margin-top: 0; }
.cw-block > * { margin: 0 !important; }
.cw-w-screen { 
    width: 100vw !important; 
    max-width: 100vw !important; 
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}
.cw-w-screen .cw-hero,
.cw-w-screen .cw-banner,
.cw-w-screen .cw-video {
    border-radius: 0 !important;
}
.cw-w-screen .cw-hero-overlay,
.cw-w-screen .cw-banner {
    padding-left: calc((100vw - min(100vw, 1440px)) / 2 + 96px) !important;
    padding-right: calc((100vw - min(100vw, 1440px)) / 2 + 96px) !important;
}
@media (max-width: 1200px) {
    .cw-w-screen .cw-hero-overlay,
    .cw-w-screen .cw-banner {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}
@media (max-width: 768px) {
    .cw-w-screen .cw-hero-overlay,
    .cw-w-screen .cw-banner {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

.cw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 42px; border-radius: 999px; padding: 0 22px; font-size: 14px;
  font-weight: 700; text-decoration: none; transition: all .25s ease;
  background: var(--acid-green) !important;
  color: var(--bg-dark) !important;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}
.cw-btn:hover {
  background: #a9ff82 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 255, 79, .25);
}

.cw-w-full  { max-width: 100%; }
.cw-w-wide  { max-width: 75%; }
.cw-w-half  { max-width: 50%; }
.cw-w-compact { max-width: 33.33%; }
@media (max-width: 768px) {
  .cw-w-wide, .cw-w-half, .cw-w-compact { max-width: 100%; }
}

/* ── Hero ── */
.cw-hero { position: relative; border-radius: 16px; overflow: hidden; margin: 32px 0; }
.cw-hero > img { width: 100%; display: block; min-height: 480px; max-height: 80vh; object-fit: cover; }
.cw-hero-overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; padding: 40px 32px; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cw-hero-overlay h2 { color: #fff; font-size: clamp(32px, 5vw, 64px); margin: 0 0 16px; line-height: 1.1; font-weight: 700; max-width: 800px; }
.cw-hero-overlay p { color: rgba(255,255,255,.9); margin: 0 0 24px; font-size: 18px; max-width: 600px; line-height: 1.6; }
.wysiwyg-output .cw-hero-overlay a, .cw-hero-overlay a { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 46px; border-radius: 999px; padding: 0 26px; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: all .25s ease; background: var(--acid-green) !important; color: var(--bg-dark) !important; border: none !important; cursor: pointer; margin-top: 8px; }
.wysiwyg-output .cw-hero-overlay a:hover, .cw-hero-overlay a:hover { background: #a9ff82 !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124, 255, 79, .25); border-bottom: none !important; }

/* ── Banner / CTA ── */
.cw-banner { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 16px; padding: 56px 36px; text-align: center; margin: 32px 0; }
.cw-banner h2 { color: #fff; margin: 0 0 10px; font-size: 26px; font-weight: 700; }
.cw-banner p { color: rgba(255,255,255,.72); margin: 0 0 22px; font-size: 16px; }

/* ── Featured Card ── */
.cw-card-featured { border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; margin: 32px 0; background: var(--bg-card); }
.cw-card-img { position: relative; }
.cw-card-img img { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.cw-badge { position: absolute; top: 14px; left: 14px; background: var(--acid-green); color: var(--bg-dark); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px; letter-spacing: .06em; }
.cw-card-body { padding: 24px; }
.cw-card-body h3 { margin: 0 0 10px; font-size: 22px; color: var(--text-main); font-weight: 700; }
.cw-card-body > p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.cw-meta { color: #555 !important; font-size: 13px; }

/* ── Article List ── */
.cw-list { border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; margin: 32px 0; background: var(--bg-card); }
.cw-list-item { display: flex; gap: 16px; padding: 16px 20px; align-items: center; border-bottom: 1px solid var(--border-subtle); transition: background .15s; }
.cw-list-item:last-child { border-bottom: none; }
.cw-list-item:hover { background: rgba(255,255,255,.02); }
.cw-list-item img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cw-list-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--text-main); font-weight: 600; }
.cw-date { color: var(--acid-green); font-size: 12px; }

/* ── Products Grid ── */
.cw-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.cw-product { border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-card); padding: 18px; text-align: center; transition: transform .2s, border-color .2s; }
.cw-product:hover { transform: translateY(-3px); border-color: var(--acid-green); }
.cw-product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.cw-product h4 { margin: 0 0 6px; font-size: 15px; color: var(--text-main); font-weight: 600; }
.cw-price { color: var(--acid-green); font-weight: 700; font-size: 17px; display: block; margin-bottom: 4px; }
.cw-rating { color: #F59E0B; font-size: 12px; }

/* ── Categories ── */
.cw-categories { border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; margin: 32px 0; background: var(--bg-card); }
.cw-cat { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); transition: background .15s; }
.cw-cat:last-child { border-bottom: none; }
.cw-cat:hover { background: rgba(255,255,255,.02); }
.cw-cat-icon { font-size: 20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border-radius: 10px; }
.cw-cat-name { flex: 1; font-weight: 500; color: var(--text-main); font-size: 15px; }
.cw-cat-count { background: rgba(255,255,255,.06); color: var(--text-muted); font-size: 13px; padding: 4px 12px; border-radius: 14px; font-weight: 500; }

/* ── Search ── */
.cw-search { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 28px; margin: 32px 0; background: var(--bg-card); }
.cw-search h3 { margin: 0 0 16px; font-size: 20px; color: var(--text-main); }
.cw-search-bar { background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 14px 18px; color: var(--text-muted); font-size: 15px; }
.cw-search-label { color: var(--text-muted); font-size: 13px; font-weight: 600; margin: 18px 0 10px; }
.cw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-tag { background: rgba(255,255,255,.04); color: #ccc; padding: 7px 16px; border-radius: 20px; font-size: 13px; border: 1px solid var(--border-subtle); transition: border-color .15s; }
.cw-tag:hover { border-color: var(--acid-green); }

/* ── Newsletter ── */
.cw-newsletter { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 40px 28px; margin: 32px 0; background: var(--bg-card); text-align: center; }
.cw-nl-icon { font-size: 44px; display: block; margin-bottom: 14px; }
.cw-newsletter h3 { margin: 0 0 8px; font-size: 20px; color: var(--text-main); }
.cw-newsletter > p { color: var(--text-muted); font-size: 15px; margin: 0 0 22px; }
.cw-nl-form { display: flex; max-width: 400px; margin: 0 auto; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); }
.cw-nl-input { flex: 1; background: rgba(255,255,255,.04); padding: 14px 18px; color: var(--text-muted); font-size: 14px; display: flex; align-items: center; }
.cw-nl-btn { background: var(--acid-green); color: var(--bg-dark); padding: 14px 22px; font-weight: 600; font-size: 14px; white-space: nowrap; display: flex; align-items: center; }

/* ── Testimonial ── */
.cw-testimonial { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 32px; margin: 32px 0; background: var(--bg-card); }
.cw-tq-mark { font-size: 52px; color: var(--acid-green); line-height: 1; display: block; margin-bottom: 8px; }
.cw-testimonial > p { color: #ccc; font-size: 16px; line-height: 1.7; font-style: italic; margin: 0 0 18px; }
.cw-tq-footer { display: flex; align-items: center; gap: 10px; }
.cw-tq-footer strong { color: var(--text-main); font-size: 15px; }
.cw-stars { color: #F59E0B; font-size: 14px; }

/* ── Popular Posts ── */
.cw-popular { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 24px; margin: 32px 0; background: var(--bg-card); }
.cw-popular h3 { margin: 0 0 16px; font-size: 20px; color: var(--text-main); }
.cw-pop-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .15s; }
.cw-pop-item:last-child { border-bottom: none; }
.cw-pop-item img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cw-pop-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--text-main); font-weight: 500; }
.cw-views { color: var(--text-muted); font-size: 12px; }

/* ── Video ── */
.cw-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; border-radius: 16px; margin: 32px 0; }
.cw-video iframe, .cw-video object, .cw-video embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Feature Split ── */
.cw-feat-split { display: flex; align-items: center; gap: 48px; margin: 48px 0; }
.cw-fs-reverse { flex-direction: row-reverse; }
.cw-fs-img { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); background: var(--bg-card); padding: 12px; border: 1px solid var(--border-subtle); }
.cw-fs-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.cw-fs-text { flex: 1; }
.cw-fs-text h2 { font-size: 32px; color: var(--text-main); margin: 0 0 16px; line-height: 1.2; font-weight: 700; }
.cw-fs-text p { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.6; }

/* ── FAQ ── */
.cw-faq { margin: 48px 0; }
.cw-faq h2 { font-size: 28px; color: var(--text-main); margin: 0 0 24px; text-align: center; }
.cw-faq-item { border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 12px; background: var(--bg-card); overflow: hidden; transition: border-color .2s; }
.cw-faq-item:hover { border-color: rgba(255,255,255,.15); }
.cw-faq-item summary { padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; outline: none; }
.cw-faq-question { margin: 0; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text-main); }
.cw-faq-item summary::-webkit-details-marker { display: none; }
.cw-faq-item summary::after { content: "↓"; font-size: 12px; color: var(--text-muted); transition: transform .2s; }
.cw-faq-item[open] summary::after { transform: rotate(180deg); }
.cw-faq-content { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.6; font-size: 15px; }
.cw-faq-content p { margin: 0; }

/* ── Responsive widgets ── */
@media (max-width: 768px) {
  .cw-products { grid-template-columns: repeat(2, 1fr); }
  .cw-nl-form { flex-direction: column; }
  .cw-nl-btn { justify-content: center; }
  .cw-feat-split, .cw-fs-reverse { flex-direction: column; gap: 24px; }
  .cw-fs-img { width: 100%; }
}
@media (max-width: 480px) {
  .cw-products { grid-template-columns: 1fr; }
}

/* ── Servicios Creativos e Innovación (bloque editorial) ── */
.cw-services-offering {
  width: 100%;
  margin: 48px 0;
  padding: 56px 48px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 230, 0, 0.08), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, transparent 55%),
    var(--bg-card);
  box-shadow: var(--shadow-soft);
}
.cw-so-header {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}
.cw-so-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}
.cw-so-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-main);
}
.cw-so-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}
.cw-so-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.cw-so-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.cw-so-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--acid), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cw-so-card:hover {
  border-color: rgba(201, 230, 0, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.cw-so-card:hover::before {
  opacity: 1;
}
.cw-so-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cw-so-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(201, 230, 0, 0.1);
  border: 1px solid rgba(201, 230, 0, 0.22);
}
.cw-so-card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px var(--acid));
}
.cw-so-card-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(201, 230, 0, 0.75);
  text-transform: uppercase;
}
.cw-so-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
}
.cw-so-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.cw-so-footer {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 230, 0, 0.2);
  background: rgba(201, 230, 0, 0.06);
}
.cw-so-footer-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--bg-main);
  font-size: 18px;
  font-weight: 800;
}
.cw-so-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.cw-so-footer strong {
  color: var(--text-main);
  font-weight: 700;
}
@media (max-width: 900px) {
  .cw-services-offering {
    padding: 40px 24px 32px;
  }
  .cw-so-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Galería / Carrusel de fotos ── */
.cw-gallery-carousel {
  width: 100%;
  margin: 48px 0;
  padding: 40px 0 8px;
}
.cw-gc-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 20px;
}
.cw-gc-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}
.cw-gc-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-main);
}
.cw-gc-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.cw-gc-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0 12px;
}
.cw-gc-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cw-gc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 20px;
}
.cw-gc-track::-webkit-scrollbar {
  display: none;
}
.cw-gc-slide {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cw-gc-slide-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cw-gc-slide-btn:hover {
  border-color: rgba(201, 230, 0, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cw-gc-slide-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cw-gc-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: var(--acid);
  font-size: 18px;
  line-height: 1;
  border: 1px solid rgba(201, 230, 0, 0.35);
  pointer-events: none;
}
.cw-gc-zoom::before {
  content: '⤢';
}
.cw-gc-slide figcaption h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.cw-gc-slide figcaption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.cw-gc-nav {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cw-gc-nav:hover:not(:disabled) {
  border-color: rgba(201, 230, 0, 0.5);
  background: rgba(201, 230, 0, 0.12);
  color: var(--acid);
}
.cw-gc-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.cw-gc-nav span {
  display: block;
  margin-top: -2px;
}

/* Lightbox */
.cw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cw-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.cw-lightbox__dialog {
  position: relative;
  width: min(100%, 1100px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cw-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.cw-lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 180px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.cw-lightbox__img-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.cw-lightbox__caption h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.cw-lightbox__caption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.cw-lightbox__close,
.cw-lightbox__prev,
.cw-lightbox__next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cw-lightbox__close:hover,
.cw-lightbox__prev:hover,
.cw-lightbox__next:hover {
  background: rgba(201, 230, 0, 0.18);
  border-color: rgba(201, 230, 0, 0.45);
}
.cw-lightbox__close {
  top: -8px;
  right: -8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}
.cw-lightbox__prev,
.cw-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.cw-lightbox__prev {
  left: -64px;
}
.cw-lightbox__next {
  right: -64px;
}
body.cw-lightbox-open {
  overflow: hidden;
}

/* ── Formas de entrar al laboratorio ── */
.cw-lab-entry {
  margin: 56px 0;
}

.cw-lab-entry__header {
  max-width: 760px;
  margin: 0 0 32px;
}

.cw-lab-entry__kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.cw-lab-entry__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text-main);
}

.cw-lab-entry__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.cw-lab-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.cw-lab-entry-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111316;
}

.cw-lab-entry-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-lab-entry-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--acid);
  color: #081018;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.cw-lab-entry-card__icon {
  position: relative;
  z-index: 3;
  width: 68px;
  height: 68px;
  margin: -34px auto 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 230, 0, 0.35);
  background: rgba(8, 10, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cw-lab-entry-card__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cw-lab-entry-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 24px;
  flex: 1;
}

.cw-lab-entry-card__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-main);
}

.cw-lab-entry-card__subtitle {
  margin: -4px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--acid);
}

.cw-lab-entry-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.cw-lab-entry-card__ideal {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.cw-lab-entry-card__ideal strong {
  color: var(--acid);
  font-weight: 700;
}

.cw-lab-entry-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.cw-lab-entry-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.cw-lab-entry-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-lab-entry-banner__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cw-lab-entry-banner__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.cw-lab-entry-banner__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .cw-lab-entry__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cw-lab-entry-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cw-lab-entry-banner__cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cw-lab-entry {
    margin: 40px 0;
  }

  .cw-lab-entry-card__body {
    padding: 16px 18px 20px;
  }
}

/* Controles de edición del carrusel (solo visibles en TinyMCE) */
.cw-gc-admin-bar,
.cw-gc-admin-footer {
  display: none;
}
body.mce-content-body .cw-gc-admin-bar,
body.mce-content-body .cw-gc-admin-footer {
  display: flex;
}
.cw-gc-admin-bar {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(201, 230, 0, 0.35);
  background: rgba(201, 230, 0, 0.06);
}
.cw-gc-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 230, 0, 0.35);
  background: rgba(201, 230, 0, 0.12);
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cw-gc-upload-btn:hover {
  background: rgba(201, 230, 0, 0.2);
  border-color: rgba(201, 230, 0, 0.55);
}
.cw-gc-upload-btn.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}
.cw-gc-upload-btn input {
  display: none;
}
.cw-gc-remove-btn,
.cw-gc-add-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cw-gc-remove-btn:hover {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.08);
}
.cw-gc-admin-footer {
  justify-content: center;
  margin-top: 8px;
  padding: 0 12px;
}
.cw-gc-add-btn {
  border-color: rgba(201, 230, 0, 0.35);
  color: var(--acid);
  background: rgba(201, 230, 0, 0.08);
}
.cw-gc-add-btn:hover {
  background: rgba(201, 230, 0, 0.16);
  border-color: rgba(201, 230, 0, 0.55);
}

@media (max-width: 900px) {
  .cw-gc-shell {
    padding: 0 4px;
  }
  .cw-gc-nav {
    display: none;
  }
  .cw-lightbox__prev {
    left: 8px;
  }
  .cw-lightbox__next {
    right: 8px;
  }
  .cw-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

/* ── Custom Diagram Widget (referencia: infografía SERVICIOS CREATIVOS) ── */
.cw-diagram-container {
    --cw-d-accent: var(--diagram-accent);
    --cw-d-bg: var(--diagram-bg);
    /* Misma rejilla que la fila de 6 pasos + 5 huecos para flechas → */
    --cw-flow-grid: minmax(0, 1fr) minmax(10px, 1.25rem) minmax(0, 1fr) minmax(10px, 1.25rem) minmax(0, 1fr) minmax(10px, 1.25rem) minmax(0, 1fr) minmax(10px, 1.25rem) minmax(0, 1fr) minmax(10px, 1.25rem) minmax(0, 1fr);
    width: 100%;
    margin: 16px auto 64px;
    padding: 48px 40px 56px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #ffffff;
    background: var(--cw-d-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.cw-diagram-header {
    margin-bottom: 20px;
    max-width: 920px;
}
.cw-diagram-kicker {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cw-d-accent);
}
.cw-diagram-lead {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* FLOW ROW (6 pasos en fila) */
.cw-flow-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 24px;
    align-items: start;
    position: relative;
    margin-bottom: 8px;
    padding-top: 100px;
}
.cw-flow-item {
    width: auto;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cw-flow-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
}
.cw-flow-icon img {
    max-height: 52%;
    max-width: 52%;
    object-fit: contain;
}
.cw-flow-item h4 {
    color: var(--cw-d-accent);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}
.cw-flow-item p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}
/* Flechas → entre pasos: línea larga con punta */
.cw-flow-arrow {
    display: none;
}
.cw-flow-note {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    font-family: 'Caveat', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}
.cw-note-1 { transform: translateX(-60%) rotate(-6deg); }
.cw-note-2 { transform: translateX(-50%) rotate(-8deg); bottom: calc(100% + 24px); }
.cw-note-3 { transform: translateX(-40%) rotate(5deg); }

.cw-note-arrow {
    color: var(--cw-d-accent);
    font-size: 18px;
    display: block;
    margin-top: 2px;
}

/* DIVISOR: solo línea discontinua (sin flechas ↑ — como en la referencia) */
.cw-flow-divider {
    margin: 32px 0 40px;
}
.cw-fd-line {
    border-top: 2px dashed var(--cw-d-accent);
    opacity: 0.7;
    margin: 0;
    width: 100%;
}
/* Ocultar las flechas ↑ (no están en la referencia) */
.cw-fd-arrow-grid,
.cw-fd-arrows {
    display: none !important;
}

/* FILA INTELIGENCIA */
.cw-intelligence-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}
.cw-intel-box {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 28%;
    min-width: 0;
}
.cw-intel-center {
    width: 38%;
}
.cw-intel-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cw-intel-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cw-intel-text h4 {
    font-size: 14px;
    color: #ffffff;
    margin: 0 0 8px;
    font-weight: 600;
    line-height: 1.35;
}
.cw-diagram-accent {
    color: var(--cw-d-accent);
    font-weight: 700;
}
.cw-diagram-accent-title,
.cw-intel-center .cw-intel-text h4.cw-diagram-accent-title {
    color: var(--cw-d-accent);
    font-weight: 700;
    font-size: 15px;
}
.cw-intel-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    margin: 0;
}
/* Flechas → de la fila inteligencia: línea con punta */
.cw-intel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    min-width: 36px;
    font-size: 0;
    padding: 0 4px;
}
.cw-intel-arrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}
.cw-intel-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid rgba(255, 255, 255, 0.65);
}

/* SERVICIOS — caja inferior */
.cw-services-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 28px 20px 32px;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
}
.cw-sb-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 0 18px;
}
.cw-sb-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}
.cw-sb-item:first-child {
    padding-left: 12px;
}
.cw-sb-item:last-child {
    padding-right: 12px;
}
.cw-sb-item img.cw-sb-icon,
.cw-sb-item img:not([class]) {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 1px var(--cw-d-accent));
}
.cw-sb-item h4 {
    font-size: 13px;
    color: #ffffff;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.3;
}
.cw-sb-item p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .cw-diagram-container {
        padding: 32px 22px 40px;
        border-radius: 20px;
    }
    .cw-flow-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 28px 16px;
        padding-top: 48px;
    }
    .cw-flow-item {
        width: 45%;
        align-items: flex-start;
        text-align: left;
    }
    .cw-flow-icon {
        margin-left: 0;
        margin-right: auto;
    }
    .cw-flow-note {
        left: 0;
        transform: rotate(-4deg);
        text-align: left;
        white-space: normal;
        bottom: auto;
        top: -56px;
    }
    .cw-note-1 { transform: rotate(-5deg); }
    .cw-note-2 { transform: rotate(-6deg); }
    .cw-note-3 { transform: rotate(4deg); }
    .cw-flow-arrow {
        display: none;
    }
    .cw-flow-divider {
        margin: 24px 0 32px;
    }
    .cw-fd-arrow-grid,
    .cw-fd-arrows {
        display: none;
    }
    .cw-intelligence-row {
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }
    .cw-intel-box,
    .cw-intel-center {
        width: 100%;
    }
    .cw-intel-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
    .cw-services-bottom-row {
        flex-direction: column;
        gap: 0;
        padding: 20px 16px;
    }
    .cw-sb-item:not(:last-child)::after {
        display: none;
    }
    .cw-sb-item {
        width: 100%;
        padding: 20px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .cw-sb-item:last-child {
        border-bottom: none;
        padding-bottom: 8px;
    }
}
@media (max-width: 576px) {
    .cw-flow-item {
        width: 100%;
    }
}


/* ==========================================================================
   BLOG LAYOUT (SIDEBAR + MAIN)
   ========================================================================== */
.blog-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 48px;
    align-items: flex-start;
}
.blog-layout--sidebar-left {
    flex-direction: row;
}
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}
.blog-main {
    flex-grow: 1;
    min-width: 0;
}
.section-after-modules {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}
.blog-sidebar-widget {
    background: var(--dark-panel);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}
.blog-sidebar-widget h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.blog-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.blog-cat-list a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
}
.blog-cat-list a:hover {
    background: rgba(255,255,255,0.05);
}
.blog-cat-list a.active {
    background: rgba(181, 255, 33, 0.1);
    color: var(--acid-green);
    font-weight: 600;
}
.blog-search-widget .search-input-wrap {
    position: relative;
}
.blog-search-widget .bi-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.blog-search-widget input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}
.blog-search-widget input:focus {
    outline: none;
    border-color: var(--acid-green);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

@media (max-width: 991px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        position: static;
    }
}

/* ==========================================================================
   BLOG GRID OVERRIDES (Horizontal cards with thumbnail)
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.blog-grid .listing-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
}
.blog-grid .lc-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    aspect-ratio: auto;
}
.blog-grid .lc-body {
    padding: 0 0 0 24px;
    flex-grow: 1;
}

@media (max-width: 600px) {
    .blog-grid .listing-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    .blog-grid .lc-image {
        width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
    .blog-grid .lc-body {
        padding: 20px;
    }
}

/* ==========================================================================
   SEARCH SUGGEST (AUTOCOMPLETE)
   ========================================================================== */
.search-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111111;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
}
.search-suggest-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.search-suggest-dropdown a:last-child {
    border-bottom: none;
}
.search-suggest-dropdown a:hover {
    background: rgba(181, 255, 33, 0.1);
    color: var(--acid-green);
}
.search-suggest-empty {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   SMART FORM WIDGET
   ========================================================================== */
.cw-smart-form-container {
    background: var(--dark-panel);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.cw-form-group {
    margin-bottom: 24px;
}
.cw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cw-form-group input,
.cw-form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s;
}
.cw-form-group input:focus,
.cw-form-group textarea:focus {
    outline: none;
    border-color: var(--acid-green);
    background: rgba(0,0,0,0.5);
}
.cw-form-status.success {
    background: rgba(124, 255, 79, 0.1);
    color: var(--acid-green);
    border: 1px solid rgba(124, 255, 79, 0.2);
}
.cw-form-status.error {
    background: rgba(255, 79, 79, 0.1);
    color: #ff4f4f;
    border: 1px solid rgba(255, 79, 79, 0.2);
}

/* Botón envío formulario Ajax: verde por defecto, negro + acento al hover */
.cw-smart-form-container .js-smart-form button.cw-btn[type="submit"] {
    background: linear-gradient(135deg, #e8ff1f, var(--acid)) !important;
    color: #060606 !important;
    border: 1px solid rgba(201, 230, 0, 0.65);
    box-shadow: 0 4px 18px rgba(201, 230, 0, 0.22);
}
.cw-smart-form-container .js-smart-form button.cw-btn[type="submit"]:hover {
    background: #000 !important;
    color: var(--acid) !important;
    border-color: var(--acid);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 230, 0, 0.35);
}

.cw-form-settings {
    display: none; /* Oculto en front-end público por defecto, solo visible en admin o cuando se edita */
}
.mce-content-body .cw-form-settings {
    display: block !important;
}

/* ── Newsletter widget ── */
.cw-newsletter {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    max-width: 560px;
    margin: 32px auto;
}
.cw-nl-icon { font-size: 36px; margin-bottom: 12px; }
.cw-newsletter h3 { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.cw-newsletter > p { color: rgba(255,255,255,0.65); font-size: 15px; margin: 0 0 24px; }
.cw-nl-form { display: flex; flex-direction: column; gap: 12px; }
.cw-nl-form input[type="text"],
.cw-nl-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.cw-nl-form input:focus { border-color: var(--acid-green); }
.cw-nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
}
.cw-nl-consent input[type="checkbox"] { margin-top: 2px; width: auto; flex-shrink: 0; }
.cw-nl-consent a { color: var(--acid-green); text-decoration: underline; }
.cw-nl-form .cw-btn-green {
    background: linear-gradient(135deg, #e8ff1f, var(--acid-green));
    color: #060606;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}
.cw-nl-form .cw-btn-green:hover {
    background: #000;
    color: var(--acid-green);
    box-shadow: 0 4px 18px rgba(201,230,0,0.25);
}
.cw-nl-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid transparent;
}
.cw-nl-status.success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border-color: var(--status-success-border);
}
.cw-nl-status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.cw-nl-status.error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border-color: var(--status-error-border);
}

/* ── Lead magnet block ── */
.cw-lead-magnet {
  max-width: 760px;
  margin: 48px auto;
  padding: 32px 0 0;
  color: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wysiwyg-output .cw-lm-title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: inherit;
}
.wysiwyg-output .cw-lm-desc,
.wysiwyg-output .cw-lm-secondary {
  margin: 0 0 16px;
  color: inherit;
  line-height: 1.7;
  font-size: 1.05rem;
}
.wysiwyg-output .cw-lm-secondary {
  opacity: 0.72;
  font-size: 0.98rem;
}
.wysiwyg-output .cw-lm-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.wysiwyg-output .cw-lm-cta {
  background: none;
  border: 0;
  padding: 0;
  color: var(--acid-green, #7cff4f);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wysiwyg-output .cw-lm-cta:hover {
  opacity: 0.85;
}
.wysiwyg-output .cw-lm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  opacity: 0.78;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.wysiwyg-output .cw-lm-btn-secondary:hover {
  opacity: 1;
}
.wysiwyg-output .cw-lm-link,
.wysiwyg-output .cw-lm-skip {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  opacity: 0.55;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wysiwyg-output .cw-lm-skip { opacity: 0.4; }
.wysiwyg-output .cw-lm-form-panel {
  margin-top: 18px;
  max-width: 520px;
}
.wysiwyg-output .cw-lm-form-intro {
  margin: 0 0 14px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wysiwyg-output .cw-lm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wysiwyg-output .cw-lm-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
}
.wysiwyg-output .cw-lm-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: inherit;
  opacity: 0.72;
  font-size: 0.88rem;
  line-height: 1.45;
}
.wysiwyg-output .cw-lm-consent a { color: var(--acid-green, #7cff4f); }
.wysiwyg-output .cw-lm-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.cw-status-text {
  margin: 0 0 10px;
}
.cw-status-text:last-child {
  margin-bottom: 0;
}
.cw-status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #c9e600;
  color: #030405 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #c9e600;
  word-break: normal;
  white-space: normal;
}
.cw-status-link:hover {
  background: #030405;
  color: #c9e600 !important;
  border-color: #c9e600;
}
.article-comments__status .cw-status-link {
  margin-top: 8px;
}
.wysiwyg-output .cw-lm-status.success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border-color: var(--status-success-border);
}
.wysiwyg-output .cw-lm-status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.wysiwyg-output .cw-lm-status.error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border-color: var(--status-error-border);
}
.cw-lead-magnet.is-hidden { display: none; }
.cw-lm-admin-preview {
  border: 2px dashed rgba(124,255,79,0.35);
  background: rgba(124,255,79,0.06);
  border-radius: 16px;
  padding: 28px;
}
.cw-lm-admin-kicker {
  margin: 0 0 8px;
  color: #7cff4f;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cw-lm-admin-preview h3 { margin: 0 0 8px; color: #fff; }
.cw-lm-admin-preview p { margin: 0 0 8px; color: rgba(255,255,255,0.72); }

.lead-magnet-view-page {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}
.lead-magnet-view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.lead-magnet-view--error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-magnet-view__card {
  width: min(100%, 520px);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111;
  text-align: center;
}
.lead-magnet-view__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lead-magnet-view__eyebrow {
  margin: 0 0 8px;
  color: #7cff4f;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead-magnet-view__header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.lead-magnet-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}
.lead-magnet-view__meta span:not(:last-child)::after {
  content: '·';
  margin-left: 10px;
  opacity: .6;
}
.lead-magnet-view__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.lead-magnet-view__btn--primary {
  background: linear-gradient(135deg, #e8ff1f, #7cff4f);
  color: #000;
  border: none;
}
.lead-magnet-view__frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #111;
  min-height: 70vh;
}
.lead-magnet-view__frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #1a1a1a;
}
.lead-magnet-view__hint {
  margin: 14px 0 0;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.lead-magnet-view__fallback {
  text-align: center;
  padding: 48px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.lead-magnet-view__fallback-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.lead-magnet-view__fallback p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.72);
}

/* ── Article stats ── */
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
}
.detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-stats .bi { color: var(--acid-green, #7cff4f); }

/* ── Article comments ── */
.article-comments {
  --comments-heading: #fff;
  --comments-text: rgba(255, 255, 255, 0.82);
  --comments-muted: rgba(255, 255, 255, 0.68);
  --comments-label: rgba(255, 255, 255, 0.78);
  --comments-border: rgba(255, 255, 255, 0.12);
  --comments-card-bg: rgba(255, 255, 255, 0.03);
  --comments-input-bg: rgba(255, 255, 255, 0.06);
  --comments-input-border: rgba(255, 255, 255, 0.22);
  --comments-input-text: #fff;
  --comments-placeholder: rgba(255, 255, 255, 0.42);
  --comments-focus: var(--acid-green, #7cff4f);
  max-width: 760px;
  margin: 56px auto 32px;
  padding-top: 32px;
  border-top: 1px solid var(--comments-border);
  color: var(--comments-text);
}
.article-comments__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--comments-heading);
}
.article-comments__count {
  color: var(--comments-muted);
  font-weight: 500;
  font-size: 0.95em;
}
.article-comments__intro,
.article-comments__form-note,
.article-comments__empty {
  color: var(--comments-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}
.article-comments__intro { margin: 0 0 24px; max-width: 62ch; }
.article-comments__empty { margin: 0 0 24px; font-style: italic; }
.article-comments__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-comment {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--comments-card-bg);
  border: 1px solid var(--comments-border);
}
.article-comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}
.article-comment__author { color: var(--comments-heading); }
.article-comment__date {
  color: var(--comments-muted);
  font-size: 0.82rem;
}
.article-comment__body {
  color: var(--comments-text);
  line-height: 1.65;
  font-size: 0.98rem;
}
.article-comment__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--acid-green, #c6f04f);
  color: #0a0a0a;
}
.article-comment--staff {
  border-color: color-mix(in srgb, var(--acid-green, #c6f04f) 55%, transparent);
  background: color-mix(in srgb, var(--acid-green, #c6f04f) 8%, var(--comments-card-bg));
}
.article-comment__reply-btn {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--comments-heading);
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease;
}
.article-comment__reply-btn:hover,
.article-comment__reply-btn.is-active { opacity: 1; text-decoration: underline; }
.article-comment__replies {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--comments-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-comment--reply { padding: 14px 16px; }
.article-comment__reply-form {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--comments-input-border);
  background: var(--comments-input-bg);
}
.article-comment__reply-form[hidden] { display: none; }
.article-comments__form-wrap { padding-top: 8px; }
.article-comments__form-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--comments-heading);
}
.article-comments__form-note { margin: 0 0 18px; max-width: 62ch; }
.article-comments__form-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--comments-input-border);
  background: var(--comments-input-bg);
}
.article-comments__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-comments__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--comments-label);
  margin: 0 0 -6px;
}
.article-comments__input,
.article-comments__textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--comments-input-border);
  background: var(--comments-card-bg);
  color: var(--comments-input-text);
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.article-comments__textarea {
  min-height: 132px;
  resize: vertical;
}
.article-comments__input::placeholder,
.article-comments__textarea::placeholder {
  color: var(--comments-placeholder);
  opacity: 1;
}
.article-comments__input:hover,
.article-comments__textarea:hover {
  border-color: color-mix(in srgb, var(--comments-input-border) 70%, var(--comments-focus) 30%);
}
.article-comments__input:focus,
.article-comments__textarea:focus {
  outline: none;
  border-color: var(--comments-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--comments-focus) 22%, transparent);
}
.article-comments__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--comments-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.article-comments__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--comments-focus);
}
.article-comments__consent a { color: var(--comments-focus); }
.article-comments__status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.article-comments__status .cw-status-text {
  margin: 0;
}
.article-comments__status.success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border-color: var(--status-success-border);
}
.article-comments__status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.article-comments__status.error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border-color: var(--status-error-border);
}

/* ── CMS preview banner (draft / review) ── */
.cms-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.18), rgba(255, 107, 107, 0.12));
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 12px;
}
.cms-preview-banner__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cms-preview-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.22);
  color: #f5c842;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cms-preview-banner__text {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ── Article detail: share + floating newsletter ── */
.article-share {
  max-width: 960px;
  margin: 0 auto 48px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-share--top {
  margin: 0 auto 28px;
  padding-top: 0;
  padding-bottom: 16px;
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
}
.article-share--bottom {
  margin-top: 8px;
}
.article-detail-page .article-share--top {
  max-width: none;
  width: 100%;
}
.article-share__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.article-share__buttons {
  display: flex;
  gap: 10px;
}
.article-share__btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.article-share__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}
.article-share__btn--linkedin:hover { color: #0a66c2; }
.article-share__btn--x:hover { color: #fff; background: #000; }
.article-share__btn--instagram:hover { color: #e1306c; }
.article-share__btn.is-copied {
  border-color: var(--acid-green);
  color: var(--acid-green);
}

.article-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 1300;
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(18, 20, 22, 0.96);
  border: 1px solid rgba(124, 255, 79, 0.35);
  color: #f4f4f1;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.article-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.article-float-nl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  pointer-events: none;
}
.article-float-nl.is-hidden { display: none; }
.article-float-nl__toggle {
  pointer-events: auto;
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(124,255,79,.35);
  border-radius: 999px;
  background: rgba(8,12,16,.94);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.article-float-nl__chevron { transition: transform .2s ease; }
.article-float-nl.is-collapsed .article-float-nl__chevron { transform: rotate(180deg); }
.article-float-nl__panel {
  pointer-events: auto;
  padding: 0 12px 16px;
}
.article-float-nl__form {
  margin: 0;
}
.article-float-nl__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124,255,79,.28);
  background: rgba(8,12,16,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
}
.article-float-nl__copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: start;
}
.article-float-nl__actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.article-float-nl__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.article-float-nl__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
  padding-left: 2px;
  margin: 0;
}
@media (min-width: 960px) {
  .article-float-nl__consent span {
    white-space: nowrap;
  }
}
.article-float-nl__copy strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.article-float-nl__copy p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.article-float-nl__consent input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--acid-green);
}
.article-float-nl__consent a {
  color: var(--acid-green);
  text-decoration: underline;
}
.article-float-nl__input {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.05);
  color: var(--text-main);
  padding: 0 16px;
  font-size: 15px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}
.article-float-nl__btn {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  flex: none;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--acid-green);
  color: #081018;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}
.article-float-nl__btn:hover { filter: brightness(1.05); }
.article-float-nl__status {
  margin: 0;
}
.article-float-nl__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  cursor: pointer;
}
.article-float-nl.is-collapsed .article-float-nl__panel { display: none; }
.article-float-nl.is-collapsed .article-float-nl__toggle { display: inline-flex; }

@media (min-width: 961px) {
  .article-float-nl__inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
    gap: 16px 28px;
    align-items: center;
  }

  .article-float-nl__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .article-float-nl__actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .article-float-nl__row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .article-float-nl__input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .article-float-nl__btn {
    width: auto;
  }
}

@media (max-width: 960px) {
  .article-float-nl__inner {
    padding: 36px 16px 16px;
  }

  .article-float-nl__consent span {
    white-space: normal;
  }

  body:has(.article-float-nl:not(.is-hidden):not(.is-collapsed)) {
    padding-bottom: 240px;
  }
}

@media (max-width: 768px) {
  .article-float-nl__panel {
    padding: 0 8px 12px;
  }

  .article-float-nl__inner {
    padding: 36px 14px 14px;
  }
}

/* ── Article detail background themes (blog) ── */
.article-detail-page {
  max-width: 1040px;
  margin: 0 auto 48px;
}

.article-detail-page .detail-header,
.article-detail-page .detail-content,
.article-detail-page .article-share {
  max-width: none;
  width: 100%;
}

.article-detail-page .detail-header {
  margin-bottom: 32px;
}

.article-detail-page .detail-content {
  margin-bottom: 40px;
}

.article-detail-page .article-share {
  margin-bottom: 0;
}

.article-detail-shell--white,
.article-detail-shell--soft,
.article-detail-shell--custom {
  padding: 36px 40px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.detail-back--outside {
  display: inline-block;
  max-width: 1040px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.article-detail-shell--white .article-advanced-bleed,
.article-detail-shell--soft .article-advanced-bleed,
.article-detail-shell--custom .article-advanced-bleed {
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

.article-detail-shell--custom {
  background: var(--article-custom-bg, #ffffff);
  color: #1a1a1a;
  --detail-accent: #15663f;
  --detail-accent-hover: #0f5233;
}

.article-detail-shell--white {
  background: #ffffff;
  color: #1a1a1a;
  --detail-accent: #15663f;
  --detail-accent-hover: #0f5233;
}

.article-detail-shell--soft {
  background: #f6f3ed;
  color: #1f1f1f;
  --detail-accent: #15663f;
  --detail-accent-hover: #0f5233;
}

.article-detail-shell--white .detail-title,
.article-detail-shell--soft .detail-title,
.article-detail-shell--custom .detail-title {
  color: #111111;
}

.article-detail-shell--white .detail-subtitle,
.article-detail-shell--soft .detail-subtitle,
.article-detail-shell--white .detail-date,
.article-detail-shell--soft .detail-date,
.article-detail-shell--custom .detail-subtitle,
.article-detail-shell--custom .detail-date {
  color: #555555;
}

.article-detail-shell--white .detail-back,
.article-detail-shell--soft .detail-back,
.article-detail-shell--white .detail-category,
.article-detail-shell--soft .detail-category,
.article-detail-shell--custom .detail-back,
.article-detail-shell--custom .detail-category,
.article-detail-shell--custom .article-advanced-toolbar .detail-back {
  color: var(--detail-accent);
}

.article-detail-shell--white .detail-back:hover,
.article-detail-shell--soft .detail-back:hover,
.article-detail-shell--custom .detail-back:hover,
.article-detail-shell--custom .article-advanced-toolbar .detail-back:hover {
  color: var(--detail-accent-hover);
  opacity: 1;
}

.article-detail-shell--white .wysiwyg-output,
.article-detail-shell--soft .wysiwyg-output,
.article-detail-shell--custom .wysiwyg-output {
  color: #222222;
}

.article-detail-shell--white .wysiwyg-output h2,
.article-detail-shell--white .wysiwyg-output h3,
.article-detail-shell--soft .wysiwyg-output h2,
.article-detail-shell--soft .wysiwyg-output h3,
.article-detail-shell--custom .wysiwyg-output h2,
.article-detail-shell--custom .wysiwyg-output h3 {
  color: #111111;
}

.article-detail-shell--white .wysiwyg-output a,
.article-detail-shell--soft .wysiwyg-output a,
.article-detail-shell--custom .wysiwyg-output a {
  color: var(--detail-accent);
}

.article-detail-shell--white .wysiwyg-output a:hover,
.article-detail-shell--soft .wysiwyg-output a:hover,
.article-detail-shell--custom .wysiwyg-output a:hover {
  color: var(--detail-accent-hover);
}

.article-detail-shell--white .wysiwyg-output blockquote,
.article-detail-shell--soft .wysiwyg-output blockquote,
.article-detail-shell--custom .wysiwyg-output blockquote {
  background: rgba(0, 0, 0, 0.04);
  color: #444444;
  border-left-color: var(--detail-accent);
}

.article-detail-shell--white .wysiwyg-output blockquote.cw-quote cite,
.article-detail-shell--soft .wysiwyg-output blockquote.cw-quote cite,
.article-detail-shell--custom .wysiwyg-output blockquote.cw-quote cite {
  color: var(--detail-accent);
}

.article-detail-shell--white .wysiwyg-output aside.cw-callout,
.article-detail-shell--soft .wysiwyg-output aside.cw-callout,
.article-detail-shell--custom .wysiwyg-output aside.cw-callout {
  background: rgba(21, 102, 63, 0.08);
  border-color: rgba(21, 102, 63, 0.22);
  color: #222222;
}

.article-detail-shell--white .wysiwyg-output aside.cw-callout .cw-callout__label,
.article-detail-shell--soft .wysiwyg-output aside.cw-callout .cw-callout__label,
.article-detail-shell--custom .wysiwyg-output aside.cw-callout .cw-callout__label,
.article-detail-shell--white .wysiwyg-output aside.cw-callout--note .cw-callout__label,
.article-detail-shell--soft .wysiwyg-output aside.cw-callout--note .cw-callout__label,
.article-detail-shell--custom .wysiwyg-output aside.cw-callout--note .cw-callout__label {
  color: var(--detail-accent);
}

.article-detail-shell--white .wysiwyg-output pre.cw-code-block,
.article-detail-shell--soft .wysiwyg-output pre.cw-code-block,
.article-detail-shell--custom .wysiwyg-output pre.cw-code-block {
  background: #f3f3f0;
  border-color: rgba(0, 0, 0, 0.1);
}

.article-detail-shell--white .wysiwyg-output pre.cw-code-block code,
.article-detail-shell--soft .wysiwyg-output pre.cw-code-block code,
.article-detail-shell--custom .wysiwyg-output pre.cw-code-block code {
  color: #1a1a1a;
}

.article-detail-shell--white .wysiwyg-output code.cw-code-inline,
.article-detail-shell--soft .wysiwyg-output code.cw-code-inline,
.article-detail-shell--custom .wysiwyg-output code.cw-code-inline,
.article-detail-shell--white .wysiwyg-output :not(pre) > code,
.article-detail-shell--soft .wysiwyg-output :not(pre) > code,
.article-detail-shell--custom .wysiwyg-output :not(pre) > code {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.article-detail-shell--white .wysiwyg-output hr.cw-divider,
.article-detail-shell--soft .wysiwyg-output hr.cw-divider,
.article-detail-shell--custom .wysiwyg-output hr.cw-divider {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.article-detail-shell--white .wysiwyg-output .cw-lead-magnet,
.article-detail-shell--soft .wysiwyg-output .cw-lead-magnet,
.article-detail-shell--custom .wysiwyg-output .cw-lead-magnet {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.article-detail-shell--white .wysiwyg-output .cw-lm-btn-secondary,
.article-detail-shell--soft .wysiwyg-output .cw-lm-btn-secondary,
.article-detail-shell--custom .wysiwyg-output .cw-lm-btn-secondary {
  border-color: rgba(0, 0, 0, 0.22);
  color: inherit;
}

.article-detail-shell--white .wysiwyg-output .cw-lm-cta,
.article-detail-shell--soft .wysiwyg-output .cw-lm-cta,
.article-detail-shell--custom .wysiwyg-output .cw-lm-cta,
.article-detail-shell--white .wysiwyg-output .cw-lm-consent a,
.article-detail-shell--soft .wysiwyg-output .cw-lm-consent a,
.article-detail-shell--custom .wysiwyg-output .cw-lm-consent a {
  color: var(--detail-accent);
}

.article-detail-shell--white .wysiwyg-output .cw-lm-cta:hover,
.article-detail-shell--soft .wysiwyg-output .cw-lm-cta:hover,
.article-detail-shell--custom .wysiwyg-output .cw-lm-cta:hover,
.article-detail-shell--white .wysiwyg-output .cw-lm-consent a:hover,
.article-detail-shell--soft .wysiwyg-output .cw-lm-consent a:hover,
.article-detail-shell--custom .wysiwyg-output .cw-lm-consent a:hover {
  color: var(--detail-accent-hover);
  opacity: 1;
}

.article-detail-shell--white .wysiwyg-output .cw-lm-form input[type="email"],
.article-detail-shell--soft .wysiwyg-output .cw-lm-form input[type="email"],
.article-detail-shell--custom .wysiwyg-output .cw-lm-form input[type="email"] {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: inherit;
}

.article-detail-shell--white .article-share,
.article-detail-shell--soft .article-share,
.article-detail-shell--custom .article-share {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.article-detail-shell--white .article-share--top,
.article-detail-shell--soft .article-share--top,
.article-detail-shell--custom .article-share--top {
  border-top: none;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.article-detail-shell--white .article-share__label,
.article-detail-shell--soft .article-share__label,
.article-detail-shell--custom .article-share__label {
  color: #666666;
}

.article-detail-shell--white .article-share__btn,
.article-detail-shell--soft .article-share__btn,
.article-detail-shell--custom .article-share__btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #222222;
}

.article-detail-shell--white .article-share__btn.is-copied,
.article-detail-shell--soft .article-share__btn.is-copied,
.article-detail-shell--custom .article-share__btn.is-copied {
  border-color: var(--detail-accent);
  color: var(--detail-accent);
}

.article-detail-shell--white .article-comments,
.article-detail-shell--soft .article-comments,
.article-detail-shell--custom .article-comments {
  --comments-heading: #1a1a1a;
  --comments-text: #333333;
  --comments-muted: #5a5a5a;
  --comments-label: #2a2a2a;
  --comments-border: rgba(0, 0, 0, 0.1);
  --comments-card-bg: #ffffff;
  --comments-input-bg: rgba(0, 0, 0, 0.03);
  --comments-input-border: rgba(0, 0, 0, 0.18);
  --comments-input-text: #1a1a1a;
  --comments-placeholder: #8a8a8a;
  --comments-focus: #4a7c12;
}

.article-detail-shell--white .article-comments__status.success,
.article-detail-shell--soft .article-comments__status.success,
.article-detail-shell--custom .article-comments__status.success,
.article-detail-shell--white .cw-nl-status.success,
.article-detail-shell--soft .cw-nl-status.success,
.article-detail-shell--custom .cw-nl-status.success,
.article-detail-shell--white .wysiwyg-output .cw-lm-status.success,
.article-detail-shell--soft .wysiwyg-output .cw-lm-status.success,
.article-detail-shell--custom .wysiwyg-output .cw-lm-status.success {
  background: #eef8d9;
  color: #3d5f0f;
  border-color: #b8d96a;
}

.article-detail-shell--white .article-comments__status.error,
.article-detail-shell--soft .article-comments__status.error,
.article-detail-shell--custom .article-comments__status.error,
.article-detail-shell--white .cw-nl-status.error,
.article-detail-shell--soft .cw-nl-status.error,
.article-detail-shell--custom .cw-nl-status.error,
.article-detail-shell--white .wysiwyg-output .cw-lm-status.error,
.article-detail-shell--soft .wysiwyg-output .cw-lm-status.error,
.article-detail-shell--custom .wysiwyg-output .cw-lm-status.error {
  background: #fef2f2;
  color: #b42318;
  border-color: #f5a8a8;
}

.article-detail-shell--white .article-comments__status.pending,
.article-detail-shell--soft .article-comments__status.pending,
.article-detail-shell--custom .article-comments__status.pending,
.article-detail-shell--white .cw-nl-status.pending,
.article-detail-shell--soft .cw-nl-status.pending,
.article-detail-shell--custom .cw-nl-status.pending,
.article-detail-shell--white .wysiwyg-output .cw-lm-status.pending,
.article-detail-shell--soft .wysiwyg-output .cw-lm-status.pending,
.article-detail-shell--custom .wysiwyg-output .cw-lm-status.pending {
  background: #fff4d6;
  color: #7a5200;
  border-color: #e0b84a;
}

@media (max-width: 768px) {
  .article-detail-page {
    max-width: none;
    margin-bottom: 32px;
  }

  .article-detail-shell--white,
  .article-detail-shell--soft,
  .article-detail-shell--custom {
    padding: 24px 18px 28px;
    border-radius: 16px;
  }
}

/* ── Advanced HTML articles (blog) ── */
.article-detail-advanced {
  margin-bottom: 48px;
}

.article-advanced-toolbar {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.article-detail-advanced .detail-content--advanced {
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: normal;
  font-size: inherit;
  color: inherit;
}

.article-advanced-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.article-advanced-root {
  display: block;
  min-height: 1px;
}

/* ── Design System page ── */
.ds-page .content-hero { padding-bottom: 8px; }

.ds-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 8px 0 32px;
}

.ds-section {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.ds-section__head { margin-bottom: 24px; }

.ds-section__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.04em;
  font-weight: 700;
}

.ds-section__desc {
  margin: 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.ds-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.ds-color-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}

.ds-color-swatch {
  height: 88px;
}

.ds-color-swatch--border {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ds-color-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-color-meta strong {
  font-size: 14px;
  font-weight: 700;
}

.ds-color-meta code {
  font-size: 12px;
  color: var(--acid);
  font-family: ui-monospace, monospace;
}

.ds-color-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.ds-type-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.ds-type-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #151719 0%, #0b0d0e 100%);
}

.ds-type-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acid);
}

.ds-type-sample {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.ds-type-sample--inter { font-family: "Inter", sans-serif; font-weight: 700; }
.ds-type-sample--cormorant {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--acid);
}
.ds-type-sample--caveat {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
}

.ds-type-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.ds-type-scale {
  display: grid;
  gap: 20px;
}

.ds-type-scale__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ds-type-scale__row:last-child { border-bottom: 0; }

.ds-type-scale__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ds-type-scale__demo { margin: 0 !important; }

.ds-type-scale__row code {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ds-component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ds-cards-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ds-service-demo {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #151719 0%, #0b0d0e 100%);
  border-left: 1px solid rgba(255,255,255,.1);
}

.ds-form-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  max-width: 560px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1);
}

.ds-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.ds-field input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text-main);
  font: inherit;
  font-size: 14px;
}

.ds-field input:focus {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 2px rgba(201,230,0,.15);
}

.ds-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.ds-token {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-card-soft);
  border: 1px solid rgba(255,255,255,.08);
}

.ds-token code {
  font-size: 13px;
  color: var(--acid);
}

.ds-token span {
  font-size: 13px;
  color: var(--text-muted);
}

.ds-logo-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: var(--bg-card);
}

.ds-logo-variant {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-logo-variant__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ds-logo-variant--light {
  padding: 20px 24px;
  border-radius: 12px;
  background: #f0f0ec;
  border: 1px solid rgba(255,255,255,.12);
}

.ds-logo-email {
  display: block;
  width: 132px;
  height: auto;
}

.ds-email-tokens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ds-email-preview-wrap {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: #0a0a0a;
  padding: 16px;
  overflow: hidden;
}

.ds-email-iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: 10px;
  background: #f0f0ec;
}

.ds-logo-script {
  margin: 0 !important;
  font-size: 28px !important;
}

@media (max-width: 768px) {
  .ds-type-scale__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ds-cards-demo {
    grid-template-columns: 1fr;
  }

  .ds-form-demo {
    flex-direction: column;
    align-items: stretch;
  }
}
