/* ===================================================================
   KUBO · Sistema visual del sitio: botones, navegación y portada
   Se carga después de styles.css.
   =================================================================== */
:root {
  --paper: #f2efe8; --ink: #1a191e; --soft: #57534a; --line: #d8d2c6;
  --g: #10b981; --g2: #047857; --g3: #5eead4; --g-ink: #03130d;
  --a: #06b6d4; --a2: #0e7490; --a3: #67e8f9; --a-ink: #04222a;
  --am: #6d28d9; --am3: #a78bfa; --br: #b45309; --br3: #fbbf24;
  --night: #010609; --teal: #2FCBA4; --mint: #CDEEE4;
  --disp: 'Familjen Grotesk', sans-serif; --mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: clamp(20px, 4.5vw, 64px);
  --r: clamp(28px, 4vw, 60px);
}

/* ---------- grano ---------- */
.grain { position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- botón Kubo: el cubo crece hasta llenar el botón ---------- */
.kb { --bg: var(--ink); --fg: var(--paper); --ac: var(--g); --ac-ink: var(--g-ink);
  --kb-c: 48px; --kb-m: 9px; --kb-rc: 11px; --kb-r: 18px; --kb-ease: cubic-bezier(0.5, 0, 0.15, 1);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  height: 66px; padding: 0 9px 0 28px; border: 0; border-radius: var(--kb-r); background: var(--bg); color: var(--fg); cursor: pointer;
  font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: color 0.28s ease 0.08s; }
/* El relleno se recorta en vez de escalarse: así dura lo mismo en cualquier ancho y no se pasa de largo. */
.kb::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--ac);
  clip-path: inset(var(--kb-m) var(--kb-m) var(--kb-m) calc(100% - var(--kb-c) - var(--kb-m)) round var(--kb-rc));
  transition: clip-path 0.6s var(--kb-ease); }
