/* =============================================================
   Minea Ruiz Herrerías — Portfolio
   Editorial oscuro · Cormorant Garamond + Inter + JetBrains Mono
   -------------------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Tipografía
   4. Utilidades / layout
   5. Componentes (nav, botones, tarjetas, formulario, footer)
   6. Secciones (hero, manifiesto, servicios, proyectos, etc.)
   7. Efectos (cursor, cinta, reveal, tilt, splash)
   8. Responsive
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #0b0b0d;
  --bg-2:      #101013;
  --bg-3:      #17171b;
  --card:      #141418;
  --card-2:    #191920;

  --ink:       #f1f0ec;   /* nunca blanco puro */
  --ink-2:     #bebdb8;
  --ink-3:     #9a9992;   /* contraste AA sobre el fondo oscuro */

  --accent:    #c6a978;   /* champán / bronce suave — único acento */
  --accent-2:  #ddc9a6;

  --line:      rgba(241, 240, 236, 0.12);
  --line-2:    rgba(241, 240, 236, 0.06);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1280px;
  --nav-h: 78px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--accent); color: #16130d; }

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

.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 10001; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. TIPOGRAFÍA
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent-2); }

p { text-wrap: pretty; }

.display {
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: 0.98;
}
.h-xl { font-size: clamp(2.1rem, 5.5vw, 4rem); }
.h-lg { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.muted { color: var(--ink-3); }

/* Defensa obligatoria: elemento con .reveal + data-split nunca invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. UTILIDADES / LAYOUT
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.divider { height: 1px; background: var(--line); border: 0; }

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

/* Reveal on scroll — solo se oculta si el JS está vivo (.js).
   Sin JavaScript, todo el contenido se ve. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ----- Navegación ----- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.45s var(--ease-out),
              backdrop-filter 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex; flex-direction: column;
}
.brand small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.35rem;
  font-weight: 400;
}

.nav-links { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 0.3rem 0;
  transition: color 0.3s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 32px; height: 32px; align-items: center; justify-content: center;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-menu[aria-hidden="false"] ~ .nav-toggle span:nth-child(1),
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú móvil */
.nav-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.4rem; padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-soft), visibility 0.4s;
}
.nav-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (min-width: 960px) { .nav-menu { display: none; } }
.nav-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-2);
}
.nav-menu a em { color: var(--accent); font-style: italic; }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft),
              background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
  will-change: transform;
}
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: #16130d;
  box-shadow: 0 10px 30px -12px rgba(198, 169, 120, 0.5);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -16px rgba(198, 169, 120, 0.55);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: 0.12s; }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left 100%;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.link-underline:hover { background-size: 100% 1px; color: var(--accent); }

/* ----- Tarjetas ----- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  isolation: isolate;
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out),
              transform 0.55s var(--ease-soft);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(198, 169, 120, 0.14), transparent 62%);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.card:hover { border-color: rgba(198, 169, 120, 0.35); background: var(--card-2); }
.card:hover::before { opacity: 1; }

/* Tilt (aplicado por JS) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-soft), border-color 0.4s var(--ease-out),
              background-color 0.4s var(--ease-out);
}
.has-tilt:hover { transition-duration: 0.12s, 0.4s, 0.4s; }

/* ----- Formulario ----- */
.form { display: grid; gap: 1.4rem; max-width: 560px; }
.field { position: relative; display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-3);
}
.field select { appearance: none; cursor: pointer; }

.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: 0.82rem; color: var(--ink-3); max-width: 40ch; }

