:root {
  --base-border-radius: 0.8rem;
}

/* Change font family of filename present on top of code block. */
.highlight span.filename {
  border-bottom: none;
  border-radius: var(--base-border-radius);
  display: inline;
  font-family: var(--md-code-font-family);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 5px;
  text-align: center;
}
.highlight span.filename + pre > code {
  border-radius: var(--base-border-radius);
  border-top-left-radius: 0;
}
.md-typeset pre > code {
  border-radius: var(--base-border-radius);
}

/* Grid Cards */
.md-typeset .grid.cards > ul > li {
  border-radius: var(--base-border-radius);
}
.md-typeset .grid.cards > ul > li:hover {
  box-shadow: 0 0 0.2rem #ffffff40;
}

/* Markdown Button */
.md-typeset .md-button {
  border-radius: var(--base-border-radius);
}

/* Critic, Mark */
ins.critic,
del.critic {
  text-decoration: none;
}

.md-typeset .critic,
.md-typeset mark {
  border-radius: 0.2rem;
  padding: 0 0.2rem;
}

.md-typeset mark {
  box-shadow: 0 0 0 0.1rem var(--md-typeset-mark-color);
}

.md-typeset ins.critic {
  box-shadow: 0 0 0 0.1rem var(--md-typeset-ins-color);
}

.md-typeset del.critic {
  box-shadow: 0 0 0 0.1rem var(--md-typeset-del-color);
}

/* Forms */
.md-search__form {
  border-radius: var(--base-border-radius);
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
  border-top-right-radius: var(--base-border-radius);
  border-top-left-radius: var(--base-border-radius);
}

[dir="ltr"] .md-search__output {
  border-bottom-right-radius: var(--base-border-radius);
  border-bottom-left-radius: var(--base-border-radius);
}

/* Blog - index.md */
.md-post--excerpt {
  background-color: var(--md-accent-fg-color--transparent);
  box-shadow: 0 0 0 1rem var(--md-accent-fg-color--transparent);
  border-radius: var(--base-border-radius);
}

/* Table */
.md-typeset table:not([class]) {
  border-radius: var(--base-border-radius);
}


[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #FF0099;    /* Naranja */
  --md-accent-fg-color: #FF0099;     /* Verde */
  --md-default-bg-color: #0D0D0D;    /* Fondo oscuro */
  --md-default-fg-color: #ffffff;    /* Texto claro */
  --md-code-bg-color: #171717;       /* Fondo para bloques de código */
}

[data-md-color-scheme="slate"] .md-header {
  background-color: #0D0D0D !important;
  box-shadow: none !important;
}

[data-md-color-scheme="slate"] .md-nav__title {
  background-color: #0D0D0D !important;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #ffffff !important; /* Naranja en modo oscuro */
  font-weight: 1000 !important;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  font-weight: 700 !important;
}

[data-md-color-scheme="slate"] .md-typeset {
  font-weight: 100 !important;
  font-size: 0.9rem; /* 18px en oscuro */
}

[data-md-color-scheme="slate"] .md-footer {
  background-color: #0D0D0D !important;
}

[data-md-color-scheme="slate"] .md-footer .md-footer-meta {
  display: none;
}

[data-md-color-scheme="slate"] .md-nav__title {
  color: #ffffff !important; /* Naranja en modo oscuro */
}

[data-md-color-scheme="slate"] .md-tabs {
  color: #ffffff !important; /* Naranja en modo oscuro */
  background-color: #0D0D0D !important;
}

/* Ocultar el SVG del botón hamburguesa hasta que JavaScript lo reemplace */
[data-md-color-scheme="slate"] .md-header__button .md-icon svg {
  display: none;
}

/* Estilo para el botón del menú con bandera */
[data-md-color-scheme="slate"] .md-header__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

/* Estilo para la bandera del idioma */
[data-md-color-scheme="slate"] .md-header__button .language-flag {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
}

/* Estilo para el indicador de idioma */
[data-md-color-scheme="slate"] .md-header__button .language-indicator {
  font-size: 0.5rem;
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--md-accent-fg-color);
  color: white;
  padding: 1px 3px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
}

/* Mejorar el selector de idiomas */
[data-md-color-scheme="slate"] .md-header__option .md-select__link {
  border-radius: 8px;
  padding: 4px 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-md-color-scheme="slate"] .md-header__option .md-select__link:hover {
  background-color: var(--md-accent-fg-color--transparent);
}

/* Destacar el idioma activo en el selector */
[data-md-color-scheme="slate"] .md-header__option .md-select__link[aria-current="true"] {
  background-color: var(--md-accent-fg-color);
  color: white;
  font-weight: bold;
}

/* Ocultar el SVG del selector de idiomas hasta que JavaScript lo reemplace */
[data-md-color-scheme="slate"] .md-header__option .md-icon svg {
  display: none;
}

/* Estilo para el icono del selector de idiomas (ahora con bandera) */
[data-md-color-scheme="slate"] .md-header__option .md-icon {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
}

