/* Luis Bernal — estilos
   Colores y tipografías: ver kit-de-marca/kit-de-marca.html
   1. Tokens  2. Base  3. Botones  4. Header  5. Landing  6. Páginas  7. Footer  8. Móvil */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --ink: #121212;
  --ink-deep: #0a0a0a;
  --graphite: #1e1e1e;
  --line: #262626;
  --white: #fff;
  --silver: #a3a3a3;
  --red: #b5000e;        /* rojo telón: acentos, botones, texto grande */
  --red-light: #eb4450;  /* rojo foco: texto rojo pequeño sobre negro */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 64px;
  --footer-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--ink);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
}

/* 3. Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px;
  border: 1px solid var(--white);
  font: 500 14px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; transition: transform .25s; }
.btn:hover, .btn:focus-visible { background: var(--red); border-color: var(--red); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(4px); }
.btn__back { transform: rotate(180deg); }
.btn:hover .btn__back { transform: rotate(180deg) translateX(4px); }

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
}
.brand { flex: none; }
.brand img { width: 168px; height: auto; }
.brand--hidden { visibility: hidden; }

.site-nav { flex: 1; display: flex; align-items: center; }
.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; margin-right: auto; }
.site-nav a {
  position: relative; display: block; padding: 6px 0;
  font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: #d4d4d4;
  transition: color .2s;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--red);
}

.lang { display: flex; gap: 20px; }
.lang button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  font: 400 14px/1 var(--sans); color: var(--silver);
  transition: color .2s;
}
.lang button svg { width: 20px; height: 14px; box-shadow: 0 0 0 1px rgb(255 255 255 / .15); }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { color: var(--white); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }

/* 5. Landing -------------------------------------------------------------- */
.hero {
  position: relative;
  flex: 1;
  min-height: max(560px, calc(100svh - var(--header-h) - var(--footer-h)));
  display: grid;
  overflow: hidden;
}
.hero__photo {
  position: absolute; left: 0; bottom: 0;
  height: 100%;
  pointer-events: none;
}
.hero__photo img { height: 100%; width: auto; max-width: none; }

