/* Todos los canales (Acto 1): hub y páginas de canal digitales (redes, email, landing).
   Las piezas (js/channels/digital.js) llevan sus estilos en línea; aquí va el marco que las presenta. */

:root { --cn-grove: #00843D; --cn-meadow: #009A44; --cn-light: #A1D884; }

/* ============ Héroe ============ */
.cn-hero { position: relative; overflow: hidden; color: var(--white); min-height: calc(100svh - var(--vd-bar, 48px)); display: flex; flex-direction: column;
  background: radial-gradient(70% 80% at 78% 45%, rgba(0, 132, 61, .9) 0%, rgba(2, 48, 26, 0) 70%), radial-gradient(60% 60% at 10% 100%, rgba(161, 216, 132, .16), rgba(2, 48, 26, 0) 60%), linear-gradient(180deg, #02301A 0%, #011F11 100%); }
.cn-hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.cn-hero__nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; }
.cn-hero__logo { height: 34px; width: auto; }
.cn-hero__in { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.cn-hero__title { margin-top: 22px; font-size: clamp(46px, 6.2vw, 92px); }
.cn-hero__muted { color: rgba(255, 255, 255, .45); }
.cn-hero__lead { margin-top: 28px; color: rgba(255, 255, 255, .84); max-width: 600px; }
.cn-hero__lead b { color: var(--white); }
.cn-hero__cta { margin-top: 36px; }
.cn-hero__stats { display: flex; gap: 40px; margin: 44px 0 0; flex-wrap: wrap; }
.cn-hero__stats div { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--green-light); }
.cn-hero__stats dt b { font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.cn-hero__stats dd { margin: 0; font-size: var(--text-caption); color: rgba(255, 255, 255, .7); max-width: 18ch; }

/* Núcleo: tokens con las piezas alrededor */
.cn-core { position: relative; height: min(620px, 70vh); min-height: 460px; }
.cn-core__piece { position: absolute; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  animation: cn-float 9s var(--ease-in-out) infinite; will-change: transform; background: var(--green-900); }
.cn-core__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.cn-core__piece--a { width: 46%; left: 0; top: 4%; animation-delay: -2s; }
.cn-core__piece--b { width: 27%; right: 2%; top: 0; animation-delay: -5s; }
.cn-core__piece--c { width: 50%; right: 0; bottom: 4%; animation-delay: -1s; }
.cn-core__piece--d { width: 44%; left: 6%; bottom: 2%; animation-delay: -7s; border-radius: 10px; }
@keyframes cn-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
.cn-core__tokens { position: absolute; left: 50%; top: 50%; width: min(330px, 80%); margin: -150px 0 0 -165px; padding: 20px 22px 16px; z-index: 3; transition: transform .5s var(--ease-reveal); }
.cn-core__file { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .75); padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.cn-core__file svg { width: 16px; height: 16px; }
.cn-core__file em { margin-left: auto; font-style: normal; font-family: var(--font-sans); font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-light); color: var(--green-900); transition: background .4s; }
.cn-core.is-v1 .cn-core__file em { background: rgba(255, 255, 255, .85); }
.cn-core ul { list-style: none; display: grid; gap: 10px; padding-top: 12px; }
.cn-core li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.cn-core li > i { width: 28px; height: 28px; border-radius: 8px; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .6s var(--ease-reveal); display: grid; place-items: center; font-style: normal; }
.cn-core code { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .85); }
.cn-core li span { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .65); }
.cn-core__aa { font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .1) !important; }
.cn-core__mk img { height: 18px; width: auto; }

/* ============ Muro ============ */
.cn-wall-sec { position: relative; background: var(--white); padding: clamp(64px, 9vw, 96px) 0 clamp(64px, 8vw, 96px); }
.cn-bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--ink-200); box-shadow: 0 10px 30px rgba(2, 48, 26, .06); }
@supports (backdrop-filter: blur(1px)) { .cn-bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); } }
.cn-bar__in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
.cn-bar__grp { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cn-bar__lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); }
.cn-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cn-seg::-webkit-scrollbar { display: none; }
.cn-seg button { height: 36px; padding: 0 16px; }
.cn-bar__chips { padding-bottom: 12px; }
.cn-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cn-chips::-webkit-scrollbar { display: none; }
.cn-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--ink-700); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.cn-chip svg { width: 15px; height: 15px; }
.cn-chip em { font-style: normal; font-size: 12px; color: var(--ink-500); }
.cn-chip:hover { border-color: var(--green-500); color: var(--green-700); }
.cn-chip[aria-pressed="true"] { background: var(--green-grove); border-color: var(--green-grove); color: var(--white); }
.cn-chip[aria-pressed="true"] em { color: rgba(255, 255, 255, .75); }

/* Interruptor de identidad */
.cn-ver { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--green-900); }
.cn-ver button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 14px; cursor: pointer; transition: color .3s; }
.cn-ver button[data-v="v1"] { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.cn-ver button[aria-pressed="true"] { color: var(--green-900); }
.cn-ver::before { content: ""; position: absolute; top: 4px; bottom: 4px; right: 4px; width: 58px; border-radius: 999px; background: var(--green-light); transition: transform .55s var(--ease-reveal), background .4s; }
.cn-ver.is-v1::before { transform: translateX(calc(-100% - 28px)); background: var(--white); }
.cn-ver__arrow { display: grid; place-items: center; color: rgba(255, 255, 255, .5); }
.cn-ver__arrow svg { width: 14px; height: 14px; }

.cn-brief { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 22px 0 6px; font-size: var(--text-body-sm); color: var(--ink-700); }
.cn-brief span { display: inline-flex; align-items: center; gap: 7px; }
.cn-brief svg { width: 16px; height: 16px; color: var(--green-500); }
.cn-brief__name b { font-size: 18px; color: var(--green-grove); }
.cn-migr { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: var(--text-caption); color: var(--ink-500); }
.cn-migr svg { width: 15px; height: 15px; color: var(--green-500); flex: none; }
body.cn-is-v1 .cn-migr { color: var(--green-700); font-weight: 700; }

.cn-wall { display: grid; gap: 56px; padding-top: 28px; }
.cn-group[hidden] { display: none; }
.cn-group.is-enter { animation: cn-enter .7s var(--ease-reveal) both; }
@keyframes cn-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cn-group__h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-200); }
.cn-group__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-050); color: var(--green-grove); }
.cn-group__ic svg { width: 18px; height: 18px; }
.cn-group__n { margin-left: auto; font-size: var(--text-caption); color: var(--ink-500); }

