/* ==========================================================================
   Parque Popular Los Troncos — sistema de diseño "lx" (2026-10)
   Estilo inspirado en apple.com: bandas a pantalla completa, tipografía grande,
   mucho aire y comunicación desde el porqué. Paleta de naturaleza.

   - Las páginas de marketing cargan SOLO esta hoja (body.lx-page).
   - acceso/cuenta/admin cargan styles.css + esta hoja: aquí solo les aplican
     las piezas con prefijo .lx- (header, footer, botones), no los estilos base.
   ========================================================================== */

:root {
  --lx-ink: #0f1f19;
  --lx-forest: #123b31;
  --lx-forest-2: #1a4d3f;
  --lx-leaf: #1f7a55;
  --lx-leaf-2: #2a9468;
  --lx-moss: #6f8f62;
  --lx-sage: #e8efe6;
  --lx-sage-2: #dfe8dc;
  --lx-paper: #fbfaf6;
  --lx-white: #ffffff;
  --lx-sun: #e9b949;
  --lx-text: #1d2b25;
  --lx-muted: #5b6b63;
  --lx-line: rgba(15, 31, 25, 0.12);
  --lx-on-dark: rgba(244, 250, 246, 0.94);
  --lx-on-dark-muted: rgba(226, 238, 230, 0.72);

  --lx-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lx-serif: "Fraunces", Georgia, serif;

  --lx-gutter: clamp(20px, 5vw, 80px);
  --lx-max: 1440px;
  --lx-text-max: 68ch;
  --lx-band-y: clamp(72px, 10vw, 160px);
  --lx-radius: 28px;
  --lx-radius-sm: 18px;
  --lx-header-h: 60px;
  --lx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base (solo páginas del sistema nuevo) ---------- */
body.lx-page {
  margin: 0;
  font-family: var(--lx-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--lx-text);
  background: var(--lx-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lx-page *,
.lx-page *::before,
.lx-page *::after {
  box-sizing: border-box;
}

.lx-page :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.lx-page) :where(a) {
  color: inherit;
}

:where(.lx-page) :where(h1, h2, h3, h4, p, ul, ol, dl, figure) {
  margin: 0;
}

:where(.lx-page) :where([id]) {
  scroll-margin-top: calc(var(--lx-header-h) + 16px);
}

.hidden {
  display: none !important;
}

.lx-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.lx-page .skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lx-forest);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

body.lx-page .skip-link:focus {
  top: 12px;
}

body.lx-page :focus-visible {
  outline: 3px solid var(--lx-sun);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.lx-band {
  position: relative;
  width: 100%;
  padding: var(--lx-band-y) 0;
  background: var(--lx-paper);
  overflow: hidden;
}

.lx-band--white { background: var(--lx-white); }
.lx-band--sage { background: var(--lx-sage); }
.lx-band--forest {
  background:
    radial-gradient(circle at 15% 10%, rgba(42, 148, 104, 0.28), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(233, 185, 73, 0.12), transparent 40%),
    var(--lx-forest);
  color: var(--lx-on-dark);
}
.lx-band--ink { background: var(--lx-ink); color: var(--lx-on-dark); }
.lx-band--tight { padding: clamp(48px, 6vw, 96px) 0; }
.lx-band--flush { padding: 0; }

.lx-wrap {
  width: 100%;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
}

.lx-wrap--narrow { max-width: 980px; }

.lx-center { text-align: center; }
.lx-center .lx-lead { margin-left: auto; margin-right: auto; }

/* ---------- Tipografía ---------- */
.lx-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lx-leaf);
}

.lx-band--forest .lx-eyebrow,
.lx-band--ink .lx-eyebrow,
.lx-hero .lx-eyebrow {
  color: #9fd8b4;
}

.lx-display {
  font-size: clamp(2.9rem, 7.6vw, 7.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lx-h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lx-h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lx-h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lx-lead {
  max-width: var(--lx-text-max);
  margin-top: 22px;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--lx-muted);
}

.lx-band--forest .lx-lead,
.lx-band--ink .lx-lead,
.lx-hero .lx-lead {
  color: var(--lx-on-dark-muted);
}

.lx-text {
  max-width: var(--lx-text-max);
  color: var(--lx-muted);
}

.lx-text + .lx-text { margin-top: 14px; }

.lx-muted { color: var(--lx-muted); }

.lx-serif {
  font-family: var(--lx-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lx-accent { color: var(--lx-leaf); }
.lx-band--forest .lx-accent,
.lx-hero .lx-accent { color: #9fd8b4; }

/* ---------- Botones ---------- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lx-leaf);
  color: #fff !important;
  font-family: var(--lx-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--lx-ease), box-shadow 0.2s ease;
}

.lx-btn:hover {
  background: var(--lx-leaf-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(31, 122, 85, 0.28);
}

.lx-btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.08rem; }
.lx-btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.lx-btn--ghost {
  background: transparent;
  border-color: var(--lx-line);
  color: var(--lx-text) !important;
}

.lx-btn--ghost:hover {
  background: rgba(15, 31, 25, 0.05);
  box-shadow: none;
}

.lx-btn--light {
  background: #fff;
  color: var(--lx-forest) !important;
}

.lx-btn--light:hover { background: #eef6f0; }

.lx-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

.lx-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.lx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.lx-center .lx-actions { justify-content: center; }

.lx-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--lx-leaf) !important;
  text-decoration: none;
}

.lx-more::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lx-more:hover { text-decoration: underline; }
.lx-more:hover::after { transform: translateX(3px); }

.lx-band--forest .lx-more,
.lx-band--ink .lx-more,
.lx-hero .lx-more {
  color: #9fd8b4 !important;
}

/* ==========================================================================
   Header global (todas las páginas)
   ========================================================================== */
.lx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--lx-header-h);
  font-family: var(--lx-font);
  background: rgba(18, 59, 49, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.lx-header.is-scrolled { background: rgba(15, 31, 25, 0.9); }

.lx-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
}

html body .lx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
}

html body .lx-brand img {
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
}

html body .lx-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

html body .lx-brand-copy small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 245, 240, 0.9);
}

