/* ==========================================================================
   Coppelius · Nosotros (Fase 1)
   Figma: nosotros 202:2125 (solo escritorio, 1440; sin diseño móvil:
   ≤991 y ≤767 son derivados). Se carga después de styles.css.

   Bloques: .testimonial · .who-we-are · .timeline · .team · .team-card
   El Figma usa 64px de margen (contenido 1312): se usa el contenedor
   global (gutter 48, contenido 1344) por coherencia con el resto del sitio.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Testimonio · quote (202:2191) — 320 a 1440
   96 + 78 (texto) + 58 (comilla de cierre) − 32 + 40 (autor) + 80
   -------------------------------------------------------------------------- */
.testimonial {
  padding: 96px var(--space-gutter) 80px;
  background-color: var(--color-bg-page);
}

.testimonial__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: 0px;
}

.testimonial__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 848px;
  margin: 0px 0px -32px;
  padding-inline: 24px;
}

.testimonial__mark {
  font-family: var(--font-family-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--color-text-heading);
}

/* La de apertura no ocupa alto en el Figma (leading 0): cuelga sobre el texto */
.testimonial__mark--open {
  position: absolute;
  top: 0px;
  left: 0px;
  line-height: 0px;
  transform: translateY(-2px);
}

.testimonial__mark--close {
  height: 58px;
  line-height: 58px;
  text-align: right;
  margin-right: -24px;
}

.testimonial__text {
  font-size: var(--font-size-20);
  font-style: italic;
  line-height: 26px;
  text-align: center;
  color: var(--color-text-body);
}

.testimonial__author {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight);
  text-align: center;
}

.testimonial__name {
  font-weight: 600;
  color: var(--color-text-accent-on-light);
}

.testimonial__role {
  font-weight: 300;
  color: var(--color-text-body);
}

/* --------------------------------------------------------------------------
   Quiénes somos · who (202:2200) — 659 a 1440
   88 + 53 (título) + 26 + 392 (texto) + 100
   -------------------------------------------------------------------------- */
.who-we-are {
  padding: 88px var(--space-gutter) 100px;
  background-color: var(--color-bg-subtle);
}

.who-we-are__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.who-we-are__title,
.timeline__title {
  font-size: var(--font-size-40);
  font-weight: 400;
  color: var(--color-text-heading);
}

.who-we-are__content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}

.who-we-are__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1 1 0px;
  min-width: 0px;
  max-width: 624px;
  font-size: var(--font-size-16);
  line-height: 28px;
  color: var(--color-text-body);
}

/* Imagen 608×356 + 4 filetes desplazados 8px cada uno → bloque 640×388 */
.who-we-are__media {
  position: relative;
  flex: 0 1 47.62%;          /* 640 de 1344 */
  min-width: 0px;
  margin-left: auto;
  padding: 0px 32px 32px 0px;
}

.who-we-are__image {
  position: relative;
  width: 100%;
  aspect-ratio: 608 / 356;
  object-fit: cover;
  border-bottom-right-radius: 40px;
}

.who-we-are__frame-line {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 32px);
  aspect-ratio: 608 / 356;
  border: 1px solid var(--color-border-strong);
  border-bottom-right-radius: 46px;
}

.who-we-are__frame-line:nth-child(2) {
  top: 16px;
  left: 16px;
  border-bottom-right-radius: 54px;
}

.who-we-are__frame-line:nth-child(3) {
  top: 24px;
  left: 24px;
  border-bottom-right-radius: 62px;
}

.who-we-are__frame-line:nth-child(4) {
  top: 32px;
  left: 32px;
  border-bottom-right-radius: 70px;
}

/* --------------------------------------------------------------------------
   Nuestra historia · o-jour (202:2211) — 651 a 1440
   88 + 53 + 60 + 238 (línea de tiempo) + 60 + 52 (botones) + 100
   -------------------------------------------------------------------------- */
.timeline {
  padding: 88px var(--space-gutter) 100px;
  background-color: var(--color-bg-page);
}

.timeline__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline__track {
  display: flex;
  flex-direction: row;
  margin: 0px;
  padding: 0px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.timeline__track::-webkit-scrollbar {
  display: none;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 440px;
  min-height: 238px;
  scroll-snap-align: start;
}

.timeline__item:last-child {
  flex-basis: 420px;
}

/* Círculo de 128 + línea dorada hasta el siguiente hito */
.timeline__marker {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.timeline__marker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--color-border-accent-on-light);
}

