/* 📊 Bloque BCV */
#bloqueBCV {
  position: absolute;
  top: 120px;
  right: 60px;
  background-color: rgba(0, 43, 92, 0.50);
  color: white;
  padding: 10px;
  border-radius: 8px;
  width: 280px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#bloqueBCV img {
  height: 64px;
  margin-bottom: 8px;
  filter: brightness(1.2) contrast(1.1);
}

#bloqueBCV div {
  font-size: 0.8em;
  font-weight: 500;
  font-style: italic;
}

#tasaBCV {
  font-size: 0.9em;
  font-weight: bold;
}

#fechaValor {
  font-size: 0.85em;
}

/* 📅 Bloque Calendario */
#bloqueCalendario {
  position: absolute;
  top: 310px;
  right: 60px;
  background-color: rgba(0, 43, 92, 0.45);
  color: white;
  padding: 10px;
  border-radius: 4px;
  width: 280px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}

.encabezadoCalendario {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.encabezadoCalendario button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  cursor: pointer;
}

.diasSemana, #calendarioMes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.diasSemana div {
  text-align: center;
  font-weight: bold;
}

.diaCalendario {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  font-size: 0.85em;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

.diaCalendario:hover {
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hoy {
  background-color: #ff9900;
  color: white;
  font-weight: bold;
}

#horaActual {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85em;
  font-weight: 500;
  padding: 6px 0;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
/* ======================================================= */
/* ADAPTACIÓN MÓVIL PARA BLOQUE BCV Y CALENDARIO           */
/* ======================================================= */
@media (max-width: 768px) {
  #bloqueBCV, 
  #bloqueCalendario {
    position: relative !important; /* Quita la posición fija */
    top: auto !important;
    right: auto !important;
    width: 90% !important; /* Se ajusta al ancho del celular */
    margin: 15px auto !important; /* Los centra horizontalmente */
  }
}