html body .lx-brand-copy strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

html body .lx-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

html body .lx-nav-item { position: relative; }

html body .lx-nav-link,
html body .lx-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 250, 246, 0.86);
  font-family: var(--lx-font);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

html body .lx-nav-link:hover,
html body .lx-nav-toggle:hover,
html body .lx-nav-item.is-open > .lx-nav-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

html body .lx-nav-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

html body .lx-nav-item.is-open > .lx-nav-toggle svg { transform: rotate(180deg); }

html body .lx-header .lx-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 110;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(15, 31, 25, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

html body .lx-header .lx-nav-item.is-open > .lx-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

html body .lx-header .lx-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(244, 250, 246, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

html body .lx-header .lx-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html body .lx-header .lx-dropdown hr {
  margin: 6px 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html body .lx-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

html body .lx-header-actions .lx-btn { min-height: 36px; padding: 0 16px; font-size: 0.86rem; }

html body .lx-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

html body .lx-header-user-copy { display: none; }

html body .lx-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

html body .lx-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html body .lx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html body .lx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
html body .lx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  html body .lx-burger { display: inline-flex; }

  html body .lx-header-actions { margin-left: auto; }

  html body .lx-nav {
    position: fixed;
    top: var(--lx-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 18px var(--lx-gutter) 40px;
    background: rgba(15, 31, 25, 0.98);
    overflow-y: auto;
  }

  html body .lx-nav.is-open { display: flex; }

  html body .lx-nav-link,
  html body .lx-nav-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    font-size: 1.15rem;
  }

  html body .lx-header .lx-dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 10px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  html body .lx-header .lx-nav-item.is-open > .lx-dropdown {
    display: flex;
    transform: none;
  }
}

@media (max-width: 520px) {
  html body .lx-brand-copy small { display: none; }
  html body .lx-header-actions #headerGuestCta { display: none; }
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero a pantalla completa
   ========================================================================== */
.lx-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--lx-header-h));
  padding: clamp(120px, 18vh, 200px) 0 clamp(56px, 9vh, 110px);
  color: #fff;
  background: var(--lx-ink);
  overflow: hidden;
}

.lx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 19, 0.35) 0%, rgba(10, 24, 19, 0.2) 35%, rgba(10, 24, 19, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 24, 19, 0.55) 0%, rgba(10, 24, 19, 0) 70%);
}

.lx-hero .lx-wrap { position: relative; z-index: 1; }

.lx-hero .lx-display { max-width: 15ch; }
.lx-hero .lx-h1 { max-width: 18ch; }

.lx-hero--short {
  min-height: 0;
  align-items: center;
  padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 110px);
}

.lx-hero--plain {
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 148, 104, 0.35), transparent 50%),
    var(--lx-forest);
}

.lx-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* ---------- Declaración gigante ---------- */
.lx-statement {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: center;
}

.lx-statement em {
  font-style: normal;
  color: var(--lx-leaf);
}

.lx-band--forest .lx-statement em { color: #9fd8b4; }

/* ---------- Círculo dorado: por qué / cómo / qué ---------- */
.lx-circle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 6vw, 80px);
}

.lx-circle article {
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-circle article:first-child {
  background: var(--lx-forest);
  color: var(--lx-on-dark);
  border-color: transparent;
}

.lx-circle article:first-child .lx-text { color: var(--lx-on-dark-muted); }
.lx-circle article:first-child .lx-eyebrow { color: #9fd8b4; }

.lx-circle .lx-h3 { margin-bottom: 12px; }

/* ---------- Tiles con foto ---------- */
.lx-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(40px, 5vw, 72px);
}

.lx-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 42vw, 640px);
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--lx-radius);
  overflow: hidden;
  color: #fff;
  background: var(--lx-forest);
  isolation: isolate;
}

