:root {
  --paper: #F1EDE4;
  --paper-2: #E4DED0;
  --paper-3: #D6CFBD;
  --ink: #17171A;
  --ink-2: #2B2B31;
  --accent: oklch(55% 0.17 21);
  --accent-deep: oklch(46% 0.165 21);
  --line: rgba(23, 23, 26, .16);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.label {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

/* ---------- barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .85rem var(--pad);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-rhino { width: 52px; height: auto; flex: none; }
.brand-rhino polygon { stroke: var(--accent); stroke-width: 1.3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.brand-name { font-weight: 600; font-stretch: 110%; letter-spacing: -.01em; }
.brand-name b { font-weight: 900; color: var(--accent-deep); }
.nav { display: flex; gap: 1.75rem; font-size: .95rem; }
.nav a { text-decoration: none; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-stretch: 105%; text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-big { min-height: 64px; padding: 1rem 2.5rem; font-size: 1.25rem; background: var(--accent-deep); color: #fff; }
.btn-big:hover { background: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--ink); }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; cursor: pointer; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent-deep); }

/* ---------- portada ---------- */
.hero {
  display: flex; align-items: center;
  min-height: calc(100svh - 66px);
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero-text { max-width: min(46rem, 62%); }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 6.2rem);
  font-weight: 900; font-stretch: 112%;
  line-height: .95; letter-spacing: -.035em;
  margin-bottom: 1.6rem;
}
.hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .04em; height: .16em;
  background: var(--accent); z-index: -1; opacity: .35;
  transform: skewX(-18deg);
}
.lead { max-width: 34rem; font-size: 1.2rem; color: var(--ink-2); margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; }
.scroll-hint {
  margin-top: 2.5rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
  transition: opacity .4s;
}
.scroll-hint.gone { opacity: 0; }

/* animal de fondo: queda fijo y se transforma con el scroll */
.origami-bg {
  position: fixed; z-index: 1; pointer-events: none;
  right: 2vw; top: 50%; transform: translateY(-46%);
  width: min(56vw, 860px); height: auto; overflow: visible;
}
.origami-bg polygon {
  stroke: var(--accent); stroke-width: 1.8px; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* capas: fondos de las secciones (abajo) < animal < textos y contenido (arriba) */
.hero-text, .section-head, .rubros, .split > *, .road, .steps, .contact > *, .foot > * { position: relative; z-index: 2; }

/* ---------- cinta ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span {
  font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .8rem 2rem; white-space: nowrap;
}
.ticker span::before { content: "◆"; color: var(--accent); margin-right: 2rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding: clamp(3.5rem, 9vw, 8rem) var(--pad); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 800; font-stretch: 108%; line-height: 1.02; letter-spacing: -.025em;
}
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 105%; letter-spacing: -.01em; }

/* rubros */
.rubros { border-top: 2px solid var(--ink); }
.rubros li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: baseline;
  padding: 1.6rem .5rem; border-bottom: 1px solid var(--line);
  transition: background .25s, padding-left .25s;
}
.rubros li:hover { background: var(--paper-2); padding-left: 1.25rem; }
.rubros .n { font-family: var(--mono); color: var(--accent-deep); font-size: 1.1rem; }
.rubros h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.rubros p { color: var(--ink-2); }
.rubro-open h3 { color: var(--accent-deep); }

