/* Estilos base - ya definidos por ti */
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e3f2fd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}
h1 {
  color: rgb(23, 23, 23);
  width: 100%;
  padding: 70px 0 30px 0;
  text-align: center;
}
img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.main-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 95%;
  margin-top: 0px;
  gap: 20px;
  text-align: center;
  flex-wrap: wrap; /* Para que se acomode en pantallas pequeÃ±as */
}
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}
.container2 {
  max-width: 300px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  flex: 1 1 100%; /* Se adapta al ancho */
}
.fila-completa {
  flex-basis: 100%;
  width: 100%;
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.columna {
  flex: 1 1 200px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.dropzone {
  border: 2px dashed #90caf9;
  padding: 20px;
  text-align: center;
  min-height: 350px;
  margin-top: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.assigned-vacunas {
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.panel-vacunas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
  width: 100%;
}
.vacuna {
  padding: 10px 0;
  width: 100%;
  background-color: #b3e5fc;
  border: 1px solid #0288d1;
  border-radius: 5px;
  cursor: grab;
  text-align: center;
  margin: 0 auto;
}
.comprobar {
  padding: 10px 0;
  width: 100%;
  background-color: white;
  border: 1px solid #0288d1;
  border-radius: 5px;
  cursor: grab;
  text-align: center;
  margin: 0 auto;
}
.vacuna.correct {
  background-color: #c8e6c9;
  border-color: #2e7d32;
}
.vacuna.incorrect {
  background-color: #ffcdd2;
  border-color: #c62828;
}
.grupo-selector {
  margin-top: 20px;
  text-align: center;
}
.grupo-selector button {
  margin: 5px;
  padding: 10px 15px;
  background-color: #81d4fa;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.grupo-selector button.active {
  background-color: #0288d1;
  color: white;
}
#resultado {
  margin-top: 20px;
  font-weight: bold;
  color: #d32f2f;
}
.panel-vacunas h3 {
  grid-column: span 2;
  text-align: center;
  margin-bottom: 10px;
}

/* ---------------------------------------- */
/* ðŸ”½ Media Queries para Pantallas Responsivas */
/* ---------------------------------------- */

/* TelÃ©fonos pequeÃ±os (hasta 576px) */
@media (max-width: 576px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }

  .container {
    flex-direction: column;
    align-items: center;
  }

  .columna,
  .container2,
  .fila-completa {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .panel-vacunas {
    grid-template-columns: 1fr;
  }

  .vacuna {
    width: 90%;
  }

  h1 {
    font-size: 1.5rem;
    padding: 40px 0 20px 0;
  }

  .grupo-selector button {
    width: 100%;
  }
}

/* Tablets (577px a 768px) */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }

  .panel-vacunas {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacuna {
    width: 100%;
  }

  .container2 {
    width: 100%;
  }
}

/* Laptops pequeÃ±os (769px a 992px) */
@media (max-width: 992px) {
  .main-layout {
    flex-wrap: wrap;
  }

  .panel-vacunas {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacuna {
    width: 100%;
  }
}