.lx-tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--lx-ease);
}

.lx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 24, 19, 0) 30%, rgba(10, 24, 19, 0.82) 100%);
}

.lx-tile:hover > img { transform: scale(1.04); }

.lx-tile .lx-eyebrow { color: #c9ecd5; }
.lx-tile .lx-h3 { color: #fff; }
.lx-tile p { margin-top: 10px; color: rgba(240, 248, 244, 0.86); }
.lx-tile .lx-more { margin-top: 16px; color: #c9ecd5 !important; }

.lx-tile--text {
  justify-content: flex-start;
  min-height: 0;
  color: var(--lx-text);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-tile--text::after { display: none; }
.lx-tile--text .lx-eyebrow { color: var(--lx-leaf); }
.lx-tile--text .lx-h3 { color: var(--lx-text); }
.lx-tile--text p { color: var(--lx-muted); }
.lx-tile--text .lx-more { color: var(--lx-leaf) !important; }

/* ---------- Split texto + imagen ---------- */
.lx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
}

.lx-split--reverse .lx-split-media { order: -1; }

.lx-split-media {
  border-radius: var(--lx-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--lx-sage);
}

.lx-split-media img,
.lx-split-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.lx-split-media--map { aspect-ratio: 4 / 3; }

.lx-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.lx-list li {
  position: relative;
  padding-left: 30px;
  color: var(--lx-muted);
}

.lx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lx-sage-2);
  box-shadow: inset 0 0 0 5px var(--lx-leaf);
}

/* ---------- Números de impacto ---------- */
.lx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(44px, 6vw, 88px);
}

.lx-stat {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lx-band--paper .lx-stat,
.lx-band--sage .lx-stat,
.lx-band--white .lx-stat { border-top-color: var(--lx-line); }

.lx-stat strong {
  display: block;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.lx-stat span {
  display: block;
  margin-top: 12px;
  font-size: 1.02rem;
  color: var(--lx-on-dark-muted);
}

.lx-band--paper .lx-stat span,
.lx-band--sage .lx-stat span,
.lx-band--white .lx-stat span { color: var(--lx-muted); }

.lx-stat[hidden] { display: none; }

/* ---------- Carrusel antes y después ---------- */
.lx-carousel {
  margin-top: clamp(36px, 5vw, 64px);
}

.lx-carousel .story-carousel-track {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 var(--lx-gutter);
  scroll-padding: 0 var(--lx-gutter);
}

.lx-carousel .story-carousel-track::-webkit-scrollbar { display: none; }

.lx-carousel .story-carousel-slide {
  position: relative;
  flex: 0 0 min(78vw, 1100px);
  scroll-snap-align: start;
  border-radius: var(--lx-radius);
  overflow: hidden;
  background: var(--lx-ink);
  aspect-ratio: 16 / 10;
  color: #fff;
}

.lx-carousel .story-carousel-media,
.lx-carousel .story-carousel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-carousel .story-carousel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 19, 0) 45%, rgba(10, 24, 19, 0.85) 100%);
}

.lx-carousel .story-carousel-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lx-forest);
  font-size: 0.82rem;
  font-weight: 800;
}

.lx-carousel .story-carousel-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 640px;
  padding: clamp(22px, 3vw, 44px);
}

.lx-carousel .story-carousel-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lx-carousel .story-carousel-copy p {
  margin-top: 8px;
  color: rgba(240, 248, 244, 0.86);
}

.lx-carousel .story-carousel-copy .micro-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9ecd5;
}

.lx-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.lx-carousel .story-carousel-dots {
  display: flex;
  gap: 16px;
}

.lx-carousel .story-carousel-dot {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 31, 25, 0.22);
  cursor: pointer;
  transition: width 0.3s var(--lx-ease), background 0.3s ease;
}

.lx-carousel .story-carousel-dot::before {
  content: "";
  position: absolute;
  inset: -8px -8px;
}

.lx-carousel .story-carousel-dot {
  min-width: 9px;
  box-sizing: content-box;
  border: 8px solid transparent !important;
  background-clip: padding-box;
}

.lx-carousel .story-carousel-dot.is-active {
  width: 30px;
  background: var(--lx-leaf);
}

.lx-carousel-controls {
  display: flex;
  gap: 10px;
}

.lx-carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 25, 0.08);
  color: var(--lx-text);
  font-size: 1.2rem;
  cursor: pointer;
}

.lx-carousel-controls button:hover { background: rgba(15, 31, 25, 0.14); }

.lx-carousel .story-carousel-status {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lx-muted);
}

/* ---------- Planes ---------- */
.lx-plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(40px, 5vw, 72px);
}

.lx-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2vw, 30px);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  transition: transform 0.25s var(--lx-ease), box-shadow 0.25s ease;
}

.lx-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 31, 25, 0.1);
}

.lx-plan--featured {
  background: var(--lx-forest);
  color: var(--lx-on-dark);
  border-color: transparent;
}

