/* ==========================================================================
   Chef Rubén Ortega-Vieto · Carbón y hueso
   ========================================================================== */

:root {
  --bg: #0f0e0d;
  --band: #13110f;
  --paper: #ece4d4;
  --ink: #1a1714;
  --ink-2: #4a433c;
  --ember: #b23a22;
  --ember-hover: #c4442a;
  --ember-2: #d9583c;
  --text-2: #c9c1b3;
  --text-3: #a39c92;
  --rule: #3a342e;

  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
  --display: 'Dela Gothic One', 'Courier Prime', sans-serif;

  --gutter: 40px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--paper);
  font: 400 18px/1.7 var(--mono);
  overflow-x: hidden;
}

img, video { max-width: 100%; }

a { color: var(--paper); }
a:hover { color: #ffffff; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 700 14px/1 var(--mono);
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ink); }

/* ---------- Tipografía de comanda ---------- */

.eyebrow {
  margin: 0;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.h2 {
  margin: 0;
  font: 700 clamp(38px, 4vw, 58px)/1.05 var(--mono);
  color: var(--paper);
}

.lead {
  margin: 0;
  font: 400 18px/1.7 var(--mono);
  color: var(--text-2);
}
.lead--paper { color: var(--paper); }

.micro {
  margin: 0;
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.inline-link {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--ember-2);
  text-underline-offset: 4px;
}

/* ---------- Elementos fijos ---------- */

.knife {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  width: 1000px;
  height: 166px;
  pointer-events: none;
  transform-origin: 50% 50%;
  transform: translate3d(-3000px, 0, 0);
  will-change: transform;
}
.knife img {
  display: block;
  width: 1000px;
  max-width: none;
  height: 166px;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.75));
}

