/* ==========================================================================
   OptiXtream — Modelo 03B
   Dirección: Monocromo Suizo.
   Tipografía: Switzer (Fontshare).
   Firma: grilla de 12 columnas visible + tabla de contenidos tipográfica.
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Tokens Suizos ---- */
:root {
  --bg: #FFFFFF;
  --bg-1: #F5F5F4;
  --bg-2: #EBEBEA;
  --surface: #F5F5F4;
  --surface-2: #EBEBEA;

  --accent: #E5322D;
  --accent-soft: #F05B52;
  --accent-2: #B71C1C;

  --text: #0A0A0A;
  --text-2: #555555;
  --text-3: #8A8A8A;
  --border: rgba(10, 10, 10, 0.10);
  --border-strong: rgba(10, 10, 10, 0.22);

  --ff-display: 'Switzer', system-ui, -apple-system, sans-serif;
  --ff-body: 'Switzer', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0px;
  --shadow: 0 18px 40px -18px rgba(10, 10, 10, 0.10);

  --max-w: 1160px;
  --page-pad: clamp(1rem, 5vw, 3rem);
  --gutter: clamp(0.75rem, 2vw, 1.5rem);
  --toc-w: 220px;
}

/* ---- Grano fino (del kit) ---- */
.u-grain {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Grilla visible: la firma ---- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  padding: 0 var(--page-pad);
}

.grid-lines {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.grid-lines span {
  display: block;
  height: 100%;
  border-right: 1px solid var(--text);
  opacity: 0.08;
}

.grid-lines span:first-child {
  border-left: 1px solid var(--text);
}

/* ---- Tabla de contenidos ---- */
.toc {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--toc-w);
  height: 100dvh;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.toc-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.toc-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--text);
}

.toc-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.toc-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
}

.toc-word {
  line-height: 1.05;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.toc-list a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.toc-list a:hover,
.toc-list a:focus-visible { color: var(--text); }

.toc-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
}

.toc-list a:hover .toc-num,
.toc-list a:focus-visible .toc-num { color: var(--accent); }

.toc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc-cta:hover,
.toc-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---- Layout principal ---- */
.dossier {
  margin-left: var(--toc-w);
}

.dossier-section {
  padding: clamp(3.25rem, 7vw, 5.5rem) var(--page-pad);
}

.dossier-section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-muted {
  background: var(--bg-1);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-num {
  grid-row: 1 / 3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  align-self: start;
  padding-top: 0.45rem;
}

.section-title {
  grid-column: 2;
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 22ch;
}

.section-lead {
  grid-column: 2;
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 50ch;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem var(--page-pad) 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-edition {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-left: auto;
}

.hero-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text-2);
  max-width: 55ch;
  margin-bottom: 2rem;
}

/* ---- CTA ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.cta-xl {
  padding: 1.3rem 2.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
}

@media (max-width: 720px) {
  .cta-xl {
    padding: 1.1rem 1.8rem;
    font-size: 0.85rem;
    width: 100%;
  }
}

/* ========================================================================== 
   CINEMA PASS — señal de emisión suiza y composición cinética
   ========================================================================== */
.hero-inner::before {
  content: 'BX / LIVE SIGNAL';
  position: absolute;
  right: 0;
  bottom: -4.2rem;
  font-size: clamp(3.5rem,8vw,7.5rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.07em;
  color: rgba(9,9,9,.025);
  white-space: nowrap;
  pointer-events: none;
}
.hero-meta::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero-title .line { position: relative; width: fit-content; }
.hero-title .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: .08em; background: var(--accent); transform-origin: left; animation: m03b-signal 1.15s .35s var(--ease) both; }
.section-head { position: relative; }
.section-head::before { content: ''; position: absolute; left: -1.5rem; top: .2rem; width: 4px; height: 42px; background: var(--accent); }
.price-card, .device-card { transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s cubic-bezier(.2,.8,.2,1), border-color .28s; }

@keyframes m03b-signal { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 720px) {
  .hero-inner::before { right: -2rem; bottom: -2rem; font-size: 3.2rem; }
  .section-head::before { left: -.75rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-title .accent::after { animation: none !important; } }

/* ---- Slideshow ---- */
.has-slideshow { position: relative; }

.bg-slideshow,
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.25) brightness(0.95);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.bg-slide.active { opacity: 0.16; }

.bg-overlay {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0.78) 100%);
  z-index: 1;
}

