@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=PT+Sans+Narrow:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');


html {
  background: none;
}

* {
  transition: color .3s ease;
  transition: background-color .3s ease;
}

[data-theme='dark'],
:root {
  --rojo: #D8000D;
  --rojo-medio: #C4000A;
  --rojo-oscuro: #9B0007;

  --font-title: "Montserrat", sans-serif;
  --font-normal: "Inter", sans-serif;
  --font-especial: "PT Sans Narrow", sans-serif;
}

:root {
  /* Semantic variables for theme support */
  --uagn-bg: #ffffff;
  --uagn-text: #212529;
  --uagn-text-muted: #5f6b7a;
  --uagn-header-bg: #ffffff;
  --uagn-card-bg: #ffffff;
  --uagn-border: #dee2e6;

  --crema: #F4EDD3;
  --gris: #2B3343;
  --gris-claro: #F2F2F2;

  scroll-padding-top: calc(var(--drupal-displace-offset-top, 0px) + 80px);
}

/* Dark theme support */
[data-theme='dark'] {
  color-scheme: dark;

  /* Override custom variables */
  --uagn-bg: #212529;
  --uagn-text: #dee2e6;
  --uagn-text-muted: #dee2e6;
  --uagn-header-bg: #1a1d20;
  --uagn-card-bg: #2b3035;
  --uagn-border: #495057;

  --crema: #343a40;
  --gris: #1a1d20;
  --gris-claro: #2b3035;

  --bs-body-color: #dee2e6;
  --bs-body-bg: #212529;
  --bs-emphasis-color: #fff;
  --bs-secondary-bg: #343a40;
  --bs-tertiary-bg: #2b3035;
  --bs-border-color: #495057;
  --bs-heading-color: #ffffff;
  --bs-link-color: #6ea8fe;
}

/** Theme switcher override */
:root,
[data-theme='dark'],
.theme-toggle-pill,
.theme-toggle-slider,
.theme-option,
[data-theme='dark'] .theme-toggle-pill,
[data-theme='dark'] .theme-toggle-slider,
[data-theme='dark'] .theme-option {
  --theme-switcher-bg: var(--rojo-oscuro) !important;
  --theme-switcher-border: var(--rojo-oscuro) !important;
  --theme-switcher-slider-bg: var(--uagn-bg) !important;
  --theme-switcher-icon-color: white !important;
  --theme-switcher-active-color: var(--rojo) !important;
}

/* Ajuste específico para el slider en modo claro si se prefiere otro color */
:root:not([data-theme='dark']) .theme-toggle-slider {
  --theme-switcher-slider-bg: #f2f2f2 !important;
}

/** 
 * DRUPAL ADMIN TOOLBAR (GIN) SUPPORT
 * Aseguramos que la barra secundaria sea sticky para evitar huecos al bajar.
 */
.gin-secondary-toolbar--frontend {
  position: sticky !important;
  top: 0;
  z-index: 501;
}

/* Si el toolbar principal está presente, la secundaria se desplaza hacia abajo */
.toolbar-administration .gin-secondary-toolbar--frontend {
  top: 39px;
}

/* En resoluciones pequeñas, el toolbar de Drupal suele cambiar de altura */
@media (max-width: 975px) {
  .toolbar-administration .gin-secondary-toolbar--frontend {
    top: 0;
    /* A veces colapsa o se oculta */
  }
}

body {
  font-family: var(--font-normal);
  overflow-x: hidden;
  background: var(--uagn-bg);
  color: var(--uagn-text);
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 500;
}

h1,
h2 {
  font-weight: 800;
  text-align: center;
}

a:hover {
  transition: background-color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}

footer {
  position: relative;
  z-index: 1300;
  background-color: var(--uagn-header-bg);
}


.site-logo.d-block {
  text-decoration: none !important;
}