/* ============================================================
   PORTFOLIO
   Se carga DESPUÉS de style.css. Hereda tokens, nav, footer
   y .contact-section. Aquí solo va lo que no existe ya.
   ============================================================ */

/* --- PIEZA DESTACADA --------------------------------------- */

.featured {
  padding: 9rem 2rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.featured-inner {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* Titular de la página: describe el servicio + ciudad (SEO + claridad). */
.featured-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.6rem;
}

.featured-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.featured-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FACHADA DE VÍDEO --------------------------------------- */
/* Muestra la miniatura + play al instante; el iframe de YouTube
   solo se carga al hacer clic (menos peso, primera vista rápida). */

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-raised);
  cursor: pointer;
  overflow: hidden;
}

.video-facade-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

.video-facade:hover .video-facade-thumb,
.video-facade:focus-visible .video-facade-thumb {
  transform: scale(1.03);
  opacity: 0.82;
}

.video-facade-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(12, 12, 18, 0.72);
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

/* El triángulo de play queda óptimamente centrado con un leve empuje. */
.video-facade-btn svg {
  margin-left: 3px;
}

.video-facade:hover .video-facade-btn,
.video-facade:focus-visible .video-facade-btn {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.08);
}

.video-facade:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.featured-title {
  font-family: var(--font-heading-sm);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.featured-artist {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* --- CREDENCIALES ------------------------------------------ */
/* Los nombres hacen el trabajo que ningún adjetivo puede hacer. */

.credentials {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.credentials-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.6rem 0;
}

.credentials-list li {
  font-family: var(--font-heading-sm);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  padding-right: 1.4rem;
  margin-right: 1.4rem;
  border-right: 1px solid var(--rule);
  line-height: 1.4;
}

.credentials-list li:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

/* --- LISTA DE TRABAJOS ------------------------------------- */

.work-list {
  display: flex;
  flex-direction: column;
}

.work {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}

.work:first-child {
  padding-top: 0;
  border-top: 0;
}

/* --- REPRODUCTORES ----------------------------------------- */

.work-media {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.work-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* YouTube */
.work-media--video {
  aspect-ratio: 16 / 9;
}

/* SoundCloud, reproductor de una pista */
.work-media--compact {
  height: 166px;
}

/* Bandcamp y Spotify, reproductor de álbum */
.work-media--tall {
  height: 352px;
}

/* --- DATOS DE LA PIEZA ------------------------------------- */

.work-title {
  font-family: var(--font-heading-sm);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.work-artist {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.work-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Créditos: qué hizo exactamente en cada pieza.
   Se leen como los créditos de una carpeta de disco. */
.work-roles {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem 0;
  margin-bottom: 0.9rem;
}

.work-roles li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-right: 0.7rem;
  margin-right: 0.7rem;
  border-right: 1px solid var(--accent-dim);
}

.work-roles li:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.work-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* La pieza destacada no lleva margen inferior en sus créditos */
.featured-meta .work-roles {
  margin-bottom: 0;
}

/* --- SERVICIOS --------------------------------------------- */

/* La intro se agrupa con el título, por eso se reduce su margen. */
#servicios .section-title {
  margin-bottom: 1rem;
}

.service-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service h3 {
  font-family: var(--font-heading-sm);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.service p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* --- MÓVIL -------------------------------------------------- */

@media (max-width: 768px) {
  .featured {
    padding: 7rem 1.5rem 2.5rem;
  }

  .featured-heading {
    font-size: 1.9rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .credentials {
    padding: 2.5rem 1.5rem;
  }

  .credentials-list li {
    font-size: 1rem;
    padding-right: 1rem;
    margin-right: 1rem;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.5rem 0;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
