/* Values: circular medallions; choosing one shows its phrase in a large quote below */

.values-section {
  position: relative;
  background:
    radial-gradient(40% 60% at 0% 100%, rgb(79 195 224 / 0.18), transparent 70%),
    var(--cielo-claro);
}

.values-orbit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-3);
  max-width: 980px;
  margin-inline: auto;
}

.value {
  display: flex;
  justify-content: center;
}

.value__button {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--azul-rey);
  cursor: pointer;
}

.value__button .medallion {
  --size: 84px;
}

.value:nth-child(2) .medallion { background: linear-gradient(140deg, #2a7fd4, var(--azul-rey)); }
.value:nth-child(3) .medallion { background: linear-gradient(140deg, var(--azul-cielo), var(--azul-medio)); }
.value:nth-child(4) .medallion { background: linear-gradient(140deg, #3b6fd8, #0c2f6b); }
.value:nth-child(5) .medallion { background: linear-gradient(140deg, #1f9ac9, #123f8f); }
.value:nth-child(6) .medallion { background: linear-gradient(140deg, #4a8fe0, var(--azul-rey-oscuro)); }

.value__name {
  font-family: var(--font-titulos);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.value__button:hover .medallion {
  transform: translateY(-4px) scale(1.05);
}

.value__button[aria-pressed="true"] .medallion {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px var(--blanco), 0 0 0 9px var(--azul-cielo), 0 16px 30px rgb(15 56 119 / 0.3);
}

.value__button[aria-pressed="true"] .value__name {
  color: var(--azul-medio);
}

.value__button:focus-visible {
  outline: 3px solid var(--azul-medio);
  outline-offset: 4px;
}

/* Phrases stay in the HTML (SEO / no JS); with JS they are shown in the quote panel instead */
.value__phrase {
  max-width: 22ch;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  text-align: center;
  color: var(--texto-suave);
}

.js .value__phrase {
  display: none;
}

.values-quote {
  position: relative;
  display: none;
  max-width: 760px;
  margin: var(--space-7) auto 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  box-shadow: var(--shadow);
  text-align: center;
}

.js .values-quote {
  display: block;
}

.values-quote::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--blanco);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
}

.values-quote__mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--azul-cielo);
}

.values-quote__text {
  margin-top: var(--space-3);
  font-family: var(--font-titulos);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--azul-rey);
  text-wrap: balance;
}

.values-quote__name {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-medio);
}

.values-quote.is-changing .values-quote__text,
.values-quote.is-changing .values-quote__name {
  opacity: 0;
  transform: translateY(6px);
}

.values-quote__text,
.values-quote__name {
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (min-width: 768px) {
  .values-orbit {
    grid-template-columns: repeat(6, 1fr);
  }

  .value__button .medallion {
    --size: 96px;
  }

  .value__name {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .value__button:hover .medallion,
  .value__button[aria-pressed="true"] .medallion {
    transform: none;
  }
}
