/* Recolex v4 · presentación por pantallas. Clash Display + Satoshi; negro verdoso, verde bosque, blanco cálido y lima. */
:root {
  --ink: #0b0f0d;
  --ink-2: #121814;
  --ink-line: rgba(244, 242, 236, .14);
  --forest: #0f2a1e;
  --forest-2: #0c2318;
  --paper: #f4f2ec;
  --paper-2: #e9e6dd;
  --paper-line: #d9d5ca;
  --lime: #c6f24e;
  --lime-2: #d6f97c;
  --text: #0b0f0d;
  --text-2: #4f5852;
  --light: #f4f2ec;
  --light-2: rgba(244, 242, 236, .72);
  --light-3: rgba(244, 242, 236, .5);
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .14);
  --display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 3.6vw, 56px);
  --top: clamp(68px, 9vh, 88px);
  --dock: 104px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --h2: clamp(34px, min(4.6vw, 7.4vh), 80px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--ink); color: var(--light); font: 400 clamp(15.5px, .3vw + 14px, 17.5px)/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 600; }
p, li { text-wrap: pretty; }
a { color: var(--lime); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lime-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--ink); }

/* ---------- Cabecera ---------- */
.topbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); pointer-events: none; color: var(--light); transition: color .4s var(--ease); }
.topbar > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 600 25px/1 var(--display); letter-spacing: -.025em; color: inherit; }
.logo:hover { color: inherit; }
.logo-mark { width: 38px; height: 38px; flex: none; transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.where { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: inherit; opacity: .75; transition: opacity .3s; }
.where span { font: 600 13px var(--display); letter-spacing: .08em; color: var(--lime); }
.where b { font-weight: 500; }
body[data-screen="inicio"] .where { opacity: 0; }
body[data-screen="comunidad"] .topbar { color: var(--ink); }
body[data-screen="comunidad"] .where span { color: var(--forest); }

/* ---------- Pantallas ---------- */
.stage { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--top) var(--pad) calc(var(--dock) + env(safe-area-inset-bottom)); display: grid; }
.frame { width: 100%; max-width: 1480px; margin: auto; padding-block: clamp(8px, 2vh, 24px); }
.screen h2 { font-size: var(--h2); line-height: .98; letter-spacing: -.035em; }
.screen h2 span { color: var(--lime); }
.screen h2:focus, .screen h1:focus { outline: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(10px, 1.8vh, 18px); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(16px, .45vw + 13.5px, 19.5px); line-height: 1.55; color: var(--light-2); }
.k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }

