/* ==========================================================================
   NexPass · nexpass.mx — Opción B (portada con tótem, solo Servicio 360)
   Se carga después de site.css y reutiliza nav, botones, formulario y footer.
   ========================================================================== */

/* ---------- portada ---------- */
.b-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: max(100svh, 820px); display: flex; flex-direction: column;
  background: radial-gradient(90% 85% at 74% 46%, #1f4783 0%, var(--navy) 46%, var(--navy-deep) 100%); }
.b-hero .hero-grid { z-index: -2; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 72% 45%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 80% 80% at 72% 45%, #000 20%, transparent 78%); }
.b-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--navy-deep)); pointer-events: none; }
.b-main { flex: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding-top: calc(var(--nav-h) + 36px); padding-bottom: 96px; }
.b-copy .eyebrow { margin-bottom: 30px; padding: 8px 16px 8px 14px; border: 1px solid var(--line-w); border-radius: 99px; background: rgba(255, 255, 255, .04); color: var(--soft); }
.b-copy .eyebrow::before { background: var(--blue-light); box-shadow: 0 0 0 4px rgba(111, 179, 242, .22); animation: pulse 2.6s ease-in-out infinite; }
.b-h1 { font-size: clamp(4.4rem, 11.5vw, 10.5rem); font-weight: 300; line-height: .84; letter-spacing: -.065em; }
.b-h1 em { color: var(--blue-light); font-weight: 300; }
.b-lead { margin-top: 32px; max-width: 24ch; font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.3; letter-spacing: -.02em; color: var(--soft); }
.b-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

/* escenario del tótem: el escudo de la marca como marco */
.b-stage { position: relative; height: clamp(540px, 76vh, 780px); display: flex; justify-content: center; align-items: flex-end; --rx: 0; --ry: 0; }
.b-shield { position: absolute; left: 50%; top: 47%; height: 126%; width: auto; transform: translate(-50%, -50%); opacity: .085; pointer-events: none; filter: drop-shadow(0 0 40px rgba(111, 179, 242, .35)); }
.b-glow { position: absolute; left: 50%; top: 50%; width: min(640px, 96%); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(111, 179, 242, .42), rgba(30, 111, 186, .2) 38%, transparent 66%); filter: blur(12px); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .75; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.b-floor { position: absolute; left: 50%; bottom: -3%; width: 190%; height: 44%; transform: translateX(-50%) perspective(540px) rotateX(66deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(111, 179, 242, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 179, 242, .3) 1px, transparent 1px); background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 62%, #000 18%, transparent 72%); mask-image: radial-gradient(ellipse 50% 70% at 50% 62%, #000 18%, transparent 72%); }
.b-ring { position: absolute; left: 50%; bottom: 0; width: 70%; aspect-ratio: 3 / 1; transform: translate(-50%, 50%); border-radius: 50%; border: 1px solid rgba(111, 179, 242, .55); box-shadow: 0 0 36px rgba(30, 111, 186, .5), inset 0 0 40px rgba(30, 111, 186, .3); }
.b-ring.r2 { width: 104%; border-color: rgba(111, 179, 242, .22); box-shadow: none; }
.b-shadow { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 58%; height: 54px; transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(2, 8, 22, .85), transparent 70%); filter: blur(8px); }
.b-wrap { position: relative; z-index: 2; height: 100%; aspect-ratio: 516 / 1484; }
.b-totem { display: block; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 30px 40px rgba(2, 8, 22, .6)); transform: translate3d(calc(var(--rx) * 10px), calc(var(--ry) * 6px), 0); transition: transform .8s var(--ease); will-change: transform; }

/* anotaciones sobre el tótem */
.b-call { position: absolute; z-index: 3; display: flex; align-items: center; left: 62%; pointer-events: none; transform: translate3d(calc(var(--rx) * 10px), calc(var(--ry) * 6px), 0); transition: transform .8s var(--ease); }
.b-call.c1 { top: 18%; } .b-call.c2 { top: 46.5%; }
.b-call .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px rgba(111, 179, 242, .3); animation: pulse 2.6s ease-in-out infinite; }
.b-call .line { flex: none; width: clamp(70px, 8vw, 130px); height: 1px; background: linear-gradient(90deg, var(--blue-light), rgba(111, 179, 242, .35)); }
.b-call .chip { flex: none; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; background: rgba(11, 29, 56, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--f-m); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }

/* barra de Servicio 360 */
.b-bar { position: relative; z-index: 2; padding-bottom: 34px; }
.b-bar-in { display: grid; gap: 14px; padding: 18px 18px 18px; border: 1px solid var(--line-w); border-radius: 28px; background: rgba(255, 255, 255, .055); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.b-bar-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-left: 6px; }
.b-bar-t b { font-family: var(--f-m); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); }
.b-bar-t span { font-size: 15px; color: var(--soft); }
.b-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.b-pills li { flex: 1 1 auto; }
.b-pills a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 8px 22px 8px 8px; border-radius: 99px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: transform .35s var(--ease), background .3s; }
.b-pills a:hover { transform: translateY(-3px); background: var(--blue-light); }
.b-pic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.b-pic .ic { width: 18px; height: 18px; stroke-width: 1.9; }

