/* Importar la fuente Jost */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap');

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.5s ease, color 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

:root {
  --dark-mode-width: 80px;
  --dark-mode-height: 40px;
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 12px;
  transition: background-color 0.5s ease;
}

body.dark .container {
  background-color: #1e1e1e;
}

.text {
  max-width: 500px;
  padding: 20px;
  color: #333;
  line-height: 1.6;
  font-size: 1.2rem;
  transition: color 0.5s ease;
}

body.dark .text {
  color: #e0e0e0;
}
.construction {
  color: #ffa41b;
  font-size: 1.2rem;
}

.text h1,
.text h3,
.text h4 {
  margin-top: 0;
}

.text p {
  margin: 1em 0;
}

.container img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

/* Aside card flotante */
.sidebar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 300px; /* Ancho inicial del sidebar */
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
}
body.dark .sidebar {
  background-color: #1e1e1e;
}
.sidebar:hover {
  width: 520px;
}
.sidebar_content {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Estilos iniciales */
#agro_logo_big,
#agro_text_big {
  display: none;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#agro_logo_small,
#agro_text_small {
  display: block;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

/* Estilos de hover */
.sidebar:hover #agro_logo_big,
.sidebar:hover #agro_text_big {
  display: block;
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

.sidebar:hover #agro_logo_small,
.sidebar:hover #agro_text_small {
  display: none;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
/* estilos para el boton de modo oscuro */
.dark-mode {
  position: absolute;
  top: 20px;
  left: 20px;
  width: var(--dark-mode-width);
  height: var(--dark-mode-height);
  display: flex;
  align-items: center;
  border-radius: 999px;
  background-color: #dfdede;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

body.dark .dark-mode {
  background-color: rgb(161, 161, 161);
}

.dark-mode .circle {
  width: 40%;
  height: 80%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: white;
  transform: translateX(10%);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

body.dark .circle {
  transform: translateX(140%);
  background-color: #2a2a2c;
}

.dark-mode .circle ion-icon {
  width: 70%;
  height: 70%;
  position: absolute;
  transition: transform 0.5s ease;
}

.dark-mode .circle .moon {
  color: white;
  transform: translateY(-120%);
}

body.dark .circle .moon {
  transform: translateX(0);
}

.dark-mode .circle .sun {
  color: #fcde5b;
}

body.dark .circle .sun {
  transform: translateY(120%);
}

/* Responsividad */
@media (max-width: 900px) {
  .dark-mode {
    position: static;
    margin: 20px auto;
  }
  .container {
    margin: auto;
    width: 90%;
    padding: 20px 10px;
    text-align: center;
  }

  .sidebar {
    position: unset;
    display: block;
    margin: auto;
    width: 90%;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .sidebar #agro_logo_big,
  .sidebar #agro_text_big {
    display: block;
    opacity: 1;
  }

  .sidebar #agro_logo_small,
  .sidebar #agro_text_small {
    display: none;
    opacity: 0;
  }
}