/* rapiventa */
.dark { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.dark .label { color: var(--accent); }
.dark h2 { font-size: clamp(3rem, 7.2vw, 7rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.045em; line-height: .9; margin-bottom: 1rem; }
.dark .big { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; max-width: 26rem; }
.dark p { color: #cfcabd; max-width: 32rem; }
.dark h2, .dark p { text-shadow: 0 1px 16px rgba(23, 23, 26, .9); }
.dark .big { color: var(--paper); }
.dark .hero-actions { margin-top: 2rem; }
.dark .link-arrow:hover { color: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.shot {
  position: relative; aspect-ratio: 1400 / 736; background: var(--ink-2);
  width: 100%; max-width: 31rem; justify-self: end;
  border: 1px solid rgba(255,255,255,.15);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  display: grid; place-items: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* dos pantallas de RapiVenta: el panel atrás y la caja adelante */
.shots { position: relative; width: 100%; max-width: 34rem; justify-self: end; padding-bottom: 16%; }
.shots .shot { max-width: none; justify-self: auto; }
.shot-front {
  position: absolute; left: -9%; bottom: 0; width: 62%;
  border-color: rgba(255,255,255,.3);
}
.shot span { display: none; font-family: var(--mono); font-size: .8rem; color: #8d887b; }
.shot.is-empty img { display: none; }
.shot.is-empty span { display: block; }

/* en camino */
.road { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.road-item { padding: 2rem 0 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.road-item p { color: var(--ink-2); max-width: 28rem; }
.road-item h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-stretch: 110%; }
.tag { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; background: var(--accent); color: var(--ink); }
.tag-open { background: transparent; border: 1px solid var(--ink); }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.steps li { position: relative; padding-top: 5.5rem; }
.step-n {
  position: absolute; top: 0; left: 0;
  font-size: 7rem; font-weight: 900; font-stretch: 118%; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--ink-2); }

/* contacto: franja roja. El fondo va en un pseudo-elemento por debajo del animal,
   así el rinoceronte final se ve sobre el rojo y el texto queda encima de todo. */
.contact {
  position: relative;
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
  min-height: 90svh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: polygon(0 clamp(20px, 4vw, 60px), 100% 0, 100% 100%, 0 100%);
}
.contact > * { max-width: min(54rem, 62%); }
.contact .label { color: var(--ink); margin: 0; font-size: 1rem; }
.contact h2 { font-size: clamp(2.4rem, 6.4vw, 5.8rem); font-weight: 900; font-stretch: 112%; }
.contact .btn-big { background: var(--ink); color: var(--paper); min-height: 84px; padding: 1.2rem 3rem; font-size: 1.7rem; }
.contact .btn-big:hover { background: var(--paper); color: var(--ink); }
.phone { font-family: var(--mono); font-size: 1.7rem; }
.contact .small { font-size: 1.3rem; }
.small a { font-weight: 600; }

/* sobre el rojo, los contornos del origami pasan a negro para que se vean */
.origami-bg.sobre-rojo polygon { stroke: var(--ink); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.5rem var(--pad); background: var(--ink); color: #a8a396; font-size: .85rem;
}

/* whatsapp flotante */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--accent-deep); transform: scale(1.06); }

/* aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero-text, .contact > * { max-width: 100%; }
  .contact .btn-big { font-size: 1.25rem; min-height: 64px; padding: 1rem 2rem; }
  .phone { font-size: 1.2rem; }
  .contact .small { font-size: 1rem; }
  .shot-front { left: 0; }
  /* en el celular el animal va en una franja fija debajo de la cabecera,
     con fondo propio: el contenido pasa por debajo y nunca se mezcla con él */
  html { scroll-padding-top: calc(66px + 27svh); }
  .origami-bg {
    top: 66px; left: 0; right: 0; width: 100%; height: 27svh; transform: none; opacity: 1;
    background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; z-index: 15;
  }
  .hero { padding-top: calc(27svh + 1.5rem); min-height: 100svh; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); margin-bottom: 1rem; }
  .lead { font-size: 1.05rem; margin-bottom: 1.4rem; }
  .rubros li { grid-template-columns: 2.5rem 1fr; }
  .rubros li p { grid-column: 2; }
  .split, .road, .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .scroll-hint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* segundo producto: imagen a la izquierda y texto a la derecha */
.split + .split { margin-top: clamp(3.5rem, 9vw, 8rem); }
.dark .h-second {
  font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 900; font-stretch: 114%;
  letter-spacing: -.035em; line-height: .95; margin: 0 0 1rem;
}
.shot-wide { max-width: 34rem; justify-self: start; aspect-ratio: 1200 / 725; }
.shot-wide img { object-position: center; }

/* sobre las secciones oscuras el animal se oscurece, para que el texto claro se lea */
@media (min-width: 861px) {
  .origami-bg { transition: filter .4s, transform .5s ease, width .5s ease, right .5s ease, left .5s ease; }
  /* RapiVenta: el animal se corre a la izquierda para asomar al lado de las capturas */
  .origami-bg.rv { right: auto; left: 54vw; width: min(38vw, 620px); transform: translate(-50%, -46%); }
  /* En camino: más chico y junto al título de la sección */
  .origami-bg.ec { width: min(26vw, 380px); right: 5vw; transform: translateY(-50%); }
  .origami-bg.sobre-oscuro { filter: brightness(.8); }
}

/* lista de funciones del segundo producto */
.dark .feat { margin: 0 0 1.5rem; display: grid; gap: .55rem; max-width: 34rem; }
.dark .feat li { position: relative; padding-left: 1.4rem; color: #cfcabd; font-size: .98rem; line-height: 1.45; }
.dark .feat li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem;
  background: var(--accent); clip-path: polygon(0 100%, 0 0, 100% 50%); }
.tag-mini { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.35); color: #e8e3d6; vertical-align: middle; }

/* InmobiliariaApp: las pantallas van a la izquierda y la de adelante se corre hacia la derecha */
.split-2 .shots { justify-self: start; }
.split-2 .shot-front { left: auto; right: -9%; }
@media (max-width: 860px) { .split-2 .shot-front { right: 0; } }

/* capturas: al pasar el mouse se marcan las cuatro puntas con un trazo blanco de 4 px */
.shot { cursor: zoom-in; }
.shot:focus-visible { outline: none; }
.shot::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none; opacity: 0; transition: opacity .2s;
  --l: 30px; --g: 4px;
  background:
    linear-gradient(#fff, #fff) left top / var(--l) var(--g) no-repeat,
    linear-gradient(#fff, #fff) left top / var(--g) var(--l) no-repeat,
    linear-gradient(#fff, #fff) left bottom / var(--l) var(--g) no-repeat,
    linear-gradient(#fff, #fff) left bottom / var(--g) var(--l) no-repeat,
    linear-gradient(#fff, #fff) right bottom / var(--l) var(--g) no-repeat,
    linear-gradient(#fff, #fff) right bottom / var(--g) var(--l) no-repeat,
    /* arriba a la derecha la esquina está cortada en diagonal: el trazo se corre */
    linear-gradient(#fff, #fff) calc(100% - 34px) top / var(--l) var(--g) no-repeat,
    linear-gradient(#fff, #fff) right 34px / var(--g) var(--l) no-repeat;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

/* captura ampliada */
.lb { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .5rem; padding: 2.5rem 1rem 1rem; background: rgba(10, 10, 12, .9); }
.lb.open { display: grid; animation: lbEntra .22s ease; }
.lb-fig { margin: 0; display: grid; gap: .75rem; justify-items: center; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100svh - 7.5rem); width: auto; height: auto; box-shadow: 0 0 0 4px #fff; background: #17171a; }
.lb-fig figcaption { color: #cfcabd; font-family: var(--mono); font-size: .78rem; text-align: center; max-width: 60ch; }
.lb-btn { appearance: none; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1;
  width: 48px; height: 48px; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); outline: none; }
.lb-btn[hidden] { display: none; }
.lb-close { position: absolute; top: .75rem; right: .75rem; }
.lb-prev { grid-column: 1; } .lb-fig { grid-column: 2; } .lb-next { grid-column: 3; }
.lb-abierto { overflow: hidden; }
@keyframes lbEntra { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  .lb { grid-template-columns: minmax(0, 1fr); padding: 3.5rem .5rem 4.5rem; }
  .lb-fig { grid-column: 1; justify-self: stretch; width: 100%; overflow-x: auto; overflow-y: hidden; justify-items: start; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
  .lb-fig img { max-width: none; width: 185vw; max-height: none; }
  .lb-fig figcaption { position: sticky; left: 0; width: calc(100vw - 1rem); justify-self: start; }
  .lb-fig figcaption::after { content: " · deslizá para ver más"; color: #E0A0A6; }
  .lb-prev, .lb-next { position: absolute; bottom: .75rem; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { left: calc(50% + 8px); grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .lb.open { animation: none; } .shot::after { transition: none; } }

/* BarberFlow: capturas de celular, en vertical, con rótulo de "vista de diseño" */
.shots-phones { display: flex; flex-wrap: wrap; gap: .9rem; padding-bottom: 0; max-width: none; justify-self: auto; }
.shots-phones .shot { width: 10.5rem; aspect-ratio: 634 / 925; }
.shots-phones .shot img { object-position: top; }
.shot .shot-label {
  display: block;
  position: absolute; left: .5rem; bottom: .5rem; padding: .15rem .5rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #fff; pointer-events: none;
}

/* tres pantallas de celular, todas a la misma altura */
.shots-phones { align-items: flex-start; }
.shots-phones .shot { width: auto; height: 19rem; aspect-ratio: var(--ar, 390 / 844); max-width: 100%; }
.shots-phones .shot img { object-position: top; }
@media (max-width: 860px) { .shots-phones .shot { height: 15rem; } }

/* introducción de "En camino" y tarjetas de prueba cerrada */
.road-intro { margin-top: 1rem; max-width: 40rem; color: var(--ink-2); }
.tag-beta { background: var(--ink); color: var(--paper); }
.road-item .shots-one { width: 100%; max-width: 100%; padding-bottom: 0; justify-self: auto; }
.road-item .shots-one .shot { width: 100%; max-width: 100%; aspect-ratio: var(--ar); height: auto; }

/* tarjeta de 3D: portada con el paso intermedio por delante */
.road-item .shots-3d { position: relative; width: 100%; max-width: 100%; padding-bottom: 14%; justify-self: auto; }
.road-item .shots-3d .shot { width: 100%; max-width: 100%; aspect-ratio: var(--ar); height: auto; }
.road-item .shots-3d .shot-front { position: absolute; right: -2%; left: auto; bottom: 0; width: 36%; border-color: rgba(255,255,255,.35); }
.road-item .feat { display: grid; gap: .45rem; margin: 0; max-width: 34rem; }
.road-item .feat li { position: relative; padding-left: 1.4rem; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.road-item .feat li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem;
  background: var(--accent); clip-path: polygon(0 100%, 0 0, 100% 50%); }
.road-note { font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: .75rem; max-width: 34rem; }
@media (max-width: 860px) { .road-item .shots-3d .shot-front { right: 0; width: 42%; } }

/* MusicaAI: portada arriba; abajo, el piano de escritorio y el de celular */
.road-item .shots-music { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: .6rem; align-items: end;
  width: 100%; max-width: 100%; padding-bottom: 0; justify-self: auto; }
.road-item .shots-music .shot { width: 100%; max-width: none; height: auto; aspect-ratio: var(--ar); }
.road-item .shots-music .shot:first-child { grid-column: 1 / -1; }

/* la última tarjeta ocupa todo el ancho; el código de comando se ve como tal */
.road-item.road-wide { grid-column: 1 / -1; }
.road-item code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .05em .35em; }

/* Fantasy Live RPG: directo, arte y perfil, a la misma altura */
.road-item .shots-game { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; width: 100%; max-width: 100%; padding-bottom: 0; justify-self: auto; }
.road-item .shots-game .shot { width: auto; height: 13.5rem; aspect-ratio: var(--ar); max-width: 100%; }
@media (max-width: 860px) { .road-item .shots-game .shot { height: 11rem; } }
