/* Lanzate — maquetas de módulos */
:root {
  --ink: #17352c;
  --green: #1b5e42;
  --green-deep: #143f2e;
  --muted: #5f6f68;
  --line: #d7e3dc;
  --sage: #eef3ef;
  --sage-2: #e7f0ea;
  --paper: #f7f4ef;
  --cream: #f3efe8;
  --dark: #1c3d32;
  --darker: #141c19;
  --gold: #f4b400;
  --shadow: 0 14px 40px rgba(23, 53, 44, 0.08);
  --radius: 18px;
  --fs-label: 12px;
  --fs-body: 14px;
  --fs-section-title: clamp(2rem, 4vw, 3.15rem);
  --fs-button: 15px;
  --fs-field: 16px;
  --ctl-h-sm: 24px;
  --ctl-h-lg: 44px;
}

* { box-sizing: border-box; }

body.mq {
  margin: 0;
  background: #e4ece7;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; }

a { color: inherit; }

button, input, textarea { font-family: inherit; }

.mq-top {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 8px 20px;
  background: var(--darker);
  color: #f4f7f5;
}

.mq-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.mq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.mq-links a {
  color: #d7e3dc;
  text-decoration: none;
  font-size: 14px;
}

.mq-links a:hover { color: #fff; }

.mq-block { padding: 22px 0 8px; }

.mq-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 1120px;
  margin: 0 auto 10px;
  padding: 0 16px;
  color: #3d5248;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mq-frame {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 53, 44, 0.04);
}

.nx {
  color: var(--ink);
  background: var(--nx-bg, #fff);
}

.nx-sage { background: var(--sage); }
.nx-paper { background: var(--paper); }

.nx-pad {
  padding: clamp(48px, 6vw, 88px) 0;
}

.nx-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nx-display {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-section-title);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.nx-display .em,
.em {
  font-style: italic;
  font-weight: 520;
  color: var(--green);
}

.nx-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

.nx-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nx-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.btn-nx,
.btn-nx-outline,
.btn-nx-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  min-height: var(--ctl-h-lg);
  font-size: var(--fs-button);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-nx { background: var(--green); color: #fff; }
.btn-nx:hover { background: var(--green-deep); color: #fff; }

.btn-nx-outline {
  background: transparent;
  color: var(--green);
  border-color: #b7d0c4;
}
.btn-nx-outline:hover { background: var(--sage-2); color: var(--green); }

.btn-nx-light {
  background: #fff;
  color: var(--green);
}
.btn-nx-light:hover { background: var(--sage); color: var(--green); }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm:is(.btn-nx, .btn-nx-outline, .btn-nx-light) { font-size: var(--fs-button); }

/* Nav */
.nx-nav {
  background-color: #fff;
  background-image: none;
  border-bottom: 1px solid var(--line);
}

#navegacion-media .nx-nav,
#media .nx-nav,
.nx-nav-media,
[data-module^="navegacion-media"] .nx-nav {
  background-color: #fff !important;
  background-image: none !important;
}

#navegacion-media .nx-brand img,
#media .nx-brand img,
.nx-nav-media .nx-brand img,
[data-module^="navegacion-media"] .nx-brand img {
  display: none !important;
}

.nx-nav.sticky-under {
  position: sticky;
  top: 52px;
  z-index: 50;
}

.nx-brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.nx-brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
}

.nx-brand.has-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nx-brand.has-name .nx-brand-logo {
  height: 34px;
  max-width: 120px;
}

.nx-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-brand.is-lower {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.nx-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px;
}
.nx-nav button.nav-link {
  background: transparent;
  border: 0;
}

.nx-nav .nav-link.is-active {
  color: var(--green);
  font-weight: 700;
}

.nx-nav .navbar-toggler {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 4px 8px;
}

.nx-nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
  font-size: 13px;
}

.nx-phone strong { font-weight: 700; }
.nx-phone span { color: var(--muted); font-size: 12px; }

.nx-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nx-search input {
  width: 0;
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 0;
  transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.nx-search.is-open input {
  width: 160px;
  opacity: 1;
  padding: 6px 12px;
  margin-right: 6px;
}

.nx-search button[data-search-toggle] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nx-nav-dark {
  background: rgba(20, 32, 28, 0.72);
  border: 0;
  color: #fff;
  backdrop-filter: blur(10px);
}

.nx-nav-dark .nx-brand,
.nx-nav-dark .nav-link,
.nx-nav-dark .nx-phone,
.nx-nav-dark .nx-phone span,
.nx-nav-dark .nx-search button { color: #fff; }

.nx-nav-dark .nav-link.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 #fff;
}

.nx-nav-dark .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.35); }

.nx-socials { display: flex; gap: 8px; }
.nx-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.9;
}

.nav-dark-wrap {
  --nav-r: 0px;
  position: relative;
  overflow-x: clip;
}
.nav-dark-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 18, 16, 0.72);
}
.nav-dark-wrap > * { position: relative; z-index: 1; }

/* Hero */
.nx-hero { position: relative; background: var(--paper); }

.nx-hero-slide {
  position: relative;
  isolation: isolate;
  min-height: clamp(480px, 62vw, 640px);
  display: flex;
  align-items: center;
  background-color: #f7f4ef;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.nx-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 239, 0.98) 0%, rgba(247, 244, 239, 0.96) 38%, rgba(247, 244, 239, 0.62) 58%, rgba(247, 244, 239, 0) 78%);
  pointer-events: none;
}
.nx-hero-slide .container { position: relative; z-index: 1; }

.nx-hero .carousel-control-prev,
.nx-hero .carousel-control-next,
.nx-round-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
  box-shadow: 0 8px 22px rgba(16, 40, 30, 0.14);
  border: 0;
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.nx-hero .carousel-control-prev,
.nx-hero .carousel-control-next {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.nx-hero .carousel-control-prev { left: 16px; }
.nx-hero .carousel-control-next { right: 16px; }

.nx-hero .carousel-control-prev-icon,
.nx-hero .carousel-control-next-icon {
  filter: invert(1) grayscale(1) brightness(0.25);
  width: 1rem;
  height: 1rem;
}

.nx-hero .carousel-indicators { margin-bottom: 10px; }

.nx-hero .carousel-indicators [data-bs-target] {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  opacity: 1;
  margin: 0;
}

.nx-hero .carousel-indicators [data-bs-target]::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
}

.nx-hero .carousel-indicators .active::after {
  background: var(--green);
  opacity: 1;
}

.nx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e4ece7;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

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

.nx-hero-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.nx-hero-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.nx-hero-card h3,
.nx-hero-card .hero-stat-n {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.nx-hero-card p:not(.stat-n, .hero-stat-n) {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nx-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sage-2);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.15rem;
}

.nx-ico.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
.nx-ico.plain { background: transparent; }

/* Splits and cards */
.nx-copy p { color: var(--muted); }

.svc-card,
.quote-card,
.person-card,
.prod-card,
.gal-card,
.vid-card,
.step-card,
.ben-card {
  background: #fff;
  border-radius: var(--radius);
  height: 100%;
}

.svc-card,
.ben-card,
.step-card,
.quote-card,
.person-card {
  padding: 22px;
  box-shadow: 0 0 0 1px rgba(23, 53, 44, 0.04);
}

.svc-card h3,
.ben-card h3,
.step-card h3,
.prod-card h3,
.gal-card h3,
.vid-card h3,
.person-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.35rem;
  margin: 12px 0 8px;
}

.svc-card p,
.ben-card p,
.step-card p,
.person-card p { color: var(--muted); margin: 0; }

.nx-checks { list-style: none; padding: 0; margin: 14px 0 18px; }
.nx-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 15px;
}
.nx-checks i { color: var(--green); }

.svc-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.svc-tabs { border-right: 1px solid var(--line); }

.svc-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.svc-tab.is-on {
  background: var(--sage-2);
  box-shadow: inset 3px 0 0 var(--green);
}

.svc-panel { display: none; padding: 22px; }
.svc-panel.is-on { display: block; }

.svc-panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.nx-frame {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.nx-frame img,
.nx-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1 { aspect-ratio: 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

.benefit-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
}

.benefit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.speech {
  position: absolute;
  left: 8%;
  bottom: 14%;
  max-width: 180px;
  background: var(--green);
  color: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
}

.speech::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: var(--green);
  border-bottom: 0;
}

.squiggle {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 70px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.85);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 20px 0 0;
  transform: rotate(12deg);
}

/* Products */
.nx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 22px;
}

.nx-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 12px;
  margin-bottom: -1px;
  color: var(--muted);
}

.nx-tabs button.is-on {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 700;
}

.prod-card { overflow: hidden; }
.prod-card .nx-frame { border-radius: 16px 16px 0 0; }
.prod-card .pad { padding: 14px 4px 6px; }
.prod-card .meta { color: var(--muted); font-size: 13px; margin: 0; }
.prod-price { font-weight: 700; margin: 6px 0 10px; }
.prod-card h3 { margin: 6px 0 2px; font-size: 1.25rem; }

.badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
  z-index: 1;
}