/* Filas justificadas: cada pieza crece en proporción a su formato, misma altura en la fila */
.cn-tiles { --row: 300px; --rowmax: 460px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cn-tile { flex: var(--ar) 1 calc(var(--ar) * var(--row)); max-width: calc(var(--ar) * var(--rowmax)); min-width: 0; display: grid; gap: 10px; color: inherit; }
.cn-tile:hover { opacity: 1; }
.cn-tile__frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-soft); box-shadow: 0 1px 2px rgba(2, 48, 26, .08), 0 14px 36px rgba(2, 48, 26, .12);
  transition: transform .6s var(--ease-reveal), box-shadow .6s var(--ease-reveal); }
.cn-tile:hover .cn-tile__frame, .cn-tile:focus-visible .cn-tile__frame { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(2, 48, 26, .1), 0 28px 60px rgba(2, 48, 26, .22); }
.cn-tile:focus-visible { box-shadow: none; }
.cn-tile:focus-visible .cn-tile__frame { outline: 3px solid var(--green-500); outline-offset: 3px; }
.cn-tile__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; transition: opacity .24s var(--ease-out), filter .24s var(--ease-out); }
.cn-tile.is-out .cn-tile__stage { opacity: 0; filter: blur(6px); }
.cn-tile.is-in .cn-tile__frame { animation: cn-pop .52s var(--ease-reveal); }
@keyframes cn-pop { from { transform: scale(.965); } to { transform: none; } }
.cn-tile__stage.is-wipe { animation: cn-wipe .7s var(--ease-reveal) both; }
@keyframes cn-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cn-tile__hover { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(2, 48, 26, .72); color: var(--white); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease-reveal), transform .35s var(--ease-reveal); }
.cn-tile__hover b { font-size: 14px; }
.cn-tile__hover span { grid-column: 1; font-size: 12px; color: rgba(255, 255, 255, .78); }
.cn-tile__hover svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; }
.cn-tile:hover .cn-tile__hover, .cn-tile:focus-visible .cn-tile__hover { opacity: 1; transform: none; }
.cn-tile__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; min-width: 0; }
.cn-tile__cap b { color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-tile__cap span { color: var(--ink-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cn-miss { display: grid; place-items: center; background: var(--surface-soft); color: var(--ink-500); font-size: 48px; }

/* Barrido del cambio de identidad */
.cn-sweep { position: fixed; top: 0; bottom: 0; left: 0; width: 34vw; z-index: 60; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(161, 216, 132, .22) 35%, rgba(255, 255, 255, .55) 50%, rgba(161, 216, 132, .22) 65%, rgba(255, 255, 255, 0) 100%); mix-blend-mode: screen; }
.cn-sweep.is-run { animation: cn-sweep 1.3s var(--ease-in-out) both; }
@keyframes cn-sweep { 0% { opacity: 0; transform: translateX(-40vw) skewX(-12deg); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(110vw) skewX(-12deg); } }

/* ============ Reglas ============ */
.cn-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.cn-rule { padding: 22px 22px 26px; display: grid; align-content: start; gap: 10px; box-shadow: none; }
.cn-rule p { font-size: var(--text-body-sm); color: var(--ink-700); }
.cn-rule__ref { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--green-500); }
.cn-rule__fig { height: 190px; border-radius: 14px; background: var(--surface-soft); margin-bottom: 10px; position: relative; overflow: hidden; }
/* logo arriba a la derecha */
.cn-fig-corner { display: grid; place-items: center; }
.cn-fig-corner__page { position: relative; width: 210px; height: 148px; background: var(--white); border-radius: 6px; box-shadow: 0 8px 24px rgba(2, 48, 26, .1); }
.cn-fig-corner__page img { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; }
.cn-fig-corner__safe { position: absolute; top: 9px; right: 9px; width: 52px; height: 52px; border: 1.5px dashed var(--green-light); border-radius: 4px; animation: cn-safe 3s var(--ease-in-out) infinite; }
@keyframes cn-safe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.cn-fig-corner__x { position: absolute; font-style: normal; font-size: 10px; font-weight: 700; color: var(--green-500); }
.cn-fig-corner__x--t { top: 3px; right: 31px; }
.cn-fig-corner__x--r { top: 30px; right: 2px; }
.cn-fig-corner__page b { position: absolute; left: 18px; height: 7px; border-radius: 4px; background: var(--ink-200); }
.cn-fig-corner__page b:nth-of-type(1) { top: 72px; width: 120px; background: var(--green-grove); height: 10px; }
.cn-fig-corner__page b:nth-of-type(2) { top: 92px; width: 160px; }
.cn-fig-corner__page b:nth-of-type(3) { top: 106px; width: 130px; }
/* vertical / horizontal */
.cn-fig-vh { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; padding: 16px; }
.cn-fig-vh > div { background: var(--white); border-radius: 8px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; }
.cn-fig-vh__a img { width: 70px; height: 70px; }
.cn-fig-vh__b img { width: 150px; height: auto; }
.cn-fig-vh small { font-size: 11px; color: var(--ink-500); text-align: center; }
/* proporción de color */
.cn-fig-prop { display: grid; align-content: center; gap: 10px; padding: 20px; }
.cn-fig-prop__bar { display: flex; height: 92px; border-radius: 10px; overflow: hidden; }
.cn-fig-prop__bar i { width: var(--w); background: var(--c); display: flex; align-items: flex-end; padding: 8px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--white); transform-origin: left; }
.cn-rule.is-in .cn-fig-prop__bar i { animation: cn-grow 1.1s var(--ease-reveal) both; }
.cn-fig-prop__bar i:nth-child(2) { animation-delay: .1s !important; } .cn-fig-prop__bar i:nth-child(3) { animation-delay: .2s !important; } .cn-fig-prop__bar i:nth-child(4) { animation-delay: .3s !important; }
@keyframes cn-grow { from { transform: scaleX(0); } to { transform: none; } }
.cn-fig-prop__pms { display: grid; grid-template-columns: 56fr 22fr 12fr 10fr; font-size: 10px; color: var(--ink-500); }
/* tipografía */
.cn-fig-type { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 0 12px; }
.cn-fig-type span { display: grid; justify-items: center; gap: 6px; font-size: 64px; line-height: 1; color: var(--green-grove); }
.cn-fig-type small { font-size: 12px; font-weight: 400; color: var(--ink-500); }
/* fotografía */
.cn-fig-photo { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 6px; }
.cn-fig-photo figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--green-900); }
.cn-fig-photo img, .cn-fig-photo .vd-ph { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; min-height: 0; }
.cn-fig-photo figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--white); background: rgba(2, 48, 26, .6); }
/* arquitectura */
.cn-fig-arch { display: grid; align-content: center; gap: 10px; padding: 16px 20px; }
.cn-fig-arch > div { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border-radius: 8px; padding: 9px 12px; color: var(--green-grove); font-size: 13px; }
.cn-fig-arch__l1 { margin-left: 22px; } .cn-fig-arch__l2 { margin-left: 44px; }
.cn-fig-arch__l1::before, .cn-fig-arch__l2::before { content: ""; position: absolute; left: -12px; top: -10px; width: 10px; height: 28px; border-left: 1.5px solid var(--green-light); border-bottom: 1.5px solid var(--green-light); border-bottom-left-radius: 6px; }
.cn-fig-arch img { height: 22px; width: auto; }
.cn-fig-arch b { color: var(--green-light); font-weight: 400; }
.cn-fig-arch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cn-fig-arch small { font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

/* ============ Flujo ============ */
.cn-flow { overflow: hidden; }
.cn-steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 0; }
.cn-steps__line { position: absolute; left: 4%; right: 4%; top: 40px; width: 92%; height: 10px; z-index: 0; overflow: visible; }
.cn-steps__line path { fill: none; stroke: var(--green-light); stroke-width: 2; stroke-dasharray: .012 .01; vector-effect: non-scaling-stroke; animation: cn-dash 14s linear infinite; opacity: .6; }
@keyframes cn-dash { to { stroke-dashoffset: -1; } }
.cn-step { position: relative; z-index: 1; padding: 20px 20px 22px; display: grid; align-content: start; gap: 10px; }
.cn-step__n { font-size: 12px; font-weight: 700; color: var(--green-light); letter-spacing: .1em; }
.cn-step > svg { width: 28px; height: 28px; color: var(--white); }
.cn-step b { font-size: 18px; line-height: 1.2; }
.cn-step p { font-size: 14px; color: rgba(255, 255, 255, .75); }
.cn-checks { list-style: none; display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.cn-checks li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease-reveal), transform .5s var(--ease-reveal); }
.cn-checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302301A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cn-step.is-in .cn-checks li { opacity: 1; transform: none; }
.cn-step.is-in .cn-checks li:nth-child(1) { transition-delay: .7s; } .cn-step.is-in .cn-checks li:nth-child(2) { transition-delay: 1.1s; }
.cn-step.is-in .cn-checks li:nth-child(3) { transition-delay: 1.5s; } .cn-step.is-in .cn-checks li:nth-child(4) { transition-delay: 1.9s; }
.cn-flow__cta { margin-top: 40px; }

