/* Scrollbar personalizado global */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background-color: #0071bc; /* Azul corporativo */
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #004aad; /* Un tono más oscuro al hacer hover */
}

/* Firefox */
html {
  scrollbar-color: #0071bc #f0f0f0;
  scrollbar-width: thin;
}
/* Estilo base global del tema Coagro */

body {
  font-family: "Montserrat", sans-serif;
}

:root {
  --primary: #0071bc;
  --bg: #f9f9f9;
  --toggle-bg: rgba(255, 255, 255, 0.3);
  --toggle-height: 60px;
  --toggle-radius: 30px;
  --ease: power2.out;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  padding-bottom: calc(var(--toggle-height)+2rem);
}

/* CONTENIDO DESLIZABLE */
.content-container {
  overflow: hidden;
}
.content-wrapper {
  display: flex;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s var(--ease);
}
.section {
  width: 50%;
  padding: 0 0;
}

/* TOGGLE BAR */
.toggle-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: var(--toggle-height);
  background: var(--toggle-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--toggle-radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
  z-index: 100;
}
.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  background: var(--primary);
  border-radius: var(--toggle-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease);
  z-index: 1;
}
.toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  color: #555;
  transition: color 0.3s;
}
.toggle-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.toggle-btn span {
  font-size: 0.95rem;
  font-weight: 500;
}
.toggle-btn.active {
  color: #fff;
}

/* DON COAGRITO */
#toggle-char {
  position: absolute;
  bottom: calc(var(--toggle-height) + 16px);
  width: 120px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 101;
  pointer-events: none;
}

/* BURBUJA DE MENSAJE */
.don-msg {
  position: absolute;
  bottom: calc(var(--toggle-height) + 200px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  color: #333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 102;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.don-msg .close {
  cursor: pointer;
  font-weight: bold;
  margin-left: 0.5rem;
}
.don-msg::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
