:root > * {
  /* Primary */
  --md-primary-fg-color: #ca1c7c;

  /* Text colors */
  --color-text-base: #5a4b53;
  --color-text-light: #faf7f9;

  /* Backgrounds */
  --color-background-light: #faf7f9;
  --color-background-dark: #1a1417;

  /* MkDocs / Material mappings */
  --md-typeset-color: var(--color-text-base);
  --md-typeset-a-color: var(--md-primary-fg-color);
  --md-accent-fg-color: var(--md-primary-fg-color);

  /* Footer */
  --md-footer-bg-color: var(--color-background-light);
  --md-footer-fg-color: var(--color-text-base);
  --md-footer-bg-color--dark: var(--md-primary-fg-color);

  /* Header */
  --md-primary-bg-color: var(--color-background-light);
  --md-primary-fg-color--light: #f3d6e6;
  --md-primary-fg-color--dark: #5a1f3f;
}

/* Add borders between sections in the navigation */
.md-nav__item--section:not(:last-child) {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 1.25em;
}

/* Increase heading weight */
.md-typeset h1 {
  font-weight: 600;
}

[data-md-color-scheme="light"] .md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 500;
}

/* Banner */
.md-banner {
  background-color:var(--md-primary-fg-color--dark);
  color: var(--md-primary-bg-color);
  font-size: 0.75rem;
  font-weight: 500;
}

.md-banner__text {
  white-space: nowrap;
}

.md-banner a {
  color: var(--color-text-light);
  font-weight: 600;
  text-decoration: none;
}

.md-banner a:hover {
  text-decoration: underline;
  color: var(--md-primary-fg-color--light) !important;
}

.emphasis-primary {
  color: var(--md-primary-fg-color);
  font-weight: 600;
}
/* Animations */

.fade-loop {
  animation: fadeLoop 2s ease-in-out infinite;
}

@keyframes fadeLoop {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/*-----------------------------------------------------------*/

.logos {
  display: flex;
  justify-content: center;   
  align-items: center;       
  gap: 2rem;                 
  margin: 1.5rem 0;
}

.logos img {
  height: 100px;              
  width: auto;
  object-fit: contain;
}

/* Footer logos */
.md-footer-meta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bloque de logos a la derecha */
.md-footer-meta__inner::after {
  content: "";
  display: block;
  height: 48px;
  width: 900px;

  background-image:
    url("../assets/logo_xunta_footer.webp"),
    url("../assets/logo_vit_footer.webp"),
    url("../assets/logo_hr.webp");

  background-repeat: no-repeat;
  background-position:
    400px center,       /* logo 1 */
    600px center,   /* logo 2 (180px desde el primero) */
    830px center;   /* logo 3 (180px desde el segundo) */

  background-size:
    auto 48px,
    auto 48px,
    auto 48px;
}

/*-------------------------------------------------------------*/
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.flow-step {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.75rem;
}

.flow-step:hover {
  border-color: var(--md-primary-fg-color);
}

.step-num {
  font-weight: 700;
  color: var(--md-primary-fg-color);
}
