/* Páginas de las líneas de Quinde (Automatiza y Studio). Usan la base de styles.css y aquí cada una tiene su ambiente:
   Automatiza, un laboratorio nocturno en violeta; Studio, un taller cálido en coral. El colibrí está en las dos. */
.page { --ac: #5340C9; --ac-2: #8B7CFF; --bg: #F6F1E9; --bg-2: #EFE6D8; --tx: #1C1712; --tx-2: #5C5246; --card: #FFFFFF; --line: #E6DCCB; background: var(--bg); color: var(--tx); }
.page.studio { --ac: #FF7A59; --ac-2: #FFB59F; --bg: #F6F1E9; --bg-2: #EFE6D8; --tx: #1C1712; --tx-2: #5C5246; --card: #FFFFFF; --line: #E6DCCB; }
.page main { overflow-x: clip; } /* clip (no hidden): hidden rompería el escenario fijo del vuelo */
.page .kicker { color: var(--ac); }
.page .lead { color: var(--tx-2); }
.page h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: .98; letter-spacing: -0.04em; font-weight: 800; }
.page section { position: relative; padding: 96px 0; }
.page .links a[aria-current] { color: #fff; }
.page .links a[aria-current]::after { content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--ac); }
.btn-ac { background: var(--ac); color: #fff; }
.btn-ac:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in oklab, var(--ac) 40%, transparent); }
.btn-line { border: 1px solid color-mix(in oklab, var(--tx) 25%, transparent); color: var(--tx); }
.btn-line:hover { border-color: var(--ac); color: var(--ac); }
.studio .nav-cta { background: var(--ac); color: #fff; }
.auto .nav-cta { background: var(--ac); color: #fff; }

/* --- Cabecera de cada línea ---------------------------------------------------------------------------------------- */
.l-hero { min-height: clamp(640px, 92svh, 900px); display: flex; align-items: center; padding: calc(120px + env(safe-area-inset-top, 0px)) 0 80px !important; }
.l-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.l-hero .lead { max-width: 560px; }
.l-hero .cta-row { margin-top: 30px; }
.l-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 700 14px var(--display); margin-bottom: 24px; }
.l-badge svg { width: 26px; height: 26px; }
.l-badge b { color: var(--ac); }
.l-art { position: relative; justify-self: end; width: 100%; max-width: 640px; }
.l-art img { width: 100%; height: auto; animation: l-float 7s ease-in-out infinite; }
@keyframes l-float { 50% { transform: translateY(-14px); } }
/* Automatiza: una rejilla de puntos y una aurora violeta que respira */
.auto .l-hero { background: radial-gradient(60% 70% at 78% 40%, rgba(139, 124, 255, .22), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(20, 184, 138, .10), transparent 70%), var(--bg); }
.auto .l-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(201, 194, 255, .16) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent 75%); animation: l-drift 30s linear infinite; pointer-events: none; }
@keyframes l-drift { to { background-position: 26px 52px; } }
/* Studio: papel de dibujo con su cuadrícula y un sol cálido */
.studio .l-hero { background: radial-gradient(55% 60% at 80% 40%, rgba(255, 122, 89, .16), transparent 70%), var(--bg); color: var(--tx); }
.studio .l-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(28, 23, 18, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 23, 18, .045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); pointer-events: none; }
.studio .brand, .studio .nav .links a { color: var(--light); }

/* --- Cabeceras de sección ------------------------------------------------------------------------------------------- */
.s-head { max-width: 760px; margin-bottom: 40px; }
.s-head .lead { margin-top: 14px; }
.s-alt { background: linear-gradient(var(--bg), var(--bg-2) 180px, var(--bg-2) calc(100% - 180px), var(--bg)); }