.nx-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.nx-heart[aria-pressed="true"] { color: #c44545; }

.swatches { display: flex; gap: 6px; margin: 8px 0 12px; }
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0;
}
.swatch.is-on { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch.c-sage { background: #c5d5c0; }
.swatch.c-cream { background: #f3efe6; }
.swatch.c-sand { background: #d8c3a5; }
.swatch.c-ink { background: #1c3d32; }

.prod-feature {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  height: 100%;
  background: #efe8df;
}

.prod-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prod-feature-copy {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(239, 232, 223, 0.72) 0%, rgba(239, 232, 223, 0) 38%);
}
.prod-feature-copy .nx-display { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; margin: 0; font-weight: 400; }
.prod-feature-copy .btn-nx-outline { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(4px); }

.prod-card-xl { height: 100%; display: flex; flex-direction: column; }
.prod-card-xl .nx-frame { border-radius: 14px; }
.prod-card-xl .pad { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.prod-card-xl h3 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.prod-card-xl .meta { margin-top: 2px; }
.prod-card-xl .prod-price { margin: 8px 0 0; font-size: 1.05rem; }
.prod-card-xl .swatches { margin: 10px 0 14px; }
.prod-card-xl .swatch { width: 18px; height: 18px; }
.prod-more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  gap: 10px;
}
.prod-more:hover { color: var(--green); }

.prod-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prod-benefits > div { display: flex; gap: 16px; padding: 4px clamp(14px, 2.4vw, 32px); }
.prod-benefits > div:first-child { padding-left: 0; }
.prod-benefits > div + div { border-left: 1px solid var(--line); }
.prod-benefits i { font-size: 1.9rem; color: var(--ink); line-height: 1; }
.prod-benefits h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: Fraunces, Georgia, serif; font-weight: 500; }
.prod-benefits p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 991.98px) {
  .prod-feature { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 767.98px) {
  .prod-feature { aspect-ratio: 4 / 5; }
  .prod-benefits { grid-template-columns: 1fr; gap: 18px; }
  .prod-benefits > div { padding: 0; }
  .prod-benefits > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

.nx-nav-fluid { padding-inline: clamp(16px, 3.2vw, 56px); }

.mini-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.mini-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

.empty-filter {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* Gallery / scroll */
.nx-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.nx-scroll-track::-webkit-scrollbar { display: none; }
.nx-scroll-item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.nx-scroll-item.is-wide { flex-basis: 100%; }

.gal-card { overflow: hidden; }
.gal-card .nx-frame { border-radius: 16px; }
.gal-card .pad { padding: 12px 2px 0; }
.gal-card .k { font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--green); font-weight: 700; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.is-filtered > [data-page] { display: block !important; }
.is-filtered > .pager { display: none !important; }
.pager-count { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-size: 13px; color: var(--muted); }
.progress-line { height: 2px; background: var(--line); flex: 1; border-radius: 2px; overflow: hidden; }
.progress-line i { display: block; height: 100%; width: 30%; background: var(--green); }

/* Galería en mosaico */
.bento-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 40px;
  margin-bottom: 26px;
}
.bento-head .nx-display { margin-bottom: 8px; }
.bento-head .nx-tabs { margin: 0; border-bottom: 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 240px);
  grid-auto-flow: dense;
  gap: 12px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 16px;
  background: var(--cream);
  cursor: zoom-in;
  color: #fff;
}
.bento-tile[hidden] { display: none; }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-tile.is-big { grid-column: span 2; grid-row: span 2; }
.bento-tile.is-tall { grid-row: span 2; }
.bento-tile.is-wide { grid-column: span 2; }

.bento-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(0deg, rgba(14, 27, 23, 0.74), rgba(14, 27, 23, 0));
  text-align: left;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bento-cap small {
  display: block;
  margin-bottom: 4px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bento-tile.is-big .bento-cap { opacity: 1; transform: none; padding: 80px 24px 22px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.bento-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bento-tile:hover .bento-cap,
.bento-tile:focus-visible .bento-cap,
.bento-tile:hover .bento-zoom,
.bento-tile:focus-visible .bento-zoom { opacity: 1; transform: none; }
@media (hover: none) {
  .bento-cap { opacity: 1; transform: none; }
}

.bento-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.bento-foot i { color: var(--green); margin-right: 6px; }

.nx-lightbox {
  width: min(1100px, 90vw);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.nx-lightbox::backdrop { background: rgba(10, 18, 16, 0.88); backdrop-filter: blur(4px); }
.nx-lightbox[open] { animation: lb-in 0.25s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
.nx-lightbox figure { margin: 0; }
.nx-lightbox img { display: block; width: 100%; max-height: 76vh; object-fit: contain; border-radius: 14px; background: #0e1b17; }
.nx-lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; color: #fff; }
.nx-lightbox figcaption strong { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 1.25rem; }
.lb-copy { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #b4a3f8; }
.lb-count { margin-left: auto; font-size: 13px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.lb-close,
.lb-nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.lb-close { top: -58px; right: 0; background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.lb-nav { top: calc(50% - 40px); }
.lb-nav.is-prev { left: -66px; }
.lb-nav.is-next { right: -66px; }

@media (max-width: 991.98px) {
  .lb-nav.is-prev { left: 10px; }
  .lb-nav.is-next { right: 10px; }
}
@media (max-width: 767.98px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .bento-cap { font-size: 0.95rem; padding: 36px 12px 10px; }
  .bento-head .nx-tabs { gap: 0; }
  .bento-head .nx-tabs button { padding-inline: 10px; }
  .nx-lightbox { width: 94vw; }
}

/* Video */
.nx-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  padding-left: 4px;
}
.nx-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  padding: 3px 8px;
}
.vid-card .pad { padding: 12px 2px 0; }
.vid-card .k { font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--green); font-weight: 700; }

.vid-side { display: flex; flex-direction: column; gap: 12px; }
.vid-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 0;
  color: inherit;
}
.vid-row img { width: 112px; height: 72px; object-fit: cover; border-radius: 10px; }
.vid-row h3, .vid-row-title { display: block; margin: 0; font-size: 15px; font-weight: 600; font-family: Fraunces, Georgia, serif; }
.vid-row p, .vid-row-time { display: block; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.vid-row-text { display: block; }

.nx-banner {
  background: var(--sage-2);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nx-banner h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

/* People / quotes */
.nx-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.nx-avatar.lg { width: 148px; height: 148px; }
.nx-stars { color: #8faf9a; letter-spacing: 2px; font-size: 14px; }
.nx-stars.is-google { color: var(--gold); }
.g-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}
.score-card {
  background: var(--sage);
  border-radius: 18px;
  padding: 28px 22px;
  height: 100%;
}
.score-card .big {
  font-family: Fraunces, Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  margin: 8px 0;
}

.person-card { text-align: center; }
.person-card .role {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.underline {
  width: 36px;
  height: 2px;
  background: var(--green);
  margin: 8px auto 0;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--line);
}
.step { text-align: center; padding: 0 12px; position: relative; }
.step .n {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 700;
}
.timeline { border-left: 1px solid var(--line); margin-left: 16px; }
.tl-item { position: relative; padding: 0 0 22px 22px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

/* FAQ */
.nx .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
.nx .accordion-button {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  padding: 1.1rem 0;
}
.nx .accordion-button:focus { box-shadow: none; }
.nx .accordion-body { color: var(--muted); padding: 0 0 1.1rem; }
.acc-soft .accordion-button:not(.collapsed) {
  background: var(--sage-2);
  padding-left: 12px;
  padding-right: 12px;
}
.acc-plain .accordion-button::after,
.acc-soft .accordion-button::after {
  background-image: none;
  content: "+";
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  width: auto;
  height: auto;
  transform: none;
}
.acc-plain .accordion-button:not(.collapsed)::after,
.acc-soft .accordion-button:not(.collapsed)::after {
  content: "–";
  transform: none;
}

.faq-help {
  background: var(--sage);
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
}
.nx-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.nx-searchbar input {
  border: 0;
  width: 100%;
  padding: 10px 0;
  outline: none;
  background: transparent;
}
.topic {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
}
.topic.is-on { background: var(--sage-2); font-weight: 700; }

/* Map */
.map-frame {
  position: relative;
  background: #e7f0e4;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
}
.map-frame svg { width: 100%; height: 100%; min-height: 280px; display: block; }
.map-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-zoom button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.map-zoom button:last-child { border: 0; }
.map-pin-label {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -120%);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* Footer */
.nx-footer { color: var(--ink); }
.nx-footer .d-flex > *,
.nx-footer .row > * { min-width: 0; }
.nx-footer a {
  overflow-wrap: anywhere;
  text-decoration: none;
}
.nx-footer .foot-links a,
.nx-footer nav a,
.nx-footer .nx-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 24px;
  max-width: 100%;
}
.nx-footer .nx-socials a {
  justify-content: center;
  min-width: 44px;
}
.nx-footer a:hover { text-decoration: underline; }
.nx-footer-dark {
  background: var(--dark);
  color: #e7f0ea;
}
.nx-footer-dark a { color: #e7f0ea; }
.nx-footer .muted { color: var(--muted); }
.nx-footer-dark .muted { color: #b7c9c0; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 6px 0; }
.foot-top {
  background: var(--sage);
  border-radius: 0;
}

/* Hub */
.hub {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.hub-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(23,53,44,.05);
}
.hub-card:hover { box-shadow: var(--shadow); }
.hub-card small { color: var(--muted); }

@media (max-width: 991.98px) {
  .nx-scroll-item { flex-basis: calc((100% - 16px) / 2); }
  .nx-phone { display: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { display: none; }
  .svc-panel-grid,
}

.svc-simple .nx-kicker { margin-bottom: 18px; }
.svc-simple .nx-display { margin-bottom: 0; }
.svc-simple .svc-cols { margin-top: 3.25rem; }
.svc-simple h3 {
  margin: 1.65rem 0 0.95rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.45rem;
  line-height: 1.3;
}
.svc-simple .hairline-col { padding: 1.6rem 1.25rem; }
.svc-media .nx-display { margin-bottom: 0.25rem; }
.svc-media .row { margin-top: 2.4rem; }
.svc-card h3 { margin: 1.4rem 0 1rem; }
.svc-panel .nx-display { margin: 0 0 0.9rem; line-height: 1.25; }
.svc-tab { padding: 28px 22px; }

.plan-price {
  margin: 0 0 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-price small {
  font-family: Manrope, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.plan-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.plan-card.is-featured {
  background: var(--sage-2);
  box-shadow: 0 0 0 1px var(--green);
}
.plan-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
/* Planes: tabla comparativa */
.cmp-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp-table th,
.cmp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table tbody th { font-weight: 500; font-size: 15px; }
.cmp-table td { text-align: center; font-size: 14px; }
.cmp-table .cmp-feat {
  width: 28%;
  vertical-align: bottom;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cmp-table thead th[data-col] {
  position: relative;
  padding: 30px 20px 22px;
  text-align: center;
  vertical-align: top;
  font-weight: 400;
}
.cmp-table thead .btn-sm { min-width: 112px; }
.cmp-table thead th[data-col] > span { display: block; }
.cmp-table thead .plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
}
.cmp-name {
  margin: 4px 0 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
}
.cmp-table .plan-price { color: var(--ink); }
.cmp-table .plan-price small { white-space: nowrap; }
.cmp-sub { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.cmp-group > * { padding-top: 22px; padding-bottom: 10px; background: var(--paper); }
.cmp-group th {
  color: var(--green);
  font-size: 12px;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cmp-table .is-hl { background: var(--sage-2); }
.cmp-table tbody tr:last-child > :first-child { border-bottom-left-radius: 19px; }
.cmp-table tbody tr:last-child > :last-child { border-bottom-right-radius: 19px; }
.cmp-table thead .is-hl {
  border-radius: 18px 18px 0 0;
  box-shadow: inset 0 3px 0 var(--green);
}
.cmp-table tbody tr:not(.cmp-group):hover > * { background-color: rgba(231, 240, 234, 0.55); }
.cmp-table tbody tr:not(.cmp-group):hover > .is-hl { background-color: #dce9e0; }
.cmp-yes { color: var(--green); font-size: 1.25rem; }
.cmp-no { color: #b3c2ba; }
.cmp-pick { display: none; }

@media (max-width: 767.98px) {
  .cmp-pick {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--sage);
  }
  .cmp-pick button {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 9px 8px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
  }
  .cmp-pick button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(23, 53, 44, 0.1); }
  .cmp[data-show="presencia"] [data-col]:not([data-col="presencia"]),
  .cmp[data-show="tienda"] [data-col]:not([data-col="tienda"]),
  .cmp[data-show="crecer"] [data-col]:not([data-col="crecer"]) { display: none; }
  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 40%; }
  .cmp-table thead tr { grid-template-columns: 1fr; }
  .cmp-table thead .cmp-feat { display: none; }
  .cmp-table th,
  .cmp-table td { padding: 12px 14px; }
  .cmp-group > * { padding-top: 18px; }
  .cmp-table tbody tr:last-child > td { border-bottom-right-radius: 19px; }
  .cmp-table thead th[data-col] { padding: 26px 14px 18px; }
}

.hairline-col + .hairline-col { border-left: 1px solid var(--line); }

@media (max-width: 767.98px) {
  .hero-with-cards .nx-hero-slide { padding-bottom: 36px; }
  .hairline-col + .hairline-col { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .nx-hero-slide {
    align-items: flex-start;
    padding-top: 36px;
    min-height: 560px;
    background-position: center;
  }
  .nx-hero-slide::before {
    background: linear-gradient(180deg, rgba(247,244,239,.98) 0%, rgba(247,244,239,.96) 34%, rgba(247,244,239,.82) 52%, rgba(247,244,239,.2) 78%);
  }
  .nx-scroll-item { flex-basis: 86%; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .nx-search.is-open input { width: 110px; }
  .mq-top { align-items: flex-start; }
}

@media (min-width: 992px) {
  .hero-with-cards .nx-hero-cards {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(340px, 32%);
  }
}

/* Biblioteca: botones arriba, módulos debajo */
html:has(.lib-page) { scroll-behavior: smooth; }

.lib-page { background: #f7f6f2; font-family: Inter, Manrope, sans-serif; }
.lib-page .nx,
.lib-page .nx-nav,
.lib-page .nx-footer { font-family: Manrope, system-ui, sans-serif; }

.lib-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 65px;
  padding: 0 max(4.2vw, 24px);
  background: #fff;
  box-shadow: 0 1px 8px #12173c0b;
}

.lib-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 24px/1 'Bricolage Grotesque', Inter, sans-serif;
  letter-spacing: -0.03em;
  color: #0e1130;
  text-decoration: none;
  white-space: nowrap;
}
.lib-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #5a3df2;
  color: #d5f660;
  font-size: 18px;
}

.lib-header nav { display: flex; gap: 24px; align-items: center; }
.lib-header nav a {
  font-size: 12px;
  color: #262d59;
  text-decoration: none;
  white-space: nowrap;
}
.lib-header nav a.is-current {
  color: #0f1332;
  border-bottom: 2px solid #4128d1;
  padding: 9px 0;
}
.lib-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: #5d627c;
  white-space: nowrap;
  cursor: pointer;
}
.lib-logout:hover { color: #4128d1; }

/* Ingreso a la plataforma */
.lz-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: #f7f6f2; }
.lz-login-card { width: min(400px, 100%); padding: 32px 28px; border: 1px solid #e5e3dc; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(14, 17, 48, 0.08); }
.lz-login-card .lib-brand { margin-bottom: 22px; }
.lz-login-card h1 { margin: 0 0 6px; font: 800 26px/1.15 'Bricolage Grotesque', Inter, sans-serif; color: #0e1130; text-wrap: balance; }
.lz-login-card p { margin: 0 0 20px; font-size: 14px; color: #5d627c; text-wrap: pretty; }
.lz-login-card .btn-nx { width: 100%; justify-content: center; margin-top: 16px; }

.lib-bar {
  position: sticky;
  top: var(--lib-header, 65px);
  z-index: 190;
  background: #fff;
  border-bottom: 1px solid #e5e3dc;
  padding: 11px max(4.2vw, 24px);
}

.lib-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  scrollbar-width: none;
}
.lib-cats::-webkit-scrollbar { display: none; }

.lib-cats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 7px;
  background: #faf9f6;
  color: #242b58;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.lib-cats a.is-on {
  background: #0e1130;
  color: #fff;
}

.lib-main {
  --lib-gutter: clamp(16px, 2.4vw, 44px);
  padding: 8px var(--lib-gutter) 64px;
}
.lib-page-title {
  margin: 24px 0 0;
  font: 700 clamp(1.75rem, 4vw, 2.5rem) Bricolage Grotesque, Inter, sans-serif;
}
.lib-cats a,
.lib-variants a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.lib-main .mq-block[data-width="full"] > .mq-frame { margin-inline: calc(-1 * var(--lib-gutter)); }

.lib-section {
  padding: 22px 0;
  border-bottom: 1px solid #edeae1;
  scroll-margin-top: var(--lib-offset, 160px);
}

.lib-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lib-title { display: flex; gap: 12px; align-items: flex-start; }

.lib-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5a3df2;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}

.lib-title h2 {
  margin: 0;
  font-family: Inter, Manrope, sans-serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.4px;
  color: #0f1332;
}

.lib-title p {
  margin: 6px 0 0;
  max-width: 46ch;
  color: #646a90;
  font-size: 13px;
}

.lib-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-variants a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #d7d9e3;
  color: #0e1130;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.lib-variants a:hover { background: #f0eee7; }

.lib-page .mq-block { scroll-margin-top: var(--lib-offset, 160px); }
.lib-page .mq-caption { max-width: none; }

@media (max-width: 800px) {
  .lib-header { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .lib-header nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .lib-header nav a { flex-shrink: 0; white-space: nowrap; }
  .lib-nav-long { display: none; }
  .lib-header nav::-webkit-scrollbar { display: none; }
  .lib-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .lib-cats a { flex-shrink: 0; }
  .lib-title h2 { font-size: 20px; }
}

/* Imagen y texto: data-media="left|right" define el lado de la foto */
.split-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
}
.split-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.split-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.nx-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.nx-split[data-media="right"] > .split-media,
.nx-zigzag[data-media="left"] > .nx-split:nth-child(even) > .split-media,
.nx-zigzag[data-media="right"] > .nx-split:nth-child(odd) > .split-media { order: 2; }
.nx-zigzag { display: grid; gap: clamp(56px, 8vw, 104px); }

.split-media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media.is-tall { aspect-ratio: 5 / 6; }
.split-copy { max-width: 520px; }
.split-copy .nx-display { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.split-copy > p:not(.nx-kicker) { color: var(--muted); margin: 18px 0 0; }
.split-copy .nx-checks { margin-top: 22px; }
.split-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.split-link .bi { transition: transform 0.2s ease; }
.split-link:hover .bi { transform: translateX(3px); }

.split-framed { overflow: visible; background: none; }
.split-framed img { border-radius: 20px; position: relative; z-index: 1; }
.split-framed::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 20px;
  background: var(--sage-2);
}
[data-media="right"] > .split-framed::before { inset: 18px 18px -18px -18px; }

.split-stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}
.split-stat strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 560;
  line-height: 1;
}
.split-stat span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.split-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  color: var(--green);
  font-size: 1.05rem;
}

@media (max-width: 767.98px) {
  .nx-split { grid-template-columns: 1fr; }
  .nx-split > .split-media { order: 0 !important; }
  .split-framed::before,
  [data-media="right"] > .split-framed::before { inset: 12px -10px -12px 10px; }
}

/* Footer con cierre */
.foot-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 120% at 88% 0%, rgba(111, 191, 147, 0.45) 0%, transparent 60%),
    radial-gradient(50% 110% at 6% 100%, rgba(214, 178, 112, 0.32) 0%, transparent 60%),
    linear-gradient(115deg, #0e2a20 0%, #17493a 55%, #1b5e42 100%);
}
.foot-cta .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px 48px;
  align-items: center;
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.foot-cta h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.foot-cta h2 .em { color: #b9e2c9; }
.foot-cta p { margin: 14px 0 0; color: #cfe2d7; max-width: 44ch; }
.foot-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.foot-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 14px;
  outline: none;
}
.foot-form input::placeholder { color: #b7cfc2; }
/* El campo no tiene borde propio: el foco se marca en el contenedor (WCAG 2.4.7) */
.foot-form:focus-within, .nx-searchbar:focus-within { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.foot-form .btn-nx-light { white-space: nowrap; }
.foot-form-note { margin: 10px 4px 0; font-size: 13px; color: #b7cfc2; min-height: 1.3em; }

.foot-main { padding: clamp(44px, 6vw, 68px) 0 28px; }
.foot-main :is(h2, .nx-footer-label) {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-main .foot-links li { margin: 9px 0; }
.foot-main .foot-links a { color: var(--ink); }
.foot-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.foot-rating strong { font-family: Fraunces, Georgia, serif; font-size: 1.6rem; line-height: 1; }
.foot-rating small { display: block; color: var(--muted); font-size: 12px; }
.foot-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--sage);
}
.foot-contact img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.foot-contact p { margin: 0; font-size: 14px; }
.foot-contact .muted { font-size: 13px; }
.foot-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3fae74;
  box-shadow: 0 0 0 3px rgba(63, 174, 116, 0.2);
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-bottom nav a { color: var(--muted); }
.foot-bottom .nx-socials a { color: var(--ink); border-color: var(--line); width: 34px; height: 34px; }
.foot-bottom .nx-socials a:hover { background: var(--sage-2); text-decoration: none; }

@media (max-width: 767.98px) {
  .foot-cta .container { grid-template-columns: 1fr; }
  .foot-form { flex-direction: column; border-radius: 18px; }
  .foot-form .btn-nx-light { width: 100%; }
}

/* Terminación: tipografía, foco y respuesta al hover */
.nx {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.nx-display,
.nx h3,
.nx :is(.stat-n, .hero-stat-n),
.nx-banner h3 { text-wrap: balance; }
.nx p,
.nx li { text-wrap: pretty; }
.plan-price,
.prod-price,
.score-card .big,
.nx-time { font-variant-numeric: tabular-nums lining-nums; }

.nx a:focus-visible,
.nx button:focus-visible,
.nx input:focus-visible,
.nx .accordion-button:focus-visible,
.lib-page a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  box-shadow: none;
}
.nx-nav-dark a:focus-visible,
.nx-nav-dark button:focus-visible,
.nx-footer-dark a:focus-visible { outline-color: #fff; }

.btn-nx,
.btn-nx-outline,
.btn-nx-light {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-nx:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(27, 94, 66, 0.22); }
.btn-nx-outline:hover,
.btn-nx-light:hover { transform: translateY(-1px); }
.btn-nx:active,
.btn-nx-outline:active,
.btn-nx-light:active { transform: none; box-shadow: none; }
.btn-nx .bi-arrow-right { transition: transform 0.2s ease; }
.btn-nx:hover .bi-arrow-right { transform: translateX(3px); }

.svc-card,
.ben-card,
.step-card,
.quote-card,
.person-card {
  box-shadow: 0 0 0 1px rgba(23, 53, 44, 0.06), 0 1px 2px rgba(23, 53, 44, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover,
.ben-card:hover,
.step-card:hover,
.quote-card:hover,
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(23, 53, 44, 0.08), 0 18px 36px rgba(23, 53, 44, 0.1);
}

.prod-card .nx-frame img,
.gal-card .nx-frame img,
.vid-card .nx-frame img,
.bento-tile img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.prod-card:hover .nx-frame img,
.gal-card:hover .nx-frame img,
.vid-card:hover .nx-frame img,
.bento-tile:hover img { transform: scale(1.04); }
.vid-row img { transition: opacity 0.2s ease; }
.vid-row:hover img { opacity: 0.86; }
.vid-row:hover :is(h3, .vid-row-title) { color: var(--green); }
.nx-play { transition: transform 0.2s ease, background 0.2s ease; }
.nx-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }

.nx-tabs button,
.svc-tab,
.topic { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.nx-tabs button:hover { color: var(--ink); }
.svc-tab:not(.is-on):hover,
.topic:not(.is-on):hover { background: var(--sage); }
.svc-tab.is-on .nx-ico { background: var(--green); color: #fff; }
.nx-ico { transition: background 0.2s ease, color 0.2s ease; }

.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card .plan-price { color: var(--ink); }
.plan-card .plan-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  box-shadow: 0 6px 14px rgba(27, 94, 66, 0.25);
}
.plan-card > a:last-child { margin-top: auto !important; align-self: flex-start; }
.plan-card > p:not(.plan-kicker):not(.plan-price) { margin-bottom: 1.25rem; }
.plan-card .nx-checks { padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .plan-card.is-featured { transform: translateY(-10px); box-shadow: 0 0 0 1.5px var(--green), 0 22px 44px rgba(23, 53, 44, 0.14); }
  .plan-card.is-featured:hover { transform: translateY(-13px); }
}

.nx-banner { background: linear-gradient(120deg, var(--sage-2), #dfeae3); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .btn-nx:hover,
  .btn-nx-outline:hover,
  .btn-nx-light:hover,
  .svc-card:hover,
  .ben-card:hover,
  .step-card:hover,
  .quote-card:hover,
  .person-card:hover,
  .plan-card.is-featured:hover { transform: none; }
  .prod-card:hover .nx-frame img,
  .gal-card:hover .nx-frame img,
  .vid-card:hover .nx-frame img,
  .bento-tile:hover img { transform: none; }
}

/* Reserva tu turno */
.bk-field { display: grid; gap: 6px; margin: 0; }
.bk-field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.bk-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.bk-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
select.bk-input { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6f68' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 4.6a.7.7 0 0 1 1 0L8 10l5.4-5.4a.7.7 0 1 1 1 1l-5.9 5.9a.7.7 0 0 1-1 0L1.6 5.6a.7.7 0 0 1 0-1z'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea.bk-input { min-height: 0; resize: vertical; }
.bk-input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.bk-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bk-check input { width: 18px; height: 18px; accent-color: var(--green); }
.bk-msg { min-height: 0; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #b4541f; }
.bk-msg:empty { display: none; }

.bk-quick { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.bk-quick-copy { max-width: 620px; margin-bottom: 44px; }
.bk-done-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 14px; background: var(--sage-2); }
.bk-done-inline[hidden] { display: none; }
.bk-done-inline > i { font-size: 1.6rem; color: var(--green); }
.bk-done-inline p { flex: 1 1 260px; margin: 0; }

.bk-perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.bk-perks li { display: flex; gap: 14px; align-items: flex-start; }
.bk-perks strong { display: block; }
.bk-perks p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.bk-alt { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.bk-alt a { color: var(--green); font-weight: 600; }
.bk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.bk-label { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-weight: 700; }
.bk-label:first-child { margin-top: 0; }
.bk-label span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 12px; }
.bk-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bk-day {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bk-day small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.bk-day strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-slot {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bk-slot:disabled { color: #a9b6b0; background: #f4f6f5; text-decoration: line-through; cursor: not-allowed; }
.bk-day:hover:not([aria-pressed="true"]),
.bk-slot:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--green); }
.bk-day[aria-pressed="true"],
.bk-slot[aria-pressed="true"],
.bk-cal-day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.bk-day[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.8); }
.bk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bk-pick { margin: 0; font-weight: 600; }
.bk-pick::first-letter { text-transform: uppercase; }
.bk-pick .is-empty { color: var(--muted); font-weight: 400; }
.bk-done { text-align: center; padding: clamp(12px, 3vw, 28px) 0; }
.bk-done[hidden] { display: none; }
.bk-done-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 2rem; }
.bk-done h3 { font-family: Fraunces, Georgia, serif; font-weight: 520; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; }
.bk-done p { max-width: 46ch; margin: 0 auto 18px; color: var(--muted); }
.bk-done b { color: var(--ink); }
.bk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.bk-wizard { max-width: 1080px; margin: 0 auto; }
.bk-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.bk-steps button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid var(--line);
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}
.bk-steps span { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-2); color: var(--green); font-size: 13px; }
.bk-steps .is-on button { border-color: var(--green); color: var(--ink); }
.bk-steps .is-on span { background: var(--green); color: #fff; }
.bk-steps .is-done button { border-color: #9cc2b0; color: var(--ink); cursor: pointer; }
.bk-steps .is-done span { background: #cfe3d8; }
.bk-steps button:disabled { cursor: default; }
.bk-wizard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.bk-stage { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); min-width: 0; }
.bk-step-title { margin: 0 0 18px; font-family: Fraunces, Georgia, serif; font-weight: 520; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.bk-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-service,
.bk-pro {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.bk-service .nx-ico { margin-bottom: 8px; }
.bk-service small { color: var(--muted); }
.bk-price { position: absolute; top: 16px; right: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-service:hover,
.bk-pro:hover { border-color: #9cc2b0; }
.bk-service[aria-pressed="true"],
.bk-pro[aria-pressed="true"] { border-color: var(--green); background: #f2f8f5; box-shadow: inset 0 0 0 1px var(--green); }
.bk-service[aria-pressed="true"] .nx-ico { background: var(--green); color: #fff; }
.bk-pros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bk-pro { justify-items: center; text-align: center; padding: 18px 12px; }
.bk-pro img,
.bk-pro-any { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.bk-pro-any { display: grid; place-items: center; background: var(--sage-2); color: var(--green); font-size: 1.6rem; }
.bk-pro small { color: var(--muted); font-size: 13px; }
.bk-cal { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.bk-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bk-cal-head strong::first-letter { text-transform: uppercase; }
.bk-cal-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); }
.bk-cal-head button:disabled { opacity: 0.35; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.bk-cal-dow { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.bk-cal-grid > span,
.bk-cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bk-cal-off { color: #b9c4bf; }
.bk-cal-day { border: 0; background: none; color: var(--ink); font-weight: 600; }
.bk-cal-day:hover:not([aria-pressed="true"]) { background: var(--sage-2); }
.bk-slot-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.bk-slot-title ~ .bk-slot-title { margin-top: 16px; }
.bk-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bk-nav [data-book-next] { margin-left: auto; }
.bk-nav [data-book-next]:disabled { opacity: 0.45; cursor: not-allowed; }
.bk-summary { position: sticky; top: 16px; background: var(--dark); color: #fff; border-radius: var(--radius); padding: 22px; }
.bk-summary h3 { margin: 0 0 14px; font-family: Fraunces, Georgia, serif; font-weight: 520; font-size: 1.4rem; }
.bk-summary dl { margin: 0; display: grid; gap: 10px; }
.bk-summary dl > div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.bk-summary dt { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.65); }
.bk-summary dt i { margin-right: 4px; }
.bk-summary dd { margin: 0; font-weight: 600; }
.bk-summary dd::first-letter { text-transform: uppercase; }
.bk-summary .is-empty { color: rgba(255, 255, 255, 0.4); }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; }
.bk-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.bk-policy { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 991.98px) {
  .bk-wizard-grid { grid-template-columns: 1fr; }
  .bk-summary { position: static; }
  .bk-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .bk-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-pros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-steps button { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 8px 2px; font-size: 12px; }
}
@media (max-width: 575.98px) {
  .bk-services { grid-template-columns: 1fr; }
  .bk-foot .btn-nx, .bk-nav .btn-nx { flex: 1; }
  .bk-done-actions > * { flex: 1 1 100%; }
}

/* Ancho: con márgenes / completo */
:root { --nx-gutter: clamp(24px, 8vw, 160px); }
@media (max-width: 575.98px) { :root { --nx-gutter: 24px; } }

.mq-caption > :first-child { margin-right: auto; }
.mq-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.mq-ready .mq-frame { transition: margin 0.35s ease; }
.mq-block[data-width="contained"] > .mq-frame:not(:has(.navbar)) { overflow: hidden; }
body:not(.lib-page) .mq-block[data-width="contained"] > .mq-frame { margin-inline: var(--nx-gutter); }

.nx[data-width] { container-type: inline-size; }
.nx[data-width="full"] .container { max-width: none; padding-inline: var(--nx-gutter); }

.nx[data-width="full"] .fw-bleed {
  width: 100cqi !important;
  max-width: none;
  margin-left: calc(50% - 50cqi);
  border-radius: 0 !important;
}
.nx[data-width="full"] .fw-bleed .carousel-inner,
.nx[data-width="full"] .fw-bleed .nx-frame { border-radius: 0 !important; }

.nx[data-width="full"] .fw-track {
  margin-inline: calc(50% - 50cqi);
  padding-inline: calc(50cqi - 50%);
  scroll-padding-inline: var(--nx-gutter);
}

.nx-hero[data-width="full"] .nx-hero-slide { background-position: center; }
.nx-hero .nx-hero-slide::before {
  background: linear-gradient(90deg, rgba(247, 244, 239, 0.86) 0%, rgba(247, 244, 239, 0.6) 30%, rgba(247, 244, 239, 0.12) 55%, rgba(247, 244, 239, 0) 70%);
}

.nx[data-width="full"] .carousel.fw-bleed img { height: min(56vw, 620px) !important; }

.nx[data-width="full"] .fw-bleed.ratio-16x9 { aspect-ratio: 21 / 9; }

.nx[data-width="full"] .vid-feature > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.nx[data-width="full"] .vid-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 767.98px) {
  .nx-hero .carousel-control-prev,
  .nx-hero .carousel-control-next { top: auto; bottom: 14px; transform: none; }
  .nx-hero .nx-hero-slide::before {
    background: linear-gradient(180deg, rgba(247, 244, 239, 0.94) 0%, rgba(247, 244, 239, 0.82) 36%, rgba(247, 244, 239, 0.3) 60%, rgba(247, 244, 239, 0) 80%);
  }
  .nx[data-width="full"] .fw-bleed.ratio-16x9 { aspect-ratio: 4 / 3; }
  .nx[data-width="full"] .vid-side { grid-template-columns: 1fr; }
}
body:not(.lib-page) .mq-caption { max-width: none; padding-inline: calc(var(--nx-gutter) + 8px); }
@media (min-width: 768px) {
  .carousel.nx-hero .nx-hero-slide .container,
  .nx-hero[data-width="full"] .nx-hero-slide .container { padding-inline: max(var(--nx-gutter), 84px); }
}

/* Landings generadas */
.landing-page { background: var(--paper); }
.landing-page .mq-block { padding: 0; }
.landing-page > section[data-module],
.landing-page > main > section[data-module] { scroll-margin-top: var(--nx-nav-h, 0px); }
html:has(> .landing-page) { scroll-behavior: smooth; }
.landing-page > section[data-module^="navegacion"] {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.25s ease;
}
.landing-page > section[data-module^="navegacion"].is-stuck { box-shadow: 0 8px 24px rgba(11, 23, 54, 0.1); }
.landing-page > section[data-module^="navegacion"] .nav-dark-wrap { transition: padding 0.25s ease; }
.landing-page > section[data-module^="navegacion"].is-stuck .nav-dark-wrap { padding: 8px 0; }
.landing-page > section[data-module^="navegacion"].is-measuring .nav-dark-wrap { transition: none; }
.landing-page > section[data-module^="navegacion"].is-stuck:has(.nav-dark-wrap) { margin-bottom: 30px; }
@media (max-width: 991.98px) {
  .landing-page > section[data-module^="navegacion"] .navbar-collapse {
    max-height: calc(100dvh - var(--nx-nav-h, 72px));
    overflow-y: auto;
  }
}

.landing-page.has-tools { padding-bottom: 0; }
/* Floating WhatsApp is an overlay, not a section of page content. */
.landing-page section[data-module^="whatsapp-"],
.landing-page section[data-module^="whatsapp-"] > .mq-frame,
.landing-page section[data-module^="whatsapp-"] .nx-wa-wrap {
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  box-shadow: none;
}
.has-tools > .mq-block { position: relative; }
.has-tools > .mq-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1060;
  border: calc(2px * var(--lb-ui-scale, 1)) dashed transparent;
  pointer-events: none;
  transition: border-color 0.15s ease, background-color 0.4s ease;
}
.has-tools > .mq-block:hover::after { border-color: rgba(90, 61, 242, 0.55); }
.has-tools > .mq-block.lp-flash::after { border-color: #5a3df2; border-style: solid; background: rgba(90, 61, 242, 0.08); }
.lp-tools {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 1070;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0.3em;
  border-radius: 999px;
  background: #0e1130;
  box-shadow: 0 8px 24px rgba(11, 23, 54, 0.3);
  color: #fff;
  font: 600 calc(13px * var(--lb-ui-scale, 1)) / 1 Inter, system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.has-tools > .mq-block:hover > .lp-tools,
.has-tools > .mq-block.lp-flash > .lp-tools,
.lp-tools:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .lp-tools { opacity: 1; pointer-events: auto; } }
.lp-tools span { display: inline-flex; align-items: center; gap: 0.35em; padding: 0 0.8em 0 0.7em; color: rgba(255, 255, 255, 0.75); }
.lp-tools button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 0;
  border-radius: 999px;
  padding: 0.6em 0.75em;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.lp-tools button i { font-size: 1.1em; }
.lp-tools button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.lp-tools button[data-act="restore"] { background: #d5f660; color: #0e1130; }
.lp-tools button[data-act="remove"]:hover { background: #e5484d; }
.lp-tools button:disabled { opacity: 0.3; cursor: default; }

/* Constructor de landings */
.builder-page { min-height: 100vh; }
.lb-main {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px max(2.4vw, 16px) 48px;
  align-items: start;
}
html.is-client .lib-header { justify-content: space-between; }
html.is-client .lib-brand { cursor: default; }
html.is-client .lb-back {
  display: inline-flex !important;
  margin-left: auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #262d59;
  text-decoration: none;
}
html.is-client .lib-brand-mark img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
html.is-client .lib-header nav,
html.is-client .lb-side,
html.is-client .lb-heading,
html.is-client .lb-status,
html.is-client .lb-qa-col,
html.is-client [data-lb-new],
html.is-client [data-lb-library-open],
html.is-client [data-lb-qa],
html.is-client .split-toggle,
html.is-client [data-lb-ai-texts],
html.is-client [data-template-start] {
  display: none !important;
}
html.is-client .lb-main { grid-template-columns: minmax(0, 1fr); }
html.is-client .lb-work { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); gap: 0; align-items: stretch; height: calc(100vh - 150px); }
html.is-client .lb-viewport { height: 100%; overflow: auto; }
html.is-client .lb-split { display: block; width: 14px; border: 0; padding: 0; cursor: ew-resize; touch-action: none; background: linear-gradient(#c4bfb2, #c4bfb2) center / 3px 100% no-repeat; }
html.is-client .lb-change-device iframe { border: 0; display: block; }
html.is-client .lb-change-pane { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
html.is-client .lb-change-view { flex: 1; overflow-x: hidden; overflow-y: auto; }
html.is-client .lb-change-device { transform-origin: top left; }
.lb-side {
  position: sticky;
  top: calc(var(--lib-header, 65px) + 16px);
  max-height: calc(100vh - var(--lib-header, 65px) - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
}
.lb-card {
  background: #fff;
  border: 1px solid #f0ede5;
  border-radius: 16px;
  padding: 18px;
}
.lb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lb-card-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #0f1332; }
.lb-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: #0f1332; }
.lb-input {
  width: 100%;
  border: 1px solid #d6d9ea;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: #0f1332;
}
.lb-input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.lb-hint, .lb-empty { margin: 8px 0 0; font-size: 13px; color: #5b6186; }
.lb-badge { font-size: 12px; color: #4128d1; background: #ebe6ff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.lb-link { border: 0; background: none; padding: 0; font-size: 12px; color: #5b6186; text-decoration: underline; }
.lb-link:hover { color: var(--green); }

.lb-search { position: relative; margin-bottom: 10px; }
.lb-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #626779; font-size: 13px; }
.lb-search input { width: 100%; border: 1px solid #d6d9ea; border-radius: 10px; padding: 9px 12px 9px 34px; font-size: 14px; }

.lb-group { border-top: 1px solid #f5f3ee; }
.lb-group:first-child { border-top: 0; }
.lb-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #0f1332;
  cursor: pointer;
  list-style: none;
}
.lb-group summary::-webkit-details-marker { display: none; }
.lb-group summary::after { content: "\F282"; font-family: bootstrap-icons; font-size: var(--fs-label); color: #626779; margin-left: 10px; transition: transform 0.2s; }
.lb-group[open] summary::after { transform: rotate(180deg); }
.lb-group-count { margin-left: auto; font-size: 12px; font-weight: 500; color: #626779; font-variant-numeric: tabular-nums; }
.lb-mods { display: grid; gap: 8px; padding: 0 0 12px; }
.lb-mod {
  position: relative;
  display: grid;
  grid-template-columns: 22px 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #f0ede5;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-mod:hover { border-color: #ab98f7; }
.lb-mod.is-on { border-color: var(--green); background: #f7f6f2; }
.lb-mod input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.lb-thumb {
  position: relative;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f2ee;
  display: grid;
  place-items: center;
  color: #9fa2b4;
}
.lb-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lb-mod-text strong { display: block; font-size: 14px; color: #0f1332; }
.lb-mod-text small { display: block; font-size: 12px; color: #5b6186; }
.lb-check { display: none; }

.lb-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas: "num text text" ". meta tools";
  align-items: center;
  gap: 2px 10px;
  padding: 10px 10px 10px 12px;
  border: 1px solid #f0ede5;
  border-radius: 12px;
  background: #fbfbfe;
}
.lb-item-num { grid-area: num; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: #626779; font-variant-numeric: tabular-nums; }
.lb-item-num b { font-weight: 500; }
.lb-item-grip { font-size: 15px; color: #a3a7c2; cursor: grab; }
.lb-item[draggable="true"] { cursor: grab; }
.lb-item[draggable="true"]:hover { border-color: #ddd8fb; }
.lb-item[draggable="true"]:hover .lb-item-grip { color: var(--green); }
.lb-item.is-pinned { background: #f6f5f1; }
.lb-item.is-dragging { opacity: 0.45; }
.lb-item.is-drop-before { box-shadow: 0 -3px 0 #5a3df2; }
.lb-item.is-drop-after { box-shadow: 0 3px 0 #5a3df2; }
.lb-item-text { grid-area: text; min-width: 0; font-size: 14px; color: #0f1332; }
.lb-item-meta { grid-area: meta; min-width: 0; font-size: 12px; color: #5b6186; text-wrap: pretty; }
.lb-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f4f2ee; }
.lb-seg button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: #4a5077;
  white-space: nowrap;
}
.lb-seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.lb-seg button[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(18, 23, 60, 0.12); }
.lb-item-seg { grid-area: chip; justify-self: start; margin-top: 6px; }
.lb-settings { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: #faf9f6; }
.lb-settings[hidden] { display: none; }
.lb-setting { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; color: #0f1332; }
.lb-item-tools { grid-area: tools; display: flex; gap: 0; }
.lb-item-tools button,
.lb-item-tools a {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #4a5077;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.lb-item-tools button:hover:not(:disabled),
.lb-item-tools a:hover { background: #f4f2ee; color: var(--ink); }
.lb-msg a { margin-left: 4px; font-weight: 600; color: var(--green); }
.lb-item-tools button:disabled { opacity: 0.3; }

.lb-saved { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lb-saved-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #f0ede5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.lb-saved-item:hover { border-color: #cfd2e7; box-shadow: 0 10px 24px rgba(15, 19, 50, 0.08); }
.lb-saved-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f6f4ef;
  border-bottom: 1px solid #f0ede5;
  color: #9fa4c3;
  font-size: 26px;
}
.lb-saved-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s ease; }
.lb-saved-thumb:hover img { transform: scale(1.04); }
.lb-saved-text { min-width: 0; flex: 1; padding: 10px 12px 4px; }
.lb-saved-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; color: #0f1332; }
.lb-saved-text small { display: block; margin-top: 2px; font-size: 12px; color: #5b6186; overflow-wrap: anywhere; }
.lb-saved-text .lb-saved-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-saved-actions { display: flex; gap: 4px; padding: 6px 8px 10px; }
.lb-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6d9ea;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #4128d1;
  text-decoration: none;
  white-space: nowrap;
}
.lb-act:hover { border-color: var(--green); color: var(--green); }
.lb-act.is-danger { color: #b4541f; }
.lb-act.is-danger:hover { border-color: #b4541f; background: #fdf3ee; color: #b4541f; }
.lb-act:disabled { opacity: 0.5; }
.lb-act-icon { justify-content: center; width: 34px; height: 34px; padding: 0; border-color: transparent; font-size: 15px; color: #4a5077; }
.lb-act-icon:hover { background: #f5f3ee; border-color: transparent; }
.lb-act-icon.is-danger { margin-left: auto; }
.lb-act-icon.is-danger:hover { border-color: transparent; }

[data-lb-library-open] .lb-badge { margin-left: 4px; padding: 1px 8px; }

.lb-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 22px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(18, 23, 60, 0.28);
}
.lb-dialog::backdrop { background: rgba(15, 19, 50, 0.45); }
.lb-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.lb-dialog-head h2 { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 24px; color: #0f1332; }
.lb-dialog-head p { margin: 2px 0 0; font-size: 13px; color: #5b6186; }
.lb-dialog-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f4f2ee; color: #0f1332; }
.lb-dialog-close:hover { background: #e9e6dd; }
.lb-dialog .lb-msg:empty { display: none; }
.pf-versions { width: min(560px, calc(100% - 32px)); }
.pf-versions > p { margin: 0 0 12px; font-size: 14px; color: #5b6186; }
.pf-version-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.pf-version-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e6e3da; border-radius: 12px; }
.pf-version-list strong { display: block; font-size: 14px; color: #0f1332; }
.pf-version-list small { display: block; font-size: 13px; color: #5b6186; }
@media (max-width: 575.98px) {
  .lb-dialog { padding: 16px; }
  .lb-saved { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.lb-stage { min-width: 0; }
.lb-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 12px; }
.lb-kicker { margin: 0 0 2px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5b6186; }
.lb-title { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(22px, 2.4vw, 30px); color: #0f1332; }
.lb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lb-msg { min-height: 20px; margin: 0 0 10px; font-size: 13px; color: #5b6186; }
.lb-msg.is-ok { color: var(--green); }
.lb-msg.is-warn { color: #b4541f; }
.lb-viewport {
  position: relative;
  min-height: 420px;
  padding: 16px;
  border-radius: 18px;
  background: #f1eee7;
  overflow: hidden;
}
.lb-device {
  transform-origin: top left;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(18, 23, 60, 0.14);
  transition: width 0.3s ease;
}
.lb-device iframe { display: block; width: 100%; height: 600px; border: 0; }
.lb-placeholder {
  position: absolute;
  inset: 16px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #5b6186;
  border: 2px dashed #c8cbdf;
  border-radius: 12px;
}
.lb-placeholder i { font-size: 2.4rem; color: #9fa2b4; }
.lb-placeholder p { margin: 0; max-width: 30ch; }

@media (max-width: 991.98px) {
  .lb-main { grid-template-columns: 1fr; }
  .lb-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
}

/* Constructor: cliente de la landing */
.lb-card-head .lb-label { margin: 0; }
.lb-label-gap { margin-top: 16px; }
.lb-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lb-mode.is-editing { color: #4128d1; }
.lb-mode .lb-link { font-size: 13px; }

/* Constructor: pasos, estado y pestañas */
.lb-step-head { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; }
.lb-step-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: #0f1332; }
.lb-step-head .lb-badge { margin-left: auto; }
.lb-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f2ee;
  color: #4128d1;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.lb-step-num i { display: none; font-size: 15px; }
.lb-step.is-done .lb-step-num { background: var(--green); color: #fff; }
.lb-step.is-done .lb-step-num span { display: none; }
.lb-step.is-done .lb-step-num i { display: block; }

.lb-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: #f4f2ee; }
.lb-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 8px 6px;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #4a5077;
  white-space: nowrap;
}
.lb-tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.lb-tabs button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(18, 23, 60, 0.12); }
.lb-tab-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #eae7df; color: #4128d1; font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.lb-tabs button[aria-selected="true"] .lb-tab-count { background: var(--green); color: #fff; }
@media (max-width: 379.98px) {
  .lb-tabs button { gap: 4px; padding: 8px 4px; }
  .lb-tabs button > i { display: none; }
}
.lb-order-foot { margin: 12px 0 0; text-align: right; }

.lb-heading { min-width: 0; }
.lb-heading .lb-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.lb-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ebe6ff;
  color: var(--green);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lb-mode-chip.is-editing { background: #eaecf9; color: #2e3d9f; }
.lb-title { overflow-wrap: anywhere; }
.btn-nx:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-nx.is-pending { opacity: 0.55; }
.btn-nx.is-pending:hover { transform: none; box-shadow: none; }

[data-lb-client-review][hidden] { display: none; }
.lb-statusbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding: 10px 12px 10px 16px;
  border: 1px solid #f0ede5;
  border-radius: 14px;
  background: #fff;
}
.lb-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; color: #4a5077; }
.lb-status.is-ok { color: var(--green); }
.lb-status.is-dirty { color: #a4561c; }
.lb-status-lead { font-weight: 600; color: #0f1332; }
.lb-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed #c9a37f;
  border-radius: 999px;
  padding: 3px 11px;
  background: #fdf6ef;
  color: #8a4b1a;
  font-size: 13px;
  font-weight: 600;
}
.lb-todo:hover { background: #f9eadb; }
.lb-dot { width: 9px; height: 9px; border-radius: 50%; background: #e08a3c; box-shadow: 0 0 0 4px rgba(224, 138, 60, 0.18); }
.lb-preview-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lb-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #4a5077;
}
.lb-icon-btn:hover { color: var(--green); border-color: #ab98f7; }
.lb-msg:empty { display: none; }
.lb-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lb-msg a, .lb-msg-btn { margin-left: 4px; font-weight: 600; color: var(--green); }
.lb-msg-btn { border: 0; padding: 0; background: none; text-decoration: underline; font-size: inherit; }

@media (max-width: 991.98px) {
  .builder-page { padding-bottom: 76px; }
  .lb-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    flex-wrap: nowrap;
    padding: 12px max(2.4vw, 16px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #f0ede5;
    box-shadow: 0 -8px 24px rgba(18, 23, 60, 0.08);
  }
  .lb-actions [data-lb-create] { flex: 1; justify-content: center; }
  .lb-actions .lb-jump:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  .lb-actions [data-lb-create] { white-space: nowrap; }
}
@media (max-width: 379px) {
  .lb-jump [data-lb-jump-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 992px) { .lb-jump { display: none !important; } }
@media (max-width: 575.98px) {
  .lb-btn-text { display: none; }
  .lb-statusbar { padding: 10px 12px; }
  .split-toggle button span { display: none; }
}
select.lb-input { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235b6f86' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 4.6a.7.7 0 0 1 1 0L8 10l5.4-5.4a.7.7 0 1 1 1 1l-5.9 5.9a.7.7 0 0 1-1 0L1.6 5.6a.7.7 0 0 1 0-1z'/%3E%3C/svg%3E") no-repeat right 14px center; }
.lb-dialog-foot { margin: 14px 0 0; font-size: 13px; }
.lb-dialog-foot a { color: var(--green); font-weight: 600; }

/* Plataforma: clientes y landings */
.pf-main { max-width: 1180px; margin: 0 auto; padding: 32px max(2.4vw, 16px) 64px; }
.pf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.pf-title { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; color: #0f1332; text-wrap: balance; }
.pf-sub { margin: 4px 0 0; font-size: 15px; color: #5b6186; }
.pf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-filters .lb-search { flex: 1 1 280px; max-width: 460px; margin: 0; }
.pf-filters .lb-search input { padding-top: 11px; padding-bottom: 11px; background: #fff; }
.pf-filters .lb-seg { background: #eeebe3; }
.pf-select { width: auto; min-width: 220px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.pf-empty { margin: 18px 0 0; padding: 28px; border: 2px dashed #c8cbdf; border-radius: 16px; text-align: center; color: #5b6186; }
.pf-empty a { color: var(--green); font-weight: 600; }
.pf-empty[hidden] { display: none; }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pf-client {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #f0ede5;
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-client:hover { border-color: #c9ccde; box-shadow: 0 12px 30px rgba(18, 23, 60, 0.07); }
.pf-client.is-paused { background: #fdfcfb; }
.pf-client.is-paused .pf-avatar { filter: grayscale(0.6); opacity: 0.75; }
.pf-client-top { display: flex; align-items: center; gap: 12px; }
.pf-client-name { min-width: 0; flex: 1; }
.pf-client-name h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.pf-client-name h2 a { color: #0f1332; text-decoration: none; }
.pf-client-name h2 a:hover { color: var(--green); }
.pf-client-name p { margin: 2px 0 0; font-size: 13px; color: #5b6186; }
.pf-client-data { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #33395f; }
.pf-client-data li { display: flex; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pf-client-data i { color: #626779; }
.pf-client-data .is-muted { color: #626779; }
.pf-client-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f5f3ee; }
.pf-client-actions { display: flex; gap: 6px; }

.pf-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--c1, var(--green));
  color: var(--c2, #fff);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.pf-avatar.has-logo { background: #fff; border: 1px solid #f0ede5; }
.pf-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pf-avatar.is-lg { width: 84px; height: 84px; border-radius: 22px; font-size: 26px; }
.pf-avatar.is-lg img { padding: 10px; }

.pf-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pf-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pf-status.is-activo { background: #ebe6ff; color: #4128d1; }
.pf-status.is-pausado { background: #f3efe8; color: #6f5427; }

.pf-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #4a5077; text-decoration: none; }
.pf-back:hover { color: var(--green); }
.pf-profile { padding: 24px; background: #fff; border: 1px solid #f0ede5; border-radius: 20px; }
.pf-profile > .pf-empty { margin: 0; }
.pf-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.pf-profile-name { flex: 1; min-width: 200px; }
.pf-profile-name h1 { margin: 0 0 8px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(26px, 3.4vw, 36px); color: #0f1332; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #f5f3ee; }
.pf-fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #626779; }
.pf-fact dd { margin: 3px 0 0; font-size: 14px; color: #0f1332; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-fact dd a { color: var(--green); }
.pf-swatch { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(18, 23, 60, 0.12); }
.pf-notes { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #faf9f6; font-size: 14px; color: #33395f; }
.pf-notes strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.04em; color: #4128d1; }
.pf-notes p { margin: 0; white-space: pre-line; }
.pf-admin { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e6e3dc; }
.pf-admin h2 { font-size: 18px; margin: 16px 0 8px; }
.pf-admin-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0 14px; }
.pf-admin-form label { display: grid; gap: 4px; font-size: 13px; }
.pf-admin-clave { font-weight: 650; }
.pf-nav-pending { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: #b4541f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.pf-client.has-pending { border-color: #e9a55f; box-shadow: 0 0 0 1px #e9a55f; }
.pf-pending { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #fff4e5; color: #7a3410; font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-pending:hover { background: #ffe8c7; }
.pf-pending-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #f0c48a; border-radius: 10px; background: #fff4e5; color: #3d1f05; }
.pf-pending-banner > i { color: #b4541f; font-size: 18px; }
.pf-pending-banner p { flex: 1 1 260px; margin: 0; text-wrap: pretty; }
.pf-pending-banner .btn-nx { text-wrap: balance; }
.pf-acceso-actual { display: grid; gap: 6px; margin: 8px 0 14px; padding: 12px 14px; max-width: 420px; border: 1px solid #e0e9eb; border-radius: 10px; background: #fff; }
.pf-acceso-actual div { display: flex; gap: 12px; font-size: 15px; }
.pf-acceso-actual dt { min-width: 92px; color: #5b6170; font-weight: 600; }
.pf-acceso-actual dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #0f1332; word-break: break-all; }
.pf-acceso-actual .pf-acceso-nota { font-family: Inter, Manrope, sans-serif; font-size: 14px; color: #5b6170; word-break: normal; text-wrap: pretty; }
.pf-acceso-actual button { justify-self: start; margin-top: 4px; }
.pt-wa { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #128c7e; color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr); gap: 16px; align-items: start; }
.pt-panel { background: #fff; border: 1px solid #f0ede5; border-radius: 18px; padding: 18px; }
.pt-panel h2 { margin: 0 0 12px; font-size: 18px; }
.pt-facts { display: grid; gap: 8px; margin: 0; }
.pt-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pt-facts dt { color: #5b6186; }
.pt-facts dd { margin: 0; text-align: right; }
.pt-help { display: grid; gap: 8px; margin-top: 16px; }
.pt-help a { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f7f6f2; color: #0f1332; text-decoration: none; font-weight: 600; }
@media (max-width: 800px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 22px; }
.pt-plan { margin: 6px 0 0; color: #5b6186; }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid #f0ede5; border-radius: 16px; }
.pt-card h2 { margin: 0; font-size: 18px; }
.pt-actions { display: flex; gap: 8px; }
.pt-access { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e6e3dc; }
.pt-login { display: grid; gap: 12px; max-width: 420px; }
.pt-login label { display: grid; gap: 4px; }
.pt-forgot { max-width: 420px; margin-top: 8px; }
.pt-forgot summary { cursor: pointer; width: fit-content; color: #4128d1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pt-forgot[open] summary { margin-bottom: 8px; }
.pt-forgot p { text-wrap: pretty; }
.pt-forgot-alt { font-size: 14px; color: #5b6170; }

.pf-panel { margin-top: 8px; padding: 20px; background: #fff; border: 1px solid #f0ede5; border-radius: 20px; }
.pf-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-panel-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 700; color: #0f1332; }
.pf-panel .pf-empty { margin: 0; }
.lb-saved-text small a { color: var(--green); font-weight: 600; text-decoration: none; }
.lb-saved-text small a:hover { text-decoration: underline; }
.pf-missing { color: #b4541f; font-weight: 600; }

.pf-form-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(90vh, 900px); }
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.pf-field { display: grid; gap: 6px; min-width: 0; }
.pf-field.is-wide { grid-column: 1 / -1; }
.pf-field > span { font-size: 13px; font-weight: 600; color: #0f1332; }
.pf-field textarea { resize: vertical; min-height: 80px; }
.pf-help { font-size: 12px; color: #626779; }
.pf-brand { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #f0ede5; border-radius: 14px; }
.pf-logo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: #f4f2ee; color: #9fa2b4; font-size: 24px; overflow: hidden; }
.pf-logo.has-logo { background: #fff; border: 1px solid #f0ede5; }
.pf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pf-brand-ctrls { display: grid; gap: 10px; min-width: 0; }
.pf-logo-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-logo-btns label { cursor: pointer; }
.pf-colors { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pf-colors label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #33395f; cursor: pointer; white-space: nowrap; }
.pf-colors input[type="color"] { width: 34px; height: 34px; padding: 2px; border: 1px solid #d6d9ea; border-radius: 10px; background: #fff; cursor: pointer; }
.pf-form-dialog .lb-msg { margin: 14px 0 0; }
.pf-form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f5f3ee; }
.pf-form-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 575.98px) {
  .pf-main { padding-top: 22px; }
  .pf-head > .btn-nx { width: 100%; justify-content: center; }
  .pf-filters .lb-search, .pf-select { flex: 1 1 100%; max-width: none; width: 100%; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-profile, .pf-panel { padding: 16px; border-radius: 16px; }
  .pf-profile-head .btn-nx-outline { width: 100%; justify-content: center; }
  .pf-form { grid-template-columns: 1fr; }
  .pf-brand { align-items: flex-start; }
  .pf-form-foot .lb-act.is-danger { order: 2; flex: 1 1 100%; justify-content: center; }
  .pf-form-actions { width: 100%; }
  .pf-form-actions > * { flex: 1; justify-content: center; }
}

@media (max-width: 575.98px) {
  .pf-brand { flex-direction: column; align-items: stretch; }
  .pf-brand .pf-logo { align-self: flex-start; }
  .pf-logo-mode { display: flex; }
  .pf-logo-mode button { flex: 1 1 auto; justify-content: center; padding-inline: 8px; }
  .pf-logo-mode i { display: none; }
}

/* WhatsApp flotante */
.nx-wa {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1060;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(18, 140, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nx-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25d366;
  z-index: -1;
  animation: nx-wa-pulse 2.4s ease-out infinite;
}
.nx-wa:hover, .nx-wa:focus-visible { color: #fff; transform: scale(1.06); box-shadow: 0 14px 30px rgba(18, 140, 74, 0.45); }
.nx-wa:focus-visible { outline: 3px solid #0b1736; outline-offset: 3px; }
@keyframes nx-wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-wa::before { animation: none; }
}
@media (max-width: 575.98px) {
  .nx-wa { width: 54px; height: 54px; font-size: 28px; right: 16px; bottom: 16px; }
}
.lib-page .nx-wa-wrap {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  padding: 24px 110px 24px 28px;
  background: var(--paper, #f7f6f2);
  color: #5b6f86;
  font-size: 14px;
}
.lib-page .nx-wa-wrap::before { content: "En la landing queda fijo abajo a la derecha y acompaña el scroll."; }
.lib-page .nx-wa { position: absolute; right: 28px; bottom: 28px; }
.has-tools > section[data-module^="whatsapp"] .lp-tools { display: none; }
.lb-thumb img[src*="/whatsapp/"] { object-position: right center; }

/* Conexión con GitHub (versión publicada) */
.gh-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px max(2.4vw, 16px);
  background: #fdf6ef;
  border-bottom: 1px solid #f0dcc6;
  color: #6b4318;
  font-size: 14px;
}
.gh-bar > i { font-size: 18px; }
.gh-bar span { flex: 1 1 260px; }
.gh-bar.is-on { background: #eef7f2; border-color: #d3e9dd; color: #1f4d39; }
.gh-dialog { max-width: 560px; }
.gh-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: #34485f; }
.gh-steps a { color: var(--green); font-weight: 600; }
.gh-bar .btn-nx { flex: none; }
.gh-alt { margin: 14px 0 6px; }
.gh-alt summary { cursor: pointer; font-weight: 600; color: var(--green); font-size: 14px; margin-bottom: 10px; }
.pf-local {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fdf1e3;
  color: #8a4f12;
  font-size: 12px;
  font-weight: 600;
}
.lb-act.is-publish { color: var(--green); }

/* Reglas de calidad */
.rg-main .pf-panel + .pf-panel { margin-top: 16px; }
.rg-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; margin-bottom: 18px; }
.rg-note { margin: 4px 0 0; font-size: 13px; color: #5b6186; max-width: 64ch; }
.rg-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rg-tag.is-error { background: #fdeceb; color: #b42318; }
.rg-tag.is-aviso { background: #fdf3e2; color: #9a5b12; }
.rg-level { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #4a5077; }
.rg-level .lb-input, .rg-level-select { width: auto; padding: 7px 30px 7px 12px; font-size: 14px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-chip { position: relative; display: inline-flex; cursor: pointer; }
.rg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rg-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #d6d9ea;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #343a5f;
}
.rg-chip span::before { content: "+"; font-weight: 700; color: #a6aac4; }
.rg-chip input:checked + span { border-color: var(--green); background: #ebe6ff; color: var(--green); font-weight: 600; }
.rg-chip input:checked + span::before { content: "✓"; color: var(--green); }
.rg-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.rg-chips-tight { flex-basis: 100%; padding-left: 58px; }

.rg-list { list-style: none; margin: 0; padding: 0; }
.rg-row { display: flex; align-items: center; gap: 12px 16px; padding: 14px 0; border-top: 1px solid #f5f3ee; }
.rg-list > .rg-row:first-child { border-top: 0; padding-top: 4px; }
.rg-row-wrap { flex-wrap: wrap; }
.rg-row-text { flex: 1 1 auto; min-width: 0; }
.rg-row-text b { display: block; font-size: 15px; color: #0f1332; }
.rg-row-text small { display: block; margin-top: 2px; font-size: 13px; color: #5b6186; }
.rg-textarea { flex-basis: 100%; margin-left: 58px; width: calc(100% - 58px); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.rg-switch-gap { flex: none; width: 42px; }

.rg-switch { position: relative; flex: none; width: 42px; height: 24px; cursor: pointer; }
.rg-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rg-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd2e3; transition: background 0.2s; pointer-events: none; }
.rg-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 19, 50, 0.25);
  transition: transform 0.2s;
}
.rg-switch input:checked + span { background: var(--green); }
.rg-switch input:checked + span::after { transform: translateX(18px); }
.rg-switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.rg-num { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; color: #4a5077; }
.rg-num .lb-input { width: 86px; padding: 7px 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rg-num select.lb-input { width: auto; padding-right: 30px; }

.rg-role { align-items: flex-start; }
.rg-role .rg-switch { margin-top: 8px; }
.rg-role.is-off .rg-role-main, .rg-role.is-off .rg-fields { opacity: 0.45; }
.rg-role-main { flex: 1 1 200px; min-width: 0; }
.rg-name {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  margin-left: -8px;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: #0f1332;
}
.rg-name:hover { border-color: #f0ede5; }
.rg-name:focus { outline: 2px solid var(--green); outline-offset: 0; background: #fff; }
.rg-where summary { width: fit-content; font-size: 12px; color: #5b6186; cursor: pointer; }
.rg-where summary:hover { color: var(--green); }
.rg-where[open] summary { margin-bottom: 6px; }
.rg-where small { display: block; margin-top: 4px; font-size: 12px; color: #7a7fa0; }
.rg-selector { padding: 7px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.rg-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.rg-fields .rg-num { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 12px; }
.rg-roles[data-rg-roles="imagenes"] .rg-fields .lb-input { width: 104px; }
.rg-roles[data-rg-roles="imagenes"] .rg-fields select.lb-input { width: 104px; }
.rg-tools { display: flex; gap: 2px; margin-top: 22px; }
.rg-tools button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #5b6186; }
.rg-tools button:hover:not(:disabled) { background: #f4f2ee; color: var(--green); }
.rg-tools button:disabled { opacity: 0.3; }
.rg-tools [data-act="remove"]:hover { background: #fdeceb; color: #b42318; }

.rg-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rg-option { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #d6d9ea; border-radius: 14px; cursor: pointer; }
.rg-option:has(input:checked) { border-color: var(--green); background: #f8f7f4; }
.rg-option input { flex: none; margin-top: 4px; accent-color: var(--green); }
.rg-option b { display: block; font-size: 15px; color: #0f1332; }
.rg-option small { display: block; margin-top: 2px; font-size: 13px; color: #5b6186; }
.rg-summary {
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8f7f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #23294d;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .rg-role { flex-wrap: wrap; }
  .rg-role .rg-fields { flex-basis: 100%; padding-left: 58px; }
  .rg-role .rg-tools { position: absolute; right: 0; top: 10px; margin: 0; }
  .rg-role { position: relative; padding-right: 0; }
  .rg-role .rg-role-main { flex: 1 1 0; padding-right: 72px; }
  .rg-role:has([data-act="remove"]) .rg-role-main { padding-right: 104px; }
}
@media (max-width: 640px) {
  .rg-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-options { grid-template-columns: 1fr; }
  .rg-row:not(.rg-role) { flex-wrap: wrap; }
  .rg-row:not(.rg-role) .rg-row-text { flex-basis: calc(100% - 58px); }
  .rg-row:not(.rg-role) > .rg-num, .rg-row:not(.rg-role) > .rg-level-select, .rg-row:not(.rg-role) > .rg-tag { margin-left: 58px; }
  .rg-row:not(.rg-role) > .rg-num + .rg-level-select { margin-left: 0; }
  .rg-chips-tight, .rg-role .rg-fields { padding-left: 0; }
  .rg-textarea { margin-left: 0; width: 100%; }
  .rg-role .rg-fields .rg-num { flex: 1 1 calc(50% - 10px); }
  .rg-role .rg-fields .lb-input, .rg-roles[data-rg-roles="imagenes"] .rg-fields .lb-input { width: 100%; }
  .rg-head-actions { width: 100%; }
  .pf-head .rg-head-actions > * { flex: 1 1 auto; justify-content: center; }
}

/* Control de calidad en el constructor */
.lb-qa {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.lb-qa-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  background: #faf9f7;
  color: #4a5077;
}
.lb-qa-sum { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; }
.lb-qa-sum i { flex: none; }
.lb-qa-head .lb-link { flex: none; font-size: 13px; font-weight: 600; color: var(--green); }
.lb-qa.is-ok .lb-qa-head { background: #ebe6ff; color: var(--green); }
.lb-qa.is-aviso .lb-qa-head { background: #fdf6ea; color: #9a5b12; }
.lb-qa.is-error .lb-qa-head { background: #fdeeed; color: #b42318; }
.lb-qa.is-ok { border-color: #bfc3e0; }
.lb-qa.is-aviso { border-color: #f1d6ae; }
.lb-qa.is-error { border-color: #f5c7c3; }
.lb-qa.is-running .lb-qa-sum i { animation: lbQaSpin 1s linear infinite; }
@keyframes lbQaSpin { to { transform: rotate(360deg); } }
.lb-qa-list { list-style: none; margin: 0; padding: 0; }
.lb-qa-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-top: 1px solid #f5f3ee; }
.lb-qa-item .rg-tag { flex: none; margin-top: 1px; min-width: 54px; text-align: center; }
.lb-qa-text { flex: 1 1 auto; min-width: 0; }
.lb-qa-text b { display: block; font-size: 14px; font-weight: 600; color: #0f1332; }
.lb-qa-text small { display: block; margin-top: 2px; font-size: 13px; color: #5b6186; overflow-wrap: anywhere; text-wrap: pretty; }
.lb-qa-acts { flex: none; display: flex; align-items: center; gap: 12px; }
.lb-qa-item .lb-link { font-size: 13px; font-weight: 600; color: var(--green); }
.lb-qa-fix {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.lb-qa-fix:hover { background: var(--green-deep); }
.lb-qa-fix.is-ghost { border: 1px solid #d9d4fb; background: #fff; color: var(--green); }
.lb-qa-fix.is-ghost:hover { background: #f4f1ff; }
.lb-qa-item .lb-qa-ignore { color: #6b7096; font-weight: 500; }
.lb-qa-item .lb-qa-ignore:hover { color: var(--ink); }
.lb-qa-group { padding: 12px 14px 2px; border-top: 1px solid #ece9e1; }
.lb-qa-group:first-child { border-top: 0; }
.lb-qa-group span,
.lb-qa-group button { padding: 0; border: 0; background: none; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #626779; }
.lb-qa-group button:hover { color: var(--green); text-decoration: underline; }
.lb-qa-group + .lb-qa-item { border-top: 0; }
.lb-qa-ignored { border-top: 1px solid #ece9e1; }
.lb-qa-ignored summary { padding: 10px 14px; font-size: 12px; font-weight: 600; color: #6b7096; cursor: pointer; }
.lb-qa-ignored ul { list-style: none; margin: 0; padding: 0; }
.lb-qa-item.is-ignored { opacity: 0.7; }
@media (max-width: 575.98px) {
  .lb-qa-item { flex-wrap: wrap; }
  .lb-qa-text { flex-basis: calc(100% - 70px); }
  .lb-qa-acts { margin-left: 64px; }
}
.lb-qa-col { min-width: 0; }
.lb-qa-col:has(.lb-qa[hidden]) { display: none; }
@media (min-width: 1200px) {
  .lb-work:has(.lb-qa:not([hidden])) { display: block; }
  html.is-client .lb-work { display: grid !important; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) !important; gap: 0; align-items: stretch; height: calc(100vh - 150px); }
  .lb-qa-col { position: sticky; top: calc(var(--lib-header, 65px) + 16px); }
  .lb-qa-col .lb-qa { display: flex; flex-direction: column; margin: 0; max-height: calc(100vh - var(--lib-header, 65px) - 32px); border-radius: 12px; }
  .lb-qa-col .lb-qa-head { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
  .lb-qa-col .lb-qa-sum { font-size: 12.5px; gap: 6px; }
  .lb-qa-col .lb-qa-head .lb-link { font-size: 11.5px; }
  .lb-qa-col .lb-qa-list { overflow-y: auto; scrollbar-width: thin; }
  .lb-qa-col .lb-qa-item { flex-direction: column; gap: 4px; padding: 9px 12px; }
  .lb-qa-col .lb-qa-item .rg-tag { min-width: 0; font-size: var(--fs-label); padding: 1px 7px; }
  .lb-qa-col .lb-qa-text b { font-size: 12.5px; line-height: 1.35; }
  .lb-qa-col .lb-qa-text small { font-size: 11.5px; line-height: 1.35; }
  .lb-qa-col .lb-qa-acts { gap: 10px; }
  .lb-qa-col .lb-qa-item .lb-link { font-size: 12px; }
  .lb-qa-col .lb-qa-fix { height: 26px; padding: 0 10px; font-size: 12px; }
  .lb-qa-col .lb-qa-group { padding: 10px 12px 0; }
  .lb-qa-col .lb-qa-group span,
  .lb-qa-col .lb-qa-group button { font-size: 10.5px; }
  .lb-qa-col .lb-qa-ignored summary { padding: 9px 12px; }
}
.lb-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.lb-edit-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.lb-edit-btn[hidden], .lb-edit-hint[hidden] { display: none; }
.lb-edit-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: #5a3df2; text-wrap: balance; }
.lb-preview-tools { flex-wrap: wrap; justify-content: flex-end; }

/* IA en el constructor */
.lb-ai { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.lb-ai[hidden], .lb-ai-texts[hidden] { display: none; }
.lb-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #ad9bf7;
  border-radius: 999px;
  background: linear-gradient(135deg, #ece7ff, #e9ebf9);
  color: var(--green-deep, #4128d1);
  font-size: 14px;
  font-weight: 700;
}
.lb-ai-btn:hover { border-color: var(--green); }
.lb-qa-ai { margin: 12px 16px 4px; height: 34px; font-size: 13px; }
.lb-qa-ai[hidden] { display: none; }
.lb-qa-col .lb-qa-ai { margin: 10px 12px 2px; }
.lb-ai-btn:disabled, .lb-ai-texts:disabled, .lb-qa-ai:disabled { opacity: 0.6; cursor: progress; }
.lb-ai-texts { border-color: #ad9bf7; background: linear-gradient(135deg, #ece7ff, #e9ebf9); color: var(--green-deep, #4128d1); }
.lb-ai-btn.is-busy i, .lb-ai-texts.is-busy i { animation: lb-ai-pulse 1s ease-in-out infinite alternate; }
@keyframes lb-ai-pulse { from { opacity: 1; } to { opacity: 0.25; } }
.lb-ia-dialog { width: min(480px, calc(100vw - 32px)); }
.lb-ia-dialog .lb-msg { margin-top: 12px; }
.lb-ia-dialog .lb-hint a { color: var(--green); font-weight: 600; }
.lb-optional { font-weight: 400; color: #5b6186; }
.lz-anim .mq-block { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lz-anim .mq-block.lz-pre { opacity: 0; transform: translateY(18px); }
.lz-anim[data-anim="marcada"] .mq-block.lz-pre { transform: translateY(44px); }
.lz-anim[data-anim="marcada"] .mq-block .row > * { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--lz-i, 0) * 90ms + 150ms); }
.lz-anim[data-anim="marcada"] .mq-block.lz-pre .row > * { opacity: 0; transform: translateY(28px); }
.lz-anim .lz-pre .lz-txt { opacity: 0; }
.lz-anim .lz-in .lz-txt { animation: lz-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--lz-t, 0) * 110ms + 150ms); }
.lz-anim[data-anim="marcada"] .lz-in .lz-txt { animation-name: lz-up-big; animation-duration: 0.8s; }
.lz-anim[data-anim="marcada"] .lz-in :is(h1, h2, .nx-display).lz-txt { animation-name: lz-mask; animation-duration: 0.9s; }
@keyframes lz-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes lz-up-big { from { opacity: 0; transform: translateY(36px); } }
@keyframes lz-mask { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.4em); } to { clip-path: inset(0); } }
.lb-anim-intro { margin: 0 0 12px; font-size: 13px; color: #4a5077; text-wrap: pretty; }
.lb-anim-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.lb-anim-opts button { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e4e1d8; border-radius: 12px; background: #fff; text-align: left; color: #4a5077; font-size: 12.5px; }
.lb-anim-opts button strong { font-size: 14px; color: #0f1332; }
.lb-anim-opts button span { text-wrap: pretty; }
.lb-anim-opts button:hover:not([aria-pressed="true"]) { border-color: #c9c4f5; }
.lb-anim-opts button[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: #f6f4ff; }
.lb-anim-opts button[aria-pressed="true"] strong { color: var(--green); }
.lb-anim-see { margin-bottom: 8px; }
.lb-desc { min-height: 5.5em; resize: vertical; field-sizing: content; line-height: 1.45; }
.lb-hint.is-warn { color: #9a5b00; }
.lb-colors { margin-top: 22px; padding-top: 16px; border-top: 1px solid #f3f1ea; }
.lb-colors-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #3c415c; }
.lb-colors .lb-link { font-size: 12px; font-weight: 500; color: #626779; text-decoration: none; }
.lb-colors .lb-link:hover { color: #3c415c; }
.lb-color-list, .lb-fondos { list-style: none; margin: 4px 0 0; padding: 0; }
.lb-color-list li, .lb-fondo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid #f6f4ef;
}
.lb-swatch-name { font-size: 13px; font-weight: 500; color: #3c415c; }
.lb-swatch-name b { margin-right: 6px; font-weight: 500; color: #b0b3c4; font-variant-numeric: tabular-nums; }
.lb-color-controls { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.lb-color-controls input[type="color"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 19, 50, 0.12);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #fff;
}
.lb-color-controls input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.lb-color-controls input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.lb-color-controls input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.lb-hex {
  width: 6.4em;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #626779;
  font: 12px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.02em;
}
.lb-hex:hover, .lb-hex:focus { background: #f7f6f2; color: #3c415c; }
.lb-hex:focus-visible { outline: 2px solid #5a3df2; outline-offset: 1px; }
.lb-fondos-title { margin: 18px 0 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #626779; }
.lb-fondo-note { grid-column: 1 / -1; margin: -6px 0 8px; font-size: var(--fs-label); font-weight: 500; color: #626779; white-space: nowrap; }
.lb-fondo-note.is-bad { color: #a04a31; }
.lb-fondo-row .lb-link { grid-column: 1 / -1; justify-self: start; margin: -4px 0 6px; min-height: 32px; }
.lb-contrast { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.lb-contrast li { font-size: var(--fs-label); line-height: 1.4; font-weight: 500; color: #626779; }
.lb-contrast li.is-bad { color: #a04a31; }
.lb-ia-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.rg-savebar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 10px 10px 10px 18px;
  border: 1px solid #f0dcc6;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 19, 50, 0.16);
  font-size: 14px;
  color: #6b4318;
  transform: translateX(-50%);
}
.rg-savebar[hidden] { display: none; }
.rg-savebar > span { display: inline-flex; align-items: center; gap: 10px; }
.rg-main { padding-bottom: 110px; }

/* Plataforma con la marca Lanzate. Los módulos de muestra conservan sus colores. */
.lib-page {
  --green: #5a3df2;
  --green-deep: #4128d1;
  --ink: #0e1130;
  --muted: #5d627c;
  --line: #e5e3dc;
  --sage: #f1effb;
  --sage-2: #ebe6ff;
}
.lib-page .mq-frame,
.lib-page .nx,
.lib-page .nx-wa-wrap {
  --green: #1b5e42;
  --green-deep: #143f2e;
  --ink: #17352c;
  --muted: #5f6f68;
  --line: #d7e3dc;
  --sage: #eef3ef;
  --sage-2: #e7f0ea;
}
.lib-page .btn-nx-outline:not(.mq-frame *, .nx *) { border-color: #d4cbfd; }

/* Consultas */
.pf-leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pf-lead { padding: 18px 20px; border: 1px solid #e3e1f0; border-radius: 16px; background: #fff; }
.pf-lead.is-new { border-color: #ad9bf7; box-shadow: 0 0 0 3px #ece7ff; }
.pf-lead-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pf-lead-head strong { display: block; font-size: 17px; color: #0e1130; }
.pf-lead-head small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; color: #5b6186; font-size: 13px; }
.pf-lead-head small a { color: inherit; text-decoration: underline; }
.pf-lead-head time { flex: none; color: #5b6186; font-size: 13px; white-space: nowrap; }
.pf-lead-type, .pf-lead-new { padding: 2px 8px; border-radius: 999px; background: #f1f0f7; color: #2b2f52; font-weight: 600; font-size: 12px; }
.pf-lead-new { background: #5a3df2; color: #fff; }
.pf-lead .pf-facts { margin: 14px 0 0; padding-top: 14px; }
.pf-lead-origin { margin: 10px 0 0; color: #5b6186; font-size: 13px; overflow-wrap: anywhere; }
.pf-lead-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-leads-link { color: var(--green); font-weight: 600; }
.pf-leads-link.is-new { color: #b42318; }
@media (max-width: 575px) {
  .pf-lead { padding: 16px; }
  .pf-lead-head { flex-direction: column; gap: 4px; }
}
.pf-tracking { padding-top: 16px; border-top: 1px solid #ecebf3; }
.pf-tracking .pf-help { display: block; margin-top: 2px; font-weight: 400; }

/* Evita el zoom de Safari al enfocar campos de las landings. */
.landing-page :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
  font-size: max(var(--fs-field), 1em);
}

#lbImgTip .is-warn { color: #8a4600; }
#lbImgTip .is-good { color: #17623f; }

/* Los títulos de sección comparten escala en las landings. */
.landing-page .nx h2:not(.h6, .modal-title, .nx-kicker, .plan-kicker) {
  font-size: var(--fs-section-title);
}

.lib-skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1100;
  padding: 12px 16px;
  background: #fff;
  color: #0e1130;
}
.lib-skip-link:not(:focus) { clip-path: inset(50%); }
#contenido-maquetas { scroll-margin-top: var(--lib-offset, 160px); }

.landing-page > main { scroll-margin-top: var(--nx-nav-h, 0px); }

.nx-hero-slide > .lz-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: -1;
}

.nx-hero[data-width="full"] .lz-hero-photo { object-position: center; }

@media (max-width: 767.98px) {
  .nx-hero-slide > .lz-hero-photo { object-position: center; }
}


/* La escala compartida se aplica también a las landings ya publicadas. */
.landing-page {
  --fs-body: 1rem;
  --fs-label: .875rem;
  --fs-field: 1rem;
}

.landing-page .nx :is(p, li, dd, blockquote):not(.nx-kicker, .plan-kicker, .visually-hidden, .h6, .stat-n, .hero-stat-n) {
  font-size: var(--fs-body);
  line-height: 1.5;
}

.landing-page .nx :is(.nx-kicker, .plan-kicker, .k, .h6, small) {
  font-size: var(--fs-label);
}

.landing-page .nx :is(.btn, .btn-nx, .btn-nx-outline, .btn-nx-light) {
  min-height: var(--ctl-h-lg);
  font-size: var(--fs-button);
}

@media (max-width: 575.98px) {
  .landing-page .nx .container {
    padding-inline: var(--nx-gutter);
  }
}

:is(.builder-page, .pf-page) :is(
  button, input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="file"]),
  select, textarea, a.btn
) {
  min-height: var(--ctl-h-lg);
}

:is(.builder-page, .pf-page) :is(input[type="checkbox"], input[type="radio"]) + label {
  min-height: var(--ctl-h-sm);
}

:is(.builder-page, .pf-page) :is(.lb-hint, .pf-help) {
  font-size: var(--fs-body);
}

@media (max-width: 767.98px) {
  .nx-footer .container:is(.py-4, .py-5) {
    padding-block: 24px !important; /* Bootstrap spacing utilities use !important. */
  }

  .nx-footer .row.g-4,
  .nx-footer .foot-main .row {
    --bs-gutter-y: 16px;
  }

  .nx-footer .nx-footer-label { margin-bottom: 4px; }
  .nx-footer .foot-links { margin-bottom: 0; }
  .nx-footer .foot-links li { margin-block: 0; }
  .nx-footer .nx-rule { margin-block: 12px; }
  .nx-footer .foot-cta .container { gap: 16px; padding-block: 24px; }
  .nx-footer .foot-cta p { margin-top: 8px; }
  .nx-footer .foot-form input { min-height: var(--ctl-h-lg); font-size: var(--fs-field); }
  .nx-footer .foot-form-note:empty { display: none; }
  .nx-footer .foot-main { padding-block: 24px 16px; }
  .nx-footer .foot-rating { margin-top: 8px; }
  .nx-footer .foot-contact { padding: 12px; }
  .nx-footer .foot-bottom { gap: 8px 12px; margin-top: 16px; padding-top: 8px; }
  .nx-footer .foot-bottom nav { gap: 0 12px; }
}

@media (max-width: 767.98px) {
  .landing-page .prod-more,
  .landing-page .foot-contact a {
    display: inline-flex;
    align-items: center;
    min-height: var(--ctl-h-lg);
    min-width: 24px;
  }

  .landing-page .prod-more {
    padding-bottom: 0;
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.lb-dialog[data-module-colors] {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto auto auto 16px;
}
.lb-dialog[data-module-colors]::backdrop { background: rgba(15, 19, 50, 0.12); }
@media (max-width: 991.98px) {
  .lb-dialog[data-module-colors] {
    width: calc(100vw - 16px);
    max-height: 55dvh;
    margin: auto auto 8px;
  }
}

.lb-module-colors-list { display: grid; gap: 10px; }
.lb-module-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 90px auto;
  align-items: center;
  gap: 8px;
}
.lb-module-color-row input[type="color"] { width: 44px; min-height: 44px; }
.lb-module-colors-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lb-module-colors-actions button[value="cancel"] { margin-left: auto; }

@media (max-width: 479px) {
  .lb-module-color-row { grid-template-columns: minmax(0, 1fr) 44px 84px; }
  .lb-module-color-row button { grid-column: 1 / -1; justify-self: start; }
}


.builder-page :is(.lb-color-controls, .lb-module-color-row) input[type="color"] {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.builder-page :is(.lb-color-controls, .lb-module-color-row) input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.builder-page :is(.lb-color-controls, .lb-module-color-row) input[type="color"]::-webkit-color-swatch {
  border: 1px solid #d6d9ea;
  border-radius: 50%;
}
.builder-page :is(.lb-color-controls, .lb-module-color-row) input[type="color"]::-moz-color-swatch {
  border: 1px solid #d6d9ea;
  border-radius: 50%;
}

.lb-style-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
  margin-top: 8px;
}
.lb-style-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.lb-style-name { font-size: 12px; color: #3c415c; padding-left: 2px; }
.lb-mini {
  display: grid;
  grid-template-rows: 9px 1fr 16px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e3e4ee;
  transition: box-shadow .15s ease, transform .15s ease;
}
.lb-style-option:hover .lb-mini { transform: translateY(-2px); box-shadow: 0 0 0 1px #c9cbe0, 0 6px 14px rgba(20, 22, 50, .08); }
.lb-style-option.is-active .lb-mini, .lb-style-option:focus-visible .lb-mini { box-shadow: 0 0 0 2px #5a3df2; }
.lb-style-option:focus-visible { outline: none; }
.lb-mini-hero { display: grid; align-content: center; gap: 3px; padding: 4px 8px; }
.lb-mini-hero b { font-size: 15px; line-height: 1; font-weight: 600; }
.lb-mini-hero i { display: block; height: 3px; width: 85%; border-radius: 2px; opacity: .7; }
.lb-mini-hero em { display: block; width: 30px; height: 7px; border-radius: 4px; margin-top: 2px; }
.lb-mini-band { display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.lb-mini-band i { width: 6px; height: 6px; border-radius: 50%; }

.lb-palette-panel .lb-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lb-brand-swatches { display: grid; grid-template-columns: repeat(auto-fill, 32px); gap: 9px; }
.lb-brand {
  position: relative;
  width: 32px;
  height: 32px;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .12s ease;
}
.lb-brand:hover { transform: scale(1.08); }
.lb-brand[aria-pressed="true"], .lb-brand-custom.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5a3df2; }
.lb-brand.is-client::after {
  content: "";
  position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233c415c' d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m-5 6s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1z'/%3E%3C/svg%3E") center/8px no-repeat;
  box-shadow: 0 0 0 1px #d6d9ea;
}
.lb-brand-custom { display: grid; place-items: center; color: #3c415c; background: conic-gradient(#e85d5d, #f0c24b, #5bbf7a, #4a8fe0, #9b6be0, #e85d5d); }
.lb-brand-custom.is-on { background: var(--c); color: #fff; }
.builder-page .lb-brand-swatches .lb-brand { min-height: 0; }
.lb-brand-custom .bi { font-size: 13px; background: rgba(255, 255, 255, .9); color: #3c415c; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.lb-brand-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.lb-moods, .lb-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lb-mood, .lb-font {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 6px 4px 7px;
  border: 1px solid #e3e4ee;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #3c415c;
  cursor: pointer;
}
.lb-mood:hover, .lb-font:hover { border-color: #c9cbe0; }
.lb-mood[aria-pressed="true"], .lb-font[aria-pressed="true"] { border-color: #5a3df2; box-shadow: 0 0 0 1px #5a3df2; color: #2b1c94; }
.lb-mood-chip { display: grid; grid-template-columns: 1fr; width: 100%; height: 26px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); position: relative; }
.lb-mood-chip i { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; }
.lb-mood-chip b { position: absolute; left: 6px; top: 6px; width: 50%; height: 4px; border-radius: 2px; }
.lb-font b { font-size: 18px; line-height: 1.1; font-weight: 600; color: #17193a; }
.lb-palette-note { margin: 10px 0 0; }
.lb-combos-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lb-combos-head .lb-label { margin: 0; white-space: nowrap; }
.lb-input-sm { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 13px; }
.lb-advanced > summary { cursor: pointer; }
.lb-advanced .lb-sub { margin-top: 12px; padding-top: 12px; }
.lb-quick-bg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.lb-quick-bg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #e3e4ee; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.lb-quick-bg button i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.lb-quick-bg button[aria-pressed="true"] { border-color: #5a3df2; box-shadow: 0 0 0 1px #5a3df2; }
.lb-more-colors > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #3c415c; margin-bottom: 8px; }
.lb-style-swatches { display: flex; width: 100%; overflow: hidden; border-radius: 8px; }
.lb-style-swatches i { flex: 1; height: 36px; border-radius: 0; }

.lb-palette { width: min(560px, calc(100vw - 32px)); }
.lb-palette-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; }
.lb-palette-swatches div { display: grid; gap: 4px; justify-items: start; }
.lb-palette-swatches i { width: 100%; height: 72px; border-radius: 12px; border: 1px solid rgba(15, 19, 50, 0.08); }
.lb-palette-swatches b { font-size: 14px; }
.lb-palette-swatches span { font-size: 12px; color: #5b6186; }
.lb-palette-stage { border-radius: 16px; overflow: hidden; border: 1px solid #e5e3dc; background: var(--p-paper, #f7f4ef); }
.lb-palette-hero { padding: 28px 24px 22px; }
.lb-palette-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-accent, #1b5e42); }
.lb-palette-hero h3 { margin: 0 0 8px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 1.7rem; line-height: 1.15; color: var(--p-title, #17352c); text-wrap: balance; }
.lb-palette-hero p:last-of-type { margin: 0 0 16px; color: var(--p-text, #5f6f68); text-wrap: pretty; }
.lb-palette-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--p-accent, #1b5e42); color: #fff; font-weight: 700; }
.lb-palette-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 16px 24px; background: var(--p-dark, #1c3d32); color: #e7f0ea; }
.lb-palette-foot strong { margin-right: auto; }
.lb-palette .lb-module-colors-actions button:last-child { margin-left: auto; }

.lb-template-cover.is-empty {
  display: grid;
  place-items: center;
  color: var(--template-accent);
  font-weight: 700;
}

.lb-module-color-scope {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.lb-style-template { margin-top: 10px; }
.lb-style-template .lb-hint { margin-bottom: 6px; }

.lb-template-gallery {
  width: min(1200px, calc(100vw - 24px));
  height: min(900px, calc(100dvh - 24px));
  max-height: none;
  overflow: hidden;
}
.lb-template-gallery[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
}
.lb-template-gallery .lb-dialog-head,
.lb-template-gallery .lb-hint,
.lb-template-gallery .lb-module-colors-actions { margin: 0; }
.lb-template-gallery .lb-dialog-close { flex: 0 0 auto; font-size: 1.5rem; line-height: 1; }
.lb-template-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lb-template-filters label { display: grid; gap: 4px; font-size: 14px; min-width: 0; }
.lb-template-canvas { display: flex; justify-content: center; min-height: 0; background: #f4f2ee; }
.lb-template-canvas iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.lb-template-canvas iframe.is-mobile { width: min(100%, 390px); }

.lz-static-preview .lz-preview-menu { display: none; }
.lz-static-preview .nx-display { overflow-wrap: anywhere; }
.lz-static-preview [data-track]:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

@media (max-width: 991.98px) {
  .lz-static-preview .lz-preview-menu { display: block; width: 100%; }
  .lz-static-preview .lz-preview-menu summary { width: max-content; margin-left: auto; padding: 6px 0; }
  .lz-static-preview .lz-preview-menu .navbar-nav { align-items: flex-start; }
}

@media (max-width: 520px) {
  .lb-template-gallery { width: calc(100vw - 12px); height: calc(100dvh - 12px); padding: 12px; }
  .lb-template-gallery .lb-dialog-head h2 { font-size: 1.25rem; }
  .lb-template-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lb-template-filters label:last-child { grid-column: 1 / -1; }
  .lb-template-gallery [data-template-use] { width: 100%; }
}

.lb-main[hidden],
.lb-template-start[hidden] { display: none; }

.lb-template-start {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px) 0 56px;
}

.lb-template-start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lb-template-start-head h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 8px;
}

.lb-template-start-head p { margin: 0; }
.lb-template-filter { max-width: 340px; }
.lb-template-start [data-template-status] { margin: 12px 0 24px; font-size: .875rem; }
.lb-template-section + .lb-template-section { margin-top: 32px; }
.lb-template-section h2 { font-size: 1.35rem; margin-bottom: 12px; }

.lb-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}

.lb-template-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e1ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(29, 22, 62, .06);
}

.lb-template-cover {
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--template-accent) 16%, white) center / cover no-repeat;
  border-bottom: 3px solid var(--template-accent);
}

.lb-template-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lb-template-card h3 { margin: 14px 16px 4px; font-size: 1rem; }
.lb-template-card p { margin: 0 16px 12px; font-size: .875rem; }
.lb-template-card-action {
  margin: auto 16px 16px;
  min-height: 44px;
  border: 1px solid #5940dc;
  border-radius: 8px;
  background: #fff;
  color: #4d34c6;
  font-weight: 600;
}
.lb-template-card-action:hover { background: #f3efff; }
.lb-template-card-action:focus-visible { outline: 2px solid #4d34c6; outline-offset: 2px; }

/* Sin viudas en títulos y párrafos de los módulos */
.nx :is(h1, h2, h3, h4, summary) { text-wrap: balance; }
.nx :is(p, li, blockquote, figcaption):not(.stat-n, .hero-stat-n) { text-wrap: pretty; }

/* Portada dividida */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(480px, 56vw, 640px);
  background: var(--paper);
}
.hero-split-copy {
  align-self: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  max-width: 640px;
  margin-left: auto;
}
.hero-split .nx-hero-slide { min-height: 100%; background-position: center; }
.hero-split .nx-hero-slide::before { display: none; }

/* Portada centrada sobre foto oscura */
.hero-center .nx-hero-slide {
  min-height: clamp(520px, 64vw, 700px);
  justify-content: center;
  text-align: center;
  background-position: center;
}
.hero-center .nx-hero-slide::before {
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.48) 0%, rgba(10, 14, 12, 0.62) 100%);
}
.hero-center .container { max-width: 860px; }
.nx.hero-center .nx-hero-slide :is(h1, h2, .nx-display) { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.nx.hero-center .nx-hero-slide .nx-display .em { color: color-mix(in srgb, var(--green) 30%, #fff); }
.nx.hero-center .nx-hero-slide .nx-lead { color: rgba(255, 255, 255, 0.9); margin-inline: auto; font-size: 1.12rem; }
.hero-center .nx-pills { justify-content: center; }
.hero-center .nx-pill { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); color: #fff; backdrop-filter: blur(4px); }
.nx.hero-center .nx-pill, .nx.hero-center .nx-pill .bi { color: #fff; }

/* Portada en mosaico */
.hero-mosaic { padding: clamp(40px, 5vw, 72px) 0; background: var(--paper); }
.hero-mosaic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-mosaic-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(380px, 42vw, 540px);
}
.hero-mosaic-photos > .nx-hero-slide {
  grid-row: 1 / span 2;
  min-height: 0;
  border-radius: 20px;
  background-position: center;
}
.hero-mosaic-photos > .nx-hero-slide::before { display: none; }
.hero-mosaic-photos > img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; min-height: 0; }
.hero-mosaic-photos .nx-hero-card { position: absolute; left: -24px; bottom: 24px; max-width: 280px; }

/* Portada con foto enmarcada */
.hero-frame { padding: clamp(40px, 6vw, 88px) 0; background: var(--paper); }
.hero-frame-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-frame .nx-hero-slide {
  min-height: clamp(340px, 34vw, 520px);
  border-radius: 28px;
  background-position: center;
  box-shadow: 0 24px 50px rgba(23, 32, 28, 0.16);
}
.hero-frame .nx-hero-slide::before { display: none; }

/* Portada con fila de cifras sobre la foto */
.hero-stats .nx-hero-slide { min-height: clamp(560px, 78vh, 760px); display: flex; align-items: flex-end; }
.hero-stats .nx-hero-slide::before { background: linear-gradient(180deg, rgba(12, 20, 18, 0.15) 0%, rgba(12, 20, 18, 0.72) 100%); }
.hero-stats .container { padding-bottom: clamp(28px, 4vw, 48px); }
.hero-stats-copy { max-width: 640px; }
.nx.hero-stats .nx-hero-slide :is(h1, h2, .nx-display) { color: #fff; }
.nx.hero-stats .nx-display .em { color: color-mix(in srgb, var(--green) 35%, #fff); }
.nx.hero-stats .nx-lead { color: rgba(255, 255, 255, 0.9); }
.hero-stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.hero-stats-row .nx-hero-card { margin: 0; }

/* Lista de precios */
.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 72px;
  max-width: 1040px;
  margin-inline: auto;
}
.price-list.is-single { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.price-item {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
}
.price-item h3 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; }
.price-dots { border-bottom: 2px dotted var(--line); transform: translateY(-6px); }
.price-item .prod-price { margin: 0; font-weight: 800; font-size: clamp(1.3rem, 1.9vw, 1.6rem); color: var(--green); white-space: nowrap; }
.price-item > p:last-child { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.price-photo { aspect-ratio: 4 / 5; border-radius: 24px; }

/* Cifras */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.stat { text-align: center; padding: 8px 4px; }
.stats-row.is-two .stat { text-align: left; }
.stat .stat-n {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
}
.stat p:not(.stat-n, .hero-stat-n) { margin: 10px 0 0; color: var(--muted); }
.stats-band .stats-row .stat + .stat { border-left: 1px solid var(--line); }
.stats-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--dark);
  min-height: 460px;
}
.stats-dark-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-dark-copy { align-self: center; padding: clamp(40px, 5vw, 80px); }
.nx .stats-dark-copy :is(h2, .nx-display, .stat-n) { color: #fff; }
.nx .stats-dark-copy .nx-display .em { color: color-mix(in srgb, var(--green) 35%, #fff); }
.nx .stats-dark-copy :is(p, .nx-lead):not(.stat-n, .hero-stat-n) { color: rgba(255, 255, 255, 0.78); }
.nx .stats-dark-copy .stat { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 18px; }

/* Llamado a la acción */
.cta-band { padding: clamp(32px, 4vw, 56px) 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: 28px;
  background: var(--green);
}
.nx .cta-band-inner :is(h2, .nx-display) { color: #fff; }
.nx .cta-band-inner .nx-display .em { color: rgba(255, 255, 255, 0.82); }
.nx .cta-band-inner .nx-lead { color: rgba(255, 255, 255, 0.86); }
.cta-band-inner .btn-nx-light { flex: none; }
.cta-photo { position: relative; isolation: isolate; padding: clamp(72px, 9vw, 128px) 0; overflow: hidden; }
.cta-photo-bg { position: absolute; inset: 0; z-index: -1; }
.cta-photo-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 12, 0.72), rgba(10, 14, 12, 0.3)); }
.cta-photo-copy { max-width: 560px; }
.nx .cta-photo-copy :is(h2, .nx-display) { color: #fff; }
.nx .cta-photo-copy .nx-display .em { color: color-mix(in srgb, var(--green) 30%, #fff); }
.nx .cta-photo-copy .nx-lead { color: rgba(255, 255, 255, 0.88); }
.cta-photo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Marcas y aliados */
.brands-band { padding: clamp(36px, 4vw, 56px) 0; border-block: 1px solid var(--line); }
.brands-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.brands-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.nx .brands-strip li { color: var(--muted, var(--ink)); font-size: 0.875em; line-height: 1.2; }
.brands-strip li:nth-child(3n + 1) { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 520; }
.brands-strip li:nth-child(3n + 2) { font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.brands-strip li:nth-child(3n) { font-weight: 300; letter-spacing: 0.12em; text-transform: lowercase; }

/* Marcas en tarjetas */
.brands-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brands-cards li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.brands-cards strong { font-size: 1.25rem; line-height: 1.2; }
.brands-cards span { font-size: 0.95rem; opacity: 0.72; }
.brands-cards li:nth-child(3n + 1) strong { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 520; }
.brands-cards li:nth-child(3n + 2) strong { font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; font-size: 1.1rem; }
.brands-cards li:nth-child(3n) strong { font-weight: 300; letter-spacing: 0.12em; text-transform: lowercase; }
@media (max-width: 767.98px) { .brands-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .brands-cards { grid-template-columns: minmax(0, 1fr); } }

/* Próximas fechas */
.ev-list { border-top: 1px solid var(--line); }
.ev-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "date title action" "date text action";
  column-gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ev-row .ev-date {
  grid-area: date;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green);
  text-transform: lowercase;
}
.ev-row h3 { grid-area: title; margin: 0; font-size: 1.15rem; font-weight: 700; }
.ev-row > p { grid-area: text; margin: 4px 0 0; color: var(--muted); }
.ev-row > a { grid-area: action; }
.ev-card .nx-frame { aspect-ratio: 4 / 3; }
.ev-card .k { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.ev-card h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.ev-card p:last-child { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 991.98px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split-copy { margin: 0; max-width: none; }
  .hero-split .nx-hero-slide { min-height: 320px; order: -1; }
  .hero-mosaic-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mosaic-photos { height: 380px; }
  .hero-mosaic-photos .nx-hero-card { left: 12px; bottom: 12px; }
  .hero-frame-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-frame .nx-hero-slide { order: -1; min-height: 280px; }
  .hero-stats-row { grid-template-columns: minmax(0, 1fr); }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stats-band .stats-row .stat:nth-child(odd) { border-left: 0; }
  .stats-dark-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-dark-photo { height: 260px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
  .price-list { grid-template-columns: minmax(0, 1fr); }
  .hero-mosaic-photos { height: 300px; grid-template-columns: 1fr 1fr; }
  .hero-mosaic-photos .nx-hero-card { position: static; grid-column: 1 / -1; max-width: none; }
  .hero-mosaic-photos { height: auto; grid-template-rows: 200px 120px auto; }
  .hero-mosaic-photos > .nx-hero-slide { grid-row: 1; grid-column: 1 / -1; }
  .ev-row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "date title" "date text" ". action"; row-gap: 10px; }
  .ev-row > a { justify-self: start; }
  .ev-row .ev-date { font-size: 1.35rem; }
}

.mq-contrast {
  margin: 8px 0 0;
  color: #8a4600;
  font-size: 12px;
}

.lib-page .mq-caption,
.lib-page .lib-cats a,
.lib-page .lib-variants a,
:is(.builder-page, .pf-page) small {
  font-size: 12px;
}

.pt-activity { margin-bottom: 16px; }
.pt-activity-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}
.pt-activity-status { margin: 12px 0; color: #4c526e; }
.pt-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.pt-metrics > div { border: 1px solid #e5e1f0; background: #f8f6ff; border-radius: 12px; padding: 12px; }
.pt-metrics dt, .pt-metrics dd { margin: 0; }
.pt-metrics strong { display: block; color: #30206b; font-size: 1.75rem; }
.pt-metrics small { color: #4c526e; }
.pt-activity h3 { font-size: 1rem; margin: 0 0 8px; }
.pt-inbox { list-style: none; padding: 0; margin: 0; }
.pt-inbox li { border-top: 1px solid #e5e1f0; }
.pt-inbox summary { padding: 12px 0; cursor: pointer; }
.pt-inbox summary span { margin-left: 10px; color: #4c526e; }
.pt-inbox dl { padding-left: 16px; overflow-wrap: anywhere; }
.pt-inbox dd { white-space: pre-wrap; }
@media (max-width: 640px) {
  .pt-activity-filters { grid-template-columns: auto minmax(0, 1fr); }
  .pt-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portal del cliente */
.pt-portal {
  color: #201938;
  background: #f5f3fb;
  font-family: Manrope, system-ui, sans-serif;
}
.pt-portal .lib-header { background: #fff; border-bottom: 1px solid #e9e4f4; }
.pt-portal .pt-wa { min-height: 44px; background: #176855; }
.pt-portal .pf-main { max-width: 1200px; }
.pt-portal .pt-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  margin-bottom: 20px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 98% 0%, #6b46be, transparent 62%), #251647;
}
.pt-portal .pt-top::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 98% -15%, transparent 0 32px, #fff2 33px 34px, transparent 35px 48px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.pt-portal .pt-top .lb-kicker { color: #e1d4ff; }
.pt-portal .pt-top .pf-title {
  color: #fff;
  font: 700 clamp(2rem, 5vw, 3.25rem)/1.1 Manrope, sans-serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.pt-portal .pt-top .pt-plan { color: #f1e9ff; margin-top: 10px; }
.pt-portal .pt-panel {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #e9e4f4;
  border-radius: 20px;
  box-shadow: 0 4px 20px #29124b08;
}
.pt-portal .pt-panel h2 { font-size: 1.25rem; letter-spacing: -.025em; margin-bottom: 16px; }
.pt-portal .pt-activity-filters { padding: 12px; border-radius: 12px; background: #f6f3fc; }
.pt-portal .pt-activity-filters label { font-size: .875rem; font-weight: 700; }
.pt-portal .lb-input { min-height: 44px; }
.pt-portal .pt-metric { padding: clamp(10px, 2vw, 18px); background: #f0eafb; border-color: #e7dcf6; }
.pt-portal .pt-metric:nth-child(2) { background: #eaf6f0; border-color: #d9ebe2; }
.pt-portal .pt-metric-pending { background: #faf9fc; border-color: #ebe7f1; }
.pt-portal .pt-metric dt { font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.pt-portal .pt-metric dt i,
.pt-portal .pt-page-title > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #e7dcf6;
  border-radius: 10px;
  color: #58349c;
}
.pt-portal .pt-metric dt i { margin-bottom: 8px; }
.pt-portal .pt-metric dd strong { font-variant-numeric: tabular-nums; font-size: clamp(1.6rem, 4vw, 2.35rem); }
.pt-portal .pt-inbox summary span { display: inline-block; font-size: .875rem; }
.pt-portal .pt-card { background: #faf8fd; border-color: #eee9f6; padding: 14px; }
.pt-portal .pt-page-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-portal .pt-page-title > i { flex: 0 0 auto; }
.pt-portal .pt-card h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.pt-portal .pt-card .pt-plan { font-size: .85rem; }
.pt-portal .pt-actions a { min-height: 44px; }
.pt-portal .pt-facts div { padding: 6px 0; border-bottom: 1px solid #eee9f6; }
.pt-portal .pt-facts dd { overflow-wrap: anywhere; min-width: 0; }
.pt-portal .pt-help a { background: #f4effb; }
.pt-portal .pt-help a:hover { background: #eae0f7; }
.pt-portal .pt-access { background: #fff; border: 1px solid #e9e4f4; border-radius: 20px; padding: 18px; }
.pt-portal .pt-access h2 { margin-top: 0; font-size: 1.1rem; }
.pt-portal .pt-signed-out {
  width: min(480px, calc(100% - 32px));
  margin: clamp(24px, 8vh, 88px) auto;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid #e9e4f4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px #29124b12;
}
.pt-portal :focus-visible { outline: 2px solid #6540bc; outline-offset: 3px; }

.pt-portal .pt-lead-count {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f0eafb;
  color: #58349c;
  font-size: .8rem;
}
.pt-portal .pt-inbox + h3 { margin-top: 18px; }
.pt-portal .pt-lead-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}
.pt-portal .pt-lead-actions label { display: grid; gap: 4px; }
.pt-portal .pt-lead-actions :is(button, a) { min-height: 44px; }

.pf-review { width: min(1000px, calc(100% - 24px)); max-height: 90vh; }
.pf-review-change { border: 1px solid #e8e2f2; border-radius: 10px; margin: 10px 0; padding: 12px; }
.pf-review-change summary { cursor: pointer; font-weight: 700; }
.pf-review-change h3 { font-size: .95rem; margin: 12px 0 6px; }
.pf-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.pf-review-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.pf-review-grid iframe { width: 100%; min-height: 380px; border: 1px solid #e8e2f2; }
@media (max-width: 640px) { .pf-review-grid { grid-template-columns: 1fr; } }

.pf-review { padding: clamp(14px, 3vw, 30px); background: #faf8fd; }
.pf-review-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: #faf8fd; padding: 12px 0; border-bottom: 1px solid #e8e2f2; }
.pf-review-bar p { margin: 0 auto 0 0; font-weight: 700; }
.pf-review-change { background: #fff; padding: 16px; }
.pf-review-change header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pf-review-change header h3 { margin-top: 4px; }
.pf-review-change [data-choice-label] { padding: 4px 8px; border-radius: 8px; background: #f0eafb; }
.pf-review-change .pf-review-grid > div { background: #f7f4fb; padding: 12px; border-radius: 10px; overflow-wrap: anywhere; }
.pf-review-change .pf-review-grid strong { display: block; margin-bottom: 8px; }
.pf-review-change img { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; }
.pf-review-change button[aria-pressed="true"] { background: #4b3180; color: #fff; }
.pf-review-change button[data-choice="rechazar"][aria-pressed="true"] { background: #8c3042; }
.pf-review-result iframe { width: 100%; height: min(58vh, 580px); background: #fff; border: 1px solid #e8e2f2; }

/* Escala de lectura compartida por maquetas, administración y landings. */
:is(.mq, .lib-page, .landing-page) {
  --fs-body: 1rem;
  --fs-label: .875rem;
  --fs-field: 1rem;
}
.mq-page-title {
  width: min(100% - 32px, 1100px);
  margin: 28px auto 16px;
  font: 700 clamp(1.75rem, 4vw, 2.75rem)/1.15 Manrope, sans-serif;
}
:is(.mq, .lib-page) .nx :is(p, li, dd, blockquote):not(.nx-kicker, .plan-kicker, .visually-hidden, .h6, .stat-n, .hero-stat-n) {
  font-size: var(--fs-body);
  line-height: 1.5;
}
:is(.mq, .lib-page) .nx :is(.nx-kicker, .plan-kicker, .k, .h6, small),
.lib-page :is(.pf-fact dt, .lb-hint, .pt-plan) { font-size: var(--fs-label); }
:is(.mq, .lib-page, .landing-page) :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
:is(.mq, .lib-page) main[tabindex="-1"] { scroll-margin-top: var(--lib-offset, 96px); }
.lib-page :is(.lb-fondo-note, .lb-contrast li:not(.is-bad), .lb-fondos-title, .pf-fact dt) { color: #555c77; }
.lib-page .lb-contrast li.is-bad { color: #8b3927; }
.pf-requests { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 4px; font-size: 14px; color: #5b6170; }
.pf-requests li.is-month { color: #17192a; font-weight: 600; }
.pf-requests .lb-act { min-height: 32px; font-size: 13px; }

/* ---- Ficha del cliente ---------------------------------------------------- */
.pf-page[data-page="cliente"] .pf-profile { padding: 0; background: none; border: 0; border-radius: 0; }
.cf-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 14px 18px; border: 1px solid #f0c48a; border-radius: 16px; background: #fff7ec; color: #3d1f05; }
.cf-alert > i { font-size: 20px; color: #b4541f; }
.cf-alert p { flex: 1 1 260px; margin: 0; text-wrap: pretty; }
.cf-alert.is-key { border-color: #cdc3ff; background: #f4f1ff; color: #24186b; }
.cf-alert.is-key > i { color: var(--green); }

.cf-hero {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c1) 22%, transparent) 0%, transparent 60%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--c2) 70%, transparent) 0%, transparent 70%),
    #fff;
  border: 1px solid #ece9e1;
  box-shadow: 0 18px 50px rgba(14, 17, 48, 0.06);
  overflow: hidden;
}
.cf-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 40%, var(--c2))); }
.cf-hero-main { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 420px; }
.pf-avatar.is-xl { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; box-shadow: 0 10px 24px rgba(14, 17, 48, 0.12); }
.pf-avatar.is-xl.has-logo { background: #fff; padding: 10px; }
.cf-hero-text { min-width: 0; }
.cf-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5d627c; }
.cf-hero h1 { margin: 0 0 10px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: #0e1130; text-wrap: balance; }
.cf-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid #e5e3dc; font-size: 12px; font-weight: 600; color: #3a3f5c; }
.cf-pill.is-plan { background: #0e1130; border-color: #0e1130; color: #fff; }
.cf-since { font-size: 13px; color: #5d627c; }
.cf-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-hero-actions .btn-nx, .cf-hero-actions .btn-nx-outline { min-height: 46px; }

.cf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; margin: 20px 0 8px; align-items: start; }
.cf-col { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 900px) { .cf-grid { grid-template-columns: 1fr; } }

.cf-card { padding: 22px; background: #fff; border: 1px solid #ece9e1; border-radius: 20px; min-width: 0; }
.cf-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cf-card-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #0e1130; }
.cf-card-head p { margin: 2px 0 0; font-size: 14px; color: #5d627c; text-wrap: pretty; }
.cf-icon { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f1effb; color: var(--green); font-size: 18px; }
.cf-muted { color: #6b7090; }
.cf-empty { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #f7f6f2; font-size: 14px; color: #4a5077; }
.cf-status { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }

.cf-portal { background: linear-gradient(180deg, #f6f3ff 0%, #fff 55%); border-color: #ddd5ff; }
.cf-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; margin-bottom: 14px; border: 1px solid #d9d1ff; border-radius: 14px; background: #fff; font-size: 15px; }
.cf-link > i { font-size: 20px; color: var(--green); }
.cf-link a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #24186b; text-decoration: none; }
.cf-link a:hover { text-decoration: underline; }
.cf-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 10px; background: transparent; color: #4a5077; cursor: pointer; }
.cf-icon-btn:hover { background: #f1effb; color: var(--green); }
.cf-icon-btn:focus-visible, .cf-details summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cf-access { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.cf-access > div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #ece9e1; min-width: 0; }
.cf-access dt { font-size: 12px; font-weight: 600; color: #6b7090; }
.cf-access dd { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0 0; min-height: 40px; }
.cf-access code { font-size: 15px; color: #0e1130; background: none; padding: 0; overflow-wrap: anywhere; }
.cf-wide { width: 100%; justify-content: center; }
@media (max-width: 520px) { .cf-access { grid-template-columns: 1fr; } }

.cf-details { margin-top: 14px; border-top: 1px dashed #e5e3dc; padding-top: 10px; }
.cf-details summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; color: #4a5077; list-style: none; }
.cf-details summary::-webkit-details-marker { display: none; }
.cf-details summary::before { content: "\F285"; font-family: bootstrap-icons; font-size: 12px; transition: transform .2s; }
.cf-details[open] summary::before { transform: rotate(90deg); }
.cf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; margin-top: 8px; }
.cf-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #3a3f5c; }
.cf-form input, .cf-form select { min-height: 44px; padding: 8px 12px; border: 1px solid #cfccd9; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: #0e1130; }
.cf-form input:focus-visible, .cf-form select:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.cf-form .btn-nx { min-height: 44px; justify-content: center; }
.cf-inline { grid-template-columns: minmax(0, 1fr) auto; }
.cf-form input { min-width: 0; width: 100%; }
@media (max-width: 520px) { .cf-inline { grid-template-columns: 1fr; } .cf-row { grid-template-columns: 96px 1fr; } .cf-hero-actions { width: 100%; } .cf-hero-actions > * { flex: 1; justify-content: center; } }

.cf-meter { height: 10px; border-radius: 999px; background: #efedf6; overflow: hidden; }
.cf-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #8f7bff); }
.cf-meter.is-full span { background: linear-gradient(90deg, #d0702b, #e9a23b); }
.cf-meter-note { margin: 8px 0 4px; font-size: 13px; color: #5d627c; }
.cf-timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.cf-timeline li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 4px 4px 4px 10px; border-radius: 10px; font-size: 14px; color: #6b7090; }
.cf-timeline li.is-month { color: #0e1130; }
.cf-timeline li:hover { background: #f7f6f2; }
.cf-timeline time { font-size: 13px; font-weight: 600; }

.cf-plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cf-plan-name strong { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 28px; color: #0e1130; }
.cf-plan-name span { font-size: 14px; color: #5d627c; }
.cf-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #0e1130; }
.cf-features li { display: flex; align-items: center; gap: 8px; }
.cf-features i { color: var(--green); }
.cf-features li.is-off { color: #6b7090; }
.cf-features li.is-off i { color: #b9bccb; }

.cf-rows { display: grid; gap: 0; margin: 0; }
.cf-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f0ea; font-size: 14px; }
.cf-row:last-child { border-bottom: 0; }
.cf-row dt { display: flex; align-items: center; gap: 8px; color: #6b7090; font-weight: 500; }
.cf-row dt i { color: #9a9fb8; }
.cf-row dd { margin: 0; color: #0e1130; overflow-wrap: anywhere; }
.cf-row dd a { color: var(--green); font-weight: 600; text-decoration: none; }
.cf-row dd a:hover { text-decoration: underline; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #f7f6f2; color: #3a3f5c; font-size: 13px; font-weight: 600; text-decoration: none; }
.cf-chip:hover { background: #f1effb; color: var(--green); }
.cf-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.cf-swatch { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border: 1px solid #ece9e1; border-radius: 14px; }
.cf-swatch i { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(14, 17, 48, 0.1); }
.cf-swatch small { font-size: 12px; color: #6b7090; }
.cf-swatch code { font-size: 13px; color: #0e1130; background: none; padding: 0; }
.cf-notes { background: #fffbea; border-color: #f3e3a6; }
.cf-notes h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; color: #6b5310; }
.cf-notes p { margin: 0; white-space: pre-line; font-size: 14px; color: #3d3313; }
.cf-sub { margin: 18px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7090; }
.cf-state { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.cf-state.is-pendiente { background: #fff4d6; color: #7a5300; }
.cf-state.is-aceptado { background: #e7f6ee; color: #157347; }
.cf-state.is-rechazado { background: #fdecea; color: #b42318; }
.cf-timeline li span b.cf-state { margin-right: 4px; }
.cf-requests { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.cf-request { padding: 14px; border: 1px solid #f0d58a; border-radius: 14px; background: #fffbf0; }
.cf-request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.cf-request-head time { color: #5d627c; }
.cf-request-note { margin: 8px 0 0; font-size: 15px; color: #0e1130; }
.cf-request-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: #0e1130; }
.cf-request-list s { color: #626779; }
.cf-request-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cf-request-photos img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid #ece9e1; }
.cf-request-reply { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #3a3f5c; }
.cf-request-reply input { min-height: 42px; padding: 8px 12px; border: 1px solid #cfccd9; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 400; }
.cf-request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cf-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-stat-row div { padding: 10px 12px; border-radius: 12px; background: #f7f6f2; }
.cf-stat-row strong { display: block; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 24px; line-height: 1.1; color: #0e1130; }
.cf-stat-row span { font-size: 12px; color: #6b7090; }
.cf-spark { display: flex; align-items: flex-end; gap: 2px; height: 48px; margin: 14px 0 6px; }
.cf-spark span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8f7bff, var(--green)); min-height: 3px; }
.cf-leads { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }

/* Revisión de cambios del cliente */
.cf-review-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 6px 0 4px; padding: 0 16px; border-radius: 999px; background: #fff4d6; color: #7a5300; font-weight: 700; font-size: 14px; text-decoration: none; }
.cf-review-link:hover { background: #ffeab0; }
.cf-review-wrap { margin: 20px 0 0; padding: 22px; border-radius: 22px; background: #fffaf0; border: 1px solid #f3dca2; scroll-margin-top: 90px; }
.cf-review-title { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.cf-review-title h2 { margin: 0; font-size: 20px; color: #0e1130; }
.cf-review-title p { margin: 2px 0 0; color: #5d627c; font-size: 14px; }
.cf-review-title .cf-icon { background: #ffeab0; color: #9a6400; }
.cf-review { background: #fff; border: 1px solid #ece9e1; border-radius: 18px; padding: 16px; }
.cf-review + .cf-review { margin-top: 16px; }
.cf-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.cf-review-head strong { font-size: 16px; color: #0e1130; }
.cf-review-views { margin-left: auto; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f7f6f2; }
.cf-review-views button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: #4a5077; cursor: pointer; }
.cf-review-views button[aria-pressed="true"] { background: #fff; color: #0e1130; box-shadow: 0 1px 3px rgba(14, 17, 48, .12); }
.cf-review-note { display: flex; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #f7f6f2; font-size: 15px; color: #0e1130; }
.cf-review-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.cf-review-stage { min-width: 0; height: 640px; border: 1px solid #ece9e1; border-radius: 14px; overflow: hidden; background: #f7f6f2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.cf-review-preview { min-width: 0; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #ddd9e8; border-radius: 9px; overflow: hidden; }
.cf-review-preview-title { padding: 9px 12px; font-size: 13px; line-height: 1.4; color: #28334c; background: #f4f6f8; border-bottom: 1px solid #ddd9e8; }
.cf-review-stage iframe { width: 100%; min-width: 0; flex: 1; border: 0; background: #fff; transition: width .25s; }
.cf-review-stage[data-vista="celu"] iframe { max-width: 390px; margin-inline: auto; border-left: 1px solid #ece9e1; border-right: 1px solid #ece9e1; }
@media (max-width: 1320px) {
  .cf-review-stage { height: 720px; }
}
@media (max-width: 700px) {
  .cf-review-stage { height: auto; grid-template-columns: 1fr; }
  .cf-review-preview { height: 460px; }
}
.cf-review-side { display: flex; flex-direction: column; gap: 12px; max-height: 640px; }
.cf-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-y: auto; }
.cf-change { border: 1px solid #ece9e1; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.cf-change.is-focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(90, 61, 242, .15); }
.cf-change[data-decision="rechazado"] { background: #fdf3f2; border-color: #f3c9c4; }
.cf-change[data-decision="rechazado"] .cf-after { text-decoration: line-through; color: #626779; }
.cf-change-go { display: flex; gap: 10px; width: 100%; padding: 12px 12px 6px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.cf-change-num { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f0a500; color: #fff; font-size: 12px; font-weight: 700; }
.cf-change-text { display: grid; gap: 3px; min-width: 0; font-size: 14px; color: #0e1130; }
.cf-change-text small { color: #6b7090; font-weight: 600; }
.cf-before { color: #626779; text-decoration: line-through; overflow-wrap: anywhere; }
.cf-after { font-weight: 600; overflow-wrap: anywhere; }
.cf-change-photo { display: block; width: 100%; max-height: 120px; object-fit: cover; margin-top: 6px; border-radius: 8px; }
.cf-change-actions { display: flex; gap: 6px; padding: 4px 12px 12px 46px; }
.cf-change-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #ddd9e8; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #4a5077; cursor: pointer; }
.cf-change-actions .cf-yes[aria-pressed="true"] { background: #e7f6ee; border-color: #9fd6b8; color: #157347; }
.cf-change-actions .cf-no[aria-pressed="true"] { background: #fdecea; border-color: #f0b3ab; color: #b42318; }
.cf-change-go:focus-visible, .cf-change-actions button:focus-visible, .cf-review-views button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cf-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1000px) {
  .cf-review-body { grid-template-columns: 1fr; }
  .cf-review-stage { height: 520px; }
  .cf-review-side { max-height: none; }
}

/* Ficha: webs del cliente */
.cf-sites { margin: 28px 0 8px; }
.cf-sites-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.cf-sites-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 26px; color: #0e1130; }
.cf-sites-head p { margin: 2px 0 0; color: #5d627c; font-size: 14px; }
.cf-site { padding: 18px; margin-bottom: 18px; background: #fff; border: 1px solid #ece9e1; border-radius: 22px; scroll-margin-top: 90px; }
.cf-site-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.cf-site-card { margin: 0; padding: 0; list-style: none; display: block !important; }
.cf-site-card > li { height: 100%; }
.cf-site-info { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.cf-site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-site-stats div { padding: 12px 14px; border-radius: 14px; background: #f7f6f2; }
.cf-site-stats strong { display: block; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 26px; line-height: 1.1; color: #0e1130; }
.cf-site-stats span { font-size: 13px; color: #5d6280; }
.cf-site-links { margin: 0; font-size: 14px; }
.cf-site-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--green); font-weight: 600; text-decoration: none; }
.cf-site .cf-review-wrap { margin: 16px 0 0; padding: 16px; }
.cf-site .cf-review-title h3 { margin: 0; font-size: 17px; color: #0e1130; }
.cf-site-history { margin-top: 14px; border-top: 1px solid #f2f0ea; padding-top: 8px; }
.cf-site-history > summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: #3a3f5c; }
.cf-site-none { margin: 14px 0 0; }
.cf-hist summary { cursor: pointer; font-size: 13px; color: var(--green); font-weight: 600; margin-top: 4px; }
.cf-hist ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #3a3f5c; }
.cf-hist li.is-rechazado { color: #626779; text-decoration: line-through; }
.cf-hist li i { color: #157347; }
.cf-hist li.is-rechazado i { color: #b42318; }
.cf-timeline li { align-items: start; }
@media (max-width: 900px) {
  .cf-site-top { grid-template-columns: 1fr; }
  .cf-site-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cf-section-title { margin: 28px 0 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 26px; color: #0e1130; }

/* ── Heroes con movimiento: video, parallax, trazo y tipografía animada ──
   Todo parte de su estado final: la animación solo se prepara cuando JS agrega .lz-hero-on
   (y no si el visitante pidió menos movimiento), así que sin JS el contenido se ve completo. */
.hero-video .nx-hero-slide,
.hero-trazo .nx-hero-slide { overflow: hidden; background-color: #101a1e; background-size: cover; background-position: center; }
.hero-video .nx-hero-slide { min-height: clamp(540px, 82vh, 760px); }
.hero-trazo .nx-hero-slide { min-height: clamp(560px, 80vh, 720px); }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nx.hero-video .nx-hero-slide::before { background: linear-gradient(180deg, rgba(10, 16, 20, 0.62) 0%, rgba(10, 16, 20, 0.66) 55%, rgba(10, 16, 20, 0.8) 100%); }
.nx.hero-trazo .nx-hero-slide::before { background: linear-gradient(90deg, rgba(10, 16, 20, 0.8) 0%, rgba(10, 16, 20, 0.7) 45%, rgba(10, 16, 20, 0.62) 100%); }
.hero-plx { position: absolute; inset: -16% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.hero-video .container, .hero-trazo .container { max-width: 860px; text-align: center; }
.hero-trazo .container { max-width: 1040px; text-align: left; }
.nx.hero-video .nx-hero-slide :is(h1, h2, .nx-display),
.nx.hero-trazo .nx-hero-slide :is(h1, h2, .nx-display) { color: #fff; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; }
.nx.hero-video .nx-hero-slide .nx-display .em,
.nx.hero-trazo .nx-hero-slide .nx-display .em { color: color-mix(in srgb, var(--green) 30%, #fff); }
.nx.hero-video .nx-hero-slide .nx-lead,
.nx.hero-trazo .nx-hero-slide .nx-lead { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; max-width: 40rem; }
.nx.hero-video .nx-hero-slide .nx-lead { margin-inline: auto; }
.nx.hero-trazo .nx-hero-slide .nx-kicker { color: rgba(255, 255, 255, 0.88); }
.hero-video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 16, 20, 0.55); color: #fff; font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(4px);
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: rgba(10, 16, 20, 0.8); }
.hero-video-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Línea que se dibuja bajo la palabra clave */
.lz-draw { position: relative; display: inline-block; white-space: nowrap; }
.lz-draw-line { position: absolute; left: 0; bottom: -0.16em; width: 100%; height: 0.24em; overflow: visible; }
.lz-draw-line path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Tipográfico */
.hero-type .nx-hero-slide { position: relative; min-height: clamp(520px, 76vh, 700px); background: var(--nx-bg, var(--paper)); display: flex; align-items: center; }
.nx.hero-type .nx-hero-slide::before { display: none; }
.hero-type .container { max-width: 1120px; }
.hero-type .nx-display { font-size: clamp(2.8rem, 8.4vw, 6.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 0.35em; }
.hero-type .nx-lead { max-width: 36rem; }
.ht-rule { position: absolute; left: var(--nx-gutter, 24px); right: var(--nx-gutter, 24px); height: 2px; background: var(--green); transform-origin: left center; }
.ht-rule-top { top: 28px; }
.ht-rule-bottom { bottom: 28px; height: 1px; opacity: 0.45; }
.lz-rotate { display: inline-block; white-space: nowrap; }

/* Estado inicial y entradas: solo cuando JS lo activa */
.lz-hero-on .lz-split .lz-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0.06em 0.3em; margin: -0.12em -0.06em -0.3em; }
.lz-hero-on .lz-split .lz-wi { display: inline-block; transform: translateY(110%); }
.lz-hero-on.lz-go .lz-split .lz-wi { transform: none; transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
.lz-hero-on :is(.nx-kicker, .nx-lead, .btn-nx) { opacity: 0; transform: translateY(14px); }
.lz-hero-on.lz-go :is(.nx-kicker, .nx-lead, .btn-nx) { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lz-hero-on.lz-go .nx-kicker { transition-delay: 0s; }
.lz-hero-on.lz-go .nx-lead { transition-delay: 0.55s; }
.lz-hero-on.lz-go .btn-nx { transition-delay: 0.75s; }
.lz-hero-on .lz-draw-line path { stroke-dashoffset: 1; }
.lz-hero-on.lz-go .lz-draw-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(0.5, 0, 0.2, 1) 0.9s; }
.lz-hero-on .ht-rule { transform: scaleX(0); }
.lz-hero-on.lz-go .ht-rule { transform: scaleX(1); transition: transform 1.3s cubic-bezier(0.5, 0, 0.2, 1) 0.1s; }
.lz-hero-on .lz-rotate .lz-rw { display: inline-block; transition: opacity 0.3s ease, transform 0.3s ease; }
.lz-hero-on .lz-rotate.lz-out .lz-rw { opacity: 0; transform: translateY(-0.25em); }
.lz-hero-on .lz-rotate.lz-in-start .lz-rw { opacity: 0; transform: translateY(0.25em); transition: none; }

@media (max-width: 700px) {
  .hero-plx { inset: 0; transform: none !important; }
  .hero-video .container, .hero-trazo .container { text-align: left; }
  .nx.hero-video .nx-hero-slide .nx-lead { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plx { inset: 0; transform: none !important; }
}

/* ── Ritmo: cortes entre secciones ── */
.mq-block[data-corte] { position: relative; z-index: 1; }
.mq-block[data-corte] > .mq-frame { position: relative; }
.lz-corte { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(26px, 4.2vw, 58px); pointer-events: none; z-index: 2; line-height: 0; }
.lz-corte svg { display: block; width: 100%; height: 100%; }
.lz-corte path { fill: var(--lz-corte, var(--nx-bg, #fff)); }
.mq-block[data-corte].lz-corte-flat .lz-corte { display: none; }
/* Para que la forma no tape contenido: la sección suma su alto abajo */
.mq-block[data-corte]:not(.lz-corte-flat) > .mq-frame > .nx:not(.nx-hero) { padding-bottom: calc(var(--lz-cut-pad, 0px) + 0px); }
.mq-block[data-corte]:not(.lz-corte-flat) > .mq-frame > .nx:not(.nx-hero)::after { content: ""; display: block; height: clamp(18px, 3vw, 40px); }
.lb-rhythm, .lb-cuts { grid-template-columns: repeat(4, 1fr); }
.lb-cuts .lb-cut-btn svg { width: 100%; height: 16px; display: block; }
.lb-cuts .lb-cut-btn path { fill: #8c91b6; }
.lb-quick-cut button { padding: 7px 10px; }

/* Contacto, Antes y después, Línea de tiempo */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ct-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ct-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ct-list li > i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-size: 1.1rem; }
.ct-list strong { display: block; font-size: 1rem; }
.ct-list span { display: block; color: var(--muted); font-size: 0.97rem; }
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ct-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--ink) 3%, transparent); color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ct-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ct-card > i { font-size: 1.6rem; color: var(--green); }
.ct-card strong { font-size: 1.1rem; margin-top: 8px; }
.ct-card span { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.ct-hours { margin: 28px 0 0; text-align: center; color: var(--muted); }

.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; --pos: 50%; background: var(--sage, #eee); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.ba-tag-b { left: 16px; }
.ba-tag-a { right: 16px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #1d1a17; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); font-size: 1.2rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible ~ .ba-handle i { outline: 3px solid var(--green); outline-offset: 3px; }
.has-tools .ba-range { pointer-events: none; }
.ba-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ba-pair figure { margin: 0; }
.ba-pair figcaption { margin-top: 12px; color: var(--muted); font-size: 0.97rem; }

.tl { position: relative; display: grid; gap: 34px; margin: 0; padding: 0 0 0 36px; list-style: none; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 18%, transparent); }
.tl-year { display: inline-block; font-weight: 800; letter-spacing: 0.08em; color: var(--green); font-size: 0.95rem; }
.tl h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.tl p { margin: 0; color: var(--muted); max-width: 60ch; }
.tl-h { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 36px 0 0; }
.tl-h::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
.tl-h li::before { left: 0; top: -36px; }
@media (max-width: 991.98px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ct-cards { grid-template-columns: minmax(0, 1fr); } .ba-pairs { grid-template-columns: minmax(0, 1fr); } .tl-h { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 36px; } .tl-h::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; } .tl-h li::before { left: -36px; top: 6px; } .ba { aspect-ratio: 4 / 3; } }

/* Auditoría 18/11: textos secundarios de los módulos con contraste de sobra (5:1) también sobre fondos tintados */
.nx .text-secondary { --bs-secondary-rgb: 95, 103, 110; }

/* Avisos de configuración arriba del panel (token de GitHub por vencer, secreto faltante) */
.pf-warnings { max-width: 1240px; margin: 16px auto 0; padding: 0 20px; }
.pf-warnings .cf-alert { margin-bottom: 10px; }
.pf-warnings .cf-alert span { flex: 1 1 260px; }
.lz-region { display: contents; }
.nx-scroll-track:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Auditoría 18/11 · Menú del panel: links de al menos 24 px y, en celular, todo a la vista (sin scroll escondido) */
.lib-header nav a { display: inline-flex; align-items: center; min-height: 32px; }
.lib-header nav a.is-current { padding: 0; }
@media (max-width: 800px) {
  .lib-header nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px 16px;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .lib-header nav a, .lib-header nav .lib-logout { min-height: 36px; }
  .lib-header nav .lib-publish { min-height: 36px; }
}

/* Auditoría 18/11 · Objetivos táctiles de al menos 24 × 24 px en links chicos de los módulos */
.nx [class*="footer"] .small a,
.nx .small > span > a { display: inline-block; padding-block: 4px; }
.nx .person-card .d-flex > a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.nx .prod-card .pad > a { display: inline-flex; align-items: center; min-height: 32px; }
.lb-act-icon { min-width: 32px; min-height: 32px; }
.pf-client-name h2 a { display: inline-block; padding-block: 3px; }

/* Asistente integrado: crear landing desde referencias confirmadas. */
.lb-reference-wizard { margin: 20px 0 30px; padding: clamp(18px,3vw,32px); border: 1px solid #dfe7e4; border-radius: 22px; background: linear-gradient(150deg,#f5faf8 0%,#fff 70%); box-shadow: 0 12px 32px rgba(14,44,36,.05); }
.lb-reference-heading { max-width: 730px; }
.lb-reference-heading h2 { margin: 8px 0; font-size: clamp(22px,2.8vw,32px); font-family: "Bricolage Grotesque",Inter,sans-serif; color: #17352c; }
.lb-reference-heading p { margin: 0 0 22px; color: #596a64; line-height: 1.6; }
.lb-reference-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: #215b45; letter-spacing: .03em; }
.lb-reference-form { display: grid; gap: 16px; }
.lb-reference-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.lb-reference-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 650; color: #263e35; min-width: 0; }
.lb-reference-form .lb-input { width: 100%; }
.lb-reference-form textarea { min-height: 94px; }
.lb-reference-form input[type=file] { padding: 10px; height: auto; background: #fff; }
.lb-reference-form .lb-hint { max-width: 780px; margin: 0; font-size: 13px; }
.lb-reference-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lb-reference-actions [role=status] { font-size: 13px; color: #5e6d68; }
.lb-template-manual-note { margin: 26px 0 15px; }
.lb-template-manual-note h2 { color: #17352c; margin: 0 0 4px; font-size: 22px; }
.lb-template-manual-note p { color: #596a64; margin: 0; }
@media(max-width:680px){.lb-reference-fields{grid-template-columns:1fr}.lb-reference-wizard{padding:18px}.lb-reference-actions .btn-nx{width:100%;justify-content:center}}

/* Flujo de trabajo accesible: se ajusta al ancho móvil sin ocultar acciones. */
.lb-workflow { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 0; width:100%; }
.lb-workflow-state { font-size:.85rem; font-weight:700; color:#25334a; margin-right:auto; }
.lb-workflow [disabled] { opacity:.48; cursor:not-allowed; }
@media (max-width:650px) {
  .lb-workflow { gap:6px; }
  .lb-workflow-state { flex-basis:100%; }
  .lb-workflow button { flex:1 1 42%; min-height:44px; white-space:normal; }
}

.lb-workflow[hidden], .lb-workflow-report[hidden] { display:none; }
.lb-workflow-report { padding:12px; border:1px solid #d4d7e2; border-radius:9px; background:#fff; color:#283247; white-space:pre-line; overflow-wrap:anywhere; }
.lb-workflow-compare { border:0; border-radius:16px; padding:20px; color:#263249; background:#fff; width:min(1320px,96vw); max-height:94vh; }
.lb-workflow-compare::backdrop { background:rgba(8,15,34,.7); }
.lb-workflow-compare-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:12px; }
.lb-workflow-compare-head h2 { font-size:1.2rem; margin:0; }
.lb-workflow-frames { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.lb-workflow-frames section { min-width:0; }
.lb-workflow-frames h3 { font-size:1rem; margin:0 0 8px; }
.lb-workflow-frames iframe { width:100%; min-height:60vh; background:#fff; border:1px solid #c5cbd5; border-radius:8px; }
@media(max-width:760px){ .lb-workflow-frames { grid-template-columns:1fr; } .lb-workflow-frames iframe { min-height:50vh; } }

.lb-structure-dialog { width:min(700px,95vw); max-height:92vh; border:0; border-radius:16px; padding:24px; overflow:auto; }
.lb-structure-dialog::backdrop { background:rgba(9,16,35,.7); }
.lb-structure-dialog h2 { font-size:1.3rem; }
.lb-structure-list { display:grid; gap:10px; margin:14px 0; padding-left:0; list-style:none; }
.lb-structure-list li { display:flex; gap:10px; align-items:center; padding:10px; border:1px solid #d2d6e1; border-radius:10px; }
.lb-structure-list li .lb-structure-label { flex:1; min-width:0; }
.lb-structure-label small { display:block; font-size:.78rem; color:#566076; }
.lb-structure-list select { max-width:40%; min-height:38px; }
.lb-structure-list button { min-height:40px; min-width:40px; }
.lb-structure-add, .lb-structure-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:14px; }
.lb-structure-add label { flex-basis:100%; font-weight:600; }
.lb-structure-add select { flex:1; min-width:160px; min-height:44px; }
.lb-structure-actions { justify-content:flex-end; }
@media(max-width:600px){.lb-structure-list li{flex-wrap:wrap;}.lb-structure-list select{max-width:100%;flex-basis:100%;}}

/* WCAG 2.2 AA: foco distinguible, objetivos cómodos y elementos enfocados no ocultos. */
.lb-structure-dialog :is(button, select):focus-visible,
.lb-workflow-compare :is(button, iframe):focus-visible,
.lb-workflow button:focus-visible,
.lb-structure-dialog h2:focus,
.lb-workflow-compare h2:focus {
  outline: 3px solid #4935b5;
  outline-offset: 3px;
}
.lb-structure-list button,
.lb-structure-list select,
.lb-structure-actions button,
.lb-structure-add button,
.lb-workflow button { min-height:44px; }
.lb-structure-list button { min-width:44px; }
.lb-structure-dialog, .lb-workflow-compare { scroll-padding-top:20px; }
.lb-structure-dialog :focus, .lb-workflow-compare :focus { scroll-margin:12px; }
@media (prefers-reduced-motion: reduce) {
  .lb-structure-dialog *, .lb-workflow-compare *, .lb-workflow * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Acciones de calidad del borrador */
.lb-workflow-report { overflow-wrap: anywhere; }
.lb-workflow-report[hidden] { display: none; }
.lb-workflow-report h2 { font-size: 1.15rem; margin: 0 0 .65rem; }
.lb-workflow-report h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
.lb-workflow-report p { margin: .35rem 0 .6rem; line-height: 1.5; }
.lb-workflow-report .lz-quality-item { padding: .85rem; margin: .6rem 0; border: 1px solid #c9c6d4; border-radius: .65rem; background: #fff; color: #29243c; }
.lb-workflow-report .lz-quality-required { border-inline-start: 4px solid #a52b38; }
.lb-workflow-report .lz-quality-block { color: #922735; font-weight: 600; }
.lb-workflow-report .lz-quality-ok { color: #14633e; font-weight: 600; }
.lb-workflow-report button { margin: .25rem .35rem .25rem 0; white-space: normal; text-align: start; }
.lb-workflow-report button:focus-visible { outline: 3px solid #4f35bc; outline-offset: 3px; }

/* Client brand manual */
.pf-brand-manual { min-width:0; border:1px solid #c9c6d4; border-radius:12px; padding:16px; display:grid; gap:12px; }
.pf-brand-manual legend { float:none; width:auto; font-size:1rem; font-weight:650; padding:0 6px; margin:0; }
.pf-brand-manual input[type=file] { width:100%; min-width:0; }
.pf-brand-manual [data-pf-brand-results] { display:grid; gap:10px; min-width:0; }
.pf-brand-manual h3 { font-size:.95rem; margin:8px 0 0; }
.pf-brand-choice { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; overflow-wrap:anywhere; }
.pf-brand-choice button { white-space:normal; max-width:100%; }
.pf-brand-swatch { width:32px; height:32px; border:1px solid #777; border-radius:5px; flex:none; }
.pf-brand-candidate { width:100px; max-height:80px; object-fit:contain; background:#eee; border:1px solid #999; }

/* Quality results no longer reserve a right column. */
.lb-qa-below { min-width:0; margin-top:16px; }
.lb-qa-below:has(.lb-qa[hidden]) { display:none; }
