:root {
  --bg: #111;
  --fg: #ededea;
  --muted: #8a8a85;
  --line: #2a2a28;
  --accent: #ffee58;
  --pad: clamp(16px, 3vw, 40px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #111; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
.muted { color: var(--muted); }

/* ---------- barra superior ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  background: rgba(17,17,17,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .02em;
}
.bar__nav { display: flex; gap: clamp(12px, 2vw, 28px); }
.bar__nav a, .bar__name { transition: opacity .2s; }
.bar__nav a:hover { opacity: .6; }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) 40px;
  border-bottom: 1px solid var(--line);
}
.hero { position: relative; overflow: hidden; }
/* Foto: "lighten" sobre el fondo hace que todo lo más oscuro que #111 sea
   exactamente el negro de la web; la máscara funde los bordes. */
.hero__photo {
  position: absolute; top: 0; right: 0;
  width: min(68vw, 1000px); height: 100%;
  object-fit: cover; object-position: 30% 40%;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 45%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero__name, .hero__meta { position: relative; z-index: 1; }
.hero__intro { max-width: 52ch; }
.hero__lead {
  font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.2;
  letter-spacing: -.01em; margin-bottom: 12px; color: var(--fg);
}
.hero__tagline {
  font-weight: 800; text-transform: uppercase; color: var(--accent);
  font-size: 15px; letter-spacing: .04em; margin-bottom: 8px;
}
#intro { color: #c9c9c4; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; }
.hero__name {
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: .82;
  letter-spacing: -.035em;
  font-size: clamp(56px, 12vw, 230px);
  display: flex; flex-direction: column;
}
.hero__name span:last-child { color: var(--accent); }
.hero__meta {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .2; } }

/* ---------- secciones ---------- */
.section { padding: 80px var(--pad); border-bottom: 1px solid var(--line); }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.section h2 {
  font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112;
  text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(36px, 6vw, 80px); line-height: .9;
}
.section h2 sup { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--accent); vertical-align: top; margin-left: 6px; letter-spacing: 0; }

/* ---------- filtros ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  font: 500 12px var(--mono); text-transform: uppercase;
  background: none; color: var(--fg); cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px;
  transition: all .15s;
}
.filters button:hover { border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--accent); color: #111; border-color: var(--accent); }

/* ---------- cuadrícula de portadas ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr));
  gap: clamp(8px, 1.2vw, 16px);
}
.tile { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #1b1b1a; }
.tile.is-hidden { display: none; }
.tile button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.tile button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s;
}
.tile__ph {
  position: absolute; inset: 0; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-weight: 800; font-stretch: 110%; font-variation-settings: "wdth" 110;
  text-transform: uppercase; line-height: .95; letter-spacing: -.01em;
  font-size: clamp(18px, 2vw, 26px);
}
.tile__ph small { font: 400 11px var(--mono); color: var(--muted); text-transform: none; }
.tile__info {
  position: absolute; inset: auto 0 0 0; padding: 12px 14px;
  background: var(--accent); color: #111;
  transform: translateY(101%); transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.tile__info b { display: block; font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.1; }
.tile__info span { font: 400 11px var(--mono); }
.tile:hover img { transform: scale(1.04); filter: brightness(.85); }
.tile:hover .tile__info, .tile button:focus-visible .tile__info { transform: none; }

/* ---------- directo ---------- */
.live { border-top: 1px solid var(--line); }
.live li {
  display: grid; grid-template-columns: 120px 1.3fr 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 18px 8px; border-bottom: 1px solid var(--line);
  transition: background .15s, color .15s;
}
.live li:hover { background: var(--accent); color: #111; }
.live li:hover .muted { color: #111; }
.live__act { font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.live__role { text-align: right; }
.live-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 32px; }
.live-photos:empty { display: none; }
.live-photos img { aspect-ratio: 3/2; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter .3s; }
.live-photos img:hover { filter: none; }

/* ---------- directo (nuevo) ---------- */
.live__roles {
  color: var(--accent); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 48px;
}
.live__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.live__cols .mono { margin-bottom: 16px; text-transform: uppercase; font-size: 12px; }
.live__list { display: flex; flex-wrap: wrap; font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.live__list li:not(:last-child)::after { content: "/"; color: #3a3a37; margin: 0 .4em; font-weight: 400; }
@media (max-width: 720px) { .live__cols { grid-template-columns: 1fr; } }

/* ---------- servicios ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services div { background: var(--bg); padding: 24px 20px 32px; }
.services em { font: normal 12px var(--mono); color: var(--accent); }
.services h3 { font-weight: 800; text-transform: uppercase; font-size: 22px; margin: 28px 0 8px; letter-spacing: -.01em; }
.services p { color: var(--muted); font-size: 15px; }
.about { max-width: 52ch; margin-top: 48px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #c9c9c4; }

/* ---------- sobre mí ---------- */
.bio { max-width: 60ch; display: grid; gap: 1em; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: #c9c9c4; }

/* ---------- contacto ---------- */
.contact__intro { font-size: clamp(18px, 1.8vw, 24px); color: #c9c9c4; max-width: 40ch; margin-bottom: 40px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; max-width: 900px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field > span { color: var(--muted); text-transform: uppercase; font-size: 12px; }
.form__field--wide { grid-column: 1 / -1; }
.form input, .form textarea {
  font: 400 18px var(--display); color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid #3a3a37;
  padding: 10px 0; border-radius: 0; outline: none; resize: vertical;
  transition: border-color .2s;
}
.form textarea { border: 1px solid #3a3a37; padding: 12px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form.was-checked :invalid { border-color: #ff6b5a; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__send {
  font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .03em;
  background: var(--accent); color: #111; border: 0; padding: 16px 36px; cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.form__send:hover { transform: translateY(-2px); }
.form__send:disabled { opacity: .5; cursor: wait; transform: none; }
.form__status { color: var(--muted); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

.contact { padding-top: 120px; padding-bottom: 120px; }
.contact__mail {
  display: inline-block; margin: 16px 0 32px;
  font-weight: 900; font-stretch: 115%; font-variation-settings: "wdth" 115;
  font-size: clamp(28px, 7vw, 120px); line-height: 1; letter-spacing: -.03em;
  color: var(--accent); word-break: break-all;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size .35s;
}
.contact__mail:hover { background-size: 100% 3px; }
.contact__socials { display: flex; gap: 24px; flex-wrap: wrap; text-transform: uppercase; }
.contact__socials a:hover { color: var(--accent); }

.foot { display: flex; justify-content: space-between; padding: 20px var(--pad); color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ---------- modal ---------- */
.modal {
  margin: auto; border: 0; background: var(--bg); color: var(--fg);
  width: min(960px, 92vw); max-height: 90vh; padding: 0;
}
.modal::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .3s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #111; color: var(--accent); border: 0; padding: 6px 10px; cursor: pointer; }
.modal__body { display: grid; grid-template-columns: 1fr 1fr; }
.modal__cover { aspect-ratio: 1; background: #1b1b1a; position: relative; }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__text { padding: 48px 32px 32px; display: flex; flex-direction: column; gap: 8px; }
.modal__text .artist { font: 400 13px var(--mono); color: var(--muted); text-transform: uppercase; }
.modal__text h3 { font-weight: 900; font-stretch: 112%; font-variation-settings: "wdth" 112; text-transform: uppercase; font-size: clamp(28px, 4vw, 48px); line-height: .95; letter-spacing: -.02em; }
.modal__roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.modal__roles span { font: 500 11px var(--mono); text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 4px 10px; }
.modal__link { margin-top: auto; padding-top: 24px; font: 500 13px var(--mono); text-transform: uppercase; color: var(--accent); }
.modal__link:hover { text-decoration: underline; }

/* ---------- móvil ---------- */
@media (max-width: 720px) {
  .bar__nav a:not(:last-child) { display: none; }
  .hero { min-height: 88vh; }
  .hero__photo { width: 100%; height: 62%; object-position: 35% 30%;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 50%);
    mask-image: linear-gradient(to top, transparent 0%, #000 50%); }
  .live li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .live li > :nth-child(1) { grid-column: 1 / -1; }
  .live li > :nth-child(3) { grid-column: 1; }
  .live li > :nth-child(4) { grid-row: 3; grid-column: 2; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__text { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
