/* Kit "BFS Lounge Ship" — código propio que reproduce los patrones de bluefrontshibaura.com/lp/bfs-lounge-ship.
   Tokens: cambia --brand (azul de marca), --tint (tinte del video), fuentes y --paper por cliente. */
:root {
  --brand: #003da5;            /* azul de marca: líneas bajo títulos, subtítulos, botones, footer */
  --tint: rgba(7, 102, 168, .67); /* capa sobre el video con mix-blend-mode: color */
  --paper: #fff; --paper-2: #e3e3e3; --paper-3: #f3f6f9; --ink: #111; --mut: #6b6b6b;
  --font-head: "Barlow Condensed", "Oswald", sans-serif;   /* titulares en mayúsculas, condensada */
  --font-body: "Noto Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: min(12.5vw, 240px);   /* respiro vertical de cada sección (240px a 1920) */
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.9 var(--font-body); color: var(--ink); letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.u-pc { display: block; } .u-sp { display: none; }
@media (max-width: 767px) { .u-pc { display: none; } .u-sp { display: block; } }

/* ---------- Header transparente fijo ---------- */
.b-header { position: fixed; inset: 0 0 auto; z-index: 99; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 min(3vw, 48px); color: #fff; mix-blend-mode: difference; }
.b-header__logo { font: 600 20px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.b-header__nav { display: flex; gap: 28px; font: 500 13px var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.b-header__nav a { text-decoration: none; position: relative; }
.b-header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.b-header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.b-burger { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; }
@media (max-width: 767px) { .b-header__nav { display: none; } .b-burger { display: block; } .b-header.is-open .b-header__nav { display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto; padding: 24px; background: #000; mix-blend-mode: normal; } }

/* ---------- Video de fondo fijo y teñido (el "oleaje") ---------- */
.b-backmov { position: fixed; inset: 0; height: 100vh; z-index: -1; }
.b-backmov video, .b-backmov img { width: 100%; height: 100%; object-fit: cover; }
.b-backmov::after, .b-stickymov::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: color; }

/* ---------- Hero (MV): objeto recortado con zoom lento + título que sube + línea de scroll ---------- */
.b-mv { position: relative; height: 100vh; overflow: hidden; color: #fff; }
.b-mv__obj { position: absolute; inset: 0; z-index: 0; }
.b-mv__obj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform-origin: center bottom; animation: b-zoom 15s linear both; }
.b-mv__title { position: absolute; left: 0; right: 0; bottom: 10vw; text-align: center; z-index: 1; animation: b-fadeup 1.5s cubic-bezier(.25, 1, .5, 1) .5s both; }
.b-mv__kicker { display: block; font: 500 clamp(14px, 1.6vw, 28px)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.b-mv__name { margin: 0; font: 600 clamp(48px, 8.6vw, 168px)/.9 var(--font-head); letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.b-mv__scroll { position: absolute; left: 50%; bottom: 0; width: 1px; height: min(8vw, 120px); background: rgba(255,255,255,.3); overflow: hidden; z-index: 1; }
.b-mv__scroll::before { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: b-line 2s ease-in-out infinite; }
@keyframes b-zoom { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes b-fadeup { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes b-line { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Títulos: etiqueta EN letra por letra + línea que crece + subtítulo de color ---------- */
.b-hd { text-align: center; }
.b-hd__en { position: relative; display: inline-block; margin: 0; padding-bottom: .25em; font: 600 clamp(22px, 2.1vw, 40px)/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.b-hd__en::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 0; height: clamp(3px, .26vw, 5px); background: var(--brand); transition: width 1s var(--ease) .4s; }
.b-hd__en span { display: inline-block; opacity: 0; transform: translateY(100%); transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(.8s + var(--i) * 40ms); }
.is-inview .b-hd__en::after, .b-hd__en.is-inview::after { width: 100%; }
.is-inview .b-hd__en span, .b-hd__en.is-inview span { opacity: 1; transform: none; }
.b-hd__sub { margin: 14px 0 0; font-size: clamp(18px, 1.67vw, 32px); line-height: 1.5; letter-spacing: .05em; color: var(--brand); }
.b-hd--white .b-hd__en, .b-hd--white .b-hd__sub { color: #fff; }
.b-lead { max-width: 46em; margin: 24px auto 0; text-align: center; font-size: clamp(14px, 1.04vw, 18px); }

/* ---------- Secciones ---------- */
.b-sec { position: relative; z-index: 10; padding-block: var(--pad); background: var(--paper); }
.b-sec--grey { background: var(--paper-2); } .b-sec--pale { background: var(--paper-3); }
.b-sec--clear { background: transparent; color: #fff; }   /* deja ver el video fijo */
.b-wrap { width: min(100% - 48px, 1100px); margin-inline: auto; }

/* ---------- Cinta de fotos infinita (marquee) ---------- */
.b-marquee { overflow: hidden; margin-top: min(4vw, 64px); padding-bottom: min(4.2vw, 80px); background: linear-gradient(transparent 50%, var(--paper) 100%); }
.b-marquee__track { display: flex; width: max-content; animation: b-loop 100s linear infinite; }
.b-marquee__track img { flex-shrink: 0; width: min(35.8vw, 688px); aspect-ratio: 3 / 2; object-fit: cover; margin-right: min(.63vw, 12px); }
@keyframes b-loop { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .b-marquee__track img { width: 72vw; } }

/* ---------- Momentos: paneles a pantalla completa que se apilan (sticky) ---------- */
.b-moment { position: sticky; top: 0; height: 100vh; z-index: 1; }
.b-moment__img { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; }
.b-moment__img img { width: 100%; height: 100%; object-fit: cover; }
.b-moment__img img:first-child { filter: saturate(.7) brightness(.55); }
.b-moment__text { position: absolute; inset: 0 50% 0 0; display: grid; place-content: center; color: #fff; opacity: var(--moment-opacity, 1); font-size: clamp(15px, 1.25vw, 24px); line-height: 2.2; letter-spacing: .12em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.b-moment__text--vertical { writing-mode: vertical-rl; }       /* como el original (japonés); en español usar horizontal */
.b-moment__text p { margin: 0; max-width: 18em; }
.b-moment__text strong { display: block; font: 600 clamp(28px, 2.6vw, 48px)/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; }
@media (max-width: 767px) { .b-moment__img { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } .b-moment__text { inset: 0 0 50% 0; } }

/* ---------- Tarjetas de historia (Day / Sunset / Night) ---------- */
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: min(2vw, 32px); margin-top: min(4vw, 64px); }
.b-card { text-align: center; font-weight: 500; }
.b-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.b-card__label { display: inline-block; margin-top: 20px; padding: 6px 22px; border: 1px solid var(--brand); border-radius: 4px; color: var(--brand); font: 600 14px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.b-card__label small { display: block; font: 400 12px var(--font-body); letter-spacing: .05em; }
.b-card__text { margin-top: 14px; font-size: 15px; font-weight: 400; }
@media (max-width: 767px) { .b-cards { grid-template-columns: 1fr; } }

/* ---------- Botón píldora de marca ---------- */
.b-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 36px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font: 600 15px var(--font-head); letter-spacing: .1em; text-transform: uppercase; transition: transform .3s var(--ease), box-shadow .3s; }
.b-btn::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .3s var(--ease); }
.b-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 35%, transparent); }
.b-btn:hover::after { transform: translateX(4px); }
.b-center { text-align: center; margin-top: min(4vw, 56px); }

/* ---------- Mapa / ruta con pines que aparecen ---------- */
.b-map { position: relative; margin-top: min(4vw, 56px); }
.b-map img { width: 100%; }
.b-pin { position: absolute; transform: translate(-50%, -50%) scale(.6); opacity: 0; padding: 4px 10px; border-radius: 4px; background: var(--brand); color: #fff; font: 600 12px var(--font-head); letter-spacing: .08em; white-space: nowrap; transition: .8s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.b-pin::before { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; border-radius: 50%; background: #e8562a; border: 2px solid #fff; transform: translate(-50%, 6px); }
.is-inview .b-pin { opacity: 1; transform: translate(-50%, -50%); }

/* ---------- Ficha técnica: objeto con cotas ---------- */
.b-spec { position: relative; margin: min(4vw, 56px) auto 0; width: min(100%, 900px); }
.b-spec img { width: 100%; }
.b-dim { position: absolute; display: flex; align-items: center; justify-content: center; color: var(--brand); font: 600 13px var(--font-head); }
.b-dim--h { left: 0; right: 0; bottom: -36px; border-top: 1px solid var(--brand); }
.b-dim--h::before, .b-dim--h::after { content: ""; position: absolute; top: -8px; width: 1px; height: 16px; background: var(--brand); } .b-dim--h::before { left: 0; } .b-dim--h::after { right: 0; }
.b-dim--h span { background: var(--paper); padding: 0 10px; transform: translateY(-50%); }

/* ---------- Grilla de fotos con etiqueta (interior) ---------- */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: min(2vw, 28px); margin-top: min(4vw, 56px); }
.b-grid figure { margin: 0; }
.b-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.b-grid .b-ph { overflow: hidden; }
.b-grid figure:hover img { transform: scale(1.04); }
.b-grid figcaption { margin-top: 8px; padding-left: 10px; border-left: 4px solid var(--brand); font: 600 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 767px) { .b-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Iconos de servicios en recuadros ---------- */
.b-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.b-icons li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #cfd6dc; font-size: 13px; line-height: 1.4; }
.b-icons svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.b-icons { padding: 0; }
@media (max-width: 767px) { .b-icons { grid-template-columns: 1fr 1fr; } }

/* ---------- Galería sobre video pegado (sticky) + lightbox ---------- */
.b-gallery { position: relative; z-index: 10; background: var(--paper); }
.b-stickymov { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: 0; }
.b-stickymov video, .b-stickymov img { width: 100%; height: 100%; object-fit: cover; }
.b-gallery__content { position: relative; z-index: 1; padding-block: var(--pad); }
.b-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: min(1.6vw, 24px); margin-top: min(4vw, 56px); }
.b-thumbs button { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: #000; }
.b-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.b-thumbs button:hover img { transform: scale(1.05); opacity: .85; }
.b-thumbs button::after { content: "+"; position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border: 1px solid #fff; border-radius: 50%; color: #fff; font: 400 16px/20px var(--font-body); }
@media (max-width: 767px) { .b-thumbs { grid-template-columns: 1fr 1fr; } }
.b-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0,0,0,.88); opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.b-lightbox.is-open { opacity: 1; visibility: visible; }
.b-lightbox img { max-width: min(90vw, 1200px); max-height: 80vh; object-fit: contain; transition: opacity .3s; }
.b-lightbox__bar { position: absolute; bottom: 4vh; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 28px; color: #fff; font: 600 18px var(--font-head); letter-spacing: .08em; }
.b-lightbox button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.b-lightbox__close { position: absolute; top: 3vh; right: 3vw; }

/* ---------- Carrusel centrado con contador (móvil, o en desktop dentro de una sección) ---------- */
.b-carousel { position: relative; overflow: hidden; margin-top: 32px; }
.b-carousel__track { display: flex; gap: 10px; transition: transform .6s var(--ease); }
.b-carousel__track > * { flex: 0 0 min(89vw, 685px); opacity: .6; transition: opacity .3s; }
.b-carousel__track > .is-active { opacity: 1; }
.b-carousel__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.b-carousel__nav { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 18px 24px 0; font: 600 18px var(--font-head); letter-spacing: .05em; }
.b-carousel__nav button { background: none; border: 0; font-size: 22px; cursor: pointer; color: inherit; }

/* ---------- Pestañas (accesos) ---------- */
.b-tabs { display: flex; justify-content: center; gap: 40px; margin-top: 40px; border-bottom: 1px solid #cfd6dc; }
.b-tabs button { background: none; border: 0; padding: 12px 0; font: 600 13px var(--font-head); letter-spacing: .1em; cursor: pointer; color: var(--mut); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.b-tabs button.is-active { color: var(--brand); border-color: var(--brand); }
.b-tabpanel { display: none; padding-top: 32px; } .b-tabpanel.is-active { display: block; }

/* ---------- Tarjetas informativas (spec) ---------- */
.b-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.b-info div { background: #fff; padding: 22px; font-size: 13px; line-height: 1.7; }
.b-info b { display: block; margin-bottom: 8px; font: 600 14px var(--font-head); letter-spacing: .06em; }
@media (max-width: 767px) { .b-info { grid-template-columns: 1fr; } }

/* ---------- Footer: banda de marca con el nombre gigante ---------- */
.b-footer { position: relative; z-index: 10; background: var(--brand); color: #fff; padding: min(16vw, 280px) min(3vw, 48px) 0; }
.b-footer__name { margin: 0; font: 600 clamp(48px, 10vw, 200px)/.85 var(--font-head); text-transform: uppercase; letter-spacing: -.005em; }
.b-footer__bar { margin: min(3vw, 48px) calc(-1 * min(3vw, 48px)) 0; padding: 18px min(3vw, 48px); background: #fff; color: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }

/* ---------- Aparición genérica al entrar en pantalla ---------- */
.js-inview.b-fade { opacity: 0; transform: translateY(30px); transition: 1s var(--ease); }
.js-inview.b-fade.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .b-hd__en span, .js-inview.b-fade, .b-pin { opacity: 1 !important; transform: none !important; } }
