/* ===== Reset y base ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffd3e3;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout de página: header arriba, contenido flexible, footer abajo */
.page {
  background: #ffd3e3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ===== Header (nav flotante tipo pill) ===== */
.header {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  position: relative;
  z-index: 20;
}

.nav {
  backdrop-filter: blur(31.8px);
  -webkit-backdrop-filter: blur(31.8px);
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 24px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 36px;
}

.nav a {
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  letter-spacing: -0.07px;
  white-space: nowrap;
  color: #000;
  transition: all 0.2s ease;
}

.nav a.active {
  background: #000;
  color: #fff;
  padding: 6px 18px;
  border-radius: 12px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  width: 100%;
}

.footer-roles {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: 1.3;
  color: #000;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  width: 24px;
  height: 24px;
  display: block;
  position: relative;
  transition: opacity 0.2s ease;
}

.footer-social a svg path {
  fill: #000;
  fill-opacity: 0.65;
  transition: fill-opacity 0.2s ease;
}

.footer-social a:hover svg path {
  fill-opacity: 1;
}

/* ===== Home ===== */
.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

.home-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 900px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.home-bg-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-title-wrap {
  position: relative;
  z-index: 10;
}

.home-title {
  font-weight: 700;
  font-size: 32px;
  color: #000;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
  letter-spacing: -0.025em;
  min-height: 1.2em;
}

/* ===== Bio ===== */
.bio-main {
  flex: 1;
  padding: 80px 24px;
}

.bio-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.bio-images {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.bio-text-col {
  flex: 1;
}

.bio-title {
  font-weight: 600;
  font-size: 24px;
  color: #000;
  letter-spacing: -0.48px;
  margin-bottom: 24px;
}

.bio-body {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

.bio-body p {
  margin-bottom: 16px;
}

.bio-img-desktop {
  display: none;
}

.bio-img-mobile {
  display: block;
}

/* fade-in al scrollear */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Studio (filtros + grid) ===== */
.studio-main {
  flex: 1;
  padding: 32px 24px;
}

.filters {
  max-width: 1280px;
  margin: 0 auto 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  color: #000;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

.grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Tarjeta de proyecto (Studio) */
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.project-card .cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .cover img {
  transform: scale(1.05);
}

.project-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card h3 {
  font-weight: 600;
  font-size: 18px;
  color: #000;
  letter-spacing: -0.36px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  width: fit-content;
}

.project-card .artist {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}

.project-card .year {
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
}

.empty-state {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
}

/* ===== Live ===== */
.live-main {
  flex: 1;
  padding: 80px 24px;
}

.live-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.live-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02), 0 6px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.live-card .body-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.live-card h3 {
  font-weight: 600;
  font-size: 20px;
  color: #000;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-meta .artist {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: -0.08px;
}

.live-meta .dot {
  color: rgba(0, 0, 0, 0.3);
}

.live-meta .year {
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: -0.07px;
}

.live-link {
  font-weight: 500;
  font-size: 16px;
  color: #000;
  letter-spacing: -0.08px;
  line-height: 1.45;
  margin-top: 16px;
  transition: opacity 0.2s ease;
}

.live-link:hover {
  opacity: 0.7;
}

/* ===== Project Detail ===== */
.detail-main {
  flex: 1;
  padding: 32px 24px;
}

.detail-container {
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #000;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header h1 {
  font-weight: 700;
  font-size: 32px;
  color: #000;
  letter-spacing: -0.64px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-meta .artist {
  font-weight: 600;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.7);
}

.detail-meta .dot {
  color: rgba(0, 0, 0, 0.4);
}

.detail-meta .year {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
}

.badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.badge-type {
  background: rgba(0, 0, 0, 0.1);
}

.badge-role {
  background: #000;
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.detail-process h2,
.detail-listen h2 {
  font-weight: 600;
  font-size: 20px;
  color: #000;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.detail-process p {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  white-space: pre-line;
}

.detail-listen {
  margin-bottom: 32px;
}

.detail-listen .video-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.not-found p {
  font-weight: 600;
  font-size: 20px;
  color: #000;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
}

/* ===================================================== */
/* Breakpoints (md: 768px, lg: 1024px) — igual que Tailwind */
/* ===================================================== */
@media (min-width: 640px) {
  .header { height: 93px; padding: 21px 16px; }
  .nav { gap: 36px; padding: 14px 36px; }
  .nav a { font-size: 14.5px; }
  .nav a.active { padding: 6px 20px; }
  .home-bg-image { width: 500px; }
  .home-title { font-size: 48px; }
}

@media (min-width: 768px) {
  .header { height: 103px; padding: 24px 16px; }
  .nav {
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    gap: 40px;
    height: 55px;
    padding: 16px 40px;
    border-radius: 40px;
  }
  .nav a { font-size: 16px; letter-spacing: -0.08px; }
  .nav a.active { padding: 8px 24px; }

  .footer-inner { flex-direction: row; align-items: center; padding: 64px; }
  .footer-roles { font-size: 20px; letter-spacing: -0.4px; }
  .footer-social { gap: 24px; }

  .home-bg-image { width: 800px; }
  .home-title { font-size: 64px; }

  .bio-main { padding: 120px 64px; }
  .bio-container { flex-direction: row; gap: 48px; }
  .bio-images { width: 350px; }
  .bio-title { font-size: 28px; letter-spacing: -0.56px; }
  .bio-img-desktop { display: block; }
  .bio-img-mobile { display: none; }

  .studio-main { padding: 48px 64px; }
  .filters { gap: 16px; margin-bottom: 48px; }
  .filter-btn { padding: 12px 24px; font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .project-card .body { padding: 24px; }
  .project-card h3 { font-size: 20px; letter-spacing: -0.4px; }

  .live-main { padding: 120px 64px; }
  .live-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .live-card h3 { font-size: 24px; letter-spacing: -0.48px; }
  .live-link { font-size: 18px; letter-spacing: -0.09px; }

  .detail-main { padding: 48px 64px; }
  .back-link { margin-bottom: 32px; font-size: 16px; }
  .back-link svg { width: 20px; height: 20px; }
  .detail-header { margin-bottom: 48px; }
  .detail-header h1 { font-size: 40px; letter-spacing: -0.8px; margin-bottom: 16px; }
  .detail-meta { gap: 16px; }
  .detail-meta .artist { font-size: 20px; }
  .detail-meta .year { font-size: 18px; }
  .badge { font-size: 14px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; margin-bottom: 48px; }
  .detail-process h2, .detail-listen h2 { font-size: 22px; letter-spacing: -0.44px; }
  .detail-listen { margin-bottom: 48px; }
  .detail-listen h2 { margin-bottom: 24px; }
  .not-found p { font-size: 24px; }
}

@media (min-width: 1024px) {
  .home-bg-image { width: 1200px; }
  .home-title { font-size: 80px; }
  .bio-images { width: 400px; }
  .bio-title { font-size: 32px; letter-spacing: -0.64px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-roles { font-size: 24px; letter-spacing: -0.48px; }
  .detail-header h1 { font-size: 48px; letter-spacing: -1px; }
  .detail-meta .artist { font-size: 24px; }
  .detail-meta .year { font-size: 20px; }
  .detail-process h2, .detail-listen h2 { font-size: 24px; letter-spacing: -0.48px; }
}

@media (min-width: 1280px) {
  .home-bg-image { width: 1400px; }
}
