.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 405px;
  background: var(--bg-soft, #f1f1f1);
  aspect-ratio: 16 / 5;
  overflow: hidden;
  margin-bottom: 3rem;
}

.carousel-wrapper .carousel,
.carousel-wrapper .carousel-inner,
.carousel-wrapper .carousel-item {
  height: 100%;
}

.carousel-wrapper .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: var(--bg-soft, #f1f1f1);
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 3rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: ticker-scroll 100s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.images-webticker {
  display: flex;
  list-style: none;
  padding: 0;
  padding-right: 2rem;
  margin: 0;
  gap: 2rem;
  flex-shrink: 0;
}

.images-webticker li {
  flex-shrink: 0;
}

.images-webticker li img {
  display: block;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images-webticker li img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.btn-primary {
  display: inline-block;
  background: var(--red-main);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.metricas-section {
  margin-bottom: 3rem;
}

.metricas-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 32px;
  position: relative;
  min-height: 178px;
}

.metricas-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  border-radius: 16px;
}

.metricas-grid.loading .metricas-spinner {
  display: flex;
}

.metricas-grid.loading .metrica-card {
  opacity: 0.5;
}

.metrica-card {
  background: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 178px;
  position: relative;
  transition: opacity 0.3s ease;
}

.metrica-card-raças {
  text-align: left;
  grid-column: span 1;
  min-height: auto;
}

.metrica-tag {
  margin: 0;
  display: inline-flex;
  align-self: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7f1d1d;
  border: 1px solid var(--red-main);
  font-weight: 700;
}

.metrica-card-raças .metrica-tag {
  align-self: flex-start;
}

.metrica-valor {
  margin: 0.8rem 0 0;
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red-main);
}

.metrica-descricao {
  margin: 0.55rem 0 0;
  color: #4b5563;
  line-height: 1.35;
}

.racas-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.raca-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ebeef2;
  align-items: center;
}

.raca-chip-label {
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.raca-chip-valor {
  color: #9f1239;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.commemorative-section {
  margin-bottom: 3rem;
  padding: 0;
}

.commemorative-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.commemorative-content:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.commemorative-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red-main, #bb1818) 0%, var(--gold-soft, #c9a24d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: system-ui, -apple-system, sans-serif;
}

.commemorative-text {
  flex: 1;
  max-width: 400px;
}

.commemorative-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black-main, #1f1f1f);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.commemorative-subtitle {
  color: var(--text-muted, #6b7280);
  margin: 0;
  font-weight: 400;
}

.commemorative-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-main, #bb1818);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--red-main, #bb1818);
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.commemorative-link:hover {
  background: var(--red-main, #bb1818);
  color: #ffffff;
}

.commemorative-link svg {
  transition: transform 0.3s ease;
}

.cta-section {
  margin-bottom: 3rem;
  position: relative;
  min-height: 456px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.cta-section.cta-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.cta-section:not(.cta-with-image) {
  background: var(--red-dark);
}

.cta-section:not(.cta-with-image) .cta-overlay {
  display: none;
}

.cta-content {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
}

.cta-text-wrapper {
  position: relative;
  z-index: 2;
  flex: 1;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 500;
  color: #ffff;
}

.cta-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--red-main);
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: var(--red-dark);
}

.cta-button svg {
  transition: transform 0.3s ease;
}
  
.commemorative-content {
    gap: 1.5rem;
    padding: 1.5rem;
}
  
.commemorative-number {
    font-size: clamp(3.5rem, 10vw, 5rem);
}





@media screen and (max-width: 1299px) {
  .metricas-grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 991px) {
  .metricas-grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  }

  .metrica-card-raças {
    grid-column: span 1;
    min-height: auto;
  }
}

@media screen and (max-width: 639px) {
  .metricas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrica-card-raças {
    grid-column: span 2;
  }

  .racas-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .raca-chip {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cta-content {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .commemorative-section {
    margin: 1rem 0;
  }
  
  .commemorative-content {
    flex-direction: column;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--red-main, #bb1818);
  }
  
  .commemorative-number {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }
  
  .commemorative-text {
    max-width: 100%;
  }
  
  .commemorative-link {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }
  
  .commemorative-link:hover {
    transform: translateX(0);
  }
}