/* Aangelicvibes · web pública
   Mundo: el estudio a oscuras donde se fotografía el bodypaint UV.
   Fondo tinta violeta, texto hueso, un único acento magenta UV. */

:root {
  --ink: #0e0c12;
  --ink-2: #17141d;
  --ink-3: #221d2a;
  --line: #2f2838;
  --bone: #f1ece6;
  --bone-dim: #bdb3c2;
  --uv: #ff5cb4;
  --uv-deep: #d93a8f;
  --violet: #a58cff;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  text-wrap: pretty;
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--uv); color: var(--ink); }
:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--ink-3) var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 10px; border: 2px solid var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-wrap: balance; margin: 0; text-transform: uppercase; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--uv); color: var(--ink); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Cabecera ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem var(--gutter);
  background: linear-gradient(to bottom, rgb(14 12 18 / .85), rgb(14 12 18 / 0));
  transition: background-color .3s;
}
.topbar.is-solid { background: rgb(14 12 18 / .94); border-bottom: 1px solid var(--line); }
.wordmark { font: 800 1.6rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }
.menu-toggle { display: none; }
.topbar nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topbar nav a, .lang { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--bone-dim); transition: color .2s; }
.topbar nav a:hover, .lang:hover { color: var(--bone); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; letter-spacing: .05em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.3rem;
  border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--uv); color: var(--ink); }
.btn-primary:hover { background: #ff7cc4; }
.btn-ghost { border: 1px solid rgb(241 236 230 / .35); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgb(241 236 230 / .06); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: reveal 1.6s var(--ease) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 4%, rgb(14 12 18 / .55) 38%, rgb(14 12 18 / 0) 70%);
}
@keyframes reveal {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.08); filter: saturate(.4) brightness(.7); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); filter: none; }
}
.hero-copy { padding: 0 var(--gutter) clamp(2.5rem, 8vh, 5rem); max-width: 60rem; }
.hero-name { font-size: clamp(3.4rem, 15vw, 6rem); line-height: .85; letter-spacing: -.015em; text-transform: none; }
.hero-tagline { margin: .9rem 0 1.8rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--bone); max-width: 32ch; line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero--plain { min-height: 80svh; background: radial-gradient(120% 80% at 80% 10%, var(--ink-3), var(--ink) 60%); }

/* ---------- Ficha rápida ---------- */
.sheet { padding: 0 var(--gutter); }
.sheet dl {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sheet dl > div { padding: 1.1rem 1.25rem 1.2rem 0; }
.sheet dl > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.sheet dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.sheet dd { margin: .25rem 0 0; font-weight: 500; }

/* ---------- Bloques ---------- */
.block { padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.block-head h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.block-head p { margin: 0; color: var(--bone-dim); max-width: 40ch; }
.empty { color: var(--bone-dim); border: 1px dashed var(--line); border-radius: 12px; padding: 2rem; text-align: center; margin: 0; }

/* ---------- Créditos de cine ---------- */
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { border-bottom: 1px solid var(--line); }
.credit {
  position: relative; display: grid; align-items: center; gap: 1rem 2rem;
  grid-template-columns: 4.5rem 1fr minmax(10rem, 18rem) auto;
  padding: 1.4rem 0; text-decoration: none;
}
.credit-year { font: 700 1.25rem/1 var(--display); color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.credit-title { display: block; font: 700 clamp(1.6rem, 3.6vw, 2.6rem)/1 var(--display); text-transform: uppercase; transition: color .25s; }
.credit-meta { display: block; margin-top: .4rem; color: var(--bone-dim); font-size: .95rem; }
.credit-role { color: var(--bone); font-size: .98rem; }
.credit .icon { width: 1.6rem; height: 1.6rem; color: var(--bone-dim); transition: transform .3s var(--ease), color .25s; }
.credit:hover .credit-title { color: var(--uv); }
.credit:hover .icon { transform: translateX(.35rem); color: var(--uv); }
.credit-thumb {
  position: absolute; right: 4.5rem; top: 50%; width: 11rem; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 8px; pointer-events: none; opacity: 0;
  transform: translateY(-50%) rotate(-3deg) scale(.92);
  transition: opacity .3s, transform .45s var(--ease);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .7);
}
.credit:hover .credit-thumb { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }

/* ---------- Filtros y galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip {
  font: 500 .95rem/1 var(--body); color: var(--bone-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; min-height: 2.6rem; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--bone); border-color: var(--bone-dim); }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.gallery { list-style: none; margin: 0; padding: 0; columns: 3 18rem; column-gap: 1rem; }
.work { break-inside: avoid; margin-bottom: 1rem; }
.work[hidden] { display: none; }
.work a { position: relative; display: block; overflow: hidden; border-radius: 10px; text-decoration: none; background: var(--ink-2); }
.work img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
.work a:hover img { transform: scale(1.035); filter: brightness(.8); }
.work-caption {
  position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgb(14 12 18 / .92), rgb(14 12 18 / 0));
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
}
.work-title { font: 700 1.5rem/1 var(--display); text-transform: uppercase; }
.work-cat { font-size: .85rem; color: var(--bone-dim); white-space: nowrap; }
.work--nophoto a { aspect-ratio: 4/5; border: 1px solid var(--line); background: radial-gradient(90% 70% at 30% 20%, var(--ink-3), var(--ink-2)); }
.work--nophoto .work-caption { background: none; flex-direction: column; align-items: start; gap: .5rem; }
.work--nophoto .work-title { font-size: 2rem; }
.work--nophoto a:hover .work-title { color: var(--uv); }

/* ---------- Sobre mí / CV ---------- */
.cv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
.bio p { margin: 0 0 1.1rem; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 38ch; }
.bio .btn { margin-top: .75rem; }
.cv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; align-content: start; }
.cv-col h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--violet); }
.cv-col ul { list-style: none; margin: 0; padding: 0; }
.cv-col li { padding: .75rem 0; border-top: 1px solid var(--line); }
.cv-col strong { display: block; font-weight: 600; }
.cv-col span { display: block; color: var(--bone-dim); font-size: .95rem; }
.cv-col .cv-year { font-variant-numeric: tabular-nums; font-size: .85rem; letter-spacing: .04em; }

/* ---------- Pie / contacto ---------- */
.footer { margin-top: clamp(5rem, 12vw, 9rem); background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-inner { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 6.5rem; }
.footer-title { font-size: clamp(3rem, 9vw, 6rem); }
.footer-lead { color: var(--bone-dim); max-width: 44ch; margin: 1rem 0 2.5rem; font-size: 1.15rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 1px solid var(--line); }
.contact-list a { display: block; padding: 1.25rem 1rem 1.25rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.contact-list strong { display: block; margin-top: .3rem; font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; transition: color .2s; }
.contact-list a:hover strong { color: var(--uv); }
.footer-small { margin: 3rem 0 0; color: var(--bone-dim); font-size: .9rem; }

/* Barra de contacto fija en móvil */
.quickbar { display: none; }

/* ---------- Proyecto ---------- */
.project { padding: 6.5rem var(--gutter) 0; }
.project-head { max-width: 60rem; margin-bottom: 3rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--bone-dim); text-decoration: none; margin-bottom: 1.5rem; min-height: 2.75rem; }
.back:hover { color: var(--bone); }
.project h1 { font-size: clamp(3rem, 9vw, 6rem); }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.75rem 0 0; }
.project-meta dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); }
.project-meta dd { margin: .2rem 0 0; font-weight: 500; }
.project-summary { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 50ch; margin: 1.75rem 0 0; line-height: 1.5; }
.project-credits { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--bone-dim); }
.project-credits span { color: var(--bone); margin-right: .35rem; }
.project-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.project-photos li { grid-column: span 3; }
.project-photos li.tall { grid-column: span 2; }
.project-photos li:first-child { grid-column: 1 / -1; }
.project-photos li:first-child img { max-height: 88svh; width: auto; margin-inline: auto; }
.project-photos a { display: block; border-radius: 10px; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.project-photos img { width: 100%; }
.project-empty { max-width: 60rem; }

.lightbox { max-width: 100vw; max-height: 100svh; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgb(8 7 11 / .96); color: var(--bone); }
.lightbox::backdrop { background: rgb(8 7 11 / .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 4.5rem); margin: auto; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; }
.lightbox-bar button { font: 500 .95rem/1 var(--body); color: var(--bone); background: var(--ink-3); border: 0; border-radius: 999px; padding: .75rem 1.1rem; min-height: 2.75rem; cursor: pointer; }
.lightbox-bar button:hover { background: var(--line); }
.lightbox-bar [data-lb="count"] { min-width: 4rem; text-align: center; color: var(--bone-dim); font-variant-numeric: tabular-nums; }

.notfound { min-height: 70svh; padding-top: 8rem; }
.notfound h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: 1rem; }
.notfound p { color: var(--bone-dim); margin: 0 0 2rem; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 2.5rem; padding: .4rem .9rem;
    font: 500 .9rem/1 var(--body); color: var(--bone); background: rgb(14 12 18 / .6);
    border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .topbar nav {
    display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0;
    padding: .5rem var(--gutter) 1rem; background: rgb(14 12 18 / .97); border-bottom: 1px solid var(--line);
  }
  .topbar.is-open nav { display: flex; }
  .topbar.is-open { background: rgb(14 12 18 / .97); }
  .topbar nav a { padding: .9rem 0; font-size: 1.1rem; color: var(--bone); border-top: 1px solid var(--line); }
  .topbar nav a:first-child { border-top: 0; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sheet dl { grid-template-columns: 1fr 1fr; }
  .sheet dl > div, .sheet dl > div + div { padding: 1rem 0; border-left: 0; }
  .sheet dl > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .sheet dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .credit { grid-template-columns: 3.25rem 1fr auto; gap: .35rem 1rem; padding: 1.1rem 0; }
  .credit-role { grid-column: 2; grid-row: 2; font-size: .9rem; color: var(--bone-dim); }
  .credit .icon { grid-column: 3; grid-row: 1 / span 2; }
  .credit-thumb { display: none; }
  .cv-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-photos { grid-template-columns: 1fr; }
  .project-photos li, .project-photos li.tall { grid-column: 1 / -1; }
  .quickbar {
    display: flex; gap: .5rem; position: fixed; inset: auto .75rem .75rem; z-index: 30;
    padding: .5rem; border-radius: 999px; background: rgb(23 20 29 / .94);
    box-shadow: 0 10px 30px -8px rgb(0 0 0 / .8);
    transform: translateY(calc(100% + 1.5rem)); transition: transform .45s var(--ease);
  }
  .quickbar.is-on { transform: none; }
  .quickbar .btn { flex: 1; justify-content: center; min-height: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