.lx-plan-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lx-leaf);
}

.lx-plan--featured .lx-plan-name { color: #9fd8b4; }

.lx-plan-badge {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lx-sun);
  color: var(--lx-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lx-plan-price {
  white-space: nowrap;
  font-size: clamp(1.6rem, 2.1vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lx-plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--lx-muted);
}

.lx-plan--featured .lx-plan-price small { color: var(--lx-on-dark-muted); }

.lx-plan p {
  flex: 1;
  font-size: 0.95rem;
  color: var(--lx-muted);
}

.lx-plan--featured p { color: var(--lx-on-dark-muted); }

.lx-plan .lx-btn { width: 100%; margin-top: 8px; }

.lx-plan--featured .lx-btn {
  background: #fff;
  color: var(--lx-forest) !important;
}

.lx-plans-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--lx-muted);
}

.lx-plans-note a { color: var(--lx-leaf); font-weight: 700; }

.lx-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lx-sage);
  color: var(--lx-forest);
  font-size: 0.95rem;
  font-weight: 600;
}

.lx-proof[hidden] { display: none; }

.lx-proof::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lx-leaf-2);
  box-shadow: 0 0 0 4px rgba(42, 148, 104, 0.2);
}

/* ---------- Calendario (las tarjetas las genera script.js) ---------- */
body.lx-page .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 56px);
}

body.lx-page .event-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

body.lx-page .events-grid > .event-card:only-child {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

body.lx-page .event-date {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lx-sage);
  color: var(--lx-forest);
  font-size: 0.82rem;
  font-weight: 800;
}

body.lx-page .events-grid > .event-card:only-child .event-date { align-self: center; }

body.lx-page .event-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.lx-page .event-card p { color: var(--lx-muted); }

body.lx-page .event-card a {
  margin-top: 6px;
  font-weight: 700;
  color: var(--lx-leaf);
}

/* ---------- Votación ---------- */
.lx-vote-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-vote-summary .vote-total-number {
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--lx-forest);
}

.lx-vote-summary h3 {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.lx-vote-summary p { margin-top: 6px; color: var(--lx-muted); }

.vote-inline-status {
  flex-basis: 100%;
  font-size: 0.95rem;
  color: var(--lx-muted);
}

.vote-inline-status.is-error { color: #a33a2a; }
.vote-inline-status.is-success { color: var(--lx-leaf); }

.lx-vote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.lx-vote-grid .vote-option-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-vote-grid .vote-option-card.is-selected { border-color: var(--lx-leaf); box-shadow: 0 0 0 2px var(--lx-leaf) inset; }

.lx-vote-grid .vote-option-step {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lx-leaf);
}

.lx-vote-grid h3 {
  margin-top: 6px;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lx-vote-grid .vote-option-copy p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--lx-muted);
}

.lx-vote-grid .vote-option-progress { margin-top: auto; }

.lx-vote-grid .vote-option-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--lx-sage);
  overflow: hidden;
}

.lx-vote-grid .vote-option-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lx-leaf), var(--lx-leaf-2));
  transition: width 0.6s var(--lx-ease);
}

.lx-vote-grid .vote-option-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--lx-muted);
}

.lx-vote-grid .vote-option-meta strong { color: var(--lx-text); }

.lx-vote-grid .vote-option-button {
  min-height: 42px;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  background: transparent;
  color: var(--lx-text);
  font-family: var(--lx-font);
  font-weight: 700;
  cursor: pointer;
}

.lx-vote-grid .vote-option-button:hover { background: var(--lx-sage); }
.lx-vote-grid .vote-option-button:disabled { opacity: 0.6; cursor: default; }

/* ---------- Galería mosaico ---------- */
.lx-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 18vw, 300px);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(40px, 5vw, 72px);
}

.lx-mosaic figure {
  position: relative;
  border-radius: var(--lx-radius);
  overflow: hidden;
  background: var(--lx-sage);
}

.lx-mosaic figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--lx-ease);
}

.lx-mosaic figure:hover img { transform: scale(1.04); }

.lx-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 22px 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(10, 24, 19, 0), rgba(10, 24, 19, 0.8));
}

.lx-mosaic figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(240, 248, 244, 0.82);
}

.lx-mosaic .m-a { grid-column: span 5; grid-row: span 2; }
.lx-mosaic .m-b { grid-column: span 7; }
.lx-mosaic .m-c { grid-column: span 4; }
.lx-mosaic .m-d { grid-column: span 3; }

