/* Custom homepage style variants (red + white) */
:root {
  --brand-red: #B73A3A;
  --brand-red-2: #A93434;
  --brand-red-10: #FCECEC;
  --ink: #222;
  --ink-muted: #555;
}

.navbar-brand-red { background: var(--brand-red); }
.navbar-brand-red .navbar-brand,
.navbar-brand-red .nav-link { color: #fff !important; }
.navbar-brand-red .nav-link:hover,
.navbar-brand-red .nav-link:focus { color: #FFE9E9 !important; }
.navbar-brand-red .dropdown-menu { border-color: var(--brand-red); }
.navbar-brand-red .dropdown-item:hover { background: #FFE5E5; color: var(--ink); }
.navbar-brand-red .navbar-toggler { filter: invert(1); }

.home-section { padding: 64px 0; }
.section-red { background: var(--brand-red); color: #fff; }
.section-white { background: #fff; color: var(--ink); }
.section-soft { background: var(--brand-red-10); color: var(--ink); }
.section-white .text-muted, .section-soft .text-muted { color: var(--ink-muted) !important; }
.accent-underline { border-bottom: 4px solid var(--brand-red); padding-bottom: 8px; display: inline-block; }

.partner-title { text-align: center; margin-top: 8px; }
.partner-title a, .partner-title span { color: #fff; }

.card-red { border: 0; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card-red .card-header { background: var(--brand-red); color: #fff; }
.divider-red { height: 3px; background: var(--brand-red); opacity: .9; border-radius: 2px; }

.taxonomy-layout {
  display: grid;
  gap: 1.5rem;
}

.taxonomy-group {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.98));
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 14px 38px rgba(32, 32, 32, 0.09);
  border-top: 6px solid var(--brand-red);
}

.taxonomy-group:nth-of-type(1) { border-top-color: #8D3C2D; }
.taxonomy-group:nth-of-type(2) { border-top-color: #6A6554; }
.taxonomy-group:nth-of-type(3) { border-top-color: #7B2E2E; }
.taxonomy-group:nth-of-type(4) { border-top-color: #215A6D; }

.taxonomy-group__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.taxonomy-group__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.6);
}

.taxonomy-group__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  color: var(--ink);
}

.taxonomy-group__title span {
  display: inline-block;
  margin-left: 0.35rem;
  color: rgba(34, 34, 34, 0.56);
  font-size: 0.92em;
}

.taxonomy-group__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.taxonomy-stat {
  min-width: 110px;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(183, 58, 58, 0.08);
  text-align: center;
}

.taxonomy-stat__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, 0.58);
}

.taxonomy-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--ink);
}

.taxonomy-card {
  height: 100%;
  padding: 1.1rem 1.2rem 1.25rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(183, 58, 58, 0.10), transparent 42%),
    linear-gradient(180deg, #ffffff, #fcfbfb);
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: 0 10px 24px rgba(25, 25, 25, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.taxonomy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(25, 25, 25, 0.12);
  border-color: rgba(183, 58, 58, 0.24);
}

.taxonomy-card__count {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.taxonomy-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.taxonomy-card__text {
  flex: 1 1 auto;
}

.taxonomy-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
}

.taxonomy-card__latin {
  margin: 0;
  color: rgba(34, 34, 34, 0.6);
  font-size: 0.92rem;
}

.taxonomy-card__media {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246, 241, 241, 0.95));
}

.taxonomy-card__image {
  width: 118px;
  height: 118px;
  object-fit: contain;
  display: block;
}

.partner-carousel__actions {
  display: inline-flex;
  gap: 0.6rem;
}

.partner-carousel__button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-carousel__button:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}

.partner-carousel {
  overflow: hidden;
}

.partner-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.1rem 0.75rem;
  scrollbar-width: none;
}

.partner-carousel__track::-webkit-scrollbar {
  display: none;
}

.partner-carousel__slide {
  flex: 0 0 clamp(220px, 24vw, 280px);
  scroll-snap-align: start;
}

.partner-card {
  height: 100%;
  min-height: 210px;
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 28px rgba(69, 15, 15, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.partner-card__logo {
  width: 160px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.partner-card__title {
  margin-top: 0.9rem;
}

.partner-card__title a,
.partner-card__title span {
  color: var(--ink) !important;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .taxonomy-group__header {
    flex-direction: column;
    align-items: start;
  }

  .taxonomy-card__body {
    flex-direction: column;
    align-items: start;
  }

  .taxonomy-card__media {
    width: 100%;
    flex-basis: auto;
  }
}