/* Entrada escalonada al abrir cada pantalla */
.screen:not([hidden]) { animation: screen-in .55s var(--ease) both; }
.screen:not([hidden]) .in { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 65ms + 80ms); }
@keyframes screen-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Inicio ---------- */
.s-home { padding-bottom: calc(var(--dock) + 12px + env(safe-area-inset-bottom)); align-items: end; isolation: isolate; overflow: hidden; }
.home-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.home-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 55%; animation: drift 34s ease-in-out infinite alternate; }
.home-bg .bg-b { animation: drift 34s ease-in-out infinite alternate, dusk-to-night 34s ease-in-out infinite alternate; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 10, .55) 0%, rgba(8, 12, 10, .15) 30%, rgba(8, 12, 10, .35) 58%, rgba(8, 12, 10, .9) 100%); }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
@keyframes dusk-to-night { 0%, 30% { opacity: 0; } 70%, 100% { opacity: 1; } }
.home-inner { width: 100%; max-width: 1480px; margin: 0 auto; }
.s-home h1 { font-size: clamp(48px, min(9.2vw, 15vh), 168px); line-height: .88; letter-spacing: -.045em; }
.s-home h1 span { color: var(--lime); }
.home-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-top: clamp(18px, 3vh, 34px); }
.home-row > p { max-width: 46ch; font-size: clamp(16px, .5vw + 13.5px, 20px); color: var(--light-2); }
.facts { display: flex; gap: clamp(20px, 3vw, 48px); }
.facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--lime); }
.facts b { font: 600 clamp(20px, 1vw + 12px, 26px)/1.1 var(--display); letter-spacing: -.01em; }
.facts span { font-size: 14px; color: var(--light-2); }
.place { position: absolute; right: var(--pad); top: calc(var(--top) + 4px); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--light-3); display: flex; align-items: center; gap: 8px; }
.place::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- Nosotros ---------- */
.s-about { background: radial-gradient(120% 90% at 100% 0%, #143826 0%, var(--forest) 55%, var(--forest-2) 100%); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: minmax(0, 1fr) auto; gap: clamp(20px, 3.2vh, 36px) clamp(28px, 4vw, 72px); height: 100%; max-height: 820px; }
.about-main { align-self: center; display: grid; gap: clamp(14px, 2.2vh, 22px); }
.about-main .eyebrow { margin: 0; }
.about-main .lead { max-width: 56ch; color: var(--light); }
.about-do { display: grid; gap: 8px; max-width: 58ch; padding: 18px 0 0; border-top: 1px solid var(--ink-line); }
.about-do h3 { font: 700 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.about-do p { color: var(--light-2); }
.about-photo { position: relative; border-radius: 26px; overflow: hidden; min-height: 240px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.about-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 30ch; padding: 12px 16px; border-radius: 16px; background: rgba(11, 15, 13, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; color: var(--light-2); }
.about-photo figcaption b { color: var(--lime); font-weight: 700; }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.pillars article { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid rgba(198, 242, 78, .35); }
.pillars p:not(.k) { font: 500 clamp(16px, .35vw + 13.5px, 18.5px)/1.4 var(--display); letter-spacing: -.005em; }

/* ---------- Servicios ---------- */
.s-services { background: var(--ink); }
.services-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 72px); height: 100%; max-height: 820px; }
.services-side { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 22px); min-height: 0; }
.services-side .eyebrow { margin: 0; }
.svc-visual { position: relative; flex: 1; min-height: 220px; border-radius: 26px; overflow: hidden; background: var(--ink-2); }
.svc-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.6s var(--ease); }
.svc-visual img.on { opacity: 1; transform: scale(1); }
.svc-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 15, 13, .55), transparent 45%); }
.svc-count { position: absolute; z-index: 2; right: 18px; bottom: 14px; font: 500 15px var(--display); color: var(--light-2); }
.svc-count b { font-size: 34px; font-weight: 600; color: var(--lime); letter-spacing: -.02em; }
.scope { font-size: 14.5px; color: var(--light-3); }
.svc-list { align-self: center; display: grid; gap: 2px; }
.svc-list button { width: 100%; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; padding: clamp(9px, 1.3vh, 14px) 16px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; transition: background-color .35s var(--ease), transform .35s var(--ease); }
.svc-list .ic { grid-row: 1 / 3; width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--ink-line); color: var(--light-2); transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.svc-list .n { display: none; }
.svc-list .t { font: 600 clamp(17px, .5vw + 13px, 21px)/1.15 var(--display); letter-spacing: -.01em; color: var(--light-2); transition: color .3s; }
.svc-list .d { font-size: 14.5px; line-height: 1.45; color: var(--light-3); transition: color .3s; }
.svc-list button:hover { background: rgba(255, 255, 255, .04); }
.svc-list button:hover .ic { transform: scale(1.08); }
.svc-list button.is-on { background: rgba(255, 255, 255, .06); transform: translateX(6px); }
.svc-list button.is-on .ic { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.svc-list button.is-on .t { color: var(--light); }
.svc-list button.is-on .d { color: var(--light-2); }

/* ---------- Cómo trabajamos ---------- */
.s-alliance { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.alliance-grid { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(22px, 4vh, 48px); max-height: 820px; }
.alliance-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px clamp(28px, 4vw, 72px); align-items: end; }
.alliance-head h2 { max-width: 15ch; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.timeline li { display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; }
.timeline figure { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 27vh; width: 100%; }
.timeline figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.timeline li:hover figure img { transform: scale(1.05); }
.node { position: relative; height: 40px; display: flex; align-items: center; }
.node::before { content: ""; position: absolute; left: 0; right: calc(-1 * clamp(18px, 2.4vw, 36px)); top: 50%; height: 1px; background: var(--ink-line); }
.node::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -.5px; width: 0; background: var(--lime); }
.screen:not([hidden]) .node::after { animation: grow 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 65ms + 450ms); }
.timeline li:last-child .node::before { right: 0; }
@keyframes grow { to { width: 100%; } }
.node span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 600 14px var(--display); }
.timeline h3 { font-size: clamp(21px, .6vw + 16px, 27px); letter-spacing: -.02em; line-height: 1.05; }
.timeline p { color: var(--light-2); font-size: clamp(14.5px, .2vw + 13.5px, 16px); }