/* ---------- Personas y aliados ---------- */
.lx-people {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.lx-person {
  padding: 22px;
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-person strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lx-person span { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--lx-muted); }

.lx-allies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.lx-ally {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-ally strong { font-size: 1.05rem; font-weight: 800; }
.lx-ally p { flex: 1; font-size: 0.94rem; color: var(--lx-muted); }
.lx-ally a { font-weight: 700; color: var(--lx-leaf); text-decoration: none; font-size: 0.94rem; }
.lx-ally a:hover { text-decoration: underline; }

/* ---------- Tarjetas genéricas ---------- */
.lx-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(36px, 5vw, 64px);
}

.lx-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lx-card {
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--lx-radius);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-band--white .lx-card { background: var(--lx-paper); }

.lx-band--forest .lx-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.lx-card .lx-h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.lx-card p { margin-top: 10px; color: var(--lx-muted); }
.lx-band--forest .lx-card p { color: var(--lx-on-dark-muted); }

.lx-card-num {
  display: block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--lx-leaf);
}

.lx-band--forest .lx-card-num { color: #9fd8b4; }

/* ---------- Pasos ---------- */
.lx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(36px, 5vw, 64px);
  padding: 0;
  list-style: none;
  counter-reset: lx-step;
}

.lx-steps li {
  counter-increment: lx-step;
  padding-top: 22px;
  border-top: 2px solid var(--lx-leaf);
}

.lx-steps li::before {
  content: "0" counter(lx-step);
  display: block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--lx-leaf);
}

.lx-steps strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.lx-steps span { display: block; margin-top: 8px; color: var(--lx-muted); }

/* ---------- Newsletter ---------- */
.lx-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

body.lx-page .lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

body.lx-page .lead-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--lx-text); }

body.lx-page .lead-form input,
.lx-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--lx-line);
  border-radius: 14px;
  background: var(--lx-white);
  font-family: var(--lx-font);
  font-size: 1rem;
  color: var(--lx-text);
}

body.lx-page .lead-form input:focus { outline: 2px solid var(--lx-leaf); outline-offset: 1px; }

body.lx-page .status-banner {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

body.lx-page .status-banner:empty { display: none; }
body.lx-page .status-banner.success { color: var(--lx-leaf); }
body.lx-page .status-banner.error { color: #a33a2a; }

/* ---------- FAQ ---------- */
.lx-faq {
  max-width: 900px;
  margin: clamp(32px, 4vw, 56px) auto 0;
  border-top: 1px solid var(--lx-line);
}

.lx-faq details { border-bottom: 1px solid var(--lx-line); }

.lx-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.lx-faq summary::-webkit-details-marker { display: none; }

.lx-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--lx-leaf);
  transition: transform 0.2s ease;
}

.lx-faq details[open] summary::after { transform: rotate(45deg); }

.lx-faq details p {
  max-width: 72ch;
  padding: 0 0 22px;
  color: var(--lx-muted);
}

/* ==========================================================================
   Guía de árboles nativos
   ========================================================================== */
.lx-guide {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.lx-toc {
  position: sticky;
  top: calc(var(--lx-header-h) + 28px);
}

.lx-toc p {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

.lx-toc ol {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.lx-toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid var(--lx-line);
  color: var(--lx-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.lx-toc a:hover {
  border-left-color: var(--lx-leaf);
  color: var(--lx-text);
}

.lx-guide-section + .lx-guide-section {
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--lx-line);
}

.lx-guide-section > .lx-text { font-size: 1.08rem; }
.lx-guide-section > .lx-text strong { color: var(--lx-text); }
.lx-guide-section .lx-h2 { margin-bottom: 26px; font-size: clamp(2rem, 3.6vw, 3.4rem); }

.ref-mark {
  margin-left: 2px;
  font-size: 0.72em;
  font-weight: 800;
  vertical-align: super;
  line-height: 0;
  color: var(--lx-leaf) !important;
  text-decoration: none;
}

.ref-mark:hover { text-decoration: underline; }

.lx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.lx-facts article {
  padding: 26px;
  border-radius: var(--lx-radius-sm);
  background: var(--lx-forest);
  color: var(--lx-on-dark);
}

.lx-facts strong {
  display: block;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lx-facts span { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--lx-on-dark-muted); }
.lx-facts .ref-mark { color: #9fd8b4 !important; }

.lx-species {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.lx-sp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
}

.lx-sp h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lx-sp-latin {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--lx-muted);
}

.lx-sp-latin em { font-family: var(--lx-serif); font-size: 1.05em; color: var(--lx-text); }

.lx-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.lx-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lx-sage);
  color: var(--lx-forest);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lx-tag--endemic { background: var(--lx-forest); color: #e6f4ec; }
.lx-tag--threat { background: #f4e2c4; color: #7a4a06; }

.lx-sp > p { color: var(--lx-muted); font-size: 0.97rem; }

.lx-sp dl { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--lx-line); }

.lx-sp dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lx-leaf);
}

.lx-sp dd { margin: 0; font-size: 0.94rem; color: var(--lx-muted); }

.lx-refs {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  counter-reset: lx-ref;
}

.lx-refs li {
  counter-increment: lx-ref;
  position: relative;
  padding: 4px 8px 4px 48px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--lx-muted);
}

.lx-refs li::before {
  content: "[" counter(lx-ref) "]";
  position: absolute;
  left: 8px;
  top: 4px;
  font-weight: 800;
  color: var(--lx-leaf);
}

