.rango-fechas-calendario {
  display: flex;
  gap: 30px;
  padding: 1rem;
  border-radius: 4px;
  background-color: var(--ui_background-color);
  box-shadow: var(--bordeadoComlejo);
  user-select: none;
}

.mes {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
}

.titulo-mes {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  padding: 0.5rem 0;
  border-bottom: 1px solid #252c32;
}

.grid-dias {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding-top: 0.5rem;
  justify-content: center;
}

.dia,
.cabecera-dia {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 300;
}

.cabecera-dia {
  font-weight: bold;
  background-color: #252c32;
}

.dia {
  cursor: pointer;
  background-color: #282f34;
  color: #eee;
  transition: background-color 0.2s;
  border-radius: 5px;
  box-shadow: 0 0 0px 1px #444d56 inset;
}

.dia:hover {
  background-color: #444;
  outline: 1px solid #6688cc;
}

.dia.vacio {
  visibility: hidden;
}

.dia.inicio,
.dia.fin {
  background-color: #305b84 !important;
  color: white;
  font-weight: bold;
}

.dia.en-rango {
  background-color: #4c647a;
  color: #e0ffe0;
}

.dia.inicio,
.dia.fin,
.dia.hoy {
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.calendario_reset {
  position: relative;
  margin: 20px auto;
  width: 32px;
  height: 32px;
  display: block;
  transform: translateY(0px);
  cursor: pointer;
  background-color: transparent;
  z-index: 1;
}

.calendario_reset img {
  transform-origin: center;
  transform: rotate(0deg);
  transition: transform 250ms ease;
}

.calendario_reset img:hover {
  transform: rotate(360deg);
}

@media (max-width: 600px) {
  .rango-fechas-calendario {
    flex-direction: column;
    align-items: center;
  }

  .mes {
    max-width: none;
    width: 90%;
  }

  .grid-dias {
    gap: 6px;
  }

  .dia,
  .cabecera-dia {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-btn {
    font-size: 14px;
    padding: 0.5em 1em;
    font-weight: 300;
  }
}

.dia.hoy {
  background-color: #354664 !important;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 2px 1px #0084b4 inset;
}

#selector-fechas {
  position: relative;
  margin: 0 auto;
}

.calendario-nav {
  position: absolute;
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav-btn-ctrl {
  width: 40px;
  height: 40px;
  background-color: transparent;
  color: #627281;
  cursor: pointer;
  transform: translatey(5px);
  transition: all 300ms ease;
}

.nav-btn-ctrl:hover {
  color: #d1d3d5;
}

.nav-btn-ctrl:nth-child(1):hover {
  transform: translate(-2px, 5px);
}

.nav-btn-ctrl:nth-child(2):hover {
  transform: translate(2px, 5px);
}

.rango-fechas-calendario,
.grid-dias,
.dia {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}