/* ---------- Expansión ---------- */
.s-expansion { isolation: isolate; background: var(--ink); }
.exp-bg { position: fixed; inset: 0; z-index: -1; }
.exp-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.exp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 13, .96) 0%, rgba(11, 15, 13, .82) 46%, rgba(11, 15, 13, .55) 100%); }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.exp-main { display: grid; gap: clamp(14px, 2.4vh, 24px); }
.exp-main .eyebrow { margin: 0; }
.exp-main h2 { font-size: clamp(42px, min(6.6vw, 10.5vh), 120px); line-height: .9; }
.exp-main .lead { max-width: 50ch; }
.exp-open { display: flex; align-items: center; gap: 14px; max-width: 46ch; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 500; }
.exp-open .ic { width: 22px; height: 22px; color: var(--lime); }
.roadmap { display: grid; gap: clamp(10px, 1.8vh, 18px); }
.road-now { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.road-now span { padding: 6px 12px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.roadmap ol { position: relative; display: grid; gap: clamp(6px, 1.4vh, 14px); }
.roadmap ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: linear-gradient(var(--lime), rgba(198, 242, 78, .1)); }
.roadmap li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.roadmap li .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(198, 242, 78, .45); color: var(--lime); transition: transform .35s var(--ease), background-color .35s, color .35s; }
.roadmap li:hover .ic { transform: scale(1.1); background: var(--lime); color: var(--ink); }
.roadmap h3 { font-size: clamp(17px, .5vw + 13px, 21px); letter-spacing: -.01em; }
.roadmap li p { font-size: 14.5px; color: var(--light-2); }
.fine { font-size: 13px; color: var(--light-3); padding-left: 60px; }

/* ---------- Comunidad ---------- */
.s-social { background: var(--paper); color: var(--text); }
.s-social .eyebrow { color: var(--forest); }
.s-social h2 span { color: var(--forest); }
.s-social .lead { color: var(--text-2); }
.social-grid { display: grid; gap: clamp(22px, 4vh, 44px); max-height: 820px; }
.social-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px clamp(28px, 4vw, 72px); align-items: end; }
.social-head h2 { max-width: 17ch; }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.commit article { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--paper-line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.commit article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 42, 30, .12); }
.commit .photo { aspect-ratio: 16 / 10; max-height: 30vh; width: 100%; overflow: hidden; }
.commit .photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; place-items: center; text-align: center; padding: 18px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #e2dfd5 14px 28px); color: var(--text-2); }
.placeholder span { display: grid; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.placeholder b { font: 600 16px/1.25 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--text); max-width: 22ch; }
.commit-body { display: grid; align-content: start; gap: 8px; padding: clamp(16px, 2.2vh, 24px); }
.commit-body .num { font: 600 13px var(--display); color: var(--forest); letter-spacing: .08em; }
.commit-body h3 { font-size: clamp(19px, .5vw + 15px, 24px); line-height: 1.1; letter-spacing: -.015em; }
.commit-body p { color: var(--text-2); font-size: 15.5px; }

