/**
 * Layout and chrome overrides for theme mode pages.
 */

body.iv-theme-mode {
  background-color: var(--iv-color-bg);
  color: var(--iv-color-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.iv-theme-mode .site-content,
body.iv-theme-mode .homepage-v2026-content,
body.iv-theme-mode .services-page-content {
  background-color: var(--iv-color-bg);
  color: var(--iv-color-text);
}

body.iv-theme-mode .logotipo {
  background: var(--iv-logo-url) center center no-repeat;
}

body.iv-theme-mode .menu-v1 {
  background-color: var(--iv-color-surface);
}

body.iv-theme-mode .main-navigation a {
  color: var(--iv-color-text);
}

body.iv-theme-mode ul.lang-bar li a {
  color: var(--iv-color-text);
  border-color: var(--iv-color-text);
}

body.iv-theme-mode .menu-toggle .burguer .barra {
  background: var(--iv-color-text);
}

.iv-theme-toggle {
  position: fixed;
  top: 22px;
  right: 170px;
  z-index: 90901;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--iv-color-border);
  border-radius: 999px;
  background-color: var(--iv-color-surface);
  color: var(--iv-color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.iv-theme-toggle:hover,
.iv-theme-toggle:focus-visible {
  background-color: var(--iv-color-surface-muted);
  outline: none;
}

.iv-theme-toggle__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.8) rotate(-20deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.iv-theme-toggle__icon--sun::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px auto 0;
  border-radius: 50%;
  box-shadow: 0 -5px 0 0 currentColor, 3.5px -3.5px 0 0 currentColor, 5px 0 0 0 currentColor,
    3.5px 3.5px 0 0 currentColor, 0 5px 0 0 currentColor, -3.5px 3.5px 0 0 currentColor,
    -5px 0 0 0 currentColor, -3.5px -3.5px 0 0 currentColor;
}

.iv-theme-toggle__icon--moon::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px auto 0;
  border-radius: 50%;
  box-shadow: 4px -2px 0 0 currentColor;
}

html[data-theme="light"] .iv-theme-toggle__icon--moon,
html[data-theme="dark"] .iv-theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

@media (max-width: 767px) {
  .iv-theme-toggle {
    top: 18px;
    right: 72px;
    width: 38px;
    height: 38px;
  }
}
