/* ==========================================================================
   THE CUT — demo conceptual
   Dirección de arte: carbón, cuero, cobre y marfil. Editorial urbano.
   ========================================================================== */

/* ---------- Fuentes locales (SIL OFL, alojadas en /assets/fonts) -------- */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --carbon: #131110;
  --carbon-2: #1c1917;
  --carbon-3: #0d0c0a;
  --marfil: #f2ecdf;
  --marfil-suave: #efe8d8;
  --tinta: #171412;
  --tinta-suave: #4d453b;
  --muted: #a89e90;
  --muted-2: #8a8175;
  --cobre: #c98a5a;
  --cobre-claro: #e3ab7d;
  --cuero: #7a4a26;
  --linea: rgba(242, 236, 223, 0.14);
  --linea-oscura: rgba(23, 20, 18, 0.14);

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;

  --radius: 3px;
  --header-h: 68px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--marfil);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, p, ul, figure, blockquote, address {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

::selection {
  background: var(--cobre);
  color: var(--tinta);
}

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

.sec--servicios :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--cuero);
}

/* Grano editorial muy sutil, decorativo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Utilidades ---------- */
.container {
  width: min(1240px, 100% - clamp(2.5rem, 8vw, 5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  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;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--cobre);
  color: var(--tinta);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--cobre);
}

.eyebrow::after {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--linea);
}

.eyebrow--dark::after {
  background: var(--linea-oscura);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 1.1rem;
}

.sec-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--tinta-suave);
  max-width: 60ch;
}

.sec-note--dark {
  color: var(--muted);
}

.tag {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuero);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.3em 0.65em;
}

.sec-note--dark .tag {
  color: var(--cobre);
}

.tag--inline {
  font-size: 0.6rem;
  padding: 0.25em 0.55em;
  vertical-align: middle;
  transform: translateY(-2px);
}

.ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--cobre);
  color: var(--tinta);
}

.btn--primary:hover {
  background: var(--cobre-claro);
}

.btn--ghost {
  border-color: rgba(242, 236, 223, 0.45);
  color: var(--marfil);
}

.btn--ghost:hover {
  border-color: var(--marfil);
  background: rgba(242, 236, 223, 0.07);
}

.btn--dark {
  background: var(--tinta);
  color: var(--marfil);
}

.btn--dark:hover {
  background: #000;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header.is-solid {
  background: rgba(15, 13, 12, 0.95);
  border-bottom-color: var(--linea);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--cobre);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(2px);
}

.demo-chip {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobre);
  border: 1px solid rgba(201, 138, 90, 0.55);
  border-radius: 2px;
  padding: 0.3em 0.6em;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 1.7rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(242, 236, 223, 0.85);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--marfil);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--cobre);
}

.header-cta {
  min-height: 42px;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
}

.menu-btn-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 20px;
}

.menu-btn-box span {
  height: 2px;
  background: var(--marfil);
  transition: transform 0.25s ease;
  transform-origin: center;
}

.menu-btn[aria-expanded="true"] .menu-btn-box span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-box span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--carbon);
  padding: calc(var(--header-h) + 2rem) clamp(1.5rem, 6vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  display: grid;
  gap: 0.4rem;
}

.mobile-menu nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--marfil);
  transition: color 0.2s ease;
}

.mobile-menu nav a:hover {
  color: var(--cobre);
}

.mobile-menu .btn {
  align-self: flex-start;
}

.mobile-menu-note {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .hero-img {
  animation: hero-zoom 1.8s ease-out both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 17, 16, 0.62) 0%,
    rgba(19, 17, 16, 0.28) 42%,
    rgba(19, 17, 16, 0.55) 72%,
    rgba(19, 17, 16, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 12vh, 7rem) clamp(3.5rem, 9vh, 6rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobre-claro);
}

.hero-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--cobre);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.6vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.4rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(242, 236, 223, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--linea);
  background: var(--carbon-3);
}

.strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.2rem;
  padding-block: 1.05rem;
}

.strip-list li {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cobre);
  transform: rotate(45deg);
  opacity: 0.85;
}

.strip-list li:last-child::after {
  display: none;
}