.timeline__item:last-child .timeline__marker::after {
  content: none;
}

.timeline__year {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border: 1px solid var(--color-border-accent-on-light);
  border-radius: var(--radius-round);
  font-family: var(--font-family-display);
  font-size: var(--font-size-32);
  line-height: var(--line-height-heading);
  text-transform: uppercase;
  color: var(--color-text-heading);
  background-color: var(--color-bg-page);
  /* anillo interior navy: 4px de aire + 1px (círculo de 114 dentro del de 128) */
  box-shadow: inset 0px 0px 0px 4px var(--color-neutral-0), inset 0px 0px 0px 5px var(--color-brand-primary-500);
}

.timeline__year--text {
  font-size: var(--font-size-20);
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: 12px;
  max-width: 420px;
}

.timeline__item-title {
  font-size: var(--font-size-20);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--color-text-heading);
}

.timeline__description {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight);
  color: var(--color-text-body);
}

.timeline__navigation {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
}

/* .button.button--outline (anterior) y .button.button--secondary (siguiente), con ancho fijo */
.timeline__button {
  width: 132px;
}

/* --------------------------------------------------------------------------
   Equipo · team (202:2259) — 1890 a 1440
   88 + 98 (cabecera) + 62 + 423 + 80 + 423 + 80 + 536 + 100
   Fondo navy: ver el aviso del HTML.
   -------------------------------------------------------------------------- */
.team {
  padding: 88px var(--space-gutter) 100px;
  background-color: var(--color-bg-inverse);
}

.team__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 62px;
}

.team__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.team__title {
  font-size: var(--font-size-40);
  font-weight: 400;
  color: var(--color-text-accent);
}

.team__subtitle {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight);
  color: var(--color-text-inverse);
}

.team__groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.team__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.team__group-title {
  font-size: var(--font-size-28);
  font-weight: 400;
  color: var(--color-text-accent);
  text-align: center;
}

/* Tarjetas de 244 separadas por 56 + filete de 1px + 56 */
.team__members {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.team__member {
  display: flex;
  flex-direction: row;
  flex: 0 1 244px;
  min-width: 0px;
  /* mismo ancho de tarjeta en filas de 2 y de 4 cuando no caben 4 × 244 */
  max-width: calc((100% - 3 * (2 * min(56px, 3.889vw) + 1px)) / 4);
}

.team__member + .team__member {
  flex-basis: calc(244px + min(56px, 3.889vw) + 1px); /* + margin fuera del flex-basis */
  padding-left: min(56px, 3.889vw);
  margin-left: min(56px, 3.889vw);
  border-left: 1px solid var(--color-border-on-dark);
  max-width: calc((100% - 3 * (2 * min(56px, 3.889vw) + 1px)) / 4 + min(56px, 3.889vw) + 1px);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding-bottom: 16px;
}

.team-card__media {
  width: 100%;
  aspect-ratio: 244 / 266;
  overflow: hidden;
  border-radius: var(--radius-surface);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* [Ejemplo] Los retratos provisionales (artist-*.webp) son recortes circulares
   con las esquinas blancas: se amplía el centro para que no se vean */
.team-card__media--from-circle .team-card__image {
  transform: scale(1.45);
  transform-origin: 50% 42%;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.team-card__name {
  margin: 0px;
  font-family: var(--font-family-display);
  font-size: var(--font-size-20);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--color-text-accent);
}

.team-card__role {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight);
  color: var(--color-text-inverse);
}

.team__group--singers {
  padding-bottom: 16px;
}

.team__singers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 880px;
  margin: 0px;
}

.team__singers-image {
  width: 100%;
  aspect-ratio: 880 / 400;
  object-fit: cover;
  border-radius: var(--radius-surface);
}

.team__singers-caption {
  font-size: var(--font-size-16);
  line-height: var(--line-height-tight);
  color: var(--color-text-inverse);
  text-align: center;
}

/* ==========================================================================
   ≤991 · tablet (derivado: no hay diseño)
   ========================================================================== */
