/* Shared frame. Scene-specific composition stays with its own module. */
@font-face {
  font-family: FlowHost;
  src: url('/public/fonts/HostGrotesk.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: FlowBricolage;
  src: url('/public/fonts/BricolageGrotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: FlowEditorial;
  src: url('/public/fonts/Fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: SoftwareInstrument;
  src: url('/public/fonts/InstrumentSans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f6f4ed;
  --ink: #202523;
  --blue: #284bd8;
  --orange: #fa6937;
  --gutter: clamp(22px, 4.5vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color: var(--ink);
  background: var(--paper);
  font-family: FlowHost, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height, 64px); }
/* Keyboard focus must reach its destination immediately, even across long scenes. */
html:has(:focus-visible) { scroll-behavior: auto; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 18px; z-index: 100; padding: 14px 18px; background: var(--paper); }
.skip:focus { top: 10px; }
.route-notice { position: fixed; z-index: 45; left: 50%; top: calc(var(--nav-height, 64px) + 16px); transform: translateX(-50%); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 20px; padding: 14px 18px; border: 1px solid #20252340; background: var(--paper); color: var(--ink); font-size: 15px; box-shadow: 0 4px 16px #20252312; }
.route-notice button { border: 0; border-bottom: 1px solid currentColor; background: none; white-space: nowrap; padding: 8px 0; }
body > header { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: env(safe-area-inset-top); background: var(--paper); border-bottom: 1px solid #20252326; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px var(--gutter); min-height: 64px; }
.brand { white-space: nowrap; }
#pages { display: flex; align-items: center; gap: 28px; }
#pages > a { display: flex; align-items: center; min-height: 44px; position: relative; white-space: nowrap; font-size: 15px; }
#pages > a[aria-current='page']::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: 2px; background: var(--orange); }
#pages .nav-consult { gap: 18px; padding-left: 28px; border-left: 1px solid #20252340; color: #a8300e; }
#sections { display: none; }
#blank { overflow-anchor: none; }
body[data-page]:not([data-page='inicio']) #opening { display: none; }
body[data-page]:not([data-page='inicio']) #blank { padding-top: var(--nav-height, 64px); }
#opening { height: 100svh; min-height: 360px; position: relative; overflow: hidden; background: var(--film-bg, var(--paper)); }
.film { position: absolute; inset: var(--nav-height,64px) 0 0; overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.film video.active { opacity: 1; }
.film video[data-id='04'] { object-fit: cover; }
.film video[data-id='09'] { object-fit: fill; }
#motion { position: absolute; z-index: 2; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); min-height: 44px; padding: 9px 15px; border: 1px solid #20252340; border-radius: 24px; background: #f6f4edef; font-size: 12px; }
#motion > span { margin-left: 9px; }
#status { position: absolute; bottom: 75px; left: 20px; right: 20px; font-size: 13px; text-align: center; background: #f6f4edef; padding: 12px; }
.opening-next { position: absolute; left: var(--gutter); bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 24px; min-height: 44px; padding: 10px 15px; border: 1px solid #20252340; border-radius: 24px; background: #f6f4edef; font-size: 12px; }
.wheel-actions .service-more { background: transparent; color: var(--ink); border: 1px solid #20252340; }
.home-service-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 26px var(--gutter) 52px; background: var(--paper); }
.home-service-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 48px; padding: 14px 21px; border: 1px solid var(--ink); border-radius: 30px; background: var(--ink); color: var(--paper); font-size: 15px; }
.home-service-links .service-more { background: transparent; color: var(--ink); border-color: #20252350; }
@media (max-width: 700px) {
  .top { gap: 8px; padding: 6px 12px; min-height: 56px; }
  #pages { gap: 6px; flex: 1; justify-content: flex-end; }
  #pages > a { font-size: 12px; min-width: 44px; justify-content: center; padding: 0 3px; }
  #pages .nav-consult { display: none; }
  .opening-next { left: 12px; gap: 15px; padding: 9px 12px; font-size: 11px; }
  .home-service-links { gap: 10px; padding-block: 20px 35px; }
  .home-service-links a { font-size: 14px; padding: 12px 18px; }
}
@media (min-width: 351px) and (max-width: 480px) {
  header .brand.editorial-brand { flex: 0 0 76px; width: 76px; }
  header .editorial-brand .brand-word { width: 76px; }
  header .editorial-brand .brand-letter { font-size: 23px; }
  #pages { gap: 3px; }
}
@media (max-width: 374px) and (min-width: 351px) {
  .top { padding-inline: 10px; gap: 6px; }
  header .brand.editorial-brand { flex-basis: 68px; width: 68px; }
  header .editorial-brand .brand-word { width: 68px; }
  header .editorial-brand .brand-letter { font-size: 21px; }
  #pages { gap: 2px; }
}
@media (max-width: 350px) {
  .top { flex-wrap: wrap; gap: 0; padding: 3px 12px 0; }
  header .brand.editorial-brand { flex: 0 0 100%; width: 100%; height: 39px; }
  header .editorial-brand .brand-word { width: 76px; height: 39px; }
  header .editorial-brand .brand-letter { height: 39px; font-size: 23px; }
  #pages { flex: 0 0 100%; width: 100%; justify-content: space-between; gap: 0; }
  #pages > a { font-size: 12px; padding-inline: 4px; }
}
@media (orientation: portrait) and (max-height: 680px) { .film video[data-id='04'] { object-fit: contain; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.motion-symbol--pause::before { content: 'Ⅱ'; }
.motion-symbol--play::before { content: '▶'; }
.motion-symbol--down::before { content: '↓'; }
