/* Strata Studio's — estilos compartidos.
   Concepto: estudio minimalista con un guiño técnico (pestañas, cursor, terminal puntual).
   Negro del logo, rojo como único acento, fotos en blanco y negro que recuperan color al pasar el ratón. */
:root {
  --ink: #060505;
  --ink-2: #0e0c0c;
  --ink-3: #161212;
  --line: #241e1e;
  --line-2: #3a3030;
  --red: #f41c12;
  --paper: #f5f2f1;
  --mute: #a39a98;
  --dim: #6e6563;
  --glow: rgba(244, 28, 18, .08);
  --grid: rgba(245, 242, 241, .045);
  --glass: rgba(6, 5, 5, .82);
  --ok: #3ccf6e;
  --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
main { flex: 1; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Fondo: rejilla de puntos y foco que sigue al ratón */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(600px circle at var(--mx, 75%) var(--my, 15%), var(--glow), transparent 60%), radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: auto, 28px 28px; }

/* Tipografía */
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; }
h1 em, h2 em { font-style: normal; font-weight: 500; color: var(--red); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .015em; }
h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: .02em; }
p { margin: 0; }
.lead { font-size: 1.12rem; color: var(--mute); max-width: 58ch; }
.kicker { font: 500 12px var(--mono); color: var(--red); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--paper); }
.cursor { display: inline-block; width: .45em; height: .82em; margin-left: .12em; background: var(--red); vertical-align: -.04em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border: 0; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.btn-red { background: var(--red); color: var(--paper); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-inline: 32px; }
.btn-red:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera con pestañas */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: stretch; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand svg { width: 22px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 400; letter-spacing: .18em; font-size: 14px; white-space: nowrap; }
.tabs { display: flex; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; padding: 0 15px; font: 400 14px var(--body); color: var(--mute); text-decoration: none; position: relative; white-space: nowrap; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab:hover { color: var(--paper); }
.tab:hover::after { transform: scaleX(.4); }
.tab[aria-current="page"] { color: var(--paper); }
.tab[aria-current="page"]::after { transform: scaleX(1); }
.tab.cta { color: var(--paper); font-weight: 500; }
@media (max-width: 960px) {
  .bar { flex-wrap: wrap; gap: 0; }
  .brand { padding-block: 10px; }
  .tabs { margin-left: -15px; width: calc(100% + 15px); border-top: 1px solid var(--line); min-height: 46px; }
}

/* Cabecera de página */
.page-head { padding-block: 72px 48px; display: grid; gap: 22px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); animation: rise .9s var(--ease) both; }
.page-head .lead { animation: rise .9s var(--ease) .1s both; }
@keyframes rise { from { transform: translateY(16px); } }

/* Secciones */
.block { padding-block: 80px; }
.block.line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }

/* Fotos */
.ph { position: relative; overflow: hidden; background: var(--ink-3); margin: 0; min-width: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08) brightness(.75); transform: scale(1.03); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.ph:hover img { filter: grayscale(.1) contrast(1.02) brightness(.9); transform: scale(1.07); }
.ph::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 64px; height: 3px; background: var(--red); }
.ph figcaption { position: absolute; z-index: 1; left: 0; bottom: 0; padding: 10px 14px; font: 400 12px var(--mono); color: var(--paper); background: linear-gradient(transparent, rgba(0,0,0,.6)); width: 100%; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.band { aspect-ratio: 21 / 8; }
@media (max-width: 700px) { .ph.band { aspect-ratio: 16 / 10; } }

/* Ventanas (terminal, chat) */
.win { background: var(--ink-2); border: 1px solid var(--line); min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--dim); }
.win-bar i { width: 10px; height: 10px; background: var(--line-2); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.win-bar i:first-child { background: var(--red); }
.win-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Aparición al hacer scroll (solo desplazamiento: el contenido siempre es legible) */
.rv { transition: transform .8s var(--ease); }
.rv.pre { transform: translateY(26px); }
.swap { animation: swap .45s var(--ease) both; }
@keyframes swap { from { transform: translateY(10px); opacity: .2; } }

/* Llamada final común */
.cta-band { border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.foot-top p { color: var(--mute); font-size: 15px; max-width: 34ch; margin-top: 14px; }
.foot h4 { margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot ul a { text-decoration: none; color: var(--mute); transition: color .2s; }
.foot ul a:hover { color: var(--paper); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-block: 16px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--dim); }
.foot-bottom .live { display: flex; align-items: center; gap: 8px; }
.foot-bottom .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }

/* Utilidades */
.chip { font: 500 13px var(--body); color: var(--paper); background: transparent; border: 1px solid var(--line-2); padding: 8px 12px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--red); background: var(--ink-3); transform: translateY(-1px); }
.chip:disabled { opacity: .35; cursor: default; transform: none; }
.copy { font: 400 12px var(--mono); color: var(--mute); background: transparent; border: 1px solid var(--line-2); padding: 4px 10px; cursor: pointer; }
.copy:hover { color: var(--paper); border-color: var(--paper); }
.dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Barra de promoción */
.promo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 9px 16px; background: var(--red); color: var(--paper); text-decoration: none; font-size: 14px; position: relative; z-index: 21; }
.promo-bar b { font-weight: 600; }
.promo-tag { font: 500 11px var(--mono); letter-spacing: .14em; background: var(--ink); padding: 3px 9px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.promo-cd { font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.promo-go { font-family: var(--display); font-weight: 500; letter-spacing: .1em; font-size: 12.5px; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.promo-bar:hover .promo-go { border-bottom-color: transparent; }
@media (max-width: 600px) { .promo-go { display: none; } .promo-bar { font-size: 13px; } }
s { color: var(--dim); text-decoration-thickness: 1px; }

/* Selector de moneda */
.cur-sel { display: inline-flex; border: 1px solid var(--line-2); }
.cur-sel button { all: unset; cursor: pointer; font: 500 12px var(--mono); letter-spacing: .08em; padding: 8px 12px; color: var(--mute); }
.cur-sel button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.cur-sel button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
