@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ====== VARIABLES GLOBALES ====== */
:root {
  --max: 980px;
  --pink: #d10078;
  --left: 230px;
  --gap1: 70px;
  --gap2: 30px;
  --title: 320px;
}

/* ====== RESET Y BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #111;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.4;
  font-size: 13px;
}

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

a:hover {
  text-decoration: none;
}

/* ====== LAYOUT PRINCIPAL ====== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 50px 80px;
}

.grid {
  display: grid;
  grid-template-columns: var(--left) 1fr;
  column-gap: var(--gap1);
  align-items: start;
}

/* ====== COLUMNA IZQUIERDA (MENÚ) ====== */
.left {
  margin-top: 50px;
}

.name {
  font-size: 18px;
  margin: 0 0 40px;
  font-weight: 300;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 13px;
  font-weight: 400;
  align-items: flex-start;
}

.menu a.active {
  color: var(--pink);
}

.menu a:hover {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ====== BIO (INDEX) ====== */
.catalog--bio {
  padding-top: 50px;
  max-width: 600px;
  display: block; /* No usar grid, solo bloque simple */
}

.catalog--bio p {
  margin: 0 0 18px;
}

/* ====== CONTACT ====== */
.catalog--contact {
  padding-top: 50px;
  max-width: 600px;
  display: block; /* No usar grid, solo bloque simple */
}

.contact-section {
  margin-bottom: 50px;
}

.contact-section h2 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px 0;
  color: #111;
}

.contact-item {
  margin-bottom: 18px;
  font-size: 13px;
}

.contact-label {
  display: block;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.contact-link {
  display: inline-block;
  color: var(--pink);
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-link:hover {
  color: inherit;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-block;
  color: var(--pink);
  transition: color 0.2s ease;
  font-size: 13px;
}

.social-link:hover {
  color: inherit;
}

.social-link::before {
  content: '↗ ';
  margin-right: 4px;
}

.contact-info {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.year {
  font-weight: 300;
  font-style: italic;
}

.contact-section:nth-child(3) {
  display: none; /* Cambiar a "block" para mostrar la sección de Links */
}

/* ====== WORKS (CATÁLOGO) ====== */
.wrap.works-wrap {  
  padding: 90px 57.5px 80px;
  --title: 310px;     /* Títulos mantienen su ancho */
  --gap1: 40px;  /* Reduce espacio entre menú y catálogo (era 70px) */
}

.wrap.works-wrap .left {
  margin-top: 0; /* Alinear menú con headers del catálogo */
}

/* Grid solo para el catálogo de works, no para bio/contact */
.grid > .catalog:not(.catalog--bio):not(.catalog--contact) {
  display: grid;
  grid-template-columns: var(--title) 1fr;
  column-gap: var(--gap2);
  align-items: start;
}

.cat,
.head-right {
  font-weight: 500;
  margin: 0;
  font-size: 13px;
}

.works {
  grid-column: 1 / -1;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row {
  display: grid;
  grid-template-columns: var(--title) 1fr;
  column-gap: var(--gap2);
  align-items: start;
}

.work-title {
  font-style: italic;
  cursor: pointer;
  transition: color 0.5s ease;
  font-weight: 300;  /* ← Agregar esta línea */
}

.work-title:hover {
  color: var(--pink);
}

.inst {
  line-height: 1.6;
  white-space: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  font-weight: 300;  /* ← Agregar esta línea */
}

.row > div,
.section-item > div {
  min-width: 0;
}

.section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0px;
  margin-top: 50px;
  margin-bottom: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  color: #111;
}

#colaboracionesList,
#albumesList {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-item {
  display: grid;
  grid-template-columns: var(--title) 1fr;
  column-gap: var(--gap2);
  align-items: start;
  margin-bottom: 18px;
}

.section-item-title {
  font-style: italic;
  cursor: pointer;
  transition: color 0.5s ease;
  font-weight: 300;  /* ← Agregar esta línea */
}

.section-item-title:hover {
  color: var(--pink);
}

.section-item-info {
  font-size: 12px;
  line-height: 1.6;
}

/* ====== MODAL ====== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 0;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 60px 40px 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #111;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--pink);
}

.modal-title {
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 8px 0;
}

.modal-year {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0 0 30px 0;
}

.modal-instrumentacion {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #111;
}

.modal-embed {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.modal-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.modal-embed[data-bandcamp] iframe {
  height: auto;
}

.modal-description {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.modal-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.modal-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.25s ease;
  border-radius: 2px;
}

.modal-link:hover {
  opacity: 0.8;
}

.modal-link.secondary {
  background: #111;
  color: #fff;
}

body {
  font-size: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .catalog--bio,
  .catalog--contact {
    padding-top: 0;
    max-width: 100%;
  }

  .left {
    margin-top: 0;
  }

  .wrap {
    padding: 40px 30px 60px;
  }

  .modal-content {
    padding: 40px 30px 30px;
  }

  .catalog {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .row,
  .section-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 30px 20px 50px;
  }

  .modal-content {
    padding: 30px 20px 20px;
    max-width: 100%;
  }

  .name {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .menu {
    gap: 15px;
  }
}