/* --- Automatiza: la bandeja que se ordena sola ---------------------------------------------------------------------- */
.inbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.ib-panel { border-radius: 24px; border: 1px solid var(--line); background: var(--card); padding: 18px; }
.ib-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font: 700 14px Inter, sans-serif; color: var(--tx-2); }
.ib-title b { color: var(--tx); font-family: var(--display); font-size: 17px; }
.ib-list { display: grid; gap: 8px; min-height: 392px; align-content: start; }
.mail { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; animation: mail-in .5s cubic-bezier(.2, .9, .3, 1.1); }
.mail.done { border-color: color-mix(in oklab, var(--tag, #8B7CFF) 35%, transparent); }
@keyframes mail-in { from { opacity: 0; transform: translateY(-10px); } }
.mail .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); background: #232A55; color: #fff; }
.mail b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail small { display: block; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .act { font-size: 12px; color: var(--tx-2); white-space: nowrap; text-align: right; }
.mail .tag { font-style: normal; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in oklab, var(--tag) 22%, transparent); color: color-mix(in oklab, var(--tag) 70%, #fff); margin-bottom: 3px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.mail.done .tag { opacity: 1; transform: none; }
.mail .act span { display: block; opacity: 0; transition: opacity .3s .15s; }
.mail.done .act span { opacity: 1; }
.ib-side { display: grid; gap: 20px; align-content: start; }
.ib-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ib-counts div { border-radius: 14px; background: rgba(255, 255, 255, .035); padding: 10px 12px; }
.ib-counts b { display: block; font: 800 26px var(--display); color: var(--tx); font-variant-numeric: tabular-nums; }
.ib-counts span { font-size: 12px; color: var(--tx-2); }
.ib-sum { min-height: 210px; }
.ib-sum p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--tx); white-space: pre-line; }
#ib-sum-text::after { content: '▍'; color: var(--ac); animation: blink 1s steps(2) infinite; }
.ib-sum .ib-who { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--tx-2); }
.ib-sum .ib-who svg { width: 26px; height: 26px; }

/* --- Automatiza: catálogo con filtros ------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--tx-2); font: 600 14px Inter, sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.filters button:hover { color: var(--tx); border-color: var(--ac); }
.filters button.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.auto-card { --c: #8B7CFF; position: relative; border-radius: 22px; padding: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; transition: transform .35s, border-color .35s, opacity .35s; }
.auto-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--c) 50%, var(--line)); }
.auto-card[hidden] { display: none; }
.auto-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 18%, transparent); }
.auto-card .ic svg { width: 22px; height: 22px; fill: none; stroke: color-mix(in oklab, var(--c) 75%, #fff); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auto-card h3 { font-size: 18px; color: var(--tx); }
.auto-card p { margin: 0; font-size: 14.5px; color: var(--tx-2); }
.auto-card .ba { display: grid; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.auto-card .ba s { color: #7D84A8; text-decoration-color: rgba(200, 54, 78, .6); }
.auto-card .ba span { color: color-mix(in oklab, var(--c) 60%, #fff); font-weight: 600; }
.auto-card .area { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6E76A0; }

/* --- Pasos con el colibrí que avanza --------------------------------------------------------------------------------- */
.method { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 58px; }
.method::before { content: ''; position: absolute; left: 4%; right: 4%; top: 22px; border-top: 2px dashed color-mix(in oklab, var(--ac) 45%, var(--line)); }
.method .m-bird { position: absolute; top: 0; left: 0; width: 46px; height: 46px; animation: m-hop 12s cubic-bezier(.6, 0, .3, 1) infinite; }
.method .m-bird svg { width: 100%; height: 100%; overflow: visible; }
@keyframes m-hop { 0%, 14% { left: 2%; } 25%, 39% { left: 27%; } 50%, 64% { left: 52%; } 75%, 92% { left: 77%; } 100% { left: 2%; } }
.method article { border-radius: 22px; padding: 20px; background: var(--card); border: 1px solid var(--line); }
.method .n { font: 800 34px/1 var(--display); color: var(--ac); }
.method h3 { margin: 10px 0 6px; font-size: 19px; color: var(--tx); }
.method p { margin: 0; color: var(--tx-2); font-size: 14.5px; }

/* --- Casos y portafolio ---------------------------------------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: grid; }
.case .shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1220; }
.case .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.case:hover .shot img { transform: scale(1.04); }
.case .shot::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 26px; background: rgba(11, 18, 32, .82); backdrop-filter: blur(6px); }
.case .shot::after { content: ''; position: absolute; z-index: 2; left: 12px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; box-shadow: 13px 0 #FEBC2E, 26px 0 #28C840; }
.case .shot img { padding-top: 26px; box-sizing: border-box; }
.case .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case .tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--ac) 14%, transparent); color: color-mix(in oklab, var(--ac) 80%, var(--tx)); }
.case h3 { font-size: 24px; color: var(--tx); }
.case p { margin: 0; color: var(--tx-2); font-size: 15.5px; }
.case ul { margin: 2px 0 0; padding-left: 18px; color: var(--tx-2); font-size: 14.5px; display: grid; gap: 3px; }
.case .go { justify-self: start; margin-top: 4px; color: var(--ac); font-weight: 700; text-decoration: none; }
.case .go::after { content: ' ↗'; }

/* --- Studio: servicios ----------------------------------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { border-radius: 22px; padding: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.service .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--ac) 14%, transparent); }
.service .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ac); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; color: var(--tx); }
.service p { margin: 0; color: var(--tx-2); font-size: 14.5px; }

/* --- Principios ------------------------------------------------------------------------------------------------------ */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles div { padding: 18px 20px; border-left: 3px solid var(--ac); background: var(--card); border-radius: 0 16px 16px 0; }
.principles b { display: block; font: 800 17px var(--display); color: var(--tx); margin-bottom: 4px; }
.principles span { color: var(--tx-2); font-size: 14.5px; }

/* --- Contacto de cada línea ------------------------------------------------------------------------------------------ */
.l-contact { text-align: center; }
.l-contact h2 { max-width: 760px; margin: 0 auto; }
.l-contact .lead { margin: 16px auto 0; max-width: 620px; }
.l-contact .cta-row { justify-content: center; margin-top: 28px; }
.l-contact .hover-bird { width: 74px; height: 74px; margin: 0 auto 18px; animation: l-float 3.2s ease-in-out infinite; }
.l-contact .hover-bird svg { width: 100%; height: 100%; overflow: visible; }

@media (max-width: 1080px) {
  .l-hero-in, .inbox, .cases { grid-template-columns: 1fr; }
  .l-art { justify-self: center; max-width: 560px; }
  .catalog, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method::before, .method .m-bird { display: none; }
  .method { padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page section { padding: 72px 0; }
  .catalog, .services, .method { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 30px minmax(0, 1fr); } .mail .act { grid-column: 2; text-align: left; }
  .ib-list { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .l-art img, .method .m-bird, .l-contact .hover-bird, .auto .l-hero::before { animation: none; } }

/* --- Pie completo (todas las páginas) -------------------------------------------------------------------------------- */
.foot-full { padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.f-brand p { margin: 14px 0 18px; max-width: 320px; font-size: 14.5px; line-height: 1.55; color: #8C97AB; }
.f-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.f-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #24324A; color: #E8ECF3; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .25s; }
.f-btn:hover { border-color: #7F8BA0; }
.f-col { display: grid; gap: 9px; align-content: start; }
.f-col a { color: #8C97AB; text-decoration: none; font-size: 14px; transition: color .2s; }
.f-col a:hover { color: #fff; }
.f-h { font: 800 14px var(--display); color: #E8ECF3; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.f-h::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #FFB020; }
.f-h.c-rutas::before { background: #14B88A; } .f-h.c-auto::before { background: #8B7CFF; } .f-h.c-studio::before { background: #FF7A59; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid #16203A; font-size: 13px; color: #5F6B82; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .foot-bottom { flex-direction: column; } }
/* El colibrí del pie aparece cuando llega el viajero (colibri.js), en las cuatro páginas */
/* En Studio (fondo claro) el menú es siempre oscuro para que se lea desde arriba */
.studio .nav { background: rgba(11, 18, 32, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-d); }
/* El contacto de cada línea se funde con el pie oscuro */
.page .l-contact { padding-bottom: 260px; background: linear-gradient(to bottom, var(--bg) 0, color-mix(in oklab, #070C16 0%, var(--bg)) calc(100% - 240px), color-mix(in oklab, #070C16 4.3%, var(--bg)) calc(100% - 210px), color-mix(in oklab, #070C16 15.6%, var(--bg)) calc(100% - 180px), color-mix(in oklab, #070C16 31.6%, var(--bg)) calc(100% - 150px), color-mix(in oklab, #070C16 50.0%, var(--bg)) calc(100% - 120px), color-mix(in oklab, #070C16 68.4%, var(--bg)) calc(100% - 90px), color-mix(in oklab, #070C16 84.4%, var(--bg)) calc(100% - 60px), color-mix(in oklab, #070C16 95.7%, var(--bg)) calc(100% - 30px), color-mix(in oklab, #070C16 100%, var(--bg)) 100%); }
.page .l-contact.s-alt { background: linear-gradient(to bottom, var(--bg) 0, var(--bg-2) 180px, color-mix(in oklab, #070C16 0%, var(--bg-2)) calc(100% - 240px), color-mix(in oklab, #070C16 4.3%, var(--bg-2)) calc(100% - 210px), color-mix(in oklab, #070C16 15.6%, var(--bg-2)) calc(100% - 180px), color-mix(in oklab, #070C16 31.6%, var(--bg-2)) calc(100% - 150px), color-mix(in oklab, #070C16 50.0%, var(--bg-2)) calc(100% - 120px), color-mix(in oklab, #070C16 68.4%, var(--bg-2)) calc(100% - 90px), color-mix(in oklab, #070C16 84.4%, var(--bg-2)) calc(100% - 60px), color-mix(in oklab, #070C16 95.7%, var(--bg-2)) calc(100% - 30px), color-mix(in oklab, #070C16 100%, var(--bg-2)) 100%); }
.page .foot { background: #070C16; margin-top: 0; }
.f-co { color: #E8ECF3; font-weight: 700; }

/* --- Página principal de Quinde Software ---------------------------------------------------------------------------- */
.page.home { --ac: #FF7A59; --ac-2: #FFB59F; }
.page.auto { --ac: #8B7CFF; --ac-2: #C9C2FF; --bg: #0A0E22; --bg-2: #11163A; --tx: #E8ECF3; --tx-2: #AEB4D6; --card: rgba(255, 255, 255, .04); --line: #232A55; }
.home .kicker { color: #B4482C; } .home .btn-ac { color: #2B0E05; }
.h-hero { min-height: clamp(660px, 94svh, 940px); display: flex; align-items: center; padding: calc(120px + env(safe-area-inset-top, 0px)) 0 90px !important;
  background: radial-gradient(38% 46% at 70% 52%, rgba(139, 124, 255, .16), transparent 70%), radial-gradient(30% 40% at 58% 70%, rgba(20, 184, 138, .16), transparent 70%), radial-gradient(30% 40% at 86% 62%, rgba(255, 122, 89, .14), transparent 70%), var(--bg); }
.h-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(232, 236, 243, .10) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); pointer-events: none; }
.h-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
.h-grad { background: linear-gradient(90deg, #14B88A, #8B7CFF 55%, #FF7A59); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .lead { max-width: 580px; }
.h-hero .cta-row { margin-top: 30px; }
.h-legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 28px 0 0; }
.h-legend li { display: flex; align-items: center; gap: 8px; }
.h-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.h-legend .c-rutas::before { background: #14B88A; } .h-legend .c-auto::before { background: #8B7CFF; } .h-legend .c-studio::before { background: #FF7A59; }
.h-legend a { color: var(--light-2); text-decoration: none; font-weight: 600; font-size: 15px; } .h-legend a:hover { color: #fff; }
/* La cabecera: las tres flores (una por línea) y el colibrí que las liba */
.hub-garden { position: relative; justify-self: end; width: 100%; max-width: 520px; aspect-ratio: 512 / 420; }
.hub-garden > img { width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
.hub-garden::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 2%; height: 30%; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(124, 227, 196, .14), transparent 70%); }
.hub-bird { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 2; pointer-events: none; transition: transform 1.25s cubic-bezier(.45, .05, .25, 1); will-change: transform; }
.hub-bird .hb-in { display: block; width: 100%; height: 100%; transition: transform .22s ease; }
.hub-bird.face-l .hb-in { transform: scaleX(-1); }
.hub-bird svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.hub-bird:not(.peck) svg { animation: hb-bob 2.4s ease-in-out infinite; }
.hub-bird.peck svg { animation: peck .5s ease-in-out infinite; }
@keyframes hb-bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.hub-bird .wing { animation-duration: .07s; }
/* Menú de la casa: cada línea con su color */
.home .links a.nl-rutas::before, .home .links a.nl-auto::before, .home .links a.nl-studio::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.home .links a.nl-rutas::before { background: #14B88A; } .home .links a.nl-auto::before { background: #8B7CFF; } .home .links a.nl-studio::before { background: #FF7A59; }
.menu-movil .mm-rutas::before { background: #14B88A; }
/* Hecho por Quinde Software */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work { position: relative; display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; text-decoration: none; }
.work img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.work:hover img { transform: scale(1.06); }
.work > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(7, 12, 22, .92)); display: grid; }
.work b { color: #fff; font: 800 18px var(--display); } .work small { color: var(--light-2); font-size: 13px; }
@media (max-width: 1080px) {
  .h-hero-in { grid-template-columns: 1fr; } .hub-garden { justify-self: center; max-width: 440px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .works { grid-template-columns: 1fr; } .h-legend { flex-wrap: wrap; } .hub-bird { width: 48px; height: 48px; } }

/* --- «Vuela con el colibrí»: la portada que se recorre como una película ------------------------------------------- */
.vuelo { position: relative; height: 640vh; padding: 0 !important; background: #0B1220; }
.v-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.v-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #0B1220; }
.v-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 12, 22, .78) 0%, rgba(7, 12, 22, .45) 38%, rgba(7, 12, 22, 0) 62%), linear-gradient(rgba(7, 12, 22, .55), transparent 22%, transparent 70%, rgba(7, 12, 22, .75)); }
.v-panels { position: relative; height: 100%; }
.v-panel { position: absolute; left: 24px; right: 24px; top: 50%; margin-top: -170px; max-width: 620px; will-change: opacity, transform; }
.v-panel h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: .98; letter-spacing: -0.04em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.v-panel h2 { font-size: clamp(36px, 5vw, 64px); text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.v-panel .lead, .v-panel p:not(.line-name):not(.kicker):not(.l-badge):not(.v-h1) { color: #DDE3EE; font-size: 18px; max-width: 520px; margin-top: 16px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.v-panel .cta-row { margin-top: 28px; }
.v-line { padding: 26px 28px; border-radius: 26px; background: rgba(9, 14, 28, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 560px; }
.v-line.c-rutas { --ac: #14B88A; } .v-line.c-auto { --ac: #8B7CFF; } .v-line.c-studio { --ac: #FF7A59; }
.v-line::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; border-radius: 2px; background: var(--ac); }
.v-line .line-name b { color: var(--ac); }
.v-line .ln-mark { background: var(--ac); box-shadow: 0 0 12px var(--ac); }
.v-go { display: inline-block; margin-top: 18px; color: var(--ac); font-weight: 700; text-decoration: none; font-size: 16px; }
.v-go::after { content: ' →'; transition: margin .3s; } .v-go:hover::after { margin-left: 6px; }
.v-end { left: auto; right: 64px; text-align: right; } .v-end .cta-row { justify-content: flex-end; }
@media (max-width: 760px) { .v-end { right: 40px; left: 24px; text-align: left; } .v-end .cta-row { justify-content: flex-start; } }
/* El colibrí te acompaña: se inclina con la velocidad del scroll */
.v-bird { position: absolute; z-index: 3; left: 80%; top: 26%; width: 84px; height: 84px; pointer-events: none; transform: rotate(var(--tilt, 0deg)) scale(var(--sc, 1)); transition: transform .3s ease-out; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.v-bird.face-l svg { scale: -1 1; }
.v-bird svg { width: 100%; height: 100%; animation: hb-bob 2.6s ease-in-out infinite; }
.v-bird .wing { animation-duration: .07s; }
.v-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: #DDE3EE; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.v-hint span { width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .7); position: relative; }
.v-hint span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: v-wheel 1.6s ease-in-out infinite; }
@keyframes v-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  .vuelo { height: 560vh; }
  .v-shade { background: linear-gradient(rgba(7, 12, 22, .55), rgba(7, 12, 22, .2) 30%, rgba(7, 12, 22, .45) 55%, rgba(7, 12, 22, .9)); }
  .v-panel { top: auto; bottom: 90px; margin-top: 0; right: 40px; }
  .v-panel h1 { font-size: 42px; } .v-panel h2 { font-size: 32px; }
  .v-panel .lead, .v-panel p:not(.line-name):not(.kicker):not(.l-badge):not(.v-h1) { font-size: 16px; }
  .v-line { padding: 20px; }
  .v-bird { width: 58px; height: 58px; right: 12%; top: 18%; }
}
@media (prefers-reduced-motion: reduce) { .v-bird svg, .v-hint span::after { animation: none; } }

/* Barra de escenas del vuelo: cada tramo se llena al acercarse a su escena */
.v-bar { position: absolute; z-index: 4; left: 24px; right: 24px; bottom: 30px; max-width: 1152px; margin: 0 auto; display: flex; gap: 12px; }
.v-bar .v-dot { flex: 1 1 0; min-width: 0; }
.v-dot { --c: #FFB020; display: grid; gap: 10px; padding: 8px 0 0; border: 0; background: none; cursor: pointer; text-align: left; color: #C9D1DE; font: 700 12.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
.v-dot.c-rutas { --c: #14B88A; } .v-dot.c-auto { --c: #8B7CFF; } .v-dot.c-studio { --c: #FF7A59; }
.v-dot i { position: relative; height: 4px; border-radius: 4px; background: rgba(232, 236, 243, .3); overflow: hidden; }
.v-dot i::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.v-dot.on, .v-dot:hover { color: #fff; }
.v-dot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.v-hint { bottom: 96px; }
@media (max-width: 760px) { .v-bar { bottom: 22px; gap: 6px; } .v-dot span { display: none; } .v-dot { padding: 14px 0; } .v-hint { display: none; } }

/* Las tres líneas con producto real */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { --ac: #14B88A; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 28px; background: #101A2C; border: 1px solid #1E2B44; color: var(--tx); text-decoration: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s; }
.tile:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--ac) 55%, #1E2B44); box-shadow: 0 30px 60px -34px color-mix(in oklab, var(--ac) 60%, transparent); }
.t-auto { --ac: #8B7CFF; } .t-studio { --ac: #FF7A59; }
.tile .line-name b { color: var(--ac); } .tile .ln-mark { background: var(--ac); box-shadow: 0 0 12px var(--ac); }
.tile h3 { margin: 4px 0 0; font-size: 23px; color: #fff; }
.tile p:not(.line-name):not(.tile-sub):not(.tile-eta) { margin: 0; font-size: 15.5px; color: var(--tx-2); }
.tile .door-go { margin-top: auto; padding-top: 6px; font-weight: 700; color: color-mix(in oklab, var(--ac) 78%, #fff); }
.tile .door-go::after { content: ' →'; transition: margin .3s; } .tile:hover .door-go::after { margin-left: 6px; }
.t-rutas { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.tile-map { position: relative; min-height: 300px; height: 100%; border-radius: 18px; overflow: hidden; background: #0C1524; }
.tile-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-live { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(11, 18, 32, .86); color: var(--mint); font-size: 12px; font-weight: 600; }
.tile-live i { width: 7px; height: 7px; border-radius: 50%; background: #14B88A; animation: blink 1.6s ease-in-out infinite; }
.tile-body { display: flex; flex-direction: column; gap: 10px; }
.tile-sub { margin: 6px 0 0; font-size: 14px; color: var(--tx-2); }
.tile-eta { margin: -4px 0 4px; font: 800 72px/1 var(--display); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.tile-eta small { font-size: 26px; color: var(--tx-2); }
.tile-inbox { display: grid; gap: 8px; margin: 4px 0; }
.ti-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: #17233A; font-size: 14px; color: #E8ECF3; animation: ti-in 7.5s infinite; }
.ti-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-row em { flex: none; font-style: normal; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; animation: tg-pop 7.5s infinite; }
.tg-pedido { background: #0F3B30; color: #7CE3C4; } .tg-factura { background: #3D2E0A; color: #FFD27A; } .tg-cita { background: #262058; color: #C9C2FF; }
.ti-row.r2, .ti-row.r2 em { animation-delay: 1.5s; } .ti-row.r3, .ti-row.r3 em { animation-delay: 3s; }
@keyframes ti-in { 0% { opacity: 0; transform: translateY(-8px); } 5%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes tg-pop { 0%, 12% { opacity: 0; transform: scale(.7); } 17%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.ti-row.r2 { animation-name: ti-in2; } .ti-row.r3 { animation-name: ti-in3; }
@keyframes ti-in2 { 0% { opacity: 0; transform: translateY(-8px); } 5%, 68% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: none; } }
@keyframes ti-in3 { 0% { opacity: 0; transform: translateY(-8px); } 5%, 48% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: none; } }
.ti-row.r2 em { animation-name: tg-pop2; } .ti-row.r3 em { animation-name: tg-pop3; }
@keyframes tg-pop2 { 0%, 12% { opacity: 0; transform: scale(.7); } 17%, 68% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; } }
@keyframes tg-pop3 { 0%, 12% { opacity: 0; transform: scale(.7); } 17%, 48% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; } }
.tile-build { position: relative; height: 170px; margin: 4px 0; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, rgba(255, 122, 89, .16), transparent 70%), #0E1728; border: 1px solid #18243A; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-rutas { grid-template-columns: 1fr; } .tile-map { min-height: 0; height: auto; aspect-ratio: 520 / 300; } .tile-eta { font-size: 56px; } }
@media (prefers-reduced-motion: reduce) { .ti-row, .ti-row em, .tile-live i { animation: none; } }
/* Ventanas bajas (portátiles pequeños, móvil en horizontal): el panel se compacta para no pisar la barra de escenas */
@media (max-height: 640px) and (min-width: 761px) {
  .v-panel { margin-top: -140px; } .v-panel h1 { font-size: 46px; } .v-panel h2 { font-size: 32px; }
  .v-panel .lead, .v-panel p:not(.line-name):not(.kicker):not(.l-badge):not(.v-h1) { font-size: 15px; margin-top: 10px; }
  .v-panel .cta-row { margin-top: 16px; } .v-line { padding: 18px 22px; } .v-go { margin-top: 10px; }
  .v-dot span, .v-hint { display: none; } .v-bar { bottom: 16px; }
}

/* La película en las páginas de las líneas: más corta (tres escenas) y siempre con texto claro sobre la imagen */
.vuelo.corto { height: 400vh; }
.vuelo { color: #E8ECF3; }
.v-panel h1, .v-panel h2 { color: #fff; }
.vuelo .l-badge { color: #fff; background: rgba(9, 14, 28, .55); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vuelo .btn-line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.vuelo .kicker { color: #7CE3C4; }
.v-intro.plain { padding: 0; }
/* El final del escenario se funde con la noche, y la sección siguiente arranca desde ahí */
.v-stage::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(rgba(11, 18, 32, 0), #0B1220); pointer-events: none; }
.page .vuelo + section { background: linear-gradient(#0B1220, var(--bg-2) 280px, var(--bg-2) calc(100% - 180px), var(--bg)); padding-top: 200px; }
.page.home .vuelo + section { background: var(--bg); padding-top: 96px; }
.vuelo + .hero { margin-top: -1px; }
@media (max-width: 760px) { .vuelo.corto { height: 360vh; } }
.v-panel .v-h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6.6vw, 88px); line-height: .98; letter-spacing: -0.04em; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .v-panel .v-h1 { font-size: 42px; } }
@media (max-height: 640px) and (min-width: 761px) { .v-panel .v-h1 { font-size: 46px; } }
.l-contact-art { display: block; width: min(360px, 80%); height: auto; margin: 0 auto 22px; animation: l-float 6s ease-in-out infinite; }
body:not(.page) .vuelo { --ac: #14B88A; }
body:not(.page) .vuelo .l-badge { border: 1px solid rgba(255, 255, 255, .14); }


/* ===== Tema cálido (noviembre de 2026): la casa de Quinde Software y Automatiza comparten el ambiente de Studio:
   crema, madera, luz. Menú claro, fotos tangibles y sin película. Studio no cambia. ===== */
.home .nav { background: rgba(246, 241, 233, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 #E6DCCB; }
.home .nav.solid { background: rgba(246, 241, 233, .96); box-shadow: 0 1px 0 #E6DCCB; }
.home .nav .brand { color: #1C1712; }
.home .nav .brand b { color: #D98A00; }
.home .nav .links a { color: #5C5246; }
.home .nav .links a:hover { color: #1C1712; }
.home .nav-cta { background: #1C1712; color: #fff; }
.home .l-hero { background: radial-gradient(55% 60% at 82% 38%, color-mix(in oklab, var(--ac-2) 22%, transparent), transparent 70%), var(--bg); color: var(--tx); }
.home .l-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(28, 23, 18, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 23, 18, .04) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; animation: none; }
.home .l-hero .wrap, .auto .l-hero .wrap { position: relative; }
/* Casa: la foto del producto terminado, con el colibrí rondando */
.h-photo { position: relative; margin: 0; }
.h-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 28px; box-shadow: 0 34px 64px -34px rgba(28, 23, 18, .5); }
.h-photo figcaption { position: absolute; left: 18px; bottom: 18px; padding: 11px 16px; border-radius: 14px; background: #fff; font-size: 14.5px; font-weight: 600; color: #1C1712; box-shadow: 0 10px 24px -12px rgba(28, 23, 18, .4); }
.h-photo-bird { position: absolute; left: -26px; top: -30px; width: 78px; height: 78px; animation: l-float 3.4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(28, 23, 18, .3)); }
.h-photo-bird svg { width: 100%; height: 100%; overflow: visible; }
.h-photo-bird .wing { animation-duration: .07s; }
/* Casa: las tres líneas en tarjetas con foto */
.lcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lcard { --lc: #0B6B55; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--tx); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.lcard.c-auto { --lc: #5340C9; } .lcard.c-studio { --lc: #B4482C; }
.lcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(28, 23, 18, .5); }
.lcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.lcard:hover img { transform: scale(1.04); }
.lcard-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.lcard .line-name { margin: 0; color: var(--tx); }
.lcard.c-rutas .ln-mark { background: #14B88A; box-shadow: none; } .lcard.c-auto .ln-mark { background: #8B7CFF; box-shadow: none; } .lcard.c-studio .ln-mark { background: #FF7A59; box-shadow: none; }
.lcard .line-name b { color: var(--lc); }
.lcard strong { font: 800 25px/1.15 var(--display); letter-spacing: -0.01em; }
.lcard-body > span:not(.line-name) { font-size: 15.5px; line-height: 1.55; color: var(--tx-2); }
.lcard em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 16px; color: var(--lc); }
.lcard em::after { content: ' →'; transition: margin .3s; } .lcard:hover em::after { margin-left: 6px; }
.home .work { border-color: var(--line); }
/* Automatiza: cabecera en dos columnas y, debajo, el flujo */
.a-hero { display: block; min-height: 0; padding-bottom: 72px !important; }
.a-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.a-side { display: grid; gap: 20px; } .a-side .cta-row { margin-top: 0; }
.home .hover-bird { filter: drop-shadow(0 8px 12px rgba(28, 23, 18, .25)); }
@media (max-width: 1080px) { .lcards { grid-template-columns: 1fr; max-width: 620px; } .a-head { grid-template-columns: 1fr; } .h-photo-bird { left: 6px; top: -34px; width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .h-photo-bird { animation: none; } }

/* ===== Automatiza: un flujo de automatización al estilo n8n, funcionando =====
   Lienzo punteado, nodos cuadrados con sus puertos y cables; tres «ejecuciones» por vuelta (un pedido, una factura
   y una cita) recorren el flujo como un punto de luz. Todo en SVG y CSS: no pesa. */
.nf { border-radius: 24px; border: 1px solid var(--line); background: #0D1230; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.nf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--tx-2); background: rgba(255, 255, 255, .02); }
.nf-title { display: inline-flex; align-items: center; gap: 9px; font: 700 15px var(--display); color: #fff; }
.nf-title i { width: 10px; height: 10px; border-radius: 3px; background: #8B7CFF; }
.nf-meta { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
.nf-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #7CE3C4; font-weight: 600; }
.nf-ok i { width: 8px; height: 8px; border-radius: 50%; background: #14B88A; animation: blink 1.6s ease-in-out infinite; }
.nf-scroll { overflow-x: auto; }
.nf-svg { display: block; width: 100%; min-width: 860px; height: auto; background-image: radial-gradient(rgba(201, 194, 255, .13) 1px, transparent 1.3px); background-size: 22px 22px; }
.nf-wire { fill: none; stroke: #3A4380; stroke-width: 2; }
.nf-box { fill: #171D45; stroke: #2E3670; stroke-width: 1.5; }
.nf-port { fill: #0D1230; stroke: #6E76B8; stroke-width: 1.5; }
.nf-ico { fill: none; stroke: var(--nc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nf-node text { fill: #E8ECF3; font: 600 13px Inter, system-ui, sans-serif; text-anchor: middle; }
.nf-node .nf-sub { fill: #AEB4D6; font-weight: 500; font-size: 11.5px; }
.nf-tag rect { fill: #0D1230; stroke: #3A4380; } .nf-tag text { fill: #C9C2FF; font: 700 11px Inter, system-ui, sans-serif; text-anchor: middle; }
.nf-pulse { filter: drop-shadow(0 0 6px currentColor); }
/* Cada nodo se enciende cuando le llega la ejecución: va en el propio SVG, con el mismo reloj que el punto de luz. */
.nf-note { margin: 18px 0 0; font-size: 14.5px; color: var(--tx-2); }
@media (max-width: 1080px) { .a-head { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nf-ok i { animation: none; } .nf-pulse { display: none; } }

/* ===== Studio: transiciones ===== */
/* 1) El final de la película se disuelve en el papel crema de la página (antes pasaba por una franja azul oscuro).
      vuelo.js pone --end de 0 a 1 en el último tramo: la imagen se funde hacia el crema y la barra de escenas se apaga. */
.studio .v-stage::after { height: 46%; opacity: var(--end, 0);
  background: linear-gradient(to bottom, rgba(246, 241, 233, 0) 0%, rgba(246, 241, 233, .08) 18%, rgba(246, 241, 233, .28) 36%, rgba(246, 241, 233, .58) 56%, rgba(246, 241, 233, .84) 76%, rgba(246, 241, 233, .96) 90%, #F6F1E9 100%); }
.studio .v-bar { opacity: calc(1 - var(--end, 0)); }
.page.studio .vuelo + section { background: linear-gradient(var(--bg) 0, var(--bg-2) 260px, var(--bg-2) calc(100% - 220px), var(--bg)); padding-top: 110px; }
/* 2) Entre secciones: fundidos más largos y con curva suave entre el crema y el crema tostado */
.studio .s-alt { background: linear-gradient(to bottom, var(--bg) 0, color-mix(in oklab, var(--bg-2) 12%, var(--bg)) 60px, color-mix(in oklab, var(--bg-2) 45%, var(--bg)) 130px, color-mix(in oklab, var(--bg-2) 82%, var(--bg)) 200px, var(--bg-2) 260px,
  var(--bg-2) calc(100% - 260px), color-mix(in oklab, var(--bg-2) 82%, var(--bg)) calc(100% - 200px), color-mix(in oklab, var(--bg-2) 45%, var(--bg)) calc(100% - 130px), color-mix(in oklab, var(--bg-2) 12%, var(--bg)) calc(100% - 60px), var(--bg) 100%); }
/* Studio: un gesto de scroll por escena. La película mide 230vh y vuelo.js lleva cada gesto a la escena siguiente
   (marcas .v-snap); tras la última escena, un gesto extra deja la página alineada con el contenido. */
.studio .vuelo.corto { height: 230vh; }
.v-snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ============================================================================================================
   PORTAL VIVO (pv-*): el portal de clientes y el trabajo en marcha, animados por portal.js.
   Toma los colores de cada página (--card, --line, --tx, --tx-2, --bg-2) para servir en las cálidas y en la oscura.
   ============================================================================================================ */
.page { --pv-ink: #B23E1F; --soft: #FBF8F3; --soft-2: #F3ECE1; }
.page.auto { --pv-ink: #C9C2FF; --soft: #0D1230; --soft-2: #1B2150; }
.pv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 36px; }
.pv-head .s-head { margin-bottom: 0; }
.pv-head > p { max-width: 380px; color: var(--tx-2); font-size: 16px; line-height: 1.55; margin: 0; }
.pv-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; min-width: 0; }
.page.auto .pv-panel { background: #11163A; }
.pv-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.pv-split > .pv-grow { flex: 999 1 560px; min-width: 0; }
.pv-split > .pv-side { flex: 1 1 320px; min-width: 0; }
.pv-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.pv-title small { font-size: 12.5px; font-weight: 600; color: var(--tx-2); }
.pv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #14B88A; animation: pv-pulse 1.8s infinite; flex: none; }
.page.auto .pv-dot { background: #7CE3C4; }
.pv-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--tx-2); }
.pv-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #0B6B55; }
.page.auto .pv-live { color: #7CE3C4; }
@keyframes pv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 138, .45); } 50% { box-shadow: 0 0 0 7px rgba(20, 184, 138, 0); } }
@keyframes pv-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pv-dots { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pv-pin { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .55); } 50% { box-shadow: 0 0 0 9px rgba(255, 122, 89, 0); } }
@keyframes pv-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pv-new { animation: pv-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.pv-rise { animation: pv-up .5s ease both; }

/* Línea de actividad («Ahora en Quinde») */
.pv-feed { display: flex; flex-direction: column; gap: 9px; }
.pv-ev { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: opacity .5s; }
.pv-ev:nth-child(2) { opacity: .85; } .pv-ev:nth-child(3) { opacity: .68; } .pv-ev:nth-child(4) { opacity: .5; }
.pv-ev i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.pv-ev span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pv-ev b { font-size: 14px; } .pv-ev small { font-size: 13px; color: var(--tx-2); }
.pv-ev time { flex: none; font-size: 12px; color: var(--tx-2); }
.c-r { background: #0E8A67; } .c-a { background: #5340C9; } .c-s { background: #C2492B; }

/* Portada de Inicio: la foto de siempre con la actividad en vivo encima */
.h-photo .h-live { position: absolute; right: -22px; bottom: -34px; width: min(320px, 60%); padding: 12px; border-radius: 20px; background: rgba(246, 241, 233, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(28, 23, 18, .55); }
.h-photo .h-live .pv-title { margin-bottom: 8px; font-size: 14px; }
.h-photo .h-live .pv-feed { gap: 7px; }
.h-photo .h-live .pv-ev { padding: 8px 10px; gap: 10px; border-radius: 13px; }
.h-photo .h-live .pv-ev i { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.h-photo .h-live .pv-ev b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-photo .h-live .pv-ev small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-photo .h-live .pv-ev time { display: none; }
.h-photo .h-live .pv-ev:nth-child(n+4) { display: none; }
.h-photo:has(.h-live) figcaption { top: 18px; bottom: auto; }
.h-pill { margin-top: 26px; }
@media (max-width: 1080px) { .h-photo .h-live { position: relative; right: auto; bottom: auto; width: auto; margin: -40px 14px 0; } }

/* Tarjetas de las líneas: un dato vivo encima de la foto */
.lcard .lc-media { position: relative; display: block; overflow: hidden; }
.lc-live { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 14px; background: rgba(11, 18, 32, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; font-weight: 600; }
.lc-live b { margin-left: auto; font-family: var(--display); font-size: 17px; }
.lc-live .lc-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.lc-live .lc-bar i { display: block; height: 100%; border-radius: inherit; background: #FF7A59; transition: width .8s ease; }

/* La ventana del portal */
.pv-window { border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(60, 40, 20, .45); overflow: hidden; }
.pv-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--soft-2); border-bottom: 1px solid var(--line); }
.pv-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #E3B7A6; } .pv-chrome i + i { background: #E9D29A; } .pv-chrome i + i + i { background: #A9D9C6; }
.pv-chrome span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 12px; padding: 6px 14px; border-radius: 999px; background: var(--card); font-size: 13px; color: var(--tx-2); }
.pv-app { display: flex; flex-wrap: wrap; }
.pv-menu { flex: 1 1 200px; max-width: 230px; padding: 18px 12px; background: var(--soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.pv-menu p { margin: 0 10px 10px; font-size: 13px; color: var(--tx-2); }
.pv-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--tx); text-align: left; cursor: pointer; }
.pv-menu button:hover { background: var(--soft-2); }
.pv-menu button[aria-current] { background: #F1E4D6; font-weight: 700; }
.pv-menu em { font-style: normal; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #FF7A59; color: #1C1712; font-size: 12px; font-weight: 700; text-align: center; }
.pv-main { flex: 999 1 520px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pv-hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pv-hello small { font-size: 13px; color: var(--tx-2); } .pv-hello h3 { margin: 2px 0 0; font-size: 28px; }
.pv-ok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #E3F6EE; color: #0B5E4C; font-size: 13.5px; font-weight: 700; }
.pv-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pv-proj { padding: 16px; border-radius: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pv-proj header { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; } .pv-proj header span:last-child { color: var(--tx-2); }
.pv-proj strong { font-size: 16px; }
.pv-prog { display: block; height: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; } .pv-prog i { display: block; height: 100%; border-radius: inherit; transition: width 1s ease; }
.pv-proj footer { display: flex; justify-content: space-between; font-size: 13px; color: var(--tx-2); } .pv-proj footer b { color: var(--tx); }
.k-r { color: #0B6B55; } .k-a { color: #5340C9; } .k-s { color: #B23E1F; }
.page.auto .k-a { color: #C9C2FF; }
.b-r { background: #14B88A; } .b-a { background: #8B7CFF; } .b-s { background: #FF7A59; }
.pv-row2 { display: flex; flex-wrap: wrap; gap: 14px; } .pv-row2 > * { flex: 1 1 280px; }
.pv-box { padding: 16px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pv-appr { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pv-appr span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pv-appr b { font-size: 14px; } .pv-appr small { font-size: 12.5px; color: var(--tx-2); }
.pv-btn { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--tx); background: var(--tx); color: var(--bg); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.pv-btn.done { background: #E3F6EE; color: #0B5E4C; border-color: #A9D9C6; }
.pv-btn.ghost { background: transparent; color: var(--tx); border-color: color-mix(in oklab, var(--tx) 30%, transparent); }
.pv-uptime { display: flex; gap: 3px; height: 40px; } .pv-uptime i { flex: 1; border-radius: 3px; background: #14B88A; } .pv-uptime i.warn { background: #FFB020; }
.pv-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tx-2); }
.pv-bill { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pv-talk { flex: 1 1 280px; max-width: 340px; min-width: 0; border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .pv-menu, .pv-talk { max-width: none; border: 0; } .pv-menu { flex-direction: row; overflow-x: auto; } .pv-menu p { display: none; } .pv-menu button { flex: none; } }

/* Conversación */
.pv-chat { display: flex; flex-direction: column; gap: 10px; min-height: 250px; justify-content: flex-end; }
.pv-msg { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pv-msg small { font-size: 11.5px; color: var(--tx-2); }
.pv-msg p { margin: 0; max-width: 92%; padding: 10px 13px; border-radius: 16px 16px 16px 5px; background: var(--soft-2); font-size: 13.5px; line-height: 1.45; }
.pv-msg.me { align-items: flex-end; } .pv-msg.me p { border-radius: 16px 16px 5px 16px; background: var(--tx); color: var(--bg); }
.page.auto .pv-msg.me p { background: #8B7CFF; color: #0F0B2E; }
.pv-typing { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-2); min-height: 32px; }
.pv-typing span { display: inline-flex; gap: 3px; padding: 9px 11px; border-radius: 14px; background: var(--soft-2); }
.pv-typing span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pv-dots 1.2s infinite; } .pv-typing span i:nth-child(2) { animation-delay: .15s; } .pv-typing span i:nth-child(3) { animation-delay: .3s; }
.pv-input { display: flex; flex-direction: column; gap: 6px; margin-top: auto; font-size: 12.5px; color: var(--tx-2); }
.pv-input input { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--tx); font: inherit; font-size: 14px; }
.pv-faces { display: flex; } .pv-faces i { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--card); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; } .pv-faces i:first-child { margin-left: 0; }

/* Rasgos del portal y pasos */
.pv-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.pv-feats div { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pv-feats b { font-family: var(--display); font-size: 20px; } .pv-feats span { font-size: 15px; line-height: 1.5; color: var(--tx-2); }
.pv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pv-step { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .5s, box-shadow .5s, border-color .5s; }
.pv-step small { font-size: 13px; font-weight: 700; color: var(--tx-2); } .pv-step b { font-family: var(--display); font-size: 22px; } .pv-step span { font-size: 15px; line-height: 1.5; color: var(--tx-2); }
.pv-step.on { border-color: #FF7A59; box-shadow: 0 0 0 1px #FF7A59, 0 18px 30px -18px rgba(178, 62, 31, .45); transform: translateY(-6px); } .pv-step.on small { color: var(--pv-ink); }

/* Tablero del sprint (Studio) */
.pv-sprint { display: flex; flex-wrap: wrap; gap: 14px; }
.pv-stat { padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 170px; }
.pv-stat small { display: block; font-size: 12.5px; color: var(--tx-2); } .pv-stat b { font-family: var(--display); font-size: 26px; }
.pv-stat .pv-prog { margin-top: 6px; height: 6px; }
.pv-board { padding: 16px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pv-col { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--soft); min-height: 320px; }
.pv-col > header { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; } .pv-col > header span { display: inline-flex; align-items: center; gap: 8px; } .pv-col > header i { width: 10px; height: 10px; border-radius: 3px; } .pv-col > header em { font-style: normal; color: var(--tx-2); }
.pv-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(60, 40, 20, .4); }
.pv-card header, .pv-card footer { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--tx-2); }
.pv-card b { font-size: 14.5px; line-height: 1.35; }
.pv-card footer i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; }
.pv-card.moved { animation: pv-up .5s cubic-bezier(.2, .8, .2, 1) both; border-color: #FF7A59; }

/* Revisión sobre la pantalla (Studio) */
.pv-screen { position: relative; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); padding: 22px; display: flex; flex-wrap: wrap; gap: 22px; }
.pv-screen .sh-photo { flex: 1 1 220px; min-height: 250px; border-radius: 16px; background: url('/assets/media/linea-studio.webp') center / cover; }
.pv-screen .sh-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.pv-screen .sh-info i { display: block; height: 10px; border-radius: 4px; background: var(--line); } .pv-screen .sh-info i.t { height: 26px; width: 85%; background: var(--tx); } .pv-screen .sh-info i.k { height: 12px; width: 40%; } .pv-screen .sh-info i.cta { margin-top: auto; height: 48px; border-radius: 999px; background: #FF7A59; }
.pv-pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50% 50% 50% 6px; border: 3px solid #fff; background: #FF7A59; color: #1C1712; font: 800 16px Inter, system-ui, sans-serif; cursor: pointer; transition: transform .3s, background .3s, color .3s; }
.pv-pin[aria-pressed="true"] { background: #1C1712; color: #fff; transform: scale(1.12); animation: pv-pin 1.6s infinite; }
.pv-thread { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.pv-thread.on { background: #FFF4EC; border-color: #FF7A59; }
.pv-thread small { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-2); } .pv-thread small i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #FF7A59; color: #1C1712; font-style: normal; font-weight: 800; font-size: 11.5px; }
.pv-thread p { margin: 0; font-size: 14px; line-height: 1.45; } .pv-thread em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--pv-ink); } .pv-thread em.ok { color: #0B6B55; }
.pv-approve { min-height: 50px; border-radius: 999px; border: 0; background: var(--tx); color: var(--bg); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.pv-approve.done { background: #14B88A; color: #06231B; }
.pv-note { font-size: 12.5px; color: var(--tx-2); text-align: center; margin: 0; }

/* Despliegue y versiones (Studio) */
.pv-deploy { padding: 18px; border-radius: 22px; background: #1A1411; color: #F6F1E9; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.pv-deploy header { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; } .pv-deploy header span { color: #FFB59F; }
.pv-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pv-pipe div { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #8A7B6E; } .pv-pipe i { display: block; height: 8px; border-radius: 999px; background: #3A2C27; transform-origin: left; }
.pv-pipe .done { color: #F6F1E9; } .pv-pipe .done i { background: #14B88A; } .pv-pipe .cur { color: #F6F1E9; } .pv-pipe .cur i { background: #FFB020; animation: pv-fill 2s ease both; }
.pv-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-top: 10px; }
.pv-ver b { font-family: var(--display); font-size: 18px; min-width: 52px; } .pv-ver span { flex: 1 1 200px; font-size: 14.5px; color: var(--tx-2); } .pv-ver time { font-size: 12.5px; color: var(--tx-2); }
.pv-tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #E3F6EE; color: #0B5E4C; } .pv-tag.wait { background: #FFF1D6; color: #7A4B00; } .pv-tag.old { background: var(--soft-2); color: var(--tx-2); }

/* Centro de control (Automatiza) */
.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pv-kpi { padding: 20px; border-radius: 22px; background: #11163A; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pv-kpi small { font-size: 13.5px; color: var(--tx-2); } .pv-kpi b { font-family: var(--display); font-size: 40px; line-height: 1; color: #fff; } .pv-kpi em { font-style: normal; font-size: 13px; color: #7CE3C4; } .pv-kpi em.warn { color: #FFB020; }
.pv-spark { display: flex; gap: 3px; align-items: flex-end; height: 30px; margin-top: 6px; } .pv-spark i { flex: 1; border-radius: 2px; background: #8B7CFF; transition: height .6s ease; }
.pv-kpi:nth-child(2) .pv-spark i { background: #7CE3C4; } .pv-kpi:nth-child(3) .pv-spark i { background: #FFB020; } .pv-kpi:nth-child(4) .pv-spark i { background: #C9C2FF; }
.pv-log { border-radius: 24px; background: #070A1A; border: 1px solid var(--line); overflow: hidden; }
.pv-log > header { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #1B2150; font-size: 14.5px; font-weight: 700; }
.pv-log ol { list-style: none; margin: 0; padding: 10px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.pv-log li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; }
.pv-log li:nth-child(n+2) { opacity: .9; } .pv-log li:nth-child(n+5) { opacity: .7; } .pv-log li:nth-child(n+8) { opacity: .5; }
.pv-log li.pv-new { animation: pv-row .8s ease both; }
@keyframes pv-row { from { opacity: 0; transform: translateY(-10px); background: rgba(139, 124, 255, .25); } to { opacity: 1; transform: none; background: transparent; } }
.pv-log time { color: #6E76A8; flex: none; } .pv-log .st { flex: none; min-width: 92px; padding: 2px 8px; border-radius: 6px; text-align: center; background: #12392F; color: #7CE3C4; }
.pv-log .st.retry { background: #3A2C0A; color: #FFB020; } .pv-log .st.rev { background: #2A2160; color: #C9C2FF; }
.pv-log .fl { flex: none; min-width: 110px; color: #C9C2FF; } .pv-log .msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-log .ms { flex: none; color: #6E76A8; }
@media (max-width: 700px) { .pv-log .fl, .pv-log .ms { display: none; } .pv-log .st { min-width: 0; } }
.pv-flow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #0D1230; border: 1px solid #1B2150; margin-top: 10px; }
.pv-flow > i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #7CE3C4; transition: background .3s; } .pv-flow.off > i { background: #4A5290; }
.pv-flow span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pv-flow b { font-size: 14px; } .pv-flow small { font-size: 12.5px; color: var(--tx-2); }
.pv-switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: #8B7CFF; cursor: pointer; transition: background .3s; }
.pv-switch::after { content: ''; position: absolute; top: 4px; left: 26px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .3s; }
.pv-switch[aria-checked="false"] { background: #2A3060; } .pv-switch[aria-checked="false"]::after { left: 4px; }
.pv-switch::before { content: ''; position: absolute; inset: -7px -2px; } /* zona táctil de 44 px */

/* Revisión humana y solicitudes (Automatiza) */
.pv-counts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pv-counts span { padding: 10px 14px; border-radius: 14px; background: #11163A; border: 1px solid var(--line); font-size: 14px; } .pv-counts b.ok { color: #7CE3C4; } .pv-counts b.no { color: #FF9AA8; }
.pv-case { padding: 24px; border-radius: 24px; background: #11163A; border: 1px solid #343C78; display: flex; flex-direction: column; gap: 12px; }
.pv-case header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--tx-2); } .pv-case header span:first-child { padding: 4px 10px; border-radius: 999px; background: #2A2160; color: #C9C2FF; font-weight: 700; }
.pv-case h3 { margin: 0; font-size: 24px; color: #fff; } .pv-case > p { margin: 0; font-size: 15px; line-height: 1.5; color: #C8CDE6; }
.pv-case .prop { padding: 12px 14px; border-radius: 14px; background: #0A0E22; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; } .pv-case .prop small { font-size: 12.5px; font-weight: 700; color: #8B7CFF; } .pv-case .prop span { font-size: 14.5px; }
.pv-case .acts { display: flex; flex-wrap: wrap; gap: 10px; } .pv-case .acts button { flex: 1 1 160px; min-height: 50px; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.pv-case .yes { border: 0; background: #7CE3C4; color: #06231B; } .pv-case .no { border: 1.5px solid #4A5290; background: transparent; color: var(--tx); }
.pv-next { padding: 14px 18px; border-radius: 18px; background: #0F1438; border: 1px solid #1B2150; display: flex; justify-content: space-between; gap: 12px; opacity: .7; margin-top: 12px; font-size: 14px; } .pv-next small { color: var(--tx-2); }
.pv-req { padding: 16px 18px; border-radius: 18px; background: #11163A; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pv-req header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; } .pv-req header b { font-size: 15.5px; } .pv-req header em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #C9C2FF; } .pv-req header em.go { color: #7CE3C4; } .pv-req header em.test { color: #FFB020; }
.pv-req ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pv-req li { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: #8F96C2; } .pv-req li::before { content: ''; height: 6px; border-radius: 999px; background: #232A55; transition: background .5s; }
.pv-req li.done::before { background: #8B7CFF; } .pv-req li.cur::before { background: #FFB020; } .pv-req li.live::before { background: #7CE3C4; }

@media (prefers-reduced-motion: reduce) { .pv-new, .pv-rise, .pv-card.moved, .pv-log li.pv-new, .pv-dot, .pv-pin[aria-pressed="true"], .pv-pipe .cur i { animation: none; } }

/* Pie mejorado (las cuatro páginas): franja del portal, columnas y la marca grande al final */
.foot-full { position: relative; overflow: hidden; padding-top: 40px; }
.f-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 52px; }
.f-band > * { position: relative; }
.f-band::before { content: ''; position: absolute; inset: 0 24px; border-radius: 22px; background: linear-gradient(110deg, #0F192C, #131D36); border: 1px solid #1C2840; }
.f-band p { margin: 0; padding: 22px 0 22px 28px; max-width: 640px; color: #AEB8C8; font-size: 15px; line-height: 1.5; }
.f-band p b { color: #fff; }
.f-portal { margin-right: 28px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #FFB020; color: #0B1220; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.f-portal:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255, 176, 32, .6); }
.f-portal span { transition: transform .25s; } .f-portal:hover span { transform: translateX(3px); }
@media (max-width: 640px) { .f-band p { padding: 20px 20px 0; } .f-portal { margin: 0 20px 20px; } }
.f-wa { background: #14B88A; border-color: #14B88A; color: #06231B; }
.f-wa:hover { border-color: #7CE3C4; }
.f-col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s; }
.f-col a:hover { background-size: 100% 1px; }
.f-links { display: inline-flex; gap: 18px; } .f-links a { color: #7F8BA0; text-decoration: none; } .f-links a:hover { color: #fff; }

/* Menú de cada página (como el de Rutas): sus secciones, la píldora de colores con las otras líneas y el portal */
.mm-rutas .mm-dot { background: #14B88A; box-shadow: 0 0 10px #14B88A; }
.nav-portal { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232, 236, 243, .22); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.nav-portal svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-portal:hover { border-color: #FFB020; color: #FFB020; }
.nav-in { gap: 20px; } .nav-in .links { gap: 20px; } .nav-in .links > a, .more-pill { white-space: nowrap; } .more-menu a, .more-menu b, .more-menu small { white-space: normal; }
.nav-in .nav-cta { white-space: nowrap; }
.home .nav-portal { color: #1C1712; border-color: rgba(28, 23, 18, .2); } .home .nav-portal:hover { border-color: #1C1712; color: #1C1712; }
.home .more-pill { color: #1C1712 !important; border-color: rgba(28, 23, 18, .16); background: rgba(255, 255, 255, .55); }
.home .more-pill i { box-shadow: 0 0 0 2px #F6F1E9; }
.home .nav-more:hover .more-pill, .home .nav-more:focus-within .more-pill { border-color: rgba(28, 23, 18, .35); background: #fff; }
.menu-movil .mm-rutas::before { background: #14B88A; }
.menu-movil .mm-portal { display: flex; align-items: center; gap: 8px; color: #FFB020 !important; font-weight: 600; }
.menu-movil .mm-portal::before { content: '→'; }
/* Con tantas secciones, el menú completo se recoge antes en el botón */
@media (max-width: 1240px) { .nav-in .links { display: none; } .nav-in .menu { display: flex; margin-left: auto; } .nav-in .nav-portal { margin-left: auto; } .nav-in .nav-portal + .nav-cta, .nav-in .menu { margin-left: 0; } }
@media (max-width: 640px) { .nav-in .nav-portal { display: none; } .nav-in .menu { margin-left: auto; } }

/* Menú cuadrado: píldora, Portal y botón con la misma altura (38 px) y la misma letra (14 px); enlaces más juntos
   y más aire entre la marca y el menú. */
.nav-in { gap: 12px; }
.nav-in .links { gap: 16px; margin-right: 6px; }
.nav-in .links > a { font-size: 13.5px; }
.nav-in .more-pill { box-sizing: border-box; height: 38px; padding: 0 13px 0 11px; font-size: 14px; }
.nav-in .nav-portal { box-sizing: border-box; height: 38px; min-height: 0; padding: 0 13px; font-size: 14px; }
.nav-in .nav-cta { box-sizing: border-box; height: 38px; min-height: 0; padding: 0 18px; font-size: 14px; }

/* Títulos de sección con su planta a la derecha (como en Rutas): el título a la izquierda, la planta al borde derecho */
.page .head-row .s-head { flex: 1 1 520px; margin-bottom: 40px; }
.page .head-row > .nook, .page .pv-head > .nook { margin-bottom: 34px; }
.page .pv-head { align-items: flex-end; }

/* «Más que…» en Studio y Automatiza: la misma sección de Rutas, con los colores de cada página */
.page .more { background: linear-gradient(var(--bg), var(--bg-2) 200px, var(--bg-2) calc(100% - 200px), var(--bg)); color: var(--tx); padding: 96px 0; margin-top: 0; }
.page .more .k-light { color: var(--ac); } .page .more .l-light { color: var(--tx-2); } .page .more h2 { color: var(--tx); }
.page.studio .more .k-light { color: #B4482C; }
.page.studio .line { background: #FFFFFF; border-color: var(--line); }
.page.studio .line h3 { color: var(--tx); } .page.studio .line p { color: var(--tx-2); } .page.studio .line-name { color: var(--tx); }
.page.studio .line.l-rutas { --ac: #0B6B55; } .page.studio .line.l-auto { --ac: #5340C9; } .page.studio .line.l-studio { --ac: #B4482C; }
.page.studio .line:hover { border-color: color-mix(in oklab, var(--ac) 45%, var(--line)); }
/* Cabecera con planta y dato vivo a la derecha (Centro de control) */
.pv-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pv-aside .nook { margin-bottom: 40px; }
