/* Naxo Studios — hoja de estilos
   Concepto: la página es una superficie fracturada. Los cortes diagonales
   entre secciones imitan los cortes del logotipo; el naranja se reserva
   para el fragmento del logo y para la acción principal. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlowcond-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlowcond-700.woff2") format("woff2"); }

:root {
  --concrete: #e9ebee;
  --ink: #141a24;
  --steel: #475162;        /* texto secundario sobre hormigón */
  --steel-light: #a8b1bf;  /* texto secundario sobre tinta */
  --line: #c4cad3;
  --line-dark: #2b3444;
  --orange: #e8620c;
  --orange-light: #ff8a3d;

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --cut: clamp(32px, 5vw, 72px);
  --space: clamp(80px, 10vw, 136px);
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--ink); }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, footer :focus-visible { outline-color: var(--concrete); }
[id] { scroll-margin-top: 88px; }
::selection { background: var(--orange); color: var(--ink); }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--concrete); padding: 10px 16px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h3 { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34em; color: var(--steel); text-wrap: pretty; }
.on-ink .lead { color: var(--steel-light); }
.num { font-variant-numeric: tabular-nums; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--concrete); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; line-height: 1; }
.brand img { width: 34px; height: 34px; }
.brand small { font-weight: 600; font-size: 0.62em; letter-spacing: 0.5em; color: var(--steel); margin-left: 8px; }
nav { display: flex; gap: clamp(16px, 3vw, 36px); min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }

/* Selector de idioma */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 0.95rem; user-select: none; transition: border-color 0.15s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 11rem; margin: 0; padding: 6px; list-style: none; background: var(--concrete); border: 1.5px solid var(--ink); border-radius: 2px; }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 1rem; }
.lang a:hover { background: var(--ink); color: var(--concrete); }
.lang a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }

/* Secciones con corte diagonal */
.cut { position: relative; margin-top: calc(var(--cut) * -1); padding: calc(var(--space) + var(--cut)) 0 var(--space); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.on-ink { background: var(--ink); color: var(--concrete); }
.on-concrete { background: var(--concrete); color: var(--ink); }

/* Portada */
.hero { padding: clamp(48px, 8vw, 104px) 0 calc(var(--space) + var(--cut) * 0.4); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 2px; font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--ink); background: transparent; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--ink); color: var(--concrete); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--concrete); }
.on-ink .btn { border-color: var(--concrete); color: var(--concrete); }
.on-ink .btn:hover { background: var(--concrete); color: var(--ink); }
.on-ink .btn.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.on-ink .btn.primary:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--ink); }

/* Marca fracturada (el momento memorable) */
.mark { width: 100%; max-width: 460px; justify-self: end; overflow: visible; }
.mark g { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); animation: assemble 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.mark polygon { fill: var(--ink); }
.mark .orange polygon { fill: var(--orange); }
.mark g:nth-child(1) { --dx: -22; --dy: -30; animation-delay: 0.05s; }
.mark g:nth-child(2) { --dx: -30; --dy: 24; animation-delay: 0.12s; }
.mark g:nth-child(3) { --dx: 8; --dy: -38; animation-delay: 0.19s; }
.mark g:nth-child(5) { --dx: 30; --dy: -26; animation-delay: 0.26s; }
.mark g:nth-child(6) { --dx: 26; --dy: 34; animation-delay: 0.33s; }
.mark g:nth-child(4) { --dx: 34; --dy: 40; animation-delay: 0.7s; animation-duration: 0.7s; }
@keyframes assemble {
  from { translate: calc(var(--dx) * 1px) calc(var(--dy) * 1px); opacity: 0; }
  to { translate: 0 0; opacity: 1; }
}
@media (hover: hover) {
  .mark:hover g { transform: translate(calc(var(--dx) * 0.16px), calc(var(--dy) * 0.16px)); }
}

/* Fracture Tool */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fracture h2 { margin-bottom: 24px; }
.fracture .actions { margin-top: 36px; }

.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 24px; }
.facts strong { font-weight: 600; }
.facts span { color: var(--steel-light); }

.bench { margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line-dark); padding-top: 40px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.bench h3 { margin-bottom: 12px; }
.bench p { color: var(--steel-light); max-width: 30em; }
.bars { display: grid; gap: 22px; align-content: center; margin: 0; padding: 0; list-style: none; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 1rem; margin-bottom: 8px; }
.bar-label b { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.bar-track { height: 14px; background: var(--line-dark); }
.bar-fill { height: 100%; background: var(--steel-light); }
.bar-fill.fast { background: var(--orange); min-width: 4px; }

.editions { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.edition { display: flex; flex-direction: column; gap: 20px; }
.edition img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.edition .price { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.edition ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.edition li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--steel-light); }
.edition .btn { align-self: flex-start; margin-top: auto; }

/* SNotes AI */
.snotes h2 { margin-bottom: 24px; }
.snotes .status { margin-top: 28px; font-weight: 600; }
.snotes .actions { margin-top: 20px; }
.points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.points li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 24px; }
.points strong { font-weight: 600; }
.points span { color: var(--steel); }

/* Cierre */
.closing h2 { margin-bottom: 20px; }
.mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.1; overflow-wrap: anywhere; margin-bottom: 20px; }
.closing .actions { margin-top: 4px; }

footer { background: var(--ink); color: var(--steel-light); font-size: 0.95rem; padding: 0 0 40px; }
.banner { width: 100%; height: auto; margin-top: clamp(48px, 6vw, 88px); border-radius: 2px; }
footer.cut { padding: calc(var(--cut) + 56px) 0 40px; }
h2 + .lead { margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--line-dark); padding-top: 28px; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--concrete); }

/* Página legal */
.legal { padding: clamp(40px, 7vw, 88px) 0 var(--space); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); margin-bottom: 16px; }
.legal h2 { font-size: 1.9rem; margin: 48px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { margin-bottom: 14px; text-wrap: pretty; }
.legal .meta { color: var(--steel); font-size: 0.98rem; margin-bottom: 36px; }
.legal hr { border: 0; border-top: 1px solid var(--ink); margin: 72px 0 40px; }
.legal #english { font-size: 2.6rem; margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 860px) {
  .hero .wrap, .split, .bench, .editions { grid-template-columns: 1fr; }
  .mark { max-width: 132px; justify-self: start; order: -1; }
  .facts li, .points li { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .lang summary { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lang summary { transition: none; }
  .mark g { animation: none; transition: none; }
  .btn { transition: none; }
}