.kb:hover::before, .kb:focus-visible::before { clip-path: inset(0px 0px 0px 0px round var(--kb-r)); transition-duration: 0.75s; }
/* El texto cambia de color justo cuando el relleno le pasa por encima. */
.kb:hover, .kb:focus-visible { color: var(--ac-ink); transition: color 0.3s ease 0.13s; }
.kb:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }
.kb-c { position: relative; overflow: hidden; flex: none; width: 48px; height: 48px; color: var(--ac-ink); }
.kb-c::before, .kb-c::after { content: ""; position: absolute; inset: 13px; background: currentColor; transition: transform 0.6s var(--kb-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.kb-c::after { transform: translateX(-48px); }
.kb:hover .kb-c::before, .kb:focus-visible .kb-c::before { transform: translateX(48px); }
.kb:hover .kb-c::after, .kb:focus-visible .kb-c::after { transform: none; transition-delay: 0.07s; }
.kb--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.kb--s { --kb-c: 34px; --kb-m: 6px; --kb-rc: 8px; --kb-r: 13px; height: 46px; padding: 0 6px 0 18px; gap: 14px; font-size: 14.5px; }
.kb--s .kb-c { width: 34px; height: 34px; }
.kb--s .kb-c::before, .kb--s .kb-c::after { inset: 9px; }
.kb--s .kb-c::after { transform: translateX(-34px); }
.kb--s:hover .kb-c::before, .kb--s:focus-visible .kb-c::before { transform: translateX(34px); }
.kb--wide { display: flex; width: 100%; }

/* ---------- navegación flotante ---------- */
.nav { position: fixed; top: 14px; left: 50%; z-index: 90; transform: translateX(-50%); display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  width: min(1040px, calc(100vw - 24px)); padding: 7px 7px 7px 18px; border-radius: 20px; color: var(--ink);
  background: rgba(250, 248, 243, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(26, 25, 30, 0.08), 0 18px 44px -24px rgba(0, 0, 0, 0.4); transition: color 0.4s ease, background 0.4s ease; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav-logo svg { display: block; }
.nav-links { display: flex; gap: clamp(12px, 2.2vw, 28px); margin-left: auto; }
.nav-links a { position: relative; padding: 6px 0; color: inherit; text-decoration: none; font-size: 14.5px; font-weight: 600; opacity: 0.74; transition: opacity 0.2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .kb { margin-left: 6px; }
html[data-tone="dark"] .nav { color: #f4f1ea; background: rgba(12, 12, 16, 0.6); }
html[data-tone="dark"] .nav .kb { --bg: #f4f1ea; --fg: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .kb { margin-left: auto; } }

/* ---------- capítulos que se apilan ---------- */
.stack { position: relative; background: #0b0b0d; }
.sheet { position: relative; z-index: 1; }
html.js .sheet { position: sticky; top: var(--st, 0px); }
.sheet-in { position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0; transform-origin: 50% 100%; transform: scale(calc(1 - var(--c, 0) * 0.07)); }
.sheet-in::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; background: #000; opacity: calc(var(--c, 0) * 0.55); }
.sheet:first-child .sheet-in { border-radius: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

.ey { display: inline-flex; align-items: center; gap: 11px; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.ey::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: currentColor; }
.h { margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(44px, 8.2vw, 136px); line-height: 0.93; letter-spacing: -0.042em; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; }

/* revelados */
.ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ln > span { display: block; transform: translateY(112%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 0.09s + 0.1s); }
.in .ln > span, .ln.in > span { transform: none; }
[data-rv="up"] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 0.08s); }
[data-rv="up"].in { opacity: 1; transform: none; }

/* ---------- 01 · hero ---------- */
.hero .sheet-in { min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 62% at 80% 48%, rgba(16, 185, 129, 0.34), transparent 70%), radial-gradient(40% 46% at 8% 96%, rgba(94, 234, 212, 0.34), transparent 72%); animation: glowDrift 16s ease-in-out infinite; }
@keyframes glowDrift { 50% { transform: translate(-2.5%, 2%) scale(1.07); } }
.hero-main { position: relative; z-index: 2; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 112px; padding-bottom: 34px; }
.hero-main > :not(.hero-k) { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 26px; font-family: var(--disp); font-weight: 700; font-size: clamp(60px, 10vw, 176px); line-height: 0.9; letter-spacing: -0.052em; }
.hero h1 em { font-style: normal; color: var(--g2); }
.hero .lead { max-width: 500px; color: #423e36; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #5f594d; }
.hero-meta b { color: var(--g2); font-weight: 700; }
.hero-k { position: absolute; z-index: 1; top: 50%; right: -1vw; width: min(42vw, 72vh); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.hero-k svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.hero-float { width: 100%; height: 100%; animation: kFloat 8s ease-in-out 1.8s infinite; }
.hero-halo { position: absolute; inset: 2%; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.5), transparent 62%); animation: kHalo 5s ease-in-out infinite; }
.kq { transform-box: fill-box; transform-origin: center; will-change: transform; }
.kq rect { transform-box: fill-box; transform-origin: center; animation: kIn 1.15s var(--ease) var(--d) both; }
.k-beam { stroke-dasharray: 100; animation: kBeam 0.9s var(--ease) 0.25s both; }
.k-comet { stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: 0; animation: kComet 5.2s cubic-bezier(0.4, 0, 0.5, 1) 1.5s infinite; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85)); }
@keyframes kIn { 0% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.26); } 12% { opacity: 1; } 55% { transform: rotate(8deg) scale(1.16); filter: brightness(1.7); } 78% { transform: rotate(-3deg) scale(0.95); filter: brightness(1.12); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes kBeam { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: 0.92; } }
@keyframes kComet { 0% { opacity: 0; stroke-dashoffset: 100; } 4% { opacity: 1; } 26% { opacity: 1; stroke-dashoffset: 0; } 32%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes kFloat { 0%, 100% { transform: perspective(900px) rotateX(0) rotateY(0); } 28% { transform: perspective(900px) rotateX(6deg) rotateY(-9deg) translateY(-6px); } 54% { transform: perspective(900px) rotateX(-5deg) rotateY(7deg); } 78% { transform: perspective(900px) rotateX(4deg) rotateY(-3deg) translateY(-4px); } }
@keyframes kHalo { 0%, 100% { opacity: 0.45; transform: scale(0.88); } 50% { opacity: 0.9; transform: scale(1.04); } }
@media (max-width: 860px) {
  .hero-main { justify-content: flex-end; padding-top: 0; }
  .hero-k { position: relative; top: auto; right: auto; order: -1; align-self: flex-end; width: min(74vw, 40vh); margin: 84px -6vw -7vw 0; transform: none; }
  .hero .sheet-in { align-items: stretch; }
  .hero-cta .kb { flex: 1 1 100%; }
}

/* marquesina de rubros */
.mq { position: relative; z-index: 2; overflow: hidden; padding: 16px 0; color: var(--g-ink); background: var(--g); }
.mq-t { display: flex; width: max-content; animation: mq 34s linear infinite; }
.mq-t span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.mq-t span::after { content: ""; width: 0.42em; height: 0.42em; border-radius: 18%; background: var(--g-ink); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 02 · Kubo Gestión ---------- */
.gest .sheet-in { background: #fbf9f4; padding: clamp(80px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); }
.gest .ey { color: var(--g2); margin-bottom: 24px; }
.gest .h em { font-style: normal; color: var(--g2); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 80px); }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 340px; padding: clamp(24px, 2.6vw, 36px); border-radius: 26px; background: #f1ede3;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.3s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; background: radial-gradient(340px circle at var(--mx) var(--my), rgba(16, 185, 129, 0.3), transparent 70%); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile h3 { margin: auto 0 10px; font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.tile p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.5; color: var(--soft); }
.tile-art { display: block; width: 100%; max-width: 300px; height: 130px; margin-bottom: 26px; }
.t-a { grid-column: span 5; } .t-b { grid-column: span 3; } .t-c { grid-column: span 4; }
.t-alba { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; color: #ece7df; background: linear-gradient(120deg, var(--night), #07211f); }
.t-alba::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 203, 164, 0.34), transparent 70%); }
.t-alba h3 { margin: 12px 0 8px; color: #ece7df; }
.t-alba p { max-width: 58ch; color: var(--mint); opacity: 0.88; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pillP 1.8s ease-in-out infinite; }
@keyframes pillP { 50% { opacity: 0.35; } }
.word-alba { font-family: var(--disp); font-weight: 300; letter-spacing: 0.3em; font-size: clamp(26px, 3vw, 40px); color: var(--mint); }
.word-alba i { font-style: normal; color: var(--teal); }
.art-pulse { stroke-dasharray: 520; animation: artPulse 3.4s linear infinite; }
@keyframes artPulse { from { stroke-dashoffset: 520; } to { stroke-dashoffset: -520; } }
.art-bar { transform-box: fill-box; transform-origin: bottom; animation: artBar 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes artBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(var(--s)); } }
.art-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: artLine 5s var(--ease) infinite; }
@keyframes artLine { 0% { stroke-dashoffset: 420; } 55%, 100% { stroke-dashoffset: 0; } }
.real-stage { margin-top: 14px; }
.real { display: block; position: relative; overflow: hidden; border-radius: 26px; color: #ece7df; text-decoration: none; background: #0e0d11; box-shadow: 0 60px 110px -50px rgba(4, 120, 87, 0.75);
  transform-origin: 50% 100%; transform: perspective(1500px) rotateX(calc((1 - var(--t, 1)) * 15deg)) scale(calc(0.92 + var(--t, 1) * 0.08)); }
.real img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.real:hover img { transform: scale(1.02); }
.real:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; }
.real-cap { margin: 18px 0 8px; text-align: center; color: var(--g2); }
.gest-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px 30px; flex-wrap: wrap; margin-top: 14px; padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: var(--g); color: var(--g-ink); }
.gest-cta strong { display: block; font-family: var(--disp); font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; }
.gest-cta span.sub { font-size: 16.5px; }
.gest-cta .kb { --ac: #fff; --ac-ink: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) { .t-a, .t-b, .t-c { grid-column: span 12; min-height: 290px; } }

/* ---------- 03 · E-KUBO ---------- */
.ek .sheet-in { color: var(--a-ink); padding: clamp(84px, 11vw, 160px) 0; background: radial-gradient(70% 90% at 100% 100%, #0e7490, transparent 72%), linear-gradient(160deg, var(--a3), var(--a) 62%); }
.ek-ghost { position: absolute; left: -2vw; bottom: -6vw; font-family: var(--disp); font-weight: 700; font-size: 30vw; line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; color: rgba(255, 255, 255, 0.17); pointer-events: none; }
.ek-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.ek .h { font-size: clamp(42px, 5.7vw, 100px); }
.ek .lead { max-width: 30em; margin: 26px 0 34px; }
.ek .kb { --bg: var(--a-ink); --fg: #eafcff; --ac: #fff; --ac-ink: var(--a-ink); }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 30px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 50px 90px -40px rgba(4, 34, 42, 0.7); }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 10px; font-family: var(--disp); font-weight: 700; font-size: 15.5px; border-bottom: 1px solid rgba(4, 34, 42, 0.13); }
.chat-h small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.bub { max-width: 88%; padding: 12px 14px; font-size: 15px; line-height: 1.42; opacity: 0; transform: translateY(18px) scale(0.94); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: calc(var(--i) * 0.55s + 0.2s); }
.chat.in .bub { opacity: 1; transform: none; }
.bub--me { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: var(--a); }
.bub--al { align-self: flex-start; border-radius: 18px 18px 18px 5px; background: #eef4f4; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-bottom: 7px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--a-ink); transform-origin: center; animation: wave 1.05s ease-in-out infinite; animation-delay: calc(var(--n) * -0.13s); }
@keyframes wave { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
.foto { display: grid; place-items: center; width: 170px; height: 100px; margin-bottom: 8px; border-radius: 11px; background: linear-gradient(135deg, #e6fbff, #0e7490); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 860px) { .ek-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 04 · ALBA ---------- */
.alba .sheet-in { color: #ece7df; padding: clamp(90px, 12vw, 170px) 0; background: radial-gradient(60% 60% at 80% 12%, rgba(47, 203, 164, 0.2), transparent 70%), var(--night); }
.alba canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.alba .wrap { position: relative; z-index: 1; }
.alba .h em { font-style: normal; color: var(--teal); }
.alba .lead { max-width: 34em; margin-top: 28px; color: var(--mint); opacity: 0.9; }
.alba .word-alba { display: block; margin-bottom: 28px; }
.rows { margin-top: clamp(44px, 6vw, 84px); border-top: 1px solid rgba(205, 238, 228, 0.2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 10px 32px; padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid rgba(205, 238, 228, 0.2); color: inherit; text-decoration: none; transition: padding 0.5s var(--ease), background 0.4s ease; }
.row:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(47, 203, 164, 0.13), transparent 70%); }
.row b { font-family: var(--disp); font-size: clamp(32px, 4.4vw, 66px); letter-spacing: -0.04em; line-height: 1; }
.row p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--mint); opacity: 0.86; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 05 · KuboConnect ---------- */
.conn .sheet-in { color: #fff; padding: clamp(84px, 11vw, 150px) 0; background: radial-gradient(70% 80% at 50% 0%, #8b5cf6, transparent 72%), linear-gradient(170deg, var(--am), #2a1459); }
.conn .h { font-size: clamp(40px, 6.8vw, 112px); }
.conn .lead { max-width: 36em; margin-top: 26px; opacity: 0.92; }
.flow { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px); margin-top: clamp(44px, 6vw, 80px); }
.node { flex: none; width: clamp(190px, 21vw, 280px); padding: 24px; border-radius: 22px; color: var(--ink); background: #fbf9f4; }
.node strong { display: block; font-family: var(--disp); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; margin: 14px 0 4px; }
.node small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hub { flex: none; display: grid; place-items: center; width: clamp(84px, 9vw, 120px); aspect-ratio: 1; border-radius: 28%; background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 60px rgba(167, 139, 250, 0.8); animation: bob 4s ease-in-out infinite; }
.conn-col { flex: 1; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.beam { position: relative; overflow: hidden; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.beam::after { content: ""; position: absolute; top: 0; bottom: 0; width: 42%; background: linear-gradient(90deg, transparent, #fff); animation: beam 1.5s linear infinite; }
@keyframes beam { from { left: -42%; } to { left: 100%; } }
.claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 56px); margin-top: clamp(44px, 6vw, 76px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.claims h3 { margin: 0 0 8px; font-family: var(--disp); font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.02em; }
.claims p { margin: 0; font-size: 15.5px; line-height: 1.5; opacity: 0.86; }
.conn-may { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin-top: clamp(36px, 4vw, 56px); }
.conn-may p { margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
.conn-may .kb { --bg: #fff; --fg: var(--ink); --ac: var(--br); --ac-ink: #fff; }
@media (max-width: 860px) {
  .flow { flex-direction: column; align-items: stretch; }
  .node { width: 100%; }
  .hub { align-self: center; }
  .conn-col { flex-direction: row; justify-content: center; min-height: 48px; }
  .beam { width: 3px; height: 44px; flex: none; }
  .beam::after { width: 100%; height: 42%; left: 0; background: linear-gradient(180deg, transparent, #fff); animation-name: beamY; }
  .claims { grid-template-columns: minmax(0, 1fr); }
}
@keyframes beamY { from { top: -42%; } to { top: 100%; } }

/* ---------- streaming para radios ---------- */
.radios .sheet-in { color: #f4f1ea; padding: clamp(84px, 11vw, 150px) 0; background: radial-gradient(46% 58% at 82% 46%, rgba(190, 18, 60, 0.42), transparent 72%), #0e0d11; }
.radios .ey { color: #fb7185; margin-bottom: 24px; }
.radios .h { font-size: clamp(40px, 6.8vw, 112px); }
.radios .h em { font-style: normal; color: #fb7185; }
.radios .lead { max-width: 34em; margin-top: 26px; color: #d8d2c6; }
.radios .kb { --bg: #be123c; --fg: #fff; --ac: #fff; --ac-ink: var(--ink); }
.radios .kb--ghost { --bg: transparent; --fg: #f4f1ea; }
.radios-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(36px, 4vw, 56px); }
/* El dial sintoniza las frecuencias reales de las radios cuando entra en pantalla. */
.dial { position: relative; height: 112px; margin-top: clamp(48px, 6vw, 84px); }
.dial-esc { position: absolute; left: 0; bottom: 26px; display: block; width: 100%; height: 46px; overflow: visible; fill: none; stroke: rgba(244, 241, 234, 0.5); stroke-width: 1; shape-rendering: crispEdges; }
.dial-esc path { vector-effect: non-scaling-stroke; }
.dial-esc path + path { stroke-width: 2; }
.dial-nums span { position: absolute; bottom: 0; left: var(--p); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(244, 241, 234, 0.62); }
.dial-carro { position: absolute; inset: 0 0 26px; pointer-events: none; transform: translateX(3%); transition: transform 2.4s var(--ease) 0.25s; }
.dial.in .dial-carro { transform: translateX(var(--x)); }
.dial-aguja { position: absolute; top: 26px; bottom: 0; left: 0; width: 2px; background: #fb7185; box-shadow: 0 0 18px 3px rgba(251, 113, 133, 0.75); animation: luzAire 2.8s ease-in-out infinite; }
@keyframes luzAire { 50% { opacity: 0.6; } }
.dial-nombre { position: absolute; top: 0; right: 100%; margin-right: -2px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: #fb7185; opacity: 0; transition: opacity 0.7s ease 1.7s; }
.dial-nombre--der { right: auto; left: 0; margin-right: 0; }
.dial.in .dial-nombre { opacity: 1; }
@media (max-width: 620px) { .dial-carro:last-child .dial-nombre { top: -22px; } .dial-carro:last-child .dial-aguja { top: 4px; } }
@media (max-width: 560px) { .radios-cta .kb { flex: 1 1 100%; } }

/* ---------- 06 · equipo ---------- */
.eq .sheet-in { background: var(--paper); padding: clamp(84px, 11vw, 150px) 0; }
.eq .ey { color: var(--g2); margin-bottom: 22px; }
.eq-list { margin-top: clamp(36px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.eq-row { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.5fr) 240px; align-items: center; gap: 12px 36px; padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1.5px solid var(--ink); color: inherit; text-decoration: none; transition: padding 0.5s var(--ease); }
a.eq-row:hover { padding-left: 16px; }
.eq-row img { height: clamp(44px, 4.6vw, 66px); width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.eq-row small { text-align: right; }
.eq-row p { margin: 0; font-size: 17px; line-height: 1.5; color: #423e36; }
.eq-nombre { font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.eq-nombre span { color: #be123c; }
.eq-row small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.cerca { margin-top: clamp(90px, 12vw, 170px); }
.cerca .h { font-size: clamp(40px, 7vw, 116px); max-width: 15em; }
.cerca .h em { font-style: normal; color: var(--am); }
.cerca .lead { max-width: 34em; margin-top: 28px; color: #423e36; }
.prom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px clamp(20px, 3vw, 44px); margin-top: clamp(44px, 6vw, 72px); }
.prom div { padding-top: 16px; border-top: 3px solid var(--c); }
.prom small { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.prom h3 { margin: 0 0 7px; font-family: var(--disp); font-size: 23px; letter-spacing: -0.02em; }
.prom p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.firma { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin-top: clamp(40px, 5vw, 60px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--soft); }
.firma b { font-family: var(--disp); font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.firma span:last-child { margin-left: auto; }
@media (max-width: 900px) { .prom { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eq-row { grid-template-columns: minmax(0, 1fr); } .eq-row small { text-align: left; } .firma span:last-child { margin-left: 0; } }
@media (max-width: 480px) { .prom { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 07 · cierre ---------- */
.fin .sheet-in { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; color: var(--g-ink); background: radial-gradient(60% 70% at 18% 8%, var(--g3), transparent 70%), var(--g); }
.fin-main { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: 50px; }
.fin h2 { margin: 0 0 34px; font-family: var(--disp); font-weight: 700; font-size: clamp(76px, 19vw, 330px); line-height: 0.84; letter-spacing: -0.06em; }
.fin .kb { --ac: #fff; --ac-ink: var(--ink); }
.fin .kb--ghost { --fg: var(--g-ink); }
.foot { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }
.foot strong { display: inline-flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 18px; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
  .ln > span, [data-rv="up"], .bub { transform: none !important; opacity: 1 !important; }
  html.js .sheet { position: relative; }
  .sheet-in { transform: none; }
  .mq-t, .dial-aguja { animation: none; }
  .dial-carro, .dial-nombre { transition: none; }
}