.lx-refs li:target { background: var(--lx-sage); border-radius: 10px; }
.lx-refs em { color: var(--lx-text); }
.lx-refs a { color: var(--lx-leaf); word-break: break-word; }

.lx-book {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--lx-radius);
  background: var(--lx-sage);
}

.lx-book-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 120px;
  height: 168px;
  padding: 14px 12px;
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(135deg, var(--lx-forest), var(--lx-leaf));
  color: #f0f8f3;
  box-shadow: 10px 14px 30px rgba(15, 31, 25, 0.25), inset 6px 0 0 rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.lx-book-cover strong { font-family: var(--lx-serif); font-size: 1rem; line-height: 1.1; }

.lx-book h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.lx-book p { margin-top: 8px; color: var(--lx-muted); }

/* ==========================================================================
   Documentos (privacidad, términos)
   ========================================================================== */
.lx-doc {
  max-width: 820px;
  margin: 0 auto;
}

.lx-doc h2 {
  margin-top: 48px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lx-doc p,
.lx-doc li {
  margin-top: 12px;
  color: var(--lx-muted);
}

.lx-doc ul { padding-left: 22px; }

.lx-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lx-doc-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--lx-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Estado (404, pago, éxito) ---------- */
.lx-state {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--lx-header-h));
  padding: 80px var(--lx-gutter);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(42, 148, 104, 0.18), transparent 55%),
    var(--lx-paper);
}

.lx-state-inner { max-width: 720px; }

.lx-state-code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--lx-sage-2);
}

.lx-state-icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--lx-sage);
  color: var(--lx-leaf);
}

.lx-state-icon svg { width: 40px; height: 40px; }
.lx-state-icon--warn { background: #f4e2c4; color: #7a4a06; }

.lx-next {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 26px 28px;
  border-radius: var(--lx-radius-sm);
  background: var(--lx-white);
  border: 1px solid var(--lx-line);
  text-align: left;
}

.lx-next p:first-child {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lx-leaf);
}

.lx-next li { color: var(--lx-muted); }
.lx-next ul { display: grid; gap: 10px; padding-left: 20px; }

/* ==========================================================================
   Footer global
   ========================================================================== */
.lx-footer {
  font-family: var(--lx-font);
  background: var(--lx-ink);
  color: var(--lx-on-dark-muted);
  font-size: 0.9rem;
}

.lx-footer-inner {
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--lx-gutter) 32px;
}

.lx-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lx-footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
  line-height: 1.6;
}

.lx-footer-col .lx-footer-title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.lx-footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--lx-on-dark-muted);
  text-decoration: none;
}

.lx-footer-col a:hover { color: #fff; }

.lx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(226, 238, 230, 0.5);
}

.lx-footer-bottom a { color: inherit; }

/* ---------- CTA flotante ---------- */
.mobile-sticky-bar.floating-cta {
  position: fixed;
  z-index: 90;
  display: flex;
  gap: 8px;
  font-family: var(--lx-font);
  transition: transform 0.35s var(--lx-ease), opacity 0.35s ease;
}

.floating-cta .lx-btn { box-shadow: 0 16px 40px rgba(10, 24, 19, 0.3); }

body.is-member .floating-cta { display: none !important; }

@media (min-width: 1024px) {
  .mobile-sticky-bar.floating-cta {
    right: 28px;
    bottom: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120px);
  }

  .mobile-sticky-bar.floating-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .floating-cta .floating-cta-secondary { display: none; }
}

@media (max-width: 1023px) {
  .mobile-sticky-bar.floating-cta {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(251, 250, 246, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(10, 24, 19, 0.18);
  }

  .floating-cta .lx-btn { flex: 1; min-height: 46px; padding: 0 14px; font-size: 0.95rem; box-shadow: none; }
  .floating-cta .floating-cta-secondary { flex: 0 0 auto; }

  body.lx-page:has(.floating-cta) { padding-bottom: 80px; }
}

/* ---------- Revelado al hacer scroll ---------- */
.lx-js .lx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--lx-ease), transform 0.9s var(--lx-ease);
}

.lx-js .lx-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lx-js .lx-reveal { opacity: 1; transform: none; transition: none; }
  .lx-tile > img,
  .lx-mosaic figure img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1279px) {
  .lx-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .lx-circle,
  .lx-tiles,
  .lx-tiles--4 { grid-template-columns: 1fr; }
  .lx-tile { min-height: 420px; }
  .lx-split,
  .lx-news { grid-template-columns: 1fr; }
  .lx-split--reverse .lx-split-media { order: 0; }
  .lx-split-media { aspect-ratio: 4 / 3; }
  .lx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-cards,
  .lx-cards--4,
  .lx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-allies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-guide { grid-template-columns: 1fr; }
  .lx-toc { position: static; }
  .lx-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-footer-brand { grid-column: 1 / -1; }
  .lx-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .lx-mosaic .m-a,
  .lx-mosaic .m-b,
  .lx-mosaic .m-c,
  .lx-mosaic .m-d { grid-column: span 1; grid-row: span 1; }
  .lx-mosaic .m-a { grid-row: span 2; }
}

