/* ==========================================================================
   ESTILOS PARA EXPORTADOR DE IMAGEN (GeoEscazú / Observatorio Socioambiental)
   ========================================================================== */

:root {
  --verde-musgo-profundo: #457724;
  --verde-olivo: #75aa52;
  --gris-pizarra: #334155;
  --sombra-modal: rgba(15, 23, 42, 0.65);
}

/* Contenedor horizontal para agrupar ambos botones de descarga */
.contenedor-botones-descarga {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón principal de Descargar Imagen */
.btn-descargar-imagen {
  padding: 0.75rem 1.4rem;
  background-color: var(--verde-olivo);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(117, 170, 82, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-descargar-imagen:hover {
  background-color: var(--verde-musgo-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(69, 119, 36, 0.35);
}

.btn-descargar-imagen:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(69, 119, 36, 0.2);
}

.btn-descargar-imagen:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Ventana modal para seleccionar Cobertura */
.modal-cobertura-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--sombra-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
  animation: fadeInModal 0.2s ease;
}

.modal-cobertura-card {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  max-width: 420px;
  width: 90%;
  text-align: center;
  font-family: inherit;
  animation: scaleUpModal 0.2s ease;
}

.modal-cobertura-titulo {
  margin: 0 0 8px 0;
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-cobertura-desc {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-cobertura-acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-opcion {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-departamental {
  background-color: var(--verde-musgo-profundo);
  color: #ffffff;
}

.btn-modal-departamental:hover {
  background-color: #345c1a;
  transform: translateY(-1px);
}

.btn-modal-municipal {
  background-color: var(--verde-olivo);
  color: #ffffff;
}

.btn-modal-municipal:hover {
  background-color: var(--verde-musgo-profundo);
  transform: translateY(-1px);
}

.btn-modal-cancelar {
  margin-top: 4px;
  padding: 8px;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-modal-cancelar:hover {
  color: #475569;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .contenedor-botones-descarga {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .btn-descargar-imagen {
    width: 100%;
    text-align: center;
  }

  .modal-cobertura-card {
    padding: 20px;
  }
}