/* ---- Split ---- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.body-large {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 55ch;
}

.split-media {
  position: relative;
  margin: 0;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2) brightness(1.05);
}

.split-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-strong);
  background: var(--border);
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
}

.price-card.featured {
  background: var(--surface);
}

.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.price-flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}

.price-header {
  margin-bottom: 1.5rem;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

.price-body {
  flex: 1 1 auto;
}

.price-tag {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.price-dec {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}

.features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.features li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-2);
}

.features li:first-child {
  border-top: 1px solid var(--border);
}

.price-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.price-btn:hover,
.price-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---- Devices ---- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-strong);
  background: var(--border);
}

.device-card {
  position: relative;
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2) brightness(1.05);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}

.device-card:hover img,
.device-card:focus-within img { filter: grayscale(0%) contrast(1.15) brightness(1.05); transform: scale(1.02); }

.device-card figcaption {
  padding: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ---- FAQ ---- */
.accordion {
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-strong);
}

.accordion-item {
  border-bottom: 1px solid var(--border-strong);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.accordion-header:hover,
.accordion-header:focus-visible { color: var(--accent); }

.accordion-header .icon {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.accordion-item.open .icon { transform: rotate(90deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.accordion-item.open .accordion-body { max-height: 500px; }

.accordion-content {
  padding: 0 0 1.5rem;
  max-width: 70ch;
}

.accordion-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---- Support ---- */
.support-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.support-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-note {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.45;
}

.support-hours {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.support-cta {
  display: flex;
  justify-content: flex-end;
}

/* ---- Footer ---- */
.site-footer {
  margin-left: var(--toc-w);
  border-top: 1px solid var(--border-strong);
  padding: 2rem var(--page-pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.socials {
  display: flex;
  gap: 1.5rem;
}

.socials a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.socials a:hover,
.socials a:focus-visible { color: var(--accent); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---- Movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .bg-slide { opacity: 1 !important; transform: none !important; filter: none !important; }
  .bg-slide.active,
  .bg-slide { opacity: 0.12 !important; }
  .accordion-body { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --toc-w: 180px; }
  .toc { padding: 1.5rem 1rem; }
  .toc-word { display: none; }
  .pricing-grid,
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout,
  .support-layout { grid-template-columns: 1fr; }
  .support-cta { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --toc-w: 0px; }

  .toc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0.9rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
  }

  .toc-toggle { display: flex; }

  .toc-logo { margin-left: 0.75rem; }

  .toc-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.7rem;
  }

  .toc-list.is-open { display: flex; }

  .toc-word { display: inline; }

  .toc-cta { margin-left: auto; font-size: 0.65rem; padding: 0.6rem 0.9rem; }

  .dossier,
  .site-footer { margin-left: 0; }

  .hero { padding-top: 8rem; min-height: auto; }

  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .section-num { grid-row: auto; padding-top: 0; }
  .section-title { grid-column: 1; }
  .section-lead { grid-column: 1; }

  .pricing-grid,
  .device-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .toc-logo svg { width: 28px; height: 28px; }
  .toc-word { display: none; }
}

/* ========================================================================== 
   POWER PASS 2026 — Sistema suizo señalético / precisión industrial
   ========================================================================== */
:root {
  --bg: #FCFCFA;
  --bg-1: #F1F1EE;
  --bg-2: #E8E8E4;
  --text: #090909;
  --text-2: #454545;
  --text-3: #6C6C6C;
  --accent: #F02F2A;
  --border: rgba(9,9,9,.18);
}

.dossier { background: linear-gradient(90deg, rgba(240,47,42,.015), transparent 20%); }
.hero::after {
  content: '';
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: 7%;
  bottom: 9%;
  border: 1px solid rgba(240,47,42,.28);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero-title { letter-spacing: -.055em; }
.hero-title .accent { color: var(--accent); text-shadow: 8px 8px 0 rgba(240,47,42,.06); }
.cta { border: 2px solid var(--text); box-shadow: 7px 7px 0 var(--accent); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.cta:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--accent); }
.price-card, .device-card { border: 1px solid var(--border); box-shadow: 6px 6px 0 rgba(9,9,9,.08); }
.price-card:hover, .device-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 rgba(240,47,42,.22); }
.price-card.featured { border-color: var(--accent); box-shadow: 8px 8px 0 var(--accent); }
.accordion-item { border-left: 3px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease); }
.accordion-item:hover, .accordion-item.is-open { border-left-color: var(--accent); background: rgba(240,47,42,.035); }
.toc-cta { box-shadow: 4px 4px 0 var(--accent); }

@media (max-width: 720px) {
  .hero::after { width: 5rem; height: 5rem; right: -2rem; bottom: 5%; }
  .toc { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
}