.form-status {
  display: none;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(198, 169, 120, 0.4);
  border-radius: 12px;
  background: rgba(198, 169, 120, 0.08);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-status.is-visible { display: block; }

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--bg-2);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.footer-col h3 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col a { display: block; color: var(--ink-2); padding: 0.28rem 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-base {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--ink-3);
}
.footer-base a { color: var(--ink-3); }
.footer-base a:hover { color: var(--ink-2); }

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 46% at var(--mesh-x) var(--mesh-y), rgba(198, 169, 120, 0.22), transparent 70%),
    conic-gradient(from var(--mesh-angle) at 60% 40%,
      rgba(198, 169, 120, 0.10), rgba(120, 130, 150, 0.05),
      rgba(198, 169, 120, 0.12), rgba(120, 130, 150, 0.05), rgba(198, 169, 120, 0.10));
  filter: blur(64px) saturate(115%);
  opacity: 0.75;
  animation: meshShift 30s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 32%; --mesh-y: 38%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 32%; --mesh-y: 38%; }
}
.hero-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.hero-inner { display: grid; gap: 2.4rem; max-width: 20ch; }
.hero .display { max-width: 15ch; }
.hero-sub { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(198, 169, 120, 0.6);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 169, 120, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(198, 169, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 169, 120, 0); }
}

.hero-scroll {
  position: absolute; left: var(--pad); bottom: 2rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-scroll::before {
  content: ""; width: 32px; height: 1px; background: var(--ink-3);
  animation: scrollLine 2.4s var(--ease-soft) infinite;
  transform-origin: left;
}
@keyframes scrollLine { 0%,100% { transform: scaleX(0.4); } 50% { transform: scaleX(1); } }

/* ----- Manifiesto / intro dos columnas ----- */
.split-2 {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) { .split-2 { grid-template-columns: 0.85fr 1.15fr; } }
.split-2 .col-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.prose p { color: var(--ink-2); margin-bottom: 1.2rem; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ----- Figura / retrato ----- */
.figure {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}
.figure img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  transition: filter 0.7s var(--ease-out), transform 1.2s var(--ease-out);
}
.figure--portrait img { object-position: center 12%; }
.figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 13, 0.5));
  mix-blend-mode: multiply;
}
.figure:hover img { filter: grayscale(0.35) contrast(1.05) brightness(1); transform: scale(1.03); }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }

.figure-caption {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 0.9rem;
}

/* ----- Lista de servicios (índice editorial) ----- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
  align-items: baseline;
  transition: padding-inline 0.45s var(--ease-out);
}
.index-row .idx-n {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.05em;
}
.index-row .idx-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 500; line-height: 1.1;
  transition: color 0.35s var(--ease-out);
}
.index-row .idx-text {
  grid-column: 2; color: var(--ink-3); max-width: 60ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.6s var(--ease-soft), opacity 0.5s var(--ease-out),
              margin-top 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .index-row:hover { padding-inline: clamp(0.5rem, 2vw, 1.5rem); }
  .index-row:hover .idx-title { color: var(--accent); }
  .index-row:hover .idx-text { max-height: 200px; opacity: 1; margin-top: 0.9rem; }
}
/* En táctil: siempre visible */
@media (hover: none) {
  .index-row .idx-text { max-height: none; opacity: 1; margin-top: 0.8rem; }
}

/* ----- Grid genérico ----- */
.grid-cards {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards--3 { grid-template-columns: repeat(3, 1fr); } }

.mini-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.mini-card .tag {
  display: inline-block; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}
.mini-card p { color: var(--ink-3); font-size: 0.95rem; }

/* ----- Proceso (pasos numerados) ----- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: 0.7rem; align-content: start; }
.step .step-n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-3); font-size: 0.92rem; }

/* ----- Tags / herramientas ----- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.95rem; transition: border-color 0.3s, color 0.3s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ----- CTA final ----- */
.cta-band { text-align: center; display: grid; gap: 1.8rem; justify-items: center; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 16ch; }
.cta-band .contact-line {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ----- Contacto layout ----- */
.contact-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-detail { display: grid; gap: 1.6rem; align-content: start; }
.contact-detail dt {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem;
}
.contact-detail dd { font-size: 1.05rem; color: var(--ink); }
.contact-detail a:hover { color: var(--accent); }

/* ----- Página legal ----- */
.legal { max-width: 68ch; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.6rem 0 0.9rem; }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 0.9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--accent); background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: left 100%; }

