/* Card Obra */
.c-card-obra {
  position: relative;
  height: 30rem;
  border: 1px solid rgba(224, 178, 74, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #0d1630;
  transition: border-color 0.3s ease;

  &:hover {
    border-color: rgba(224, 178, 74, 0.6);

    .c-card-obra__image {
      opacity: 0.75;
    }
  }
}

.c-card-obra__link {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.c-card-obra__figure {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.c-card-obra__parallax-layer {
  position: relative;
  width: 100%;
  height: 100%;
}

.c-card-obra__image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.c-card-obra__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 31, 0.4) 50%, #050a1f 100%);
  pointer-events: none;
}

.c-card-obra__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 10;
}

.c-card-obra__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-heading-2);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-500);
  background-color: rgba(5, 10, 31, 0.9);
  border: 1px solid rgba(224, 178, 74, 0.4);
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.c-card-obra__header {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.c-card-obra__title {
  font-family: var(--font-heading-2);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;

  @media (min-width: 768px) {
    font-size: 1.5rem;
  }
}

.c-card-obra__icon {
  color: var(--color-gold-500);
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

/* Card Repertorio */
.c-card-rep {
  position: relative;
}

.c-card-rep__link {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 1rem;
  border-bottom: 1px solid rgba(224, 178, 74, 0.2);
  border-top: 1px solid rgba(224, 178, 74, 0.2);
  gap: 1.25rem;
  transition: all 0.3s ease;
  min-height: 7.5rem;
  text-decoration: none;

  &:hover,
  &:focus {
    background-color: var(--color-sand-100);

    .c-card-rep__title,
    .c-card-rep__trophy,
    .c-card-rep__description {
      color: var(--color-navy-950);
    }

    .c-card-rep__number {
      color: var(--color-navy-800);
    }

    .c-card-rep__tag {
      color: var(--color-navy-950);
      background-color: rgba(224, 178, 74, 0.2);
      border-color: rgba(153, 121, 49, 0.4);
    }

    .c-card-rep__arrow {
      stroke: var(--color-gold-700);
      transform: rotate(-30deg);
    }
  }
}

.c-card-rep__main {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;

  @media (min-width: 768px) {
    grid-column: span 6;
    flex-direction: row;
    gap: 2rem;
  }

  @media (min-width: 1024px) {
    grid-column: span 5;
  }
}

.c-card-rep__details {
  grid-column: span 12;
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2.5rem;

  @media (min-width: 768px) {
    grid-column: span 6;
    padding-bottom: 0;
  }

  @media (min-width: 1024px) {
    grid-column: span 7;
    gap: 4rem;
  }
}

.c-card-rep__number-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-card-rep__title-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-card-rep__number {
  font-size: 1rem;
  color: #ffffff;
  font-family: var(--font-heading-2);
  transition: color 0.3s ease;
  margin: 0;
}

.c-card-rep__tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  font-family: var(--font-heading-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background-color: rgba(5, 10, 31, 0.6);
  border: 1px solid rgba(224, 178, 74, 0.3);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.c-card-rep__title-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.c-card-rep__title {
  font-size: 2rem;
  color: var(--color-gold-500);
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: var(--font-heading-2);
}

.c-card-rep__trophy {
  font-size: 1rem;
  color: var(--color-gold-500);
  transition: color 0.3s ease;
  flex-shrink: 0;
  padding-bottom: 0.3125rem;
}

.c-card-rep__description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  transition: color 0.3s ease;

  p {
    margin: 0 !important;
    font-size: 1rem;
  }
}

.c-card-rep__arrow-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.c-card-rep__arrow {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--color-gold-500);
  transition: all 0.3s ease;
}