/* ---------- Secciones ---------- */
.sec {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.sec-head {
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}

/* Estudio */
.sec--estudio {
  background: var(--carbon);
}

.grid-2 {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.estudio-texto .h2 {
  margin-bottom: 1.6rem;
}

.estudio-texto p:not(.eyebrow) {
  color: var(--muted);
  max-width: 56ch;
}

.estudio-texto p + p {
  margin-top: 1.1rem;
}

.pull-quote {
  margin-top: 2.2rem;
  padding-left: 1.3rem;
  border-left: 2px solid var(--cobre);
}

.pull-quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--marfil);
  max-width: 34ch;
}

.estudio-fig {
  position: relative;
  max-width: 480px;
  justify-self: center;
}

.estudio-fig::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid rgba(201, 138, 90, 0.4);
  pointer-events: none;
}

.estudio-fig img {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
}

/* Servicios (marfil) */
.sec--servicios {
  background: var(--marfil-suave);
  color: var(--tinta);
}

.srv-grid {
  display: grid;
  gap: 1.4rem;
}

.srv-card {
  background: #faf5e9;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.srv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(23, 20, 18, 0.45);
}

.srv-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.srv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.srv-card:hover img {
  transform: scale(1.045);
}

.srv-body {
  padding: 1.5rem 1.5rem 1.7rem;
}

.srv-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tinta);
}

.srv-body h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--cobre);
  margin-top: 0.55rem;
}

.srv-body p {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tinta-suave);
}

/* Galería */
.sec--galeria {
  background: var(--carbon);
}

.gal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(130px, 30vw, 200px);
  gap: 0.8rem;
}

.gal-item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--carbon-2);
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--radius);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 17, 16, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gal-item:hover::after {
  opacity: 1;
}

.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 2; }
.g6 { grid-column: span 2; }

/* Contacto */
.sec--contacto {
  background: var(--carbon);
  padding-top: 0;
}

.info-grid {
  display: grid;
  gap: 1.4rem;
}

.info-card {
  background: var(--carbon-2);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.3rem);
}

.info-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.horario {
  width: 100%;
  border-collapse: collapse;
}

.horario th {
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--linea);
}

.horario td {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--marfil);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--linea);
}

.horario tr:last-child th,
.horario tr:last-child td {
  border-bottom: 0;
}

.contacto-direccion {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.contacto-lista {
  display: grid;
  gap: 0.4rem;
}

.contacto-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--marfil);
  transition: color 0.2s ease;
}

.contacto-link .ico {
  color: var(--cobre);
}

.contacto-link:hover {
  color: var(--cobre-claro);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* CTA final */
.cta-band {
  background: var(--cobre);
  color: var(--tinta);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.cta-lead {
  margin-top: 1.1rem;
  max-width: 44ch;
  font-size: 1.05rem;
  font-weight: 500;
}

.cta-band .btn {
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: var(--carbon-3);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-word {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-sub {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted-2);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--cobre);
}

.footer-legal {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea);
}

.footer-legal p {
  max-width: 78ch;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-legal strong {
  color: var(--marfil);
  font-weight: 500;
}

.footer-credits {
  margin-top: 1rem;
  font-size: 0.78rem !important;
  color: var(--muted-2) !important;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1080px, 94vw);
  margin: auto;
}

.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.86);
}

.lightbox[open] {
  animation: lb-in 0.25s ease;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lb-figure {
  margin: 0;
}

.lb-figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb-cap {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.85rem 0.15rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

#lb-counter {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--cobre);
}

.lb-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.lb-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--carbon-2);
  border: 1px solid var(--linea);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lb-btn svg {
  width: 20px;
  height: 20px;
}

.lb-btn:hover {
  border-color: var(--cobre);
  color: var(--cobre);
}

/* ---------- Reveal (MODO 1) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { --d: 90ms; }
.d2 { --d: 180ms; }
.d3 { --d: 270ms; }
.d4 { --d: 360ms; }

/* ---------- Breakpoints ---------- */
@media (min-width: 700px) {
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gal {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 17vw, 235px);
    gap: 0.9rem;
  }
}

@media (max-width: 859px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: grid;
    margin-left: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .estudio-fig {
    order: -1;
    max-width: 420px;
  }
}

@media (min-width: 860px) {
  .mobile-menu {
    display: none;
  }
}

@media (min-width: 1000px) {
  .grid-2 {
    grid-template-columns: 1.05fr 0.9fr;
  }

  .estudio-fig {
    justify-self: end;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero-img {
    animation: none;
  }
}