/* Créditos */
.credits-list { display: grid; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.credits-list li { color: var(--ink-3); font-size: 0.9rem; line-height: 1.7; border-bottom: 1px solid var(--line-2); padding-bottom: 1.1rem; }
.credits-list strong { color: var(--ink-2); font-weight: 500; }
.credits-list a { color: var(--accent); }

/* =============================================================
   7. EFECTOS
   ============================================================= */

/* ----- Splash ----- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease-out), clip-path 1.1s var(--ease-soft);
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark {
  font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600;
  color: var(--ink); overflow: hidden; display: flex; gap: 0.06em;
}
.splash-mark span {
  display: inline-block; transform: translateY(110%);
  animation: splashUp 0.75s var(--ease-out) forwards;
}
@keyframes splashUp { to { transform: translateY(0); } }
.splash-line {
  margin-top: 1rem; width: 0; height: 1px; background: var(--accent);
  animation: splashBar 1.6s var(--ease-out) 0.5s forwards;
}
@keyframes splashBar { to { width: min(220px, 40vw); } }

/* ----- Cursor ----- */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none;
  opacity: 0; transition: opacity 0.25s var(--ease-out); mix-blend-mode: difference; }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: #fff; border-radius: 50%; }
.cursor-ring { width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out); }
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ----- Cinta / marquee ----- */
.marquee { overflow: hidden; position: relative; border-block: 1px solid var(--line);
  padding-block: 1.2rem; background: var(--bg-2); }
.marquee-track { display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-style: italic;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span::after { content: "·"; color: var(--accent); font-style: normal; }

/* split text */
.split-word, .split-char { display: inline-block; will-change: transform; }
.split-word-wrap { display: inline-block; white-space: nowrap; }

/* ----- Banda de imagen a lo ancho ----- */
.figure-band {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  aspect-ratio: 16 / 6;
  background: var(--bg-3);
}
@media (max-width: 720px) { .figure-band { aspect-ratio: 4 / 3; } }
.figure-band img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: grayscale(1) contrast(1.05) brightness(0.8);
}
.figure-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,11,13,0.75), transparent 45%, transparent 60%, rgba(11,11,13,0.55));
}
.figure-band .band-caption {
  position: absolute; left: var(--pad); bottom: 1.4rem; z-index: 1;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
  max-width: 30ch;
}

/* Imagen dentro de bloque de servicio */
.service-figure {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 3 / 2; background: var(--bg-3); margin-top: 1.6rem;
}
.service-figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.85);
  transition: filter 0.6s var(--ease-out), transform 1s var(--ease-out);
}
.service-figure:hover img { filter: grayscale(0.4) brightness(1); transform: scale(1.03); }

/* ----- FAQ (acordeón nativo) ----- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--accent);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 1rem; color: var(--ink-2); max-width: 62ch;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

/* ----- Consentimiento de cookies ----- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9500;
  max-width: 640px; margin-inline: auto;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7);
  display: none;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease-soft);
}
.cookie-bar.is-shown { display: block; }
.cookie-bar.is-in { transform: none; }
.cookie-bar p { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 1rem; }
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.btn--tiny-ghost {
  border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 0.7rem 1.3rem; font-size: 0.85rem;
  transition: border-color 0.3s, color 0.3s;
}
.btn--tiny-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ----- Página 404 ----- */
.error-page {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad) 4rem;
}
.error-page .code {
  font-family: var(--serif); font-size: clamp(5rem, 20vw, 12rem); line-height: 1;
  color: var(--accent-2);
}
.error-page h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 1rem 0 1.2rem; }
.error-page p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 2rem; }

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 720px) {
  .hero-inner { max-width: none; }
}
@media (min-width: 960px) {
  .about-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
}

/* =============================================================
   9. REDUCED-MOTION — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-meta .dot { animation: none; }
  .hero-scroll::before { animation: none; }
  .marquee-track { animation-duration: 0s; }
  .splash-mark span { animation-duration: 0.01s; }
  /* NO se desactivan: reveal, tilt, hover, underline, figure zoom */
}