@media (max-width: 767px) {
  body.lx-page { font-size: 16px; }
  .lx-plans { grid-template-columns: 1fr; }
  .lx-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 18px 20px; }
  .lx-plan-name,
  .lx-plan-badge { grid-column: 1; text-align: left; justify-self: start; }
  .lx-plan-name { font-size: 0.85rem; }
  .lx-plan-price { grid-column: 1; font-size: 1.5rem; text-align: left; }
  .lx-plan .lx-btn { padding: 0 18px; }
  .lx-plan p { display: none; }
  .lx-plan .lx-btn { grid-column: 2; grid-row: 1 / span 3; width: auto; margin: 0; }
  .lx-people,
  .lx-cards,
  .lx-cards--2,
  .lx-cards--4,
  .lx-allies,
  .lx-vote-grid,
  .lx-facts,
  .lx-species { grid-template-columns: 1fr; }
  .lx-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-steps { grid-template-columns: 1fr; }
  body.lx-page .lead-form { grid-template-columns: 1fr; }
  .lx-carousel .story-carousel-slide { flex-basis: 88vw; aspect-ratio: 4 / 5; }
  .lx-carousel-controls { display: none; }
  .lx-mosaic { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .lx-mosaic .m-a { grid-row: span 1; }
  .lx-toc ol { grid-template-columns: 1fr; }
  .lx-book { grid-template-columns: 1fr; justify-items: start; }
  .lx-footer-top { grid-template-columns: 1fr 1fr; }
  .lx-hero { min-height: calc(92svh - var(--lx-header-h)); }
  .lx-actions .lx-btn { flex: 1 1 auto; }
}

/* En páginas que todavía cargan styles.css (acceso, cuenta, admin), blindar header/footer */
html body .lx-footer { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border-radius: 0; background: var(--lx-ink); box-shadow: none; }
html body .lx-footer-inner { display: block; }
html body .lx-footer-top { display: grid; }
html body .lx-footer p,
html body .lx-footer a,
html body .lx-footer span { color: var(--lx-on-dark-muted); font-family: var(--lx-font); }
html body .lx-footer .lx-footer-title { color: #fff; font-family: var(--lx-font); }
html body .lx-footer .lx-brand-copy strong { color: #fff; }
html body .lx-header { margin: 0; max-width: none; border-radius: 0; }

/* ==========================================================================
   Hazte socio: todo en una sola vista (sin scroll vertical)
   ========================================================================== */
body.lx-page--single {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 0%, rgba(42, 148, 104, 0.16), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(233, 185, 73, 0.1), transparent 40%),
    var(--lx-sage);
}

body.lx-page--single main { flex: 1; display: flex; }

.lx-checkout {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(100svh - var(--lx-header-h));
  padding: clamp(16px, 3vh, 40px) 0;
}

.lx-checkout-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.6vh, 30px);
  width: 100%;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
  text-align: center;
}

.lx-checkout-head .lx-eyebrow { margin-bottom: 8px; }

.lx-checkout-title {
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(1.9rem, min(4.4vw, 6.2vh), 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--lx-ink);
}

.lx-checkout-lead {
  max-width: 60ch;
  margin: 12px auto 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--lx-muted);
}

.lx-checkout .lx-proof { margin-top: 12px; }
.lx-checkout .lx-plans { margin-top: 0; }

.lx-checkout .lx-plan { padding: clamp(16px, 2.2vh, 26px) clamp(16px, 1.6vw, 24px); gap: 8px; }
.lx-checkout .lx-plan:hover { transform: none; }

.lx-checkout-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lx-checkout-perks li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--lx-line);
  font-size: 0.9rem;
  color: var(--lx-muted);
}

.lx-checkout-perks strong { color: var(--lx-forest); }

.lx-checkout-note {
  font-size: 0.88rem;
  color: var(--lx-muted);
}

.lx-checkout-note a { color: var(--lx-leaf); font-weight: 700; text-decoration: none; }
.lx-checkout-note a:hover { text-decoration: underline; }

@media (max-width: 1279px) and (min-width: 768px) {
  .lx-checkout .lx-plans { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lx-checkout .lx-plan p { display: none; }
  .lx-checkout .lx-plan-price { font-size: 1.5rem; }
  .lx-checkout .lx-plan .lx-btn { padding: 0 10px; font-size: 0.9rem; }
}

@media (max-width: 767px) {
  .lx-checkout { align-items: flex-start; padding-top: 14px; }
  .lx-checkout-inner { gap: 12px; }
  .lx-checkout-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .lx-checkout-lead { margin-top: 6px; font-size: 0.95rem; line-height: 1.4; }
  .lx-checkout .lx-plans { gap: 7px; }
  .lx-checkout .lx-plan { padding: 10px 14px; border-radius: 18px; }
  .lx-checkout .lx-plan .lx-btn { min-height: 40px; font-size: 0.9rem; }
  .lx-checkout .lx-plan-badge { display: none; }
  .lx-checkout .lx-plan-price { font-size: 1.3rem; }
  .lx-checkout-perks { gap: 6px; }
  .lx-checkout-perks li { padding: 5px 10px; font-size: 0.78rem; }
  .lx-checkout-note { font-size: 0.78rem; line-height: 1.5; }
}

.lx-checkout .lx-plan .lx-btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }

@media (max-width: 767px) {
  /* En celular los beneficios van en una sola línea compacta */
  .lx-checkout-perks { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin: 0 calc(var(--lx-gutter) * -1); padding: 0 var(--lx-gutter); }
  .lx-checkout-perks::-webkit-scrollbar { display: none; }
  .lx-checkout-perks li { flex: 0 0 auto; }
  .lx-checkout { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 767px) and (max-height: 760px) {
  .lx-checkout-perks,
  .lx-checkout .lx-eyebrow { display: none; }
  .lx-checkout-inner { gap: 10px; }
  .lx-checkout .lx-plan { padding-top: 8px; padding-bottom: 8px; }
  .lx-checkout-title { font-size: 1.45rem; }
}

@media (max-width: 767px) and (max-height: 660px) {
  .lx-checkout-lead { display: none; }
  .lx-checkout .lx-plan .lx-btn { min-height: 36px; }
  .lx-checkout .lx-plan-name { font-size: 0.78rem; }
  .lx-checkout .lx-plan-price { font-size: 1.15rem; }
}

/* El contador "Ya somos N socios" ocupa una línea extra: en celulares bajos se oculta */
@media (max-width: 767px) and (max-height: 760px) {
  .lx-checkout .lx-proof { display: none !important; }
}

@media (max-width: 767px) {
  .lx-checkout .lx-proof { margin-top: 6px; padding: 4px 12px; font-size: 0.82rem; }
}

/* ==========================================================================
   Bloque de pago: plan por defecto en un toque + otros montos
   ========================================================================== */
.lx-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 18px);
  width: 100%;
  max-width: 760px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  text-align: center;
}

.lx-checkout .lx-pay { margin-top: 0; }

.lx-btn--xl {
  width: min(100%, 520px);
  min-height: clamp(58px, 8vh, 72px);
  padding: 0 28px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  box-shadow: 0 18px 44px rgba(31, 122, 85, 0.3);
}

.lx-pay-other {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lx-muted);
}

.lx-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
}

.lx-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 8px 6px;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: var(--lx-white);
  color: var(--lx-text) !important;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s var(--lx-ease), box-shadow 0.2s ease;
}

.lx-chip strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.lx-chip span { font-size: 0.76rem; font-weight: 600; color: var(--lx-muted); }

.lx-chip:hover,
.lx-chip.is-requested {
  border-color: var(--lx-leaf);
  box-shadow: 0 0 0 2px var(--lx-leaf) inset;
  transform: translateY(-1px);
}

.lx-btn.is-requested { outline: 3px solid var(--lx-sun); outline-offset: 3px; }

.lx-pay-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--lx-muted);
}

.lx-pay-steps svg { flex-shrink: 0; margin-top: 2px; color: var(--lx-leaf); }

.lx-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lx-trust li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--lx-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lx-forest);
}

.lx-goal {
  width: min(100%, 520px);
}

.lx-goal[hidden] { display: none; }

.lx-goal-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 59, 49, 0.12);
  overflow: hidden;
}

.lx-goal-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lx-leaf), var(--lx-leaf-2));
  transition: width 0.8s var(--lx-ease);
}

.lx-goal p {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--lx-muted);
}

.lx-goal strong { color: var(--lx-forest); }

.lx-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.lx-quote { padding: 26px; border-radius: var(--lx-radius-sm); background: var(--lx-white); border: 1px solid var(--lx-line); }
.lx-quote blockquote { margin: 0; font-family: var(--lx-serif); font-size: 1.2rem; line-height: 1.4; color: var(--lx-text); }
.lx-quote figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--lx-muted); }

@media (max-width: 767px) {
  .lx-chips { gap: 7px; }
  .lx-chip { min-height: 54px; border-radius: 14px; }
  .lx-chip strong { font-size: 0.98rem; }
  .lx-pay-steps { font-size: 0.8rem; }
  .lx-trust li { font-size: 0.74rem; padding: 4px 10px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .lx-checkout .lx-trust { display: none; }
}

@media (max-width: 767px) {
  /* Con el bloque de pago compacto, el contenido se centra en la pantalla */
  .lx-checkout { align-items: center; }
}

/* Tres alternativas: 1 botón principal + 2 montos */
.lx-chips { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }

/* Tres alternativas: 1 botón principal + 2 montos al lado */
.lx-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }

