/* Bajo La Cama — paleta del brandbook (Doss Mentes, 2024) */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/familjen-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/familjen-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/familjen-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/familjen-700-normal.woff2") format("woff2"); }
:root {
  --black: #000000;
  --bone: #C2BDB8;
  --navy: #3B4564;
  --slate: #363942;
  --brown: #39322E;
  --rust: #C45939;
  --ink: #121214;
  --paper: #d6d1cb;
  --muted: #8e8983;
  --line: rgba(194, 189, 184, .18);
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --text: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--rust); color: #000; }
img, svg, iframe { max-width: 100%; }

/* Grano de fotocopia sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .13;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
/* Parpadeo de lámpara vieja encima del grano */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 18%, 21%, 60%, 62%, 100% { opacity: 1; }
  19%, 61% { opacity: .55; }
  20% { opacity: .85; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.defs { position: absolute; width: 0; height: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rust); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--text);
  letter-spacing: .01em;
  padding: 15px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--rust { background: var(--rust); color: #000; }
.btn--rust:hover { background: #d8693f; }
.btn--ghost { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn--ghost:hover { background: var(--bone); color: #000; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn--big { padding: 18px 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 45% at 50% 38%, rgba(59, 69, 100, .55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(196, 89, 57, .14), transparent 70%),
    var(--black);
  overflow: hidden;
}
.top {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1080px, 100% - 32px); margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 0 0;
  position: relative; z-index: 4;
}
.top__mark { display: block; width: 44px; color: var(--bone); }
.top__mark svg { display: block; width: 100%; height: auto; }
.top__links { display: flex; gap: 18px; font-weight: 500; font-size: .95rem; }
.top__links a { text-decoration: none; opacity: .8; }
.top__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero__inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 16px 200px;
  position: relative; z-index: 2;
}
.stamp {
  display: inline-block;
  font: 400 .85rem/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust);
  border: 2px solid var(--rust);
  padding: 7px 11px 6px;
  transform: rotate(-2deg);
  margin: 0 0 26px;
}
.hero__logo { margin: 0; width: min(620px, 86vw); color: var(--bone); line-height: 0; }
.hero__logo svg { width: 100%; height: auto; filter: url(#xerox); }
.hero__lead { max-width: 560px; margin: 28px auto 0; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #d9d4ce; }
.hero__lead em { color: var(--muted); font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* La cama y lo que vive debajo */
.bed { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 2; }
.bed__frame {
  position: absolute; left: -2%; right: -2%; top: 0; height: 34px;
  background: linear-gradient(180deg, #4a4d58, var(--slate) 40%, #24262c);
  border-top: 2px solid #5b5f6b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .8);
}
.bed__frame::before, .bed__frame::after {
  content: ""; position: absolute; top: 34px; width: 26px; height: 140px;
  background: linear-gradient(90deg, #2a2c33, #3a3d47);
}
.bed__frame::before { left: 8%; }
.bed__frame::after { right: 8%; }
.bed__dark {
  position: absolute; left: 0; right: 0; top: 34px; bottom: 0;
  background: linear-gradient(180deg, #000 0%, #050506 100%);
}
/* Los ojos: viven DETRÁS del contenido (z 1) y delante de los fondos */
.watcher {
  position: fixed;
  left: 0; top: 0;
  z-index: 1;
  width: 120px; height: 64px;
  margin: -32px 0 0 -60px;            /* el punto (x,y) es el centro de los ojos */
  pointer-events: none;
  display: grid; place-items: center;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 72%);
  border-radius: 50%;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity .8s ease;
}
.watcher.is-on { opacity: 1; }
.eyes { display: flex; gap: 18px; transition: transform .35s ease; }
.eye {
  width: 28px; height: 13px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #f1e6d6 0%, #c9b9a2 55%, #6e5b46 100%);
  box-shadow: 0 0 14px rgba(241, 214, 170, .35), 0 0 40px rgba(196, 89, 57, .25);
  position: relative; overflow: hidden;
  animation: blink 5.5s infinite;
  transform-origin: center;
}
.pupil {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #0b0503;
  transition: transform .12s linear;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(.08); }
}

/* ───────── Se buscan ───────── */
.wanted { padding: 96px 0 72px; background: var(--black); border-top: 1px solid #111; }
.label {
  font: 400 clamp(1rem, 1.6vw, 1.1rem)/1 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 18px;
}
.wanted__big { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 700; max-width: 900px; margin: 0 0 34px; letter-spacing: -.01em; }
.hl { background: var(--rust); color: #000; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1.5px solid var(--line);
  background: rgba(59, 69, 100, .22);
  padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: .98rem;
  line-height: 1.25;
}
.chips li:nth-child(3n+2) { background: rgba(196, 89, 57, .14); }
.chips li:nth-child(3n) { background: rgba(57, 50, 46, .6); }

/* ───────── Expediente (formulario) ───────── */
.file { padding: 40px 0 90px; background: linear-gradient(180deg, #000, #0d0d10); }
.paper {
  position: relative;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(0,0,0,.07) 1px, transparent 1.2px),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06));
  background-size: 5px 5px, 100% 100%;
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 60px) clamp(28px, 5vw, 52px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
  transform: rotate(-.4deg);
  z-index: 2;
}
.paper > * { transform: rotate(.4deg); }
.paper__tape {
  position: absolute; top: -16px; left: 50%; translate: -50% 0;
  background: var(--rust); color: #000;
  font: 400 1rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 26px 9px;
  rotate: -3deg;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  z-index: 4;
}
.paper__head h2 {
  font: 400 clamp(2.1rem, 6vw, 3.6rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  margin: 10px 0 12px;
}
.paper__head p { max-width: 640px; margin: 0 0 8px; color: #2b2b2f; }

.form fieldset { border: 0; padding: 0; margin: 34px 0 0; }
.form legend {
  font: 700 .82rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); padding: 0 0 14px; border-bottom: 2px solid var(--ink); width: 100%; margin-bottom: 18px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .98rem; }
.opt { font-weight: 400; color: #55524e; font-size: .9em; }
.req { color: var(--rust); }
.field small { color: #4d4a46; font-size: .86rem; }

.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--text);
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 2px solid #2a2a2e;
  border-radius: 10px;
  padding: 12px 14px;
  appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.form textarea { resize: vertical; min-height: 260px; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rust); background: rgba(255,255,255,.8); box-shadow: 0 0 0 3px rgba(196, 89, 57, .25); }
.form [aria-invalid="true"] { border-color: #a32a14; background: rgba(196, 89, 57, .12); }
.form ::placeholder { color: #6d6964; }
.counter { font-size: .85rem; color: #4d4a46; text-align: right; }
.counter.is-low { color: #a32a14; }

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--ink); border-radius: 5px; background: rgba(255,255,255,.5); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 12px; height: 12px; background: var(--rust); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); transition: transform .12s ease; }
.check input:checked::before { transform: scale(1); }
.check input[aria-invalid="true"] { border-color: #a32a14; box-shadow: 0 0 0 3px rgba(196, 89, 57, .3); }
.check--opt { color: #3a3834; }
.check a { color: var(--navy); font-weight: 700; }

.form__foot { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form__error { margin: 0; background: #a32a14; color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 500; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 30px 0 10px; text-align: left; }
.done:focus { outline: none; }
.done__stamp {
  display: inline-block; margin: 0 0 14px;
  font: 400 2.4rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--rust); border: 4px solid var(--rust); padding: 8px 16px 6px; border-radius: 8px;
  transform: rotate(-6deg); opacity: .9;
}
.done h3 { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.05 var(--display); text-transform: uppercase; margin: 6px 0 12px; }
.done p { max-width: 560px; }

/* ───────── Correo ───────── */
.mail { padding: 70px 0 90px; background: #0d0d10; text-align: left; }
.mail p { margin: 0 0 12px; color: #d9d4ce; }
.mail__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail__addr a { font-size: clamp(1.3rem, 4.4vw, 2.2rem); font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--rust); word-break: break-all; }
.copy { font: 700 .9rem/1 var(--text); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; }
.copy:hover { border-color: var(--bone); }

/* ───────── Footer ───────── */
.foot { background: var(--black); border-top: 1px solid #1a1a1d; padding: 50px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 20px; justify-items: start; }
.foot__logo { width: 210px; color: var(--bone); display: block; line-height: 0; }
.foot__logo svg { width: 100%; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__links a { text-decoration: none; opacity: .8; }
.foot__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot__small { margin: 0; color: var(--muted); font-size: .9rem; }

/* ───────── Aviso de privacidad ───────── */
.legal { padding: 40px 0 80px; }
.legal h1 { font: 400 clamp(2.2rem, 7vw, 3.6rem)/1 var(--display); text-transform: uppercase; margin: 30px 0 10px; }
.legal h2 { font: 700 1.2rem/1.3 var(--text); color: var(--rust); margin: 34px 0 8px; }
.legal p, .legal li { color: #d9d4ce; max-width: 760px; }
.legal .meta { color: var(--muted); font-size: .92rem; }
.legal a { color: var(--bone); text-underline-offset: 3px; }

/* ───────── Responsivo ───────── */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .bed { height: 140px; }
  .hero__inner { padding-bottom: 170px; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .top__links { gap: 12px; font-size: .88rem; }
  .hero__cta .btn { width: 100%; }
  .btn--big { width: 100%; }
  .paper { transform: none; }
  .paper > * { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .eye { animation: none; }
  .pupil { transition: none; }
}

/* ───────── Escúchanos (Spotify) ───────── */
.listen { padding: 10px 0 70px; background: var(--black); }
.listen__player { display: block; width: 100%; border: 0; border-radius: 12px; background: #121214; }
.listen__more { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.listen__more a { color: var(--bone); text-underline-offset: 3px; }

/* ───────── Sangre ───────── */
.hero, .wanted, .mail { position: relative; }
.wanted, .mail { overflow: hidden; }
.blood { position: absolute; pointer-events: none; fill: #7d0e09; z-index: 0; }
.wrap, .hero__inner, .paper__head, .form, .done { position: relative; z-index: 2; }
.blood--hero-l { width: 190px; height: 190px; left: 4%; top: 18%; opacity: .55; transform: rotate(-18deg); fill: #6a0b07; }
.blood--hero-r { width: 120px; height: 120px; right: 9%; top: 58%; opacity: .45; transform: rotate(40deg); fill: #6a0b07; }
.blood--wanted { width: 300px; height: 300px; right: -70px; top: -60px; opacity: .5; transform: rotate(12deg); fill: #5e0a06; }
.blood--mail { width: 220px; height: 220px; left: -60px; bottom: -70px; opacity: .45; transform: rotate(-30deg); fill: #5e0a06; }
/* En el expediente: escurre por la orilla derecha sin tocar el título ni la etiqueta */
.blood--drip { right: 5%; left: auto; top: 0; width: 26%; height: 64px; fill: #8a1009; opacity: .92; z-index: 1; }
.blood--paper { width: 130px; height: 130px; right: 18px; bottom: 26px; top: auto; opacity: .7; transform: rotate(25deg); mix-blend-mode: multiply; fill: #8a1009; z-index: 1; }
.blood--paper2 { width: 90px; height: 90px; left: -22px; bottom: 38%; opacity: .7; transform: rotate(-60deg); mix-blend-mode: multiply; fill: #8a1009; z-index: 1; }

/* ───────── Responsivo (móvil) ───────── */
@media (max-width: 760px) {
  .watcher { width: 84px; height: 46px; margin: -23px 0 0 -42px; }
  .eyes { gap: 11px; }
  .eye { width: 18px; height: 9px; }
  .pupil { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
  .blood--hero-l { width: 96px; height: 96px; left: -26px; top: 70px; }
  .blood--hero-r { width: 70px; height: 70px; right: 4%; top: auto; bottom: 190px; }
  .blood--wanted { width: 190px; height: 190px; right: -70px; top: -50px; }
  .blood--mail { width: 150px; height: 150px; }
  .blood--drip { right: 4%; width: 30%; height: 30px; }
  .blood--paper { width: 76px; height: 76px; right: 6px; bottom: 70px; }
  .blood--paper2 { display: none; }

  .wanted { padding: 72px 0 56px; }
  .wanted__big { margin-bottom: 26px; }
  .chips { gap: 7px; }
  .chips li { padding: 6px 11px; font-size: .8rem; border-width: 1px; }
  .listen { padding-bottom: 56px; }
  .listen__player { height: 152px; }
  .mail { padding: 56px 0 70px; }
  .paper__tape { font-size: .85rem; padding: 8px 18px 7px; top: -14px; }
}
@media (max-width: 380px) {
  .top__links { gap: 10px; font-size: .82rem; }
  .chips li { font-size: .76rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .eyes { transition: none; }
}