@media (max-width: 1100px) {
  .b-main { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 72px; }
  .b-stage { height: clamp(500px, 70vw, 640px); margin-top: 8px; }
  .b-lead { max-width: 30ch; }
}
@media (max-width: 700px) {
  .b-hero { min-height: 0; }
  .b-call { display: none; }
  .b-stage { height: 470px; }
  .b-pills li { flex: 1 1 calc(50% - 10px); }
  .b-pills a { padding-right: 14px; font-size: 14px; white-space: normal; line-height: 1.15; }
}

/* ---------- Servicio 360 (lista editorial) ---------- */
.b-svc { padding-top: clamp(84px, 9vw, 128px); }
.b-svc-head { margin-bottom: clamp(40px, 5vw, 72px); }
.b-svc-head .eyebrow { margin-bottom: 26px; }
.b-rows { border-top: 1px solid var(--line-2); }
.b-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.2fr) 60px; gap: 8px 32px; align-items: start; padding: 38px 0 40px; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--nav-h) + 24px); }
.b-row::before { content: ''; position: absolute; z-index: -1; inset: -1px -28px; border-radius: 22px; background: var(--navy); opacity: 0; transform: scaleY(.92); transform-origin: 50% 100%; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.b-row:hover::before, .b-row:target::before { opacity: 1; transform: none; }
.b-n { padding-top: 12px; font-family: var(--f-m); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--blue); transition: color .4s; }
.b-row h3 { font-size: clamp(2rem, 4.4vw, 3.9rem); font-weight: 300; line-height: .98; letter-spacing: -.05em; color: var(--navy); transition: color .4s, transform .6s var(--ease); }
.b-d { padding-top: 8px; max-width: 54ch; }
.b-d p { font-size: 16.5px; line-height: 1.55; color: var(--text-2); transition: color .4s; }
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b-tags li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font-family: var(--f-m); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); transition: color .4s, border-color .4s; }
.b-fine { margin-top: 14px; font-size: 13px !important; }
.b-ic { justify-self: end; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .4s, transform .6s var(--ease), color .4s; }
.b-ic .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.b-row:hover h3, .b-row:target h3 { color: #fff; transform: translateX(8px); }
.b-row:hover .b-n, .b-row:target .b-n { color: var(--blue-light); }
.b-row:hover .b-d p, .b-row:target .b-d p { color: var(--soft); }
.b-row:hover .b-tags li, .b-row:target .b-tags li { color: #fff; border-color: rgba(255, 255, 255, .3); }
.b-row:hover .b-ic, .b-row:target .b-ic { background: var(--blue); transform: rotate(-8deg) scale(1.06); }
@media (max-width: 960px) {
  .b-row { grid-template-columns: 44px minmax(0, 1fr) 52px; padding: 30px 0 32px; }
  .b-d { grid-column: 2 / -1; padding-top: 0; }
  .b-ic { grid-column: 3; grid-row: 1; width: 48px; height: 48px; }
  .b-row::before { inset: -1px -14px; }
}

/* ---------- aviso: equipo existente ---------- */
.b-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: clamp(40px, 5vw, 64px); padding: 28px 32px; border-radius: 26px; background: var(--gray); border: 1px solid var(--line); }
.b-note-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.b-note-ic .ic { width: 24px; height: 24px; stroke-width: 1.7; }
.b-note h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.b-note p { margin-top: 6px; max-width: 62ch; font-size: 15.5px; color: var(--text-2); }
@media (max-width: 860px) { .b-note { grid-template-columns: auto minmax(0, 1fr); padding: 24px; } .b-note .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .b-note { grid-template-columns: minmax(0, 1fr); } .b-note-ic { width: 48px; height: 48px; } }

/* ---------- contacto sobre Marino ---------- */
.b-contact { background: var(--navy); }
.b-contact .contact-copy .lead { color: var(--soft); }
.b-contact .contact-copy .eyebrow { color: var(--soft); }
.b-contact .contact-copy .phone { margin-top: 32px; }
.b-contact .card-form { border-color: transparent; box-shadow: 0 50px 100px -40px rgba(2, 8, 22, .8); }

/* ---------- pie ---------- */
.b-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 44px; border-bottom: 1px solid var(--line-w); }
.b-foot img { width: 240px; height: auto; }
.b-foot ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.b-foot a { font-size: 15px; color: var(--soft); transition: color .25s; }
.b-foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .b-glow { animation: none; } .b-totem, .b-call { transition: none; } }
