/* Panel lateral secundario clasico. Permanece en el DOM como referencia
   (cada modulo se ira migrando a floating panels), pero siempre oculto. */
.panel {
  display: none !important;
}

.panel.panel-wide {
  width: var(--panel-width-descargas) !important;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/palm-leaf.jpg') center/cover no-repeat;
  opacity: 0.04;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 0;
}

.panel-header {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-top: 10px;
  color: white;
}

.panel-content {
  padding: 10px 0;
  font-size: 12px;
}

/* Estilo para los selectInput dentro de los paneles */
.panel .selectize-input {
  background-color: #0076A8;
  color: white;
  border: 1px solid #005880;
  font-size: 11px;
}

.panel .selectize-dropdown {
  background-color: #0076A8;
  color: white;
  font-size: 11px;
}

.panel .selectize-dropdown-content .option {
  color: white;
  font-size: 11px;
  background-color: #0076A8;
}

.panel .selectize-dropdown-content .option.active {
  background-color: #005880;
}

/* Estilo para las etiquetas de los inputs */
.panel label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

/* Estilo específico para la etiqueta de Temporalidad */
.panel .radio-group-label {
  font-size: 13px !important;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Estilo para los radio buttons */
.panel .radio {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.9);
}

.panel .radio input[type="radio"] {
  margin-right: 10px;
}

.panel .radio input[type="radio"]:checked + span {
  color: white;
  font-weight: 500;
}

.panel .radio span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Estilo para los radio buttons inline */
.panel .radio-inline {
  margin-right: 15px;
  display: inline-block;
}

.panel .radio-inline input[type="radio"] {
  margin-right: 5px;
}

.panel .radio-inline + .radio-inline {
  margin-left: 0;
}

/* Aumentar el tamaño de letra para Anual y Mensual */
.panel .radio-inline span {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.8);
}

.panel .radio-inline input[type="radio"]:checked + span {
  color: white;
  font-weight: 500;
}

/* Estilo para el botón de boletines */
.btn-boletines {
  width: 100% !important;
  background-color: #005587 !important;
  color: white !important;
  border: none !important;
  padding: 8px !important;
  margin-top: 20px !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
}

/* Estilos para el acordeón */
.accordion {
  margin-top: 3px;
  margin-bottom: 3px;
  border-radius: 8px;
  overflow: hidden; /* Para que los bordes redondeados se apliquen también al contenido */
}

.accordion-item {
  background-color: #0076A8;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  background-color: #0076A8 !important;
  color: white !important;
  border: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

.accordion-title-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accordion-title {
  font-size: 13px;
  font-weight: 500;
}

.accordion-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
}

.accordion-button:hover {
  background-color: #0088c5 !important; /* Un tono más claro al hacer hover */
}

.accordion-content {
  display: none;
  padding: 15px;
  background-color: #0076A8;
  max-height: calc(80vh - 60px);
  overflow-y: auto;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Estilos para el scrollbar en navegadores WebKit (Chrome, Safari, Edge) */
.accordion-content::-webkit-scrollbar {
  width: 8px;
}

.accordion-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.accordion-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Estilos para Firefox */
.accordion-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.accordion-content.active {
  display: block;
}

/* Ajustar el contenido dentro del acordeón */
.accordion-content .panel-content {
  padding: 0;
}

.accordion-content .radio-group-label {
  margin-top: 15px;
}

/* Ajustar el estilo del primer radio-group-label */
.accordion-content .radio-group-label:first-child {
  margin-top: 0;
}

/* Acordeones de nivel superior (fuera de PALMET) necesitan max-height menor
   para compensar los headers de los demás acordeones visibles */
[id$="-cc_content"].accordion-content {
  max-height: calc(80vh - 300px);
}

/* Estilo para mensaje de próximamente */
.coming-soon {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  padding: 20px 0;
  font-size: 13px;
}

.windy-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 401;
  background: #fff;
}

.windy-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Button group selector (reemplazo moderno de radioButtons) */
.btn-group-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.btn-group-selector.inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.btn-group-selector .btn-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  line-height: 1.4;
}

.btn-group-selector.inline .btn-option {
  width: auto;
  flex: 1;
  text-align: center;
}

.btn-group-selector .btn-option:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-group-selector .btn-option.active {
  background-color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Variante light para modales y fondos claros */
.btn-group-selector.light .btn-option {
  color: #333;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-group-selector.light .btn-option:hover {
  background-color: rgba(0, 118, 168, 0.08);
  border-color: rgba(0, 118, 168, 0.3);
}

.btn-group-selector.light .btn-option.active {
  background-color: rgba(0, 118, 168, 0.12);
  border-color: #0076A8;
  color: #005587;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 118, 168, 0.15);
}

/* ==================== MOBILE ≤768px ==================== */
@media screen and (max-width: 768px) {
  .panel.panel-wide {
    width: 100vw !important;
    height: 80vh !important;
  }
}