/* la línea encendida: un remate que se desvanece (160 px) y un tramo que se estira con scaleY */
.knife-path {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 2px;
  height: 0;
  pointer-events: none;
  opacity: 0;
}
.knife-path-cap,
.knife-path-line {
  position: absolute;
  left: 0;
  width: 2px;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.knife-path-cap {
  top: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(217, 88, 60, 0), #d9583c);
}
.knife-path-line {
  top: 160px;
  height: 1000px;
  background: linear-gradient(to bottom, #d9583c, #ff9a5c);
  box-shadow: 0 0 12px 1px rgba(255, 100, 40, 0.55);
}

.brand {
  position: fixed;
  left: 20px;
  top: 14px;
  z-index: 7;
  display: block;
  padding: 4px;
}
.brand img {
  display: block;
  width: clamp(54px, 6vw, 78px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.step {
  position: fixed;
  left: 24px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transition: opacity 0.3s;
}
.step.is-hidden { opacity: 0; }
.step-num { color: var(--ember-2); }
.step-line { width: 28px; height: 1px; background: var(--rule); }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 26px;
  background: var(--ember);
  color: var(--paper);
  text-decoration: none;
  font: 700 15px/1 var(--mono);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.45s, transform 0.45s, visibility 0s 0.45s;
}
.wa-float.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.45s, transform 0.45s, visibility 0s;
}
.wa-float:hover { color: #ffffff; background: var(--ember-hover); }

/* ---------- 00 · Inicio ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--gutter) 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  animation: embers-zoom 26s ease-in-out infinite alternate;
}
@keyframes embers-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translateY(-1.5%); }
}
.hero-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 30, 0.5), rgba(255, 80, 20, 0.14) 45%, rgba(255, 80, 20, 0) 70%);
  mix-blend-mode: screen;
  animation: flicker 3.8s linear infinite;
}
@keyframes flicker {
  0% { opacity: 0.55; }
  12% { opacity: 0.8; }
  19% { opacity: 0.6; }
  33% { opacity: 0.92; }
  47% { opacity: 0.62; }
  61% { opacity: 0.86; }
  74% { opacity: 0.58; }
  88% { opacity: 0.78; }
  100% { opacity: 0.55; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 14, 13, 0.9) 0%, rgba(15, 14, 13, 0.25) 42%, rgba(15, 14, 13, 0) 62%, rgba(15, 14, 13, 0.35) 88%, #0f0e0d 100%);
}
.hero-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-top {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.nav a {
  padding: 14px 0;
  font: 400 15px/1 var(--mono);
  text-decoration: none;
}
.nav .nav-strong { font-weight: 700; }

.hero-center {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-top: -4vh;
  text-align: center;
}

/* El nombre: una capa invisible da la medida y dos copias recortadas se separan con el corte */
.name {
  position: relative;
  margin: 0;
  font: 400 clamp(64px, 15.5vw, 230px)/1 var(--display);
  letter-spacing: -0.01em;
  color: #ffffff;
}
.name-base { display: block; visibility: hidden; }
.name-1 { display: block; }
.name-2 {
  display: block;
  margin-top: 0.1em;
  font-size: 0.44em; /* mismo ancho que "RUBÉN" en Dela Gothic One */
  letter-spacing: -0.01em;
}
.name-piece { display: inline-block; }
.name-piece.is-ghost { visibility: hidden; }

.name-half {
  position: absolute;
  inset: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.name-half--l .name-1 { clip-path: inset(-40% 50% -40% -40%); }
.name-half--r .name-1 { clip-path: inset(-40% -40% -40% 50%); }
.name-half--l .name-piece { clip-path: inset(-40% 0 -40% -40%); }
.name-half--r .name-piece { clip-path: inset(-40% -40% -40% 0); }

.name-cut {
  position: absolute;
  left: 50%;
  top: -6%;
  width: 2px;
  height: 112%;
  background: var(--ember-2);
  opacity: 0;
  transform: translateX(-1px) scaleY(0);
  transform-origin: top;
}

.hero-sub {
  margin: 22px 0 0;
  font: 400 clamp(15px, 1.5vw, 19px)/1.5 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-hint {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.3em;
  color: var(--paper);
}

/* ---------- Secciones y pasillo central ---------- */

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
}
.section--chef { min-height: 100vh; }
.section--video { padding-bottom: 40px; }
.section--events { padding-top: 120px; padding-bottom: 200px; }
.section--contact {
  max-width: 1040px;
  padding: 120px 32px 40px;
}

/* columnas a los lados y 190 px libres en el centro para el cuchillo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
  row-gap: 64px;
  align-items: start;
}
.split > .l { grid-column: 1; }
.split > .r { grid-column: 3; }
.split--head { margin-bottom: 64px; }
.split--head-lg { margin-bottom: 80px; }
.col-end { align-self: end; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 16px; }

/* ---------- Fotos vivas ---------- */

.live {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.live > img,
.live > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--op, 50% 50%);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.live::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 115%, rgba(255, 120, 40, 0.5), rgba(255, 90, 30, 0) 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1s;
}
@media (hover: hover) {
  .live:hover > img,
  .live:hover > video { transform: scale(1.07); }
  .live:hover::after { opacity: 1; }
}

/* ---------- 01 · El chef ---------- */

.chef-bio {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 22px 0;
  border-top: 2px dashed var(--rule);
  border-bottom: 2px dashed var(--rule);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
}
.stat-num {
  margin: 0;
  font: 700 30px/1 var(--mono);
  color: var(--paper);
}

.restaurants {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.restaurants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.restaurants-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  font: 400 13px/1.3 var(--mono);
}
.restaurants-list a:hover { color: #ffffff; }
.restaurants-list img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.chef-second {
  width: 62%;
  margin-top: 12px;
}

/* ---------- Franja de prensa ---------- */

.press {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  border-top: 2px dashed var(--rule);
  border-bottom: 2px dashed var(--rule);
  background: var(--band);
}
.mq-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.mq-track--rev {
  margin-top: 22px;
  animation-direction: reverse;
}
.mq-set {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.mq-tag {
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.24em;
  color: var(--ember-2);
  white-space: nowrap;
}
.mq-item {
  font: 400 clamp(30px, 4vw, 54px)/1 var(--display);
  color: var(--paper);
  white-space: nowrap;
}
.mq-star {
  font: 400 24px/1 serif;
  color: var(--ember-2);
}

/* ---------- 02 · Detrás del fuego ---------- */

.video-b { margin-top: 120px; }

/* ---------- 03 · Eventos ---------- */

.ev {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.ev.r { margin-top: 180px; }
.ev figcaption {
  font: 400 14px/1.4 var(--mono);
  color: var(--text-3);
}

/* ---------- 04 · Reservar ---------- */

.board {
  position: relative;
  width: 100%;
  aspect-ratio: 1333 / 892;
  margin-top: 72px;
}
.board > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.board-spot {
  position: absolute;
  left: 50%;
  top: 19%;
  width: 2px;
  height: 2px;
}

/* la impresora: riel metálico y el ticket que sale de él */
.printer {
  position: relative;
  z-index: 2;
  width: min(640px, 92%);
  margin: -43% auto 0;
}
.printer-rail {
  position: relative;
  z-index: 3;
  height: 18px;
  margin: 0 -16px;
  border-radius: 9px;
  background: linear-gradient(#6a655e, #2e2a26 55%, #1a1816);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.printer-mouth {
  overflow: hidden;
  margin: -7px -28px 0;
  padding: 0 28px 90px;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 36px 36px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  color-scheme: light;
  will-change: transform;
}
.ticket a { color: var(--ink); }

.tk-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.tk-kicker {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.3em;
  color: var(--ink-2);
}
.tk-title {
  font: 700 34px/1.1 var(--mono);
  letter-spacing: 0.06em;
}
.tk-no {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
.tk-rule { border-top: 2px dashed var(--ink); }
.tk-rule--spaced { margin-top: 6px; }

.tk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 22px;
}
.tk-full { grid-column: 1 / -1; }
.tk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tk-field label {
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.tk-field input,
.tk-field select,
.tk-field textarea {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px dotted var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.4 var(--mono);
}
.tk-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231a1714' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 4px center;
  cursor: pointer;
}
.tk-field textarea { resize: vertical; }
.tk-field input::placeholder,
.tk-field textarea::placeholder { color: #5e574e; opacity: 1; }
.tk-field input:focus,
.tk-field select:focus,
.tk-field textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.tk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tk-mail {
  padding: 14px 0;
  font: 700 15px/1 var(--mono);
  color: var(--ink);
}
.tk-mail:hover { color: var(--ember); }
.tk-send {
  min-height: 48px;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  background: var(--ember);
  color: var(--paper);
  font: 700 16px/1 var(--mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.tk-send:hover { background: var(--ember-hover); color: #ffffff; }
.tk-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.stamp {
  position: absolute;
  right: 28px;
  top: 42%;
  z-index: 3;
  padding: 10px 16px;
  border: 4px solid var(--ember);
  border-radius: 6px;
  color: var(--ember);
  font: 700 26px/1.05 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-14deg) scale(2.4);
}
.stamp.on { animation: stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.4); }
  100% { opacity: 0.88; transform: rotate(-14deg) scale(1); }
}

/* borde dentado del papel */
.tk-teeth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background:
    linear-gradient(135deg, #ece4d4 6px, rgba(236, 228, 212, 0) 0) 0 0 / 12px 12px repeat-x,
    linear-gradient(-135deg, #ece4d4 6px, rgba(236, 228, 212, 0) 0) 0 0 / 12px 12px repeat-x;
}

/* ---------- Pie ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  font: 400 14px/1.4 var(--mono);
  color: var(--text-3);
}
.footer-logos {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  margin-bottom: 8px;
  padding-bottom: 48px;
  border-bottom: 2px dashed var(--rule);
}
.footer-logo { display: block; width: auto; }
.footer-logo--soul { height: clamp(110px, 12vw, 150px); }
.footer-logo--flaco { height: clamp(70px, 7.5vw, 96px); }
.footer-name { margin: 0; padding: 12px 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: 12px 0;
  color: var(--paper);
}

/* ---------- Tablet: pasillo más angosto para que las columnas respiren ---------- */

@media (min-width: 760px) and (max-width: 1023.98px) {
  .section { padding-left: 32px; padding-right: 32px; }
  .split { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .stats { gap: 12px; }
  .stat-num { font-size: 24px; }
}

/* ---------- Celular ---------- */

@media (max-width: 759.98px) {
  /* abajo deja lugar al contador fijo para que no pise "— DESLIZA —" */
  .hero { padding: 24px 20px 72px; }
  /* el menú se apila a la derecha para que el cuchillo en reposo no lo cruce */
  .nav { flex-direction: column; align-items: flex-end; gap: 0; }
  .nav a { padding: 10px 0; }

  /* más aire a la derecha: ahí vive el cuchillo después del inicio */
  .section { padding: 110px 44px 90px 24px; }
  .section--video { padding-bottom: 30px; }
  .section--events { padding-top: 100px; padding-bottom: 120px; }
  .section--contact { padding: 100px 24px 30px; }
  .section--contact > .split { padding-right: 20px; }

  .step {
    left: 14px;
    bottom: 16px;
    padding: 9px 12px;
    border-radius: 18px;
    background: rgba(15, 14, 13, 0.82);
  }

  .split { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .split > .l,
  .split > .r { grid-column: 1; }
  .split--head { margin-bottom: 44px; }
  .ev.r,
  .video-b { margin-top: 0; }
  .chef-bio { padding-top: 0; }

  .stats { gap: 14px; }
  .stat-num { font-size: 26px; }

  .board { margin-top: 48px; }
  .ticket { padding: 36px 22px 30px; }
  .tk-grid { grid-template-columns: minmax(0, 1fr); }
  .tk-title { font-size: 28px; }
  .stamp { right: 16px; font-size: 22px; }

  .site-footer { padding: 64px 24px 110px; }
}

@media (max-width: 420px) {
  .hero-sub { font-size: 14px; letter-spacing: 0.16em; }
}

@media (max-width: 399.98px) {
  .wa-float { width: 52px; padding: 0; justify-content: center; }
  .wa-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Movimiento reducido: todo visible y quieto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-embers,
  .hero-glow,
  .mq-track { animation: none; }
  .hero-embers { transform: none; }
  .mq-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
  }
  .mq-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 36px;
    padding-right: 0;
  }
  .mq-set + .mq-set { display: none; }
  .live > img,
  .live > video,
  .live::after,
  .wa-float { transition: none; }
  .stamp.on {
    animation: none;
    opacity: 0.88;
    transform: rotate(-14deg);
  }
}