/* ---------- Contacto ---------- */
.s-contact { background: radial-gradient(110% 90% at 0% 100%, #143826 0%, var(--forest) 50%, var(--forest-2) 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; }
.contact-intro { display: grid; gap: clamp(14px, 2.4vh, 22px); align-content: center; }
.contact-intro .eyebrow { margin: 0; }
.contact-intro .lead { max-width: 42ch; }
.mail { display: inline-flex; align-items: center; gap: 16px; justify-self: start; padding: 10px 22px 10px 10px; min-height: 64px; border-radius: 99px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--light); transition: background-color .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.mail .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.mail span { display: grid; font: 600 clamp(16px, .4vw + 13px, 19px) var(--display); letter-spacing: -.01em; }
.mail small { font: 700 11px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--light-3); }
.mail:hover { color: var(--light); background: rgba(255, 255, 255, .12); border-color: var(--lime); transform: scale(1.03); }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 8px; font-size: 13px; color: var(--light-3); }
.credits-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--light-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.credits-btn:hover { color: var(--lime); }
.contact-panel { background: var(--paper); color: var(--text); border-radius: 26px; padding: clamp(18px, 2.6vh, 32px) clamp(18px, 2.2vw, 32px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vh, 16px) 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.wide { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.hint { font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 13px; border: 1.5px solid var(--paper-line); background: #fff; color: var(--text); font: 500 16px/1.4 var(--body); appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(198, 242, 78, .6); }
.field input::placeholder, .field textarea::placeholder { color: #8d948f; }
.field [aria-invalid="true"] { border-color: #c2410c; }
.error { color: #b33a0b; font-size: 13.5px; font-weight: 600; }
.channel-note { font-size: 13.5px; color: var(--text-2); text-align: center; }
.channel-note strong { color: var(--text); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 99px; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn i { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -12px; border-radius: 50%; background: var(--lime); color: var(--ink); font-style: normal; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: var(--forest); color: var(--light); }
.btn-line { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-line:hover { background: var(--text); color: var(--paper); }
.btn-text { background: none; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; padding: 0 12px; }
.btn-text:hover { color: var(--text); }
.summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.summary:focus { outline: none; }
.summary .k { color: var(--forest); }
.summary h3 { font-size: clamp(24px, 1vw + 16px, 30px); letter-spacing: -.02em; line-height: 1.05; }
.summary-text { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 14px/1.55 ui-monospace, "SF Mono", Menlo, monospace; background: #fff; border: 1.5px solid var(--paper-line); border-radius: 14px; padding: 16px; max-height: 32vh; overflow: auto; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { font-weight: 700; color: var(--forest); min-height: 1.5em; font-size: 14px; }

/* Créditos */
.credits { max-width: min(640px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--text); }
.credits::backdrop { background: rgba(5, 8, 6, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.credits-in { display: grid; gap: 14px; padding: 28px; }
.credits h2 { font-size: 26px; letter-spacing: -.02em; }
.credits p, .credits li { font-size: 15px; color: var(--text-2); }
.credits ul { display: grid; gap: 8px; }
.credits li b { color: var(--text); font-weight: 700; }
.credits .btn { justify-self: start; }

/* ---------- Menú inferior ---------- */
.dock { position: fixed; z-index: 45; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 99px; background: rgba(11, 15, 13, .62); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.dock a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--light-2); white-space: nowrap; transition: color .3s var(--ease), transform .3s var(--ease), background-color .3s; }
.dock a .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.dock a { --s: 1; transform: translateY(calc((var(--s) - 1) * -14px)) scale(var(--s)); transform-origin: 50% 100%; margin-inline: calc((var(--s) - 1) * var(--w, 0px) * .5); transition: transform .22s var(--ease), margin .22s var(--ease), color .3s var(--ease), background-color .35s var(--ease), box-shadow .35s; }
.dock a:hover { color: var(--light); background: rgba(255, 255, 255, .08); }
.dock.is-magnifying a { transition: transform .12s linear, margin .12s linear, color .3s, background-color .35s, box-shadow .35s; }
.dock a:active { --s: .94; }
.dock a[aria-current="page"] { color: var(--ink); background: var(--lime); box-shadow: 0 6px 22px rgba(198, 242, 78, .28); }
.dock a[aria-current="page"]:hover { color: var(--ink); background: var(--lime-2); }
.dock .short { display: none; }
.dock-sep { width: 1px; margin: 12px 4px; background: var(--glass-line); flex: none; }
.dock a.pop { animation: dock-pop .42s var(--ease); }
@keyframes dock-pop { 0% { transform: scale(1); } 40% { transform: translateY(-6px) scale(1.16); } 100% { transform: scale(1); } }

/* Botón de sonido */
.top-right { display: flex; align-items: center; gap: 16px; }
.sound-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(11, 15, 13, .35); color: inherit; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.sound-btn:hover { transform: scale(1.1); border-color: var(--lime); }
.sound-btn .ic { width: 19px; height: 19px; }
.sound-btn[aria-pressed="true"] .off, .sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] { opacity: .7; }
body[data-screen="comunidad"] .sound-btn { background: rgba(255, 255, 255, .6); border-color: var(--paper-line); }

/* ---------- Pantallas medianas y bajas ---------- */
@media (max-width: 1180px) {
  .dock a { padding: 0 14px; font-size: 14.5px; }
  .dock .long { display: none; }
  .dock .short { display: inline; }
}
@media (max-width: 1080px), (max-height: 640px) {
  .about-grid, .services-grid, .alliance-grid, .social-grid { max-height: none; height: auto; }
}
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-photo { aspect-ratio: 16 / 9; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-visual { flex: none; aspect-ratio: 16 / 8; }
  .alliance-head, .social-head, .exp-grid, .contact-grid { grid-template-columns: 1fr; }
  .exp-bg::after { background: rgba(11, 15, 13, .86); }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  :root { --top: 64px; --dock: 86px; --h2: clamp(32px, 9.4vw, 44px); }
  .topbar { background: linear-gradient(180deg, rgba(11, 15, 13, .7), transparent); }
  body[data-screen="comunidad"] .topbar { background: linear-gradient(180deg, rgba(244, 242, 236, .95), rgba(244, 242, 236, 0)); }
  body[data-screen="inicio"] .topbar { background: none; }
  .logo { font-size: 22px; }
  .logo-mark { width: 34px; height: 34px; }
  .screen { padding-inline: 18px; }
  .frame { padding-block: 12px 20px; }
  .s-home h1 { font-size: clamp(44px, 13vw, 64px); }
  .home-row { gap: 18px; }
  .home-row > p { font-size: 16px; }
  .facts { gap: 18px; }
  .facts b { font-size: 19px; }
  .facts span { font-size: 13px; }
  .place { display: none; }
  .about-photo { aspect-ratio: 16 / 10; border-radius: 20px; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .svc-visual { aspect-ratio: 16 / 9; border-radius: 20px; }
  .svc-list button { padding: 10px 8px; column-gap: 12px; grid-template-columns: 40px 1fr; }
  .svc-list .ic { width: 40px; height: 40px; padding: 10px; }
  .svc-list button.is-on { transform: none; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline li { grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 8px; }
  .timeline figure { grid-column: 1 / -1; max-height: none; border-radius: 18px; }
  .node { grid-row: 2 / 4; align-self: start; }
  .node::before, .node::after { display: none; }
  .timeline h3, .timeline p { grid-column: 2; }
  .commit { grid-template-columns: 1fr; }
  .commit .photo { max-height: none; aspect-ratio: 16 / 9; }
  .form { grid-template-columns: 1fr; }
  .contact-panel { border-radius: 22px; }
  .mail span { font-size: 15.5px; }
  .dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); transform: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; padding: 5px; border-radius: 24px; }
  .dock a { flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 0; margin: 0; border-radius: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: -.02em; }
  .dock a .ic { width: 21px; height: 21px; }
  .dock a:hover { background: transparent; }
  .dock a[aria-current="page"]:hover { background: var(--lime); }
  .where { display: none; }
  .dock-sep { display: none; }
}
@media (max-width: 360px) { .dock a { font-size: 9.5px; } }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .home-bg .bg-b { opacity: 1; }
  .node::after { width: 100%; }
}

/* Ajustes de encaje en una pantalla */
.alliance-head h2 { max-width: 19ch; }
.timeline figure { max-height: 22vh; }
.social-head h2 { max-width: 21ch; }
.commit .photo { max-height: 24vh; }
@media (max-height: 820px) and (min-width: 1081px) {
  .alliance-head .lead { font-size: 15.5px; }
  .timeline { gap: 20px; }
  .timeline li { gap: 8px; }
  .timeline figure { max-height: 19vh; }
  .timeline p { font-size: 14px; line-height: 1.45; }
  .commit .photo { max-height: 21vh; }
  .commit-body p { font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .about-grid, .services-grid, .alliance-head, .social-head, .exp-grid, .contact-grid, .timeline, .commit { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .timeline, .commit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) { .about-photo { min-height: 0; width: 100%; } .svc-visual { min-height: 0; width: 100%; } }
/* Las fotos de Lechería son de baja resolución: un leve desenfoque y grano las vuelve cinematográficas */
.home-bg img { filter: blur(1.4px) saturate(1.12) brightness(.9); }
.home-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; 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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.home-bg::after { z-index: 2; }
.exp-bg img { filter: blur(2px); }
.logo-mark { border-radius: 10px; box-shadow: 0 0 0 1px rgba(244, 242, 236, .2); }