@media (max-width: 991px) {
  .testimonial {
    padding-block: 80px 64px;
  }

  .who-we-are,
  .timeline,
  .team {
    padding-block: 64px 80px;
  }

  .who-we-are__content {
    flex-direction: column;
    gap: 40px;
  }

  .who-we-are__text {
    max-width: none;
  }

  .who-we-are__media {
    flex: 0 1 auto;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .timeline__item {
    flex-basis: 360px;
  }

  .timeline__item:last-child {
    flex-basis: 340px;
  }

  .timeline__body {
    max-width: 340px;
  }

  /* Equipo: rejilla de 2 columnas, filete solo entre columnas */
  .team__members {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 244px));
    justify-content: center;
    column-gap: 113px;
    row-gap: 40px;
  }

  .team__member,
  .team__member + .team__member {
    max-width: none;
  }

  .team__member + .team__member {
    padding-left: 0px;
    margin-left: 0px;
    border-left: 0px solid transparent;
  }

  .team__member {
    position: relative;
  }

  .team__member:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: -57px;
    width: 1px;
    background-color: var(--color-border-on-dark);
  }
}

/* ==========================================================================
   ≤767 · móvil 390 (derivado)
   ========================================================================== */
@media (max-width: 767px) {
  .testimonial {
    padding-block: 56px 48px;
  }

  .testimonial__quote {
    padding-inline: 20px;
  }

  .testimonial__mark {
    font-size: var(--font-size-48);
  }

  .testimonial__mark--close {
    height: 44px;
    line-height: 44px;
    margin-right: -20px;
  }

  .testimonial__quote {
    margin-bottom: -24px;
  }

  .testimonial__text {
    font-size: var(--font-size-18);
    line-height: 24px;
  }

  .who-we-are,
  .timeline,
  .team {
    padding-block: 48px 56px;
  }

  .who-we-are__inner {
    gap: 20px;
  }

  .who-we-are__title,
  .timeline__title,
  .team__title {
    font-size: var(--font-size-28);
  }

  .who-we-are__text {
    gap: 24px;
    font-size: var(--font-size-16);
    line-height: 24px;
  }

  .who-we-are__media {
    padding: 0px 16px 16px 0px;
  }

  .who-we-are__image {
    border-bottom-right-radius: 24px;
  }

  .who-we-are__frame-line {
    top: 4px;
    left: 4px;
    width: calc(100% - 16px);
    border-bottom-right-radius: 28px;
  }

  .who-we-are__frame-line:nth-child(2) {
    top: 8px;
    left: 8px;
    border-bottom-right-radius: 32px;
  }

  .who-we-are__frame-line:nth-child(3) {
    top: 12px;
    left: 12px;
    border-bottom-right-radius: 36px;
  }

  .who-we-are__frame-line:nth-child(4) {
    top: 16px;
    left: 16px;
    border-bottom-right-radius: 40px;
  }

  .timeline__inner {
    gap: 32px;
  }

  /* El hito ocupa casi todo el ancho y asoma el siguiente */
  .timeline__item,
  .timeline__item:last-child {
    flex-basis: 300px;
  }

  .timeline__item:last-child {
    flex-basis: 100%;
  }

  .timeline__year {
    width: 96px;
    height: 96px;
    font-size: var(--font-size-24);
    box-shadow: inset 0px 0px 0px 3px var(--color-neutral-0), inset 0px 0px 0px 4px var(--color-brand-primary-500);
  }

  .timeline__year--text {
    font-size: var(--font-size-16);
  }

  .timeline__item {
    min-height: 0px;
  }

  .timeline__body {
    padding-inline: 0px 20px;
  }

  .timeline__item-title {
    font-size: var(--font-size-18);
  }

  .timeline__description {
    font-size: var(--font-size-16);
  }

  .timeline__navigation {
    justify-content: stretch;
  }

  .timeline__button {
    flex: 1 1 0px;
    width: auto;
  }

  .team__inner {
    gap: 40px;
  }

  .team__header {
    gap: 16px;
  }

  .team__subtitle {
    font-size: var(--font-size-16);
  }

  .team__groups {
    gap: 56px;
  }

  .team__group {
    gap: 24px;
  }

  .team__group-title {
    font-size: var(--font-size-24);
  }

  .team__members {
    column-gap: 33px;
    row-gap: 24px;
  }

  .team__member:nth-child(even)::before {
    left: -17px;
  }

  .team-card {
    gap: 10px;
    padding-bottom: 0px;
  }

  .team-card__name {
    font-size: var(--font-size-16);
  }

  .team-card__role {
    font-size: var(--font-size-14);
  }

  .team__group--singers {
    padding-bottom: 0px;
  }

  .team__singers {
    gap: 16px;
  }

  .team__singers-image {
    aspect-ratio: 4 / 3;
  }

  .team__singers-caption {
    font-size: var(--font-size-16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__track {
    scroll-behavior: auto;
  }
}