/* ============ Tabla de formatos ============ */
.cn-specs { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--ink-200); }
.cn-specs table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); min-width: 680px; }
.cn-specs th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); padding: 14px 18px; background: var(--surface-soft); }
.cn-specs td { padding: 13px 18px; border-top: 1px solid var(--ink-200); vertical-align: middle; }
.cn-specs tbody tr { transition: background .2s; }
.cn-specs tbody tr:hover { background: var(--green-050); }
.cn-specs a { font-weight: 700; color: var(--green-grove); }
.cn-specs__g { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); }
.cn-specs__g svg { width: 16px; height: 16px; color: var(--green-500); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .cn-hero__in { grid-template-columns: 1fr; }
  .cn-core { height: 520px; }
  .cn-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-steps__line { display: none; }
}
@media (max-width: 640px) {
  .cn-hero__nav .vd-tag { font-size: 11px; height: auto; padding: 4px 10px; white-space: normal; }
  .cn-hero__logo { height: 26px; }
  .cn-hero__stats { gap: 18px; }
  .cn-hero__stats dt b { font-size: 30px; }
  .cn-core { height: 400px; min-height: 0; }
  .cn-core__tokens { width: 270px; margin: -140px 0 0 -135px; padding: 14px 16px 12px; }
  .cn-core li { grid-template-columns: 24px 1fr auto; gap: 8px; }
  .cn-core li > i { width: 24px; height: 24px; }
  .cn-bar__in { gap: 10px 16px; padding-top: 10px; }
  .cn-bar__lbl { display: none; }
  .cn-bar__grp:first-child { width: 100%; }
  .cn-seg button, .cn-ver button { height: 32px; padding: 0 12px; font-size: 13px; }
  .cn-ver::before { width: 50px; }
  .cn-tiles { --row: 150px; --rowmax: 330px; gap: 14px; }
  .cn-tile__cap span { display: none; }
  .cn-rules, .cn-steps { grid-template-columns: 1fr; }
  .cn-brief { gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cn-core__piece, .cn-steps__line path, .cn-fig-corner__safe { animation: none; }
  .cn-checks li { opacity: 1; transform: none; }
}

/* ================================================================
   Páginas de canal (redes, email, landing): cabecera común
   ================================================================ */
.sp-head { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(60% 120% at 85% 0%, rgba(0, 132, 61, .85) 0%, rgba(2, 48, 26, 0) 70%), linear-gradient(180deg, #02301A 0%, #011F11 100%); }
.sp-head::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 70%; height: 140%; border-radius: 50%; border: 1px solid rgba(161, 216, 132, .18); pointer-events: none; }
.sp-head__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.sp-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: var(--text-body-sm); font-weight: 700; }
.sp-back:hover { color: var(--white); opacity: 1; }
.sp-back svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.sp-back:hover svg { transform: translateX(-3px); }
.sp-head__logo { height: 30px; width: auto; }
.sp-head__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-top: 48px; padding-bottom: 36px; }
.sp-head__title { margin-top: 16px; max-width: 18ch; color: var(--white); }
.sp-head__lead { margin-top: 18px; max-width: 600px; color: rgba(255, 255, 255, .78); font-size: 18px; }
.sp-ctl { display: grid; gap: 12px; justify-items: end; }
.sp-ctl__g { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.sp-ctl__l { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sp-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sp-seg::-webkit-scrollbar { display: none; }
.sp-seg button { height: 36px; padding: 0 15px; }
.sp-jump { position: relative; z-index: 1; display: flex; gap: 6px; padding-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.sp-jump::-webkit-scrollbar { display: none; }
.sp-jump a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap; }
.sp-jump a:hover { color: var(--white); background: rgba(255, 255, 255, .1); opacity: 1; }
main.sp-swap .so-media, main.sp-swap .so-doc, main.sp-swap .so-prof__cell, main.sp-swap .so-story__frames, main.sp-swap .so-yt__player, main.sp-swap .so-yt__list li,
main.sp-swap .em-stage, main.sp-swap .ln-hero__in, main.sp-swap .ln-figs { animation: sp-swap .7s var(--ease-reveal) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes sp-swap { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ============ Redes ============ */
.so-li__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.so-app { border-radius: var(--radius-lg); background: #F4F2EE; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 20px 50px rgba(2, 48, 26, .1); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1F1F1F; }
.so-app__bar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 20px; background: var(--white); border-bottom: 1px solid #E3E1DC; }
.so-app__bar > b { font-size: 20px; letter-spacing: -0.02em; color: #222; }
.so-app__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 6px; background: #EEF0F2; color: #666; font-size: 14px; width: 240px; }
.so-app__search svg { width: 16px; height: 16px; }
.so-app__ico { margin-left: auto; display: flex; gap: 22px; color: #666; }
.so-app__ico svg { width: 22px; height: 22px; }
.so-app__body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 20px; }
.so-company { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 14px 18px; border-radius: 10px; background: var(--white); text-align: center; overflow: hidden; border: 1px solid #E3E1DC; }
.so-company__cover { width: calc(100% + 28px); height: 58px; background: linear-gradient(120deg, var(--green-grove), var(--green-meadow) 70%, var(--green-light)); }
.so-company b { font-size: 16px; } .so-company small { font-size: 12px; color: #555; }
.so-muted { color: #777 !important; }
.so-avatar { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--white); border: 1px solid #E3E1DC; display: grid; place-items: center; overflow: hidden; }
.so-avatar img { height: 62%; width: auto; }
.so-avatar--lg { width: 72px; height: 72px; margin-top: -36px; }
.so-avatar--sm { width: 32px; height: 32px; border-radius: 50%; }
.so-avatar--ring { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--green-light); }
.so-feed { display: grid; gap: 16px; min-width: 0; }
.so-post { background: var(--white); border-radius: 10px; border: 1px solid #E3E1DC; overflow: hidden; }
.so-post__h { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 6px; }
.so-post__h div { display: grid; line-height: 1.3; }
.so-post__h b { font-size: 14px; } .so-post__h small { font-size: 12px; color: #666; display: inline-flex; align-items: center; gap: 4px; }
.so-post__h small svg { width: 12px; height: 12px; }
.so-follow { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--green-700); }
.so-post__txt { padding: 6px 16px 12px; font-size: 14px; line-height: 1.5; }
.so-tag { color: var(--green-700); font-weight: 700; }
.so-media { width: 100%; background: var(--green-900); }
.so-post__stats { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12px; color: #555; border-bottom: 1px solid #ECEAE6; }
.so-post__stats .so-muted { margin-left: auto; }
.so-react { display: inline-flex; }
.so-react i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--white); background: var(--green-500); }
.so-react i + i { margin-left: -5px; background: var(--green-light); }
.so-post__act { display: flex; justify-content: space-around; padding: 4px 8px; }
.so-post__act span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 8px; font-size: 13px; font-weight: 700; color: #555; }
.so-post__act svg { width: 18px; height: 18px; }
/* Carrusel de documento */
.so-doc { background: #1F1F1F; }
.so-doc__vp { overflow: hidden; touch-action: pan-y; cursor: grab; }
.so-doc__vp:active { cursor: grabbing; }
.so-doc__vp:focus-visible { box-shadow: inset 0 0 0 3px var(--green-light); border-radius: 0; }
.so-doc__track { display: flex; transition: transform .6s var(--ease-reveal); will-change: transform; }
.so-doc__slide { flex: 0 0 100%; user-select: none; }
.so-doc__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; color: var(--white); font-size: 13px; }
.so-doc__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.so-doc__nav { display: inline-flex; align-items: center; gap: 8px; }
.so-doc__btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.so-doc__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.so-doc__btn:disabled { opacity: .35; cursor: default; }
.so-doc__btn svg { width: 18px; height: 18px; }
.so-doc__prog { height: 3px; background: rgba(255, 255, 255, .15); }
.so-doc__prog i { display: block; height: 100%; background: var(--green-light); transition: width .6s var(--ease-reveal); }
.so-sheet { position: sticky; top: 24px; padding: 26px; display: grid; gap: 16px; }
.so-sheet .vd-kicker { color: var(--green-700); }
.so-sheet dl { display: grid; gap: 14px; margin: 0; }
.so-sheet dl div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-200); }
.so-sheet dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.so-sheet dd { margin: 0; font-size: 15px; }

.so-ig__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; }
.so-prof { padding: 28px; box-shadow: var(--shadow-soft); }
.so-prof__h { display: flex; gap: 28px; align-items: center; }
.so-prof__id { display: grid; gap: 8px; }
.so-prof__id > b { font-size: 20px; }
.so-prof__nums { display: flex; gap: 22px; font-size: 15px; flex-wrap: wrap; }
.so-prof__id small { font-size: 14px; color: var(--ink-700); max-width: 52ch; }
.so-prof__tabs { display: flex; justify-content: center; gap: 40px; margin: 24px 0 4px; border-top: 1px solid var(--ink-200); }
.so-prof__tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-top: -1px; }
.so-prof__tabs span.is-on { color: var(--ink-900); border-top: 1px solid var(--ink-900); }
.so-prof__tabs svg { width: 14px; height: 14px; }
.so-prof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.so-prof__cell { overflow: hidden; transition: transform .5s var(--ease-reveal); }
.so-prof__cell:hover { transform: scale(.98); }
.so-phone { position: relative; width: 100%; max-width: 360px; margin: 0 auto; padding: 12px; border-radius: 48px; background: #0E1511; box-shadow: 0 30px 80px rgba(2, 48, 26, .35), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.so-phone__screen { position: relative; aspect-ratio: 1080 / 1920; border-radius: 36px; overflow: hidden; background: var(--green-900); }
.so-story__frames, .so-story__frame { position: absolute; inset: 0; }
.so-story__frame { opacity: 0; transition: opacity .5s var(--ease-out); }
.so-story__frame.is-on { opacity: 1; }
.so-story__ui { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 14px 12px 0; pointer-events: none; }
.so-story__prog { display: flex; gap: 4px; }
.so-story__prog span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.so-story__prog i { display: block; height: 100%; width: 0; background: var(--white); }
.so-story__prog .is-done i { width: 100%; }
.so-story__prog .is-run i { animation: so-prog 5s linear forwards; }
.is-paused .so-story__prog .is-run i { animation-play-state: paused; }
@keyframes so-prog { to { width: 100%; } }
.so-story__who { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--white); font-size: 13px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.so-story__who small { opacity: .75; }
.so-story__pause { pointer-events: auto; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .25); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.so-story__pause svg { width: 16px; height: 16px; }
.so-story__tap { position: absolute; top: 70px; bottom: 0; z-index: 1; width: 40%; border: 0; background: transparent; cursor: pointer; }
.so-story__tap--l { left: 0; } .so-story__tap--r { right: 0; width: 60%; }
.so-story__tap:focus-visible { box-shadow: inset 0 0 0 3px var(--green-light); border-radius: 0; }
.so-story__cap { text-align: center; margin-top: 16px; }

.so-yt__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.so-yt__player { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.so-yt__thumb { width: 100%; }
.so-yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 16px; background: rgba(15, 15, 15, .78); color: var(--white); display: grid; place-items: center; transition: transform .3s var(--ease-out), background .3s; }
.so-yt__player:hover .so-yt__play { transform: scale(1.08); background: rgba(15, 15, 15, .92); }
.so-yt__play svg { width: 26px; height: 26px; fill: currentColor; }
.so-yt__title { margin-top: 18px; }
.so-yt__ch { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.so-yt__ch .so-avatar { border-radius: 50%; width: 40px; height: 40px; }
.so-yt__ch div { display: grid; font-size: 14px; } .so-yt__ch small { color: var(--ink-500); }
.so-yt__brand { margin-left: auto; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--ink-700); padding: 6px 12px; border-radius: 999px; background: var(--surface-soft); }
.so-yt__list { list-style: none; display: grid; gap: 16px; }
.so-yt__list li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; }
.so-yt__list li > div:last-child { display: grid; gap: 4px; }
.so-yt__list small { font-size: 12px; color: var(--ink-500); }
.so-yt__mini { border-radius: 10px; }

@media (max-width: 1100px) {
  .so-li__grid, .so-ig__grid, .so-yt__grid { grid-template-columns: 1fr; }
  .so-sheet { position: static; }
  .sp-head__in { grid-template-columns: 1fr; }
  .sp-ctl { justify-items: start; }
}
@media (max-width: 760px) {
  .so-app__body { grid-template-columns: 1fr; padding: 10px; }
  .so-app__side, .so-app__search { display: none; }
  .so-app__ico { gap: 14px; }
  .so-post__act span { font-size: 0; gap: 0; }
  .so-prof { padding: 16px; }
  .so-prof__h { gap: 16px; align-items: flex-start; }
  .so-avatar--ring { width: 64px; height: 64px; }
  .so-yt__list li { grid-template-columns: 130px minmax(0, 1fr); }
  .sp-ctl__l { display: none; }
  .sp-head__in { padding-top: 32px; }
}

/* ============ Email ============ */
.sp-jump a.is-on { background: var(--white); color: var(--green-900); border-color: var(--white); }
.em-main { padding: 36px 0 96px; background: var(--surface-soft); }
.em-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.em-seg { background: var(--white); }
.em-seg button { display: inline-flex; align-items: center; gap: 8px; height: 38px; }
.em-seg svg, .em-tog svg { width: 16px; height: 16px; }
.em-seg button[aria-pressed="true"] { background: var(--green-900); color: var(--white); }
.em-tog { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--white); font-weight: 700; font-size: 15px; color: var(--ink-700); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.em-tog:hover { border-color: var(--green-500); color: var(--green-700); }
.em-tog[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.em-meta { margin-left: auto; font-size: var(--text-caption); color: var(--ink-500); }
.em-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.em-layout.has-code { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.em-stage { min-width: 0; }
.em-client { border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 60px rgba(2, 48, 26, .12); overflow: hidden; transition: background .4s; }
.em-client__bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--ink-200); font-size: 14px; }
.em-dots { display: flex; gap: 6px; } .em-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-300); }
.em-client__app { font-weight: 700; }
.em-client__search { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; width: 220px; padding: 0 12px; border-radius: 8px; background: var(--surface-soft); color: var(--ink-500); font-size: 13px; }
.em-client__search svg { width: 14px; height: 14px; }
.em-client__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.em-folders { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--ink-200); font-size: 14px; }
.em-folders span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-700); }
.em-folders span.is-on { background: var(--green-050); color: var(--green-900); font-weight: 700; }
.em-folders em { margin-left: auto; font-style: normal; font-size: 12px; }
.em-folders svg { width: 16px; height: 16px; }
.em-msg { min-width: 0; }
.em-msg__h { padding: 22px 26px 16px; border-bottom: 1px solid var(--ink-200); display: grid; gap: 12px; }
.em-msg__subj { font-size: 22px; line-height: 1.25; }
.em-msg__from { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.em-msg__from div { display: grid; } .em-msg__from small { color: var(--ink-500); font-size: 12px; }
.em-msg__av { width: 40px; height: 40px; border-radius: 50%; background: var(--green-grove); display: grid; place-items: center; }
.em-msg__av img { height: 20px; width: auto; }
.em-msg__date { margin-left: auto; }
.em-msg__to { font-size: 12px; color: var(--ink-500); }
.em-msg__frame { background: var(--white); transition: background .4s; }
.em-msg__frame iframe, .em-phone iframe { display: block; width: 100%; min-height: 220px; border: 0; background: transparent; }
.em-client.is-dark, .em-client.is-dark .em-msg__frame { background: #0F1A14; color: #D8E3DC; }
.em-client.is-dark .em-msg__subj { color: var(--white); }
.em-client.is-dark .em-client__bar, .em-client.is-dark .em-msg__h, .em-client.is-dark .em-folders { border-color: rgba(255, 255, 255, .1); }
.em-client.is-dark .em-folders span { color: rgba(255, 255, 255, .7); }
.em-client.is-dark .em-folders span.is-on { background: rgba(161, 216, 132, .15); color: var(--white); }
.em-client.is-dark .em-client__search { background: rgba(255, 255, 255, .08); }
.em-phone { width: 400px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 52px; background: #0E1511; box-shadow: 0 30px 80px rgba(2, 48, 26, .3); }
.em-phone__screen { height: 780px; border-radius: 40px; overflow-y: auto; background: var(--white); scrollbar-width: none; }
.em-phone__screen::-webkit-scrollbar { display: none; }
.em-phone__top { position: sticky; top: 0; z-index: 1; display: grid; gap: 2px; padding: 44px 20px 12px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--ink-200); font-size: 15px; }
.em-phone__top small { font-size: 12px; color: var(--ink-500); }
.em-phone.is-dark .em-phone__screen { background: #0F1A14; }
.em-phone.is-dark .em-phone__top { background: rgba(15, 26, 20, .94); color: var(--white); border-color: rgba(255, 255, 255, .1); }
.em-code { position: sticky; top: 16px; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0B1510; color: #D8E3DC; box-shadow: 0 24px 60px rgba(2, 48, 26, .2); animation: sp-swap .6s var(--ease-reveal) both; }
.em-code[hidden] { display: none; }
.em-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.em-code__bar > span { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.em-code__bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-code__bar small { color: rgba(255, 255, 255, .5); white-space: nowrap; }
.em-code__bar svg { width: 16px; height: 16px; color: var(--green-light); flex: none; }
.em-code__pre { margin: 0; max-height: 78vh; overflow: auto; padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; tab-size: 2; }
.em-code__pre:focus-visible { box-shadow: inset 0 0 0 2px var(--green-light); border-radius: 0; }
.em-t { color: #A1D884; } .em-a { color: #8FC9A8; } .em-v { color: #E8D9A8; } .em-c { color: #6F8A7A; }
.em-checks { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.em-checks li { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius-md); background: var(--white); font-size: 13px; color: var(--ink-700); }
.em-checks svg { width: 22px; height: 22px; color: var(--green-500); margin-bottom: 4px; }
.em-checks b { font-size: 15px; color: var(--ink-900); }
.em-checks code { font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 1100px) {
  .em-layout.has-code { grid-template-columns: 1fr; }
  .em-code { position: static; }
  .em-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .em-client__body { grid-template-columns: 1fr; }
  .em-folders, .em-client__search { display: none; }
  .em-msg__h { padding: 16px; }
  .em-meta { display: none; }
  .em-tog { height: 40px; padding: 0 14px; font-size: 14px; }
  .em-phone__screen { height: 640px; }
  .em-checks { grid-template-columns: 1fr; }
}

/* ============ Landing de campaña ============ */
.ln-page { background: var(--white); }
.ln-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none; }
.ln-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-grove), var(--green-light)); transform-origin: left; transform: scaleX(0); }
.ln-hero { position: relative; min-height: calc(100svh - var(--vd-bar, 48px)); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: var(--white); background: var(--green-900); }
.ln-hero__media { position: absolute; inset: 0; overflow: hidden; }
.ln-hero__media img { position: absolute; left: -2%; top: -8%; width: 104%; height: 116%; max-width: none; object-fit: cover; }
.ln-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 31, 17, .86) 0%, rgba(2, 48, 26, .5) 48%, rgba(2, 48, 26, .08) 85%), linear-gradient(180deg, rgba(1, 31, 17, .55) 0%, rgba(1, 31, 17, 0) 22%, rgba(1, 31, 17, 0) 60%, rgba(1, 31, 17, .65) 100%); }
.ln-nav { position: fixed; left: 0; right: 0; top: 60px; z-index: 80; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; transition: top .4s var(--ease-reveal); }
.ln-nav__pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(2, 48, 26, .35); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-glass-lg); transition: background .4s, border-color .4s; }
.ln-nav__pill a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.ln-nav__pill a:hover { background: rgba(255, 255, 255, .12); color: var(--white); opacity: 1; }
.ln-nav__pill a.ln-nav__cta { background: var(--white); color: var(--green-900); font-weight: 700; margin-left: 6px; }
.ln-nav__logo { pointer-events: auto; position: absolute; right: var(--gutter); top: 4px; }
.ln-nav__logo img { height: 46px; width: auto; transition: opacity .4s; }
.ln-logo-g { position: absolute; right: 0; top: 0; opacity: 0; }
/* Sobre superficies claras la nav pasa a sólida (glass solo sobre foto) */
.ln-nav.is-solid { top: 12px; }
.ln-nav.is-solid .ln-nav__pill { background: rgba(2, 48, 26, .92); border-color: rgba(255, 255, 255, .1); }
.ln-nav.is-solid .ln-nav__logo { padding: 6px 12px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-soft); top: 0; }
.ln-nav.is-solid .ln-nav__logo img { height: 34px; }
.ln-nav.is-solid .ln-logo-w { opacity: 0; }
.ln-nav.is-solid .ln-logo-g { opacity: 1; position: absolute; right: 12px; top: 6px; }
.ln-hero__in { position: relative; z-index: 1; padding-top: 160px; padding-bottom: 150px; }
.ln-crumb { font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 22px; }
.ln-crumb span { opacity: .5; padding: 0 4px; }
.ln-hero__title { margin-top: 22px; max-width: 13ch; font-size: clamp(46px, 6.6vw, 100px); line-height: .96; letter-spacing: -0.02em; color: var(--white); }
.ln-hero__sub { margin-top: 26px; max-width: 600px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .86); }
.ln-hero__cta { margin-top: 36px; }
.ln-hero.is-swap .ln-hero__in > * { animation: sp-swap .9s var(--ease-reveal) both; }
.ln-hero.is-swap .ln-hero__in > :nth-child(2) { animation-delay: .06s; } .ln-hero.is-swap .ln-hero__in > :nth-child(3) { animation-delay: .12s; }
.ln-hero.is-swap .ln-hero__in > :nth-child(4) { animation-delay: .18s; } .ln-hero.is-swap .ln-hero__in > :nth-child(5) { animation-delay: .24s; }
.ln-hero.is-swap .ln-hero__media img { animation: ln-zoom 1.4s var(--ease-reveal) both; }
@keyframes ln-zoom { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.ln-hero__down { position: absolute; z-index: 1; right: var(--gutter); bottom: 40px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--white); border: 1px solid rgba(255, 255, 255, .45); animation: h-bob 2.4s var(--ease-in-out) infinite; }
.ln-hero__down svg { width: 20px; height: 20px; }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.ln-figs-sec { position: relative; overflow: hidden; color: var(--white); background: var(--green-grove); }
.ln-figs-sec__bg { position: absolute; inset: 0; }
.ln-figs-sec__bg img { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; opacity: .45; mix-blend-mode: luminosity; }
.ln-figs-sec::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 90% at 100% 100%, rgba(161, 216, 132, .55), rgba(161, 216, 132, 0) 60%), linear-gradient(120deg, rgba(0, 132, 61, .92) 30%, rgba(0, 132, 61, .55) 100%); }
.ln-figs-sec__in { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.ln-figs-sec__t { margin-top: 14px; color: var(--white); }
.ln-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ln-fig { padding: 32px 30px; display: grid; gap: 10px; background: rgba(2, 48, 26, .28); }
.ln-fig b { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.ln-fig span { font-size: var(--text-body-sm); color: rgba(255, 255, 255, .85); }
.ln-figs-sec__note { margin-top: 22px; font-size: var(--text-caption); color: rgba(255, 255, 255, .72); }

.ln-state { background: var(--white); }
.ln-state__q { max-width: 36ch; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 300; color: var(--green-grove); }
.ln-state__by { margin-top: 24px; font-size: var(--text-body-sm); color: var(--ink-500); }
.ln-state__by b { color: var(--ink-900); }

.ln-blocks-sec { padding-top: 0; }
.ln-blocks { display: grid; gap: clamp(48px, 7vw, 96px); }
.ln-block { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ln-block--rev { grid-template-columns: .85fr 1.15fr; }
.ln-block--rev .ln-block__img { order: 2; }
.ln-block__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; background: var(--green-900); }
.ln-block__img img, .ln-block__img .vd-ph { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; transition: transform 1.4s var(--ease-reveal); }
.ln-block:hover .ln-block__img img { transform: scale(1.04); }
.ln-block__txt { display: grid; gap: 16px; justify-items: start; }
.ln-block__n { font-size: 14px; font-weight: 700; color: var(--green-500); letter-spacing: .1em; }
.ln-block__txt p { font-size: var(--text-body-lg); line-height: 1.5; color: var(--ink-700); max-width: 34ch; }

.ln-form-sec { position: relative; overflow: hidden; background: var(--surface-stage); color: var(--white); }
.ln-form-sec::before { content: ""; position: absolute; right: -15%; top: -40%; width: 70%; height: 160%; border-radius: 50%; background: radial-gradient(circle, rgba(161, 216, 132, .2), rgba(161, 216, 132, 0) 65%); pointer-events: none; }
.ln-form-sec__in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.ln-form-sec__copy h2 { margin-top: 14px; }
.ln-form-sec__lead { margin-top: 18px; font-size: var(--text-body-lg); line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 32ch; }
.ln-form-sec__pts { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ln-form-sec__pts li { display: flex; align-items: center; gap: 12px; }
.ln-form-sec__pts svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-light); color: var(--green-900); }
.ln-form { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); background: var(--white); color: var(--ink-900); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); display: grid; gap: 18px; }
.ln-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ln-wide { grid-column: 1 / -1; }
.ln-form [aria-invalid="true"] { border-color: var(--negative); }
.ln-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-700); cursor: pointer; }
.ln-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green-500); flex: none; }
.ln-check input[aria-invalid="true"] { outline: 2px solid var(--negative); outline-offset: 2px; }
.ln-form__go { justify-self: start; }
.ln-form__err { min-height: 1em; font-size: 14px; font-weight: 700; color: var(--negative); }
.ln-form__ok { position: absolute; inset: 0; border-radius: inherit; background: var(--white); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 32px; animation: sp-swap .7s var(--ease-reveal) both; }
.ln-form__ok[hidden] { display: none; }
.ln-form__ok b { font-size: 26px; color: var(--green-grove); }
.ln-form__ok p { color: var(--ink-700); max-width: 36ch; }
.ln-form__tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-grove); color: var(--white); box-shadow: 0 0 0 10px var(--green-050); }
.ln-form__tick svg { width: 34px; height: 34px; }

