/* assets/css/styles.css — layout global y utilidades */

/* ===== ELIMINAR ESPACIOS EN BLANCO ===== */

/* Reset + navegación por anclas */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background-color: rgba(13, 110, 253, 0.22);
  color: inherit;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main debe ocupar todo el espacio disponible */
main {
  flex: 1 0 auto;
}

/* Footer sin espacios extra */
footer,
.footer {
  margin-bottom: 0 !important;
  padding-bottom: 1rem !important;
  flex-shrink: 0;
}

/* Eliminar espacios de los contenedores de componentes */
#footer-container,
#social-buttons-container,
#dark-mode-container,
#header-container {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Asegurar que no haya overflow */
body {
  overflow-x: hidden;
}

/* Eliminar espacio después del último elemento */
body > *:last-child {
  margin-bottom: 0 !important;
}

/* ===== POSICIONAR BOTÓN DE MODO OSCURO ===== */

/* Botón de modo oscuro flotante en esquina inferior derecha */
.theme-switcher {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

/* En móviles, posición ajustada */
@media (max-width: 768px) {
  .theme-switcher {
    bottom: 70px !important;
    right: 15px !important;
  }
}

/* ===== AJUSTES ADICIONALES ===== */

/* Eliminar espacio del app wrapper de Vue */
#app {
  margin: 0 !important;
  padding: 0 !important;
}

/* Back to top button no debe crear espacio extra */
#app-back-to-top {
  margin: 0 !important;
  padding: 0 !important;
  position: fixed;
}