.hero__content {
  position: relative;
  /* deja libre el ancho de la cara (≈ 38% del alto de la foto) y centra en el resto */
  padding: 48px var(--gutter) 120px calc(var(--gutter) + min(38vh, 34vw));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero__name {
  font: 500 clamp(44px, 6.4vw, 100px)/1 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__role {
  margin-top: .45em;
  font: 600 clamp(24px, 2.6vw, 38px)/1.1 var(--serif);
  letter-spacing: .06em;
  color: var(--red);
}
.hero__loc {
  margin-top: clamp(28px, 4vh, 48px);
  font: 600 clamp(15px, 1.5vw, 20px)/1.2 var(--sans);
  letter-spacing: .02em;
  color: #8a8a8a;
}

.doors {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 20px;
}
.door { position: relative; }
.door__btn { width: 100%; }
.door__roles {
  position: absolute; top: 100%; left: 0; right: 0;
  padding-top: 18px;
  font: 400 13px/1.5 var(--sans); color: var(--silver);
}
.door__roles li + li { margin-top: 4px; }

@media (hover: hover) and (min-width: 721px) {
  .door__roles { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
  .door:hover .door__roles, .door:focus-within .door__roles { opacity: 1; transform: none; }
}

/* entrada suave */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo { animation: photo-in 1.2s ease-out both; }
  .js .hero__content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__role  { animation-delay: .12s; }
  .js .hero__loc   { animation-delay: .24s; }
  .js .doors       { animation-delay: .36s; }
}
@keyframes photo-in { from { opacity: 0; transform: translateX(-24px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Otros proyectos (inicio) */
.ventures {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
.ventures__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.venture {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 30px; background: var(--graphite); border-left: 2px solid var(--red);
  text-decoration: none; color: var(--white); transition: background .2s;
}
.venture:hover, .venture:focus-visible { background: #262626; }
.venture__name { font: 500 clamp(28px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: .02em; }
.venture__place { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.venture__desc { font-size: 15px; line-height: 1.6; color: #d4d4d4; }
.venture__go {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.venture__go svg { width: 16px; height: 16px; transition: transform .2s; }
.venture:hover .venture__go { color: var(--red-light); }
.venture:hover .venture__go svg { transform: translate(2px, -2px); }

/* 6. Páginas interiores --------------------------------------------------- */
.page {
  flex: 1;
  display: grid; place-items: center;
  padding: 96px var(--gutter);
  text-align: center;
}
.page__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.page__title {
  position: relative;
  font: 500 clamp(48px, 7vw, 96px)/1 var(--serif);
  letter-spacing: .04em; text-transform: uppercase;
  padding-bottom: 28px;
}
.page__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 2px; height: 18px; background: var(--red);
}
.page__lead { color: #d4d4d4; max-width: 46ch; }
.page .btn { margin-top: 12px; }
.contact-mail {
  font: 500 clamp(26px, 3.4vw, 44px)/1.2 var(--serif);
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  word-break: break-word;
}
.contact-mail:hover { color: var(--red-light); }
.page__follow { margin-top: 28px; }

/* 7. Footer --------------------------------------------------------------- */
.site-footer {
  min-height: var(--footer-h);
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}
.site-footer__inner {
  min-height: calc(var(--footer-h) - 1px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--gutter);
}
.socials { display: flex; gap: 6px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--silver); transition: color .2s;
}
.socials a:hover { color: var(--white); }
.socials svg { width: 20px; height: 20px; }
.site-footer__copy { font-size: 12px; color: #8a8a8a; }

/* 8. Tablet y móvil ------------------------------------------------------- */
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .page-inner .brand { visibility: visible; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 40px;
    padding: 40px var(--gutter);
    background: var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav ul { flex-direction: column; gap: 0; margin: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 20px 0; font-size: 15px; }
  .site-nav a[aria-current="page"]::after { bottom: auto; top: 50%; right: auto; left: -14px; width: 2px; height: 18px; transform: translateY(-50%); }
  .lang { gap: 28px; }
  .lang button { font-size: 16px; }
  .is-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .is-open .nav-toggle__open { display: none; }
  .is-open .nav-toggle__close { display: block; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero__photo {
    position: relative; height: auto;
    width: 64%; max-width: 360px;
    border-bottom: 1px solid var(--line);
  }
  .hero__photo img { width: 100%; height: auto; }
  .hero__content { padding: 36px var(--gutter) 48px; }
  .doors { width: 100%; grid-template-columns: 1fr; gap: 28px; max-width: 360px; }
  .door__roles { position: static; padding-top: 12px; }
  .door__roles li { display: inline; }
  .door__roles li + li::before { content: " · "; }
  .site-footer__inner { flex-direction: column; justify-content: center; text-align: center; }
}

/* 9. Páginas de perfil (Música, Actuación, Prensa) ------------------------ */
.profile {
  flex: 1;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}
.profile [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.profile-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-top: clamp(32px, 6vh, 72px);
}
.profile-hero__photo img {
  width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - 64px);
  object-fit: cover; object-position: top;
}
.profile-hero__text { display: flex; flex-direction: column; gap: 22px; }
.profile-hero__title, .block__title--page {
  position: relative;
  font: 500 clamp(48px, 7vw, 96px)/1 var(--serif);
  letter-spacing: .04em; text-transform: uppercase;
  padding-bottom: 26px;
}
.profile-hero__title::after, .block__title--page::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px; background: var(--red);
}
.profile-hero__lead { max-width: 52ch; font-size: 18px; color: #d4d4d4; }

.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.subnav a {
  padding: 12px 18px; border: 1px solid #3a3a3a;
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: #d4d4d4;
  transition: border-color .2s, color .2s;
}
.subnav a:hover, .subnav a:focus-visible { border-color: var(--red); color: var(--white); }

.block { margin-top: clamp(80px, 12vh, 128px); }
.block--first { margin-top: clamp(48px, 8vh, 88px); }
.block__head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.block__title {
  font: 500 clamp(34px, 4.4vw, 58px)/1.05 var(--serif);
  letter-spacing: .03em; text-transform: uppercase;
}

/* Créditos */
.credits { border-top: 1px solid var(--line); }
.credit {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.credits--compact .credit { grid-template-columns: minmax(0, 1fr) auto; }
.credit__year { font: 500 22px/1 var(--serif); color: var(--silver); font-variant-numeric: tabular-nums; }
.credit__title { font: 500 clamp(22px, 2.2vw, 28px)/1.15 var(--serif); letter-spacing: .01em; }
.credit__meta {
  margin-top: 6px;
  font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--silver);
}
.tag {
  display: inline-block; margin-left: 8px; padding: 3px 8px;
  border: 1px solid var(--red-light); color: var(--red-light);
  font-size: 10px; letter-spacing: .18em;
}
.credit__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  transition: color .2s;
}
.credit__link svg { width: 16px; height: 16px; transition: transform .2s; }
.credit__link .brand-case { text-transform: none; }
.credit__link:hover, .credit__link:focus-visible { color: var(--red-light); }
.credit__link:hover svg { transform: translate(2px, -2px); }

/* Grupos de créditos (CV de actuación) */
.credits-group { margin-top: 44px; }
.credits-group:first-child { margin-top: 0; }
.credits-group__title {
  margin-bottom: 14px;
  font: 500 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red-light);
}
.credits-group__note { margin: -6px 0 14px; font-size: 14px; color: var(--silver); }
.videos + .credits-group, .gallery + .credits-group { margin-top: 48px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  margin-top: 44px; background: var(--line); border: 1px solid var(--line);
}
.stats div { padding: 18px 20px; background: var(--ink); }
.stats dt { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.stats dd { margin-top: 6px; font: 500 22px/1.2 var(--serif); }
.skills { font-size: 17px; line-height: 1.7; color: #d4d4d4; max-width: 70ch; }

/* Galería */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery a { display: block; overflow: hidden; background: var(--graphite); }
.gallery img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* Videos (YouTube se carga solo al dar play) */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.videos--single { grid-template-columns: minmax(0, 820px); margin-bottom: 36px; }
.video__btn, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--graphite); border: 0;
}
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); transition: transform .25s;
}
.video__play svg { width: 28px; height: 28px; margin-left: 3px; }
.video__btn:hover img { opacity: 1; }
.video__btn:hover .video__play { transform: scale(1.08); }
.video figcaption { margin-top: 12px; font-size: 14px; color: var(--silver); }

/* Reproductor de la playlist (estilo lista de música) */
.player {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: 48px; background: var(--graphite); border-left: 2px solid var(--red);
}
.player__screen { position: relative; min-width: 0; min-height: 320px; background: #000; }
.player__cover, .player__frame, .player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__cover { z-index: 1; display: block; overflow: hidden; }
.player__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.player__cover:hover img { opacity: 1; }
.player__cover:hover .video__play { transform: scale(1.08); }
.player.is-on .player__cover { display: none; }
.player__side { display: flex; flex-direction: column; min-width: 0; padding: 24px 0 12px; }
.player__head { padding: 0 28px 18px; display: flex; flex-direction: column; gap: 8px; }
.player__title { font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); }
.player__count { font-size: 13px; color: var(--silver); }
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 28px; text-align: left; color: var(--white);
  border-top: 1px solid var(--line); transition: background .2s;
}
.track:hover, .track:focus-visible { background: #262626; }
.track__n { font: 500 18px/1 var(--serif); color: var(--silver); font-variant-numeric: tabular-nums; text-align: center; }
.track__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.track__name { font: 500 19px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__by { font-size: 12px; color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__time { font-size: 13px; color: var(--silver); font-variant-numeric: tabular-nums; }
.track.is-current .track__name, .track.is-current .track__n { color: var(--red-light); }
.track.is-playing .track__n { font-size: 0; }
.track.is-playing .track__n::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  background: linear-gradient(var(--red-light), var(--red-light)) 0 100% / 3px 60% no-repeat,
              linear-gradient(var(--red-light), var(--red-light)) 50% 100% / 3px 100% no-repeat,
              linear-gradient(var(--red-light), var(--red-light)) 100% 100% / 3px 40% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .track.is-playing .track__n::before { animation: eq 1s ease-in-out infinite alternate; }
}
@keyframes eq { to { background-size: 3px 30%, 3px 70%, 3px 100%; } }
@media (max-width: 899px) {
  .player { grid-template-columns: 1fr; }
  .player__screen { min-height: 0; aspect-ratio: 16 / 9; }
  .player__side { padding-top: 20px; }
}
@media (max-width: 560px) {
  .player__head { padding: 0 20px 16px; }
  .track { padding: 12px 20px; gap: 12px; }
}

/* Agente */
.agent {
  margin-top: 36px; padding: 22px 28px;
  background: var(--graphite); border-left: 2px solid var(--red);
  display: flex; flex-direction: column; gap: 8px;
}
.agent__name { font: 500 28px/1.1 var(--serif); }
.agent__contact { font-size: 16px; opacity: .8; }
.agent__phone a { font-size: 18px; text-decoration: none; }

/* Contacto al final de cada perfil */
.block--contact {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding-top: 72px; border-top: 1px solid var(--line); text-align: center;
}
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.follow a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--silver); transition: color .2s;
}
.follow a:hover { color: var(--white); }
.follow svg { width: 20px; height: 20px; }

/* Visor de fotos */
.lightbox {
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  padding: 0; border: 0; background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .92); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px;
  display: grid; place-items: center; width: 48px; height: 48px; color: var(--white);
}
.lightbox__close svg { width: 28px; height: 28px; }

@media (max-width: 899px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero__photo { max-width: 520px; }
  .profile-hero__photo img { max-height: 70svh; }
}
@media (max-width: 560px) {
  .profile-hero__lead { font-size: 16px; }
  .credit { grid-template-columns: 52px minmax(0, 1fr); padding: 18px 0; }
  .credit__link { grid-column: 2; min-height: 32px; }
  .credits--compact .credit { grid-template-columns: minmax(0, 1fr) auto; }
  .credits--compact .credit__link { grid-column: auto; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery li { margin-bottom: 10px; }
  .agent { padding: 18px 20px; }
}