.ln-foot { background: var(--green-grove); color: rgba(255, 255, 255, .85); padding-bottom: 0; }
.ln-foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 64px; }
.ln-foot__tag { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; color: var(--white); }
.ln-foot__logo { width: 104px; height: auto; }
.ln-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--column-gap); padding-top: 48px; padding-bottom: 56px; }
.ln-foot__cols b { color: var(--white); font-size: 15px; }
.ln-foot__cols ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.ln-foot__cols a { color: rgba(255, 255, 255, .78); font-size: 15px; }
.ln-foot__cols a:hover { color: var(--white); }
.ln-foot__bar { background: var(--green-700); font-size: var(--text-caption); color: rgba(255, 255, 255, .72); padding: 16px 0 96px; }
.ln-foot__bar-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Dock de la demo */
.ln-dock { position: fixed; left: 50%; bottom: 18px; z-index: 95; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 999px;
  background: rgba(1, 31, 17, .9); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ln-dock__back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ln-dock__back:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
.ln-dock__back svg { width: 16px; height: 16px; }
.ln-dock__seg { padding: 3px; overflow-x: auto; scrollbar-width: none; }
.ln-dock__seg::-webkit-scrollbar { display: none; }
.ln-dock__seg button { height: 34px; padding: 0 12px; font-size: 13px; }

@media (max-width: 1000px) {
  .ln-nav__pill a:not(.ln-nav__cta) { display: none; }
  .ln-nav { justify-content: flex-start; }
  .ln-figs { grid-template-columns: 1fr; }
  .ln-block, .ln-block--rev, .ln-form-sec__in { grid-template-columns: 1fr; }
  .ln-block--rev .ln-block__img { order: 0; }
  .ln-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ln-nav { top: 50px; }
  .ln-nav__pill { height: 48px; padding: 0 6px; }
  .ln-nav__logo img { height: 34px; }
  .ln-hero__in { padding-top: 140px; padding-bottom: 96px; }
  .ln-hero__down { display: none; }
  .ln-form__fields { grid-template-columns: 1fr; }
  .ln-dock { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; }
  .ln-dock__back span { display: none; }
  .ln-dock__seg button { padding: 0 9px; font-size: 12px; }
  .ln-foot__bar { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .ln-hero__down { animation: none; } }
.sp-head__in > *, .sp-ctl, .sp-ctl__g { min-width: 0; max-width: 100%; }
.so-doc__nav span { white-space: nowrap; }
.ln-figs-sec .vd-kicker { color: var(--green-light); }
