@view-transition { navigation: auto; }
picture { display: contents; }
/* ==========================================================
   Capa premium · Ingeniería Empresarial
   ========================================================== */

/* ---------- Textura de papel sobre todo el sitio ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
}
::selection { background: var(--yellow); color: var(--black); }

/* ---------- Barra de progreso de lectura ---------- */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Barra superior fija (aparece al subir) ---------- */
.barra-top { position: fixed; top: 0; left: 0; right: 0; z-index: 85; background: rgba(11,19,32,0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); transform: translateY(-105%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.barra-top.on { transform: translateY(0); }
.barra-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.barra-top .brand-name { font-size: 12px; }
.barra-top .nav { gap: 26px; font-size: 14px; }
.barra-top .nav-cta { padding: 9px 16px; background: var(--yellow); color: var(--black) !important; border-color: var(--yellow); font-weight: 600; }
@media (max-width: 980px) { .barra-top { display: none; } }

/* ---------- Botones con destello ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.btn:hover::after { transform: translateX(130%); }
.btn-ink::after { background: linear-gradient(110deg, transparent 30%, rgba(242,201,76,0.35) 50%, transparent 70%); }

/* ---------- Manifiesto ---------- */
.manifiesto { padding-block: clamp(110px, 16vw, 220px); }
.manifiesto .wrap { display: flex; flex-direction: column; gap: 34px; }
.manifiesto-txt { margin: 0; max-width: 17.5em; font-family: var(--slab); font-weight: 700; font-size: clamp(34px, 5.4vw, 86px); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.manifiesto-txt em { font-style: normal; color: var(--yellow); }
.manifiesto-firma { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 14px; }
.manifiesto-firma::before { content: ""; width: 40px; height: 1px; background: var(--dim); }

/* ---------- Galería de las siete herramientas ---------- */
.galeria { padding-block: clamp(64px, 8vw, 110px) 0; }
.galeria-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.galeria-cab .section-head { margin-bottom: 0; }
.galeria-cont { display: none; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 200px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.galeria-cont b { font-weight: 500; color: var(--yellow); }
.galeria-cont .barrita { width: 200px; height: 3px; background: rgba(244,239,230,0.12); }
.galeria-cont .barrita i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0.143); }
.galeria-track { display: flex; flex-direction: column; gap: 28px; }

.gpanel { position: relative; background: var(--ink-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(24px, 3vw, 44px); overflow: hidden; }
.gpanel::before { content: attr(data-n); position: absolute; left: clamp(10px, 2vw, 30px); bottom: clamp(40px, 5vw, 70px); font-family: var(--slab); font-weight: 700; font-size: clamp(120px, 15vw, 230px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(244,239,230,0.09); pointer-events: none; }
.gp-txt { position: relative; display: flex; flex-direction: column; gap: 18px; }
.gp-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.gp-meta span:first-child { color: var(--yellow); }
.gp-meta span + span { color: var(--dim); }
.gp-txt h3 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(40px, 4.6vw, 70px); line-height: 0.95; }
.gp-cita { margin: 0; border-left: 3px solid var(--yellow); padding-left: 18px; font-family: var(--slab); font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; color: var(--ivory); }
.gp-cita small { display: block; margin-top: 8px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.gp-que { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.gp-res { margin-top: auto; display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; color: var(--ivory-2); }
.gp-res::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--yellow); transform: translateY(-1px); }

.gp-viz { margin: 0; position: relative; background: #0D1626; border: 1px solid var(--line); padding: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; gap: 12px; }
.gp-viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.gp-viz figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); }
.gp-viz figcaption b { color: var(--ivory); font-weight: 600; }
.gp-viz .vlbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; fill: var(--dim); }
.gp-viz .vtxt { font-family: var(--sans); font-size: 13px; fill: var(--ivory-2); }
.gp-viz .vnum { font-family: var(--slab); font-weight: 700; fill: var(--ivory); }
.gp-viz .vy { fill: var(--yellow); }
.gp-viz .vr { fill: var(--red); }
.gp-viz .vgrid { stroke: rgba(244,239,230,0.12); stroke-width: 1; }
.flujo { stroke-dasharray: 2 9; animation: flujo 1.1s linear infinite; }
@keyframes flujo { to { stroke-dashoffset: -11; } }
@media (prefers-reduced-motion: reduce) { .flujo { animation: none; } }

.gpanel-final { background: var(--yellow); color: var(--black); border-color: var(--black); }
.gpanel-final::before { -webkit-text-stroke-color: rgba(20,20,20,0.12); }
.gpanel-final .gp-epi { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; text-wrap: balance; }
.gpanel-final .gp-epi small { display: block; margin-top: 14px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #5B5446; }
.gpanel-final .gp-caso { margin: 0; border-left: 3px solid var(--black); padding-left: 18px; font-family: var(--slab); font-weight: 600; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
.gp-cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.gp-cifras b { display: block; font-family: var(--slab); font-weight: 700; font-size: clamp(38px, 3.8vw, 58px); line-height: 1; font-variant-numeric: tabular-nums; }
.gp-cifras > div > span { font-size: 14px; color: #3A3630; }
.gp-cifras b span { font: inherit; color: inherit; }
.gpanel-final .btn { background: var(--black); color: var(--ivory); box-shadow: 6px 6px 0 rgba(20,20,20,0.25); align-self: flex-start; }

@media (min-width: 981px) {
  .gpanel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
  .gpanel-final { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* Modo película (escritorio con movimiento): la galería se fija y avanza en horizontal */
.galeria.is-h { padding-block: 0; }
.galeria.is-h .galeria-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.galeria.is-h .galeria-cab { margin-bottom: 28px; }
.galeria.is-h .galeria-cont { display: flex; }
.galeria.is-h .galeria-track { flex-direction: row; gap: 32px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.galeria.is-h .gpanel { width: min(76vw, 1100px); height: min(64svh, 600px); }
.galeria.is-h .gpanel .gp-viz { justify-content: center; }
.galeria.is-h .galeria-cab .section-head p:not(.kicker) { display: none; }
.galeria.is-h .galeria-cab { width: 100%; }

/* ---------- Mira por dentro: la página se vuelve papel ---------- */
#adentro { position: relative; isolation: isolate; --papel: 0; }
#adentro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #EFE4CC; opacity: var(--papel); }
#adentro .kicker, #adentro .section-head h2, #adentro .section-head p, #adentro .flip-ctl, #adentro .flip-nota { transition: color .5s ease; }
#adentro.papel .kicker { color: #8A6A10; }
#adentro.papel .kicker::before { background: #8A6A10; }
#adentro.papel .section-head h2 { color: var(--black); }
#adentro.papel .section-head p, #adentro.papel .flip-nota { color: #4A463E; }
#adentro.papel .flip-ctl { color: #4A463E; }
#adentro.papel .flip-ctl button { color: var(--black); border-color: rgba(20,20,20,0.35); }
#adentro.papel .flip-ctl button:hover { border-color: var(--black); background: rgba(20,20,20,0.06); }
#adentro .libro-flip { filter: drop-shadow(0 26px 34px rgba(0,0,0,0.28)); }

/* ---------- Autor editorial ---------- */
.autor-ed { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.autor-ed .retrato { aspect-ratio: 4 / 5; max-width: 520px; }
.autor-ed .retrato .marco img { filter: none; }
.autor-ed .autor-col { gap: 26px; }
.autor-ed h2 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(36px, 4.6vw, 66px); line-height: 1; }
.autor-cita { margin: 0; font-family: var(--slab); font-weight: 600; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; color: var(--ivory); text-wrap: balance; }
.autor-cita::before { content: "“"; display: block; font-size: 2.6em; line-height: 0.6; color: var(--yellow); margin-bottom: 6px; }
.autor-cita cite { display: block; margin-top: 16px; font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.autor-ed .autor-bio { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; }
@media (max-width: 980px) { .autor-ed { grid-template-columns: 1fr; } .autor-ed .retrato { max-width: 420px; } }

/* ---------- Lanzamiento con formulario ---------- */
.lanz-form { display: flex; flex-direction: column; gap: 10px; }
.lanz-form b { font-family: var(--slab); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.lanz-form > span { font-size: 15px; color: #3A3630; }
.lanz-form .ml-embedded { margin-top: 8px; min-height: 58px; }
body .lanzamiento #mlb2-46021113.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input { background-color: #FFFDF7 !important; border-color: var(--black) !important; border-width: 2px !important; }
body .lanzamiento #mlb2-46021113.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button { background-color: var(--black) !important; color: var(--ivory) !important; box-shadow: 5px 5px 0 rgba(20,20,20,0.25) !important; }
body .lanzamiento #mlb2-46021113.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 { color: var(--black) !important; }
body .lanzamiento #mlb2-46021113.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p { color: #3A3630 !important; }

/* ---------- Pie con marca gigante ---------- */
.pie { border-top: 1px solid var(--line); padding-block: clamp(60px, 8vw, 110px) 36px; overflow: hidden; }
.pie-marca { margin: 0 0 clamp(40px, 5vw, 70px); font-family: var(--slab); font-weight: 700; text-transform: uppercase; font-size: clamp(52px, 12.6vw, 204px); line-height: 0.86; letter-spacing: -0.02em; }
.pie-marca span { display: block; }
.pie-marca span + span { color: var(--yellow); }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--dim); }
.pie-fila nav { display: flex; flex-wrap: wrap; gap: 22px; }
.pie-fila a { color: var(--muted); text-decoration: none; }
.pie-fila a:hover { color: var(--ivory); }
.pie-fila strong { color: var(--ivory); font-weight: 500; }

/* ---------- Diagnóstico: enlace al caso ---------- */
.dx-caso { align-self: center; font-size: 14px; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(244,239,230,0.35); padding-bottom: 2px; }
.dx-caso:hover { border-color: var(--yellow); }
.autor-cita { display: block; }
.lanzamiento .panel { align-items: end; }
footer.pie { display: block; color: var(--ivory); }
@media (max-width: 980px) { .gp-viz .vlbl { font-size: 12.5px; } .gp-viz .vtxt { font-size: 13.5px; } }
@media (min-width: 981px) and (max-height: 780px) { .galeria.is-h .gp-que { display: none; } .galeria.is-h .gpanel { height: min(70svh, 600px); } .galeria.is-h .galeria-cab h2 { font-size: clamp(28px, 3.4vw, 46px); } }
.gp-mas { align-self: flex-start; font-size: 14px; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(242,201,76,0.6); padding-bottom: 2px; font-weight: 500; }
.gp-mas:hover { color: var(--yellow); }
.galeria.is-h .gp-res { margin-top: auto; }

/* Banda: soluciones para empresas (inicio) */
.banda-empresas { padding-block: 0 clamp(64px, 9vw, 120px); border-top: 0; }
.be-caja { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); border: 1px solid rgba(242,201,76,0.35); background: linear-gradient(120deg, rgba(242,201,76,0.10), rgba(17,28,46,0.6) 55%); padding: clamp(28px, 4vw, 52px); }
.be-txt { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.be-txt h2 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; }
.be-txt p:not(.kicker) { margin: 0; color: var(--ivory-2); font-size: 17px; }
.be-caja .btn { flex: none; }
@media (max-width: 760px) { .be-caja { flex-direction: column; align-items: flex-start